Let $u:\mathbb R^d\longrightarrow \mathbb R$ a harmonic function. Show that,
1) $\int_{\mathbb R^d}|u|^2<\infty \implies u=0$
2) $\int_{\mathbb R^d}|\nabla u|^2<\infty \implies u$ constant.
My attempts
Let consider the ball $B(x,r)$. Then, $$|u(x)|=\left|\frac{1}{|B(x,r)|}\int_{B(x,r)}u(y) d y\right|\leq \frac{1}{|B(x,r)|}\int_{B(x,r)}|u|\underset{CS}{\leq}\frac{1}{\sqrt{|B(x,r)|}}\sqrt{\int_{B(x,r)}|u|^2}\leq \frac{C}{\sqrt{|B(x,r)|}}.$$ Letting $r\to \infty $, we get $|u(x)|=0$ and thus $u=0$.
Is it correct ? (In fact, $u\in L^1(\mathbb R^d)$ would be enough, no ?)
2) We have that $|\nabla u|$ is harmonic, and thus the claim follow for the previous exercise.
Is it correct ?