Proof (free space Green's function for the Laplacian)

$n>2$

(The boundary condition means we can take Fourier transforms.)

Let $F(\v x) = c_n |\v x|^{2-n}$ where $c_n = 1/C_{n,n-2}$ defined here such that $$ \begin{align*} \hat F(\v \lambda) = \frac{1}{|\v \lambda|^2}. \end{align*} $$ Taking the Fourier transform of $\Delta G = \delta(\v x-\v y)$, $$ \begin{align*} -|\v \lambda|^2 \hat G(\v \lambda; \v y) &= e^{-i\v \lambda\cdot \v y} \\ \hat G(\v \lambda; \v y) &= -\frac{e^{-i\v \lambda\cdot \v y}}{|\v \lambda|^2} \\ &= -\mathcal{F}_{\v x\mapsto \v \lambda}(F(\v x-\v y)) \end{align*} $$ so taking inverse, $$ \begin{align*} G(\v \lambda; \v y) = -F(\v x-\v y) = -\frac{c_n}{|\v x-\v y|^{n-2}}. \end{align*} $$

To determine $c_n$, set $\v y=0$: $$ \begin{align*} \delta(\v x) = -\Delta(c_n|\v x|^{2-n}) \end{align*} $$ and integrate over $|\v x|\leq 1$: $$ \begin{align*} 1 &= -c_n \int_{|\v x|\leq 1} \Delta(|\v x|^{2-n}) \d ^n \v x \\ &= -c_n \int_{|\v x|=1} \nabla(|\v x|^{2-n}) \cdot \d \v S &&\text{divergence theorem} \\ &= -c_n \int_{|\v x|=1} (2-n) |\v x|^{1-n} \d S \\ &= (n-2) c_n \int_{|\v x|=1} \d S \\ &= (n-2) |S^{n-1}|\, c_n. \end{align*} $$

$n=2$

Take $\v y=\v 0$ WLOG since Laplacian is translation invariant, i.e. $\Delta(G(\v x-\v y)) = (\Delta G)(\v x-\v y)$.

Let $r = |\v x|$. On $r\neq 0$, we have $$ \begin{align*} \Delta(\log r) = \frac{1}{r} \pdd{r}\left(r \pdd{r}(\log r)\right) = 0. \end{align*} $$

Around $r=0$, consider an integral of $\Delta(\log r)$ over $|\v x|<\epsilon$. $$ \begin{align*} \int_{|\v x|<\epsilon} \Delta(\log r) \d^2 \v x ={}& \int_{|\v x|=\epsilon} \nabla(\log r)\cdot \d \v S &&\text{divergence theorem} \\ ={}& \int_{0}^{2\pi} \frac{1}{\epsilon}\v e_r \cdot \v e_r \epsilon \d \theta \\ ={}& 2\pi. \end{align*} $$ Hence $$ \begin{align*} \nabla\left(\frac{1}{2\pi} \log|\v x|\right) = \delta(\v x). \end{align*} $$