They ask me:
$\Omega$ is a domain and $f$ is holomorphic in $\Omega$, prove that if $\lvert f(z) \rvert$ is constant in $\Omega$ then $f$ is also constant in $\Omega$
My idea to prove this is use the maximum modulus principle like:
- I say as $\lvert f(z) \rvert$ is constant then $\lvert f(z) \rvert = M$, $M$ arbitrary value
- As $\lvert f(z) \rvert = M$ I noticed that $\lvert f(z) \rvert$ reach the maximum
- So using the the maximum modulus principle I can affirm that $f$ is constant.
I don't know if it is correct or not.
Your proof is correct. My proof: suppose that $f$ is not constant. Then $f( \Omega)$ is open, but this is not possible, since $|f|$ is constant.