I'm reading through a development of the maximum modulous principle, but I am stuck verifying a remark:
$$\text{"it is enough to show that $|f|$ is constant, from which we may conclude that $f$ is.''}$$
So I am trying to prove it as a lemma:
Let $f$ be analytic on a domain $D$. If $|f|$ is constant then so is $f$.
I tried using the fact that $|f|$ constant implies $|f|$ is analytic.
From here this means that $Re(|f(x,y)|)$ is harmonic.
I wrote out the consequence to this using Laplace's Equation, hoping to force the partial derivatives of $f$ to vanish, but it didn't seem to go anywhere.
Any suggestions?

