When is a real-analytic function harmonic? I recently learnt that every harmonic function occurs as the real part of a complex analytic function. We also know that every harmonic function is real analytic. So, when is a real-analytic function harmonic ?
When $-\Delta u=-\sum_{k=1}^n\frac{\partial^2u}{\partial x_k^2}=0$

I believe an equivalent property is the mean integral property, I.e.:

$u(x)=\frac{1}{n\alpha(n)r^{n-1}}\int_{\partial B(x,r)}u(y)dS(y)=\frac{1}{\alpha(n)r^{n}}\int_{ B(x,r)}u(y)dy$, $\forall r\gt 0$.

Where $\alpha(n)$ is the volume on the unit sphere in $\Bbb R^n$.
A real valued function can never be analytic except a constant function.let it be a $~f(z)=x~$ so it have to satisfy CR equation. but here $~Ux=1~$ but $~Vy=0~$. So CR equation not satisfied  so not differentiable any where.so we can't talk about analytic but it is hormonic.