TITLE: Laplacian of a Smooth Function $f(\vec x) = 1/\|\vec x \|$ for $\| \vec x \| \geq 1$
QUESTION [5 upvotes]: This is a multivariable calculus problem from a past prelim exam. I have an answer for this written up (posted below), but it seemed rather time-intensive. If there is a slicker way to approach this problem, I'd appreciate seeing it. Thanks!

Recall that for a smooth function $f: \mathbb{R}^3 \to \mathbb{R}$, the Laplacian of $f$ is defined by
  $$ \Delta f = \nabla \cdot ( \nabla f). $$
Suppose that $f: \mathbb{R}^3 \to \mathbb{R}$ is a smooth function satisfying $f(\vec{x}) = 1/\|\vec{x}\|$ for $\|\vec{x}\| \geq 1$.

Verify that $\Delta f(\vec{x}) = 0$ for $\|\vec{x}\| \geq 1$.
Compute $\int_{\mathbb{R}^3} \Delta f \, dV$.

REPLY [6 votes]: For the first part: 
$f(\vec{x})=1/r$, with $r=\sqrt{x^2+y^2+z^2}$ (notice that I'm not using polar coordinates here). Now, 
$$\frac{\partial r}{\partial x} = \frac{x}{r}$$
So 
$$\frac{\partial f}{\partial x} = - \frac{x}{r^3}$$
and
$$\frac{\partial^2 f}{\partial x^2} = - \frac{r^2 - 3 x^2}{r^5}$$
But $$\Delta f = \frac{\partial^2 f}{\partial x^2}+ \frac{\partial^2 f}{\partial y^2}+\frac{\partial^2 f}{\partial z^2} = 
-\frac{1}{r^5} \left[3 r^2 - 3 (x^2+y^2+z^2)\right] = 
0$$

For the second part: 
Because the laplacian is zero outside the unit sphere, the integral can be restricted to the sphere; and, the laplacian is the divergence of the gradient, and because the function is smooth, we can apply the divergence theorem; hence the integral  must be equal to the flux of the gradient over the surface.
But the gradient is given by 
$$\nabla f = ( - \frac{x}{r^3},  - \frac{y}{r^3},- \frac{z}{r^3})  = - \frac{\vec{x}}{|\vec{x}|^3}$$
So, it's a vector colinear with $\vec{x}$, pointing towards the origin. And over the surface, it's length is 1, and it's normal to the surface. Hence the flux per surface element is just (minus) the element area; and the total surface integral is just the surface area of the sphere, with negative sign:   $- 4 \pi$