I want to show that $$\int_\mathbb{R^n} \nabla^2\phi \mathrm{d}^nx = 0$$ provided $\nabla \phi(\mathbf{x},t) \rightarrow 0$ as $|\mathbf{x}| \rightarrow \infty$.
I have thought of maybe expanding the Laplacian but I have no idea how to evaluate $\int_\mathbb{R^n} \frac{\partial^2 \phi}{\partial x_i^2} \mathrm{d^n}x$?
I have also considered using Gauss' Theorem as follows; $$\int_\mathbb{R^n} \nabla^2\phi \mathrm{d}^nx = \lim_{r \rightarrow \infty} \int_{C_r}\nabla^2\phi \mathrm{d}^nx =\lim_{r \rightarrow \infty} \int_{\partial C_r}\nabla\phi\cdot \mathrm{d}\mathbf{S} \leq \lim_{r \rightarrow \infty}A\max_{\partial C_r }(\phi \cdot \mathbf{S}) = 0$$
Where $C_r$ is a sphere of radius $r$ centred on the origin and A is an appropriate constant. Is this correct?
I also want to prove that if we integrate over a compact space $M$ instead of $\mathbb{R^n}$ that the same holds. Although looking at my 'proof' this doesn't seem to be correct?