I am trying to figure out the solution for a Poisson's equation, which relates the scalar electric potential $\phi$ to the electric charge density $q$. I found the below equation and it's solution from an electromagnetic textbook, but unfortunately no steps were shown to get the solution. Thanks in advance.
Poisson's equation: $$\bigtriangledown^2\phi = -\frac{q}{\epsilon}$$ Solution: $$\phi = \frac{1}{4\pi\epsilon} \iiint_{V} \frac{q}{r} \,dv'$$
Let's consider the Poisson equation: $$ \Delta \phi = -\frac{q}{\epsilon} $$ where $\phi$ is the electric potential and $\Delta=\nabla\cdot\nabla$. (This can be derived from Gauss's law for the electric energy $\mathcal{E}$, which is $\nabla\cdot \mathcal{E} = q/\epsilon$, and recalling that the potential energy is defined by $\mathcal{E} = -\nabla \phi$).
Solving this (at least for me) relies on the theory of Green's Functions. Consider a linear differential operator $\mathcal{L}$. The Green's function $G$ satisfies $$ \mathcal{L} G(x,s) = \delta(s-x) $$ where $\delta$ is the Dirac delta function. That's a little bit random. But consider the inhomogeneous differential equation: $$ \mathcal{L} u(x) = f(x) $$ Using $G$, we can do: \begin{align} f(x) &= \int \delta(x-s) f(s)ds\;\;\;\;\;\;\;\;\;\;\; \text{Definition of $\delta$} \\ &= \int \mathcal{L} G(x,s) f(s) ds \;\;\;\;\;\;\;\;\;\;\text{Definition of $G$} \\ &= \mathcal{L}\int G(x,s)f(s)ds\;\;\;\;\;\,\;\;\;\;\text{Linearity of $\mathcal{L}$}\\ &= \mathcal{L}u(x) \;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\;\text{From the DE definition} \end{align} Thus we can say (maybe a little black magically) that the solution in terms of the Green's function is given by:$$ u(x) = \int G(x,s) f(s)ds $$ by equating the terms operated on by $\mathcal{L}$.
So now, we just need to find the Green's function for $\mathcal{L}=\Delta$, then we can solve the equation with $f = -q/\epsilon$.
Here's the short answer: the Green's function for $\mathcal{L}=\Delta$ in $\mathbb{R}^3$ is given by $$ G_{\Delta,3}(\vec{x},\vec{y}) = \left[-4\pi r\right]^{-1} = \frac{-1}{4\pi\,||\vec{x}-\vec{y}||_2} $$ where $r$ is the Euclidean distance.
Thus, the solution to $\Delta\phi = -q/\epsilon$ is given by: $$ \phi(x) = \iiint G_{\Delta,3}(x,s) f(s) ds = \frac{1}{4\pi\epsilon} \iiint r(x,s)^{-1} \,q(s)\, ds $$ where $r(x,s)=||{x}-{s}||_2$.
The only missing piece of this is the derivation of the Green's function for the 3D Laplacian. For that, see one of these links: [1], [2], [3], [4].