Assume $f$ and $g$ are analytic on a domain $D$,
$\forall z \in \mathbb{C}$, $f(z)$, $g(z) \neq 0$.
Suppose that $|f(z)|=|g(z)|$ , $\forall z \in \partial D$.
Prove that $f(z) = Cg(z)$ $\forall z \in D$, while $|C|= 1$.
Would appreciate any kind of hints and tip :)
Second question, $$f(z) =\frac{1-\cos z}{z^2}$$ is entire function? I guess not because I believe $f(z)$ isn't analytic at $z = 0$, but how can I show that in a formal form?