Given that $f(z)$ and $|f(z)|$ are each analytic in a domain D, prove that $f(z)$ is constant in D.
Show that if $f$ is analytic in a domain $D$ and $|f(z)|$ is constant in $D$, then the function $f(z)$ is constant in $D$