Spherically symmetric solution of Poisson equation (source code)

= Spherically symmetric solution of Poisson equation

For $u(x)=U(r)$ in three <dimensions>, $r=|x|>0$, <Poisson equation> $\Delta u=f(r)$ becomes
$$
\frac{d}{dr}(r^2U'(r))=r^2f(r),\qquad U'(r)=\frac{C+\int_0^r s^2f(s)\,ds}{r^2}.
$$
For a bounded continuous source, regularity at the origin <forces> $C=0$; otherwise a singular $-C/r$ term remains. A constant source $f=\rho$ gives $U=\rho r^2/6+D$. An exterior source-free region has $U=A+B/r$. Thus the radial <field> is determined by enclosed source, with physical constants and signs fixed by the convention for <Poisson equation>.