If $f,g$ are a pair of analytic functions on $U$, such that $|f| = |g|$, prove that $f(z) = ag(z)$. Where $a$ is a constant such that $|a| = 1$.
My attempt: I know I need to define an $h(z)$ as the quotient of the two fucntions but I am stuck there. Do I use the zeroes of the functions as was done in this problem here. If so, why can I assume that they have a zero in the domain $U$. Help needed.