I know there have been some other posts, but the always had the additional requirement, that $|f_1|^2+|f_2|^2$ is constant, which I don‘t have.\
$G\subseteq \mathbb{C}$ is a Domain and $f_1,f_2\in H(G)$.
My ideas so far have been to define $g:= f_1+f_2 $ and then we get: \begin{align*} |g(z_0)|=|(f_1+f_2)(z_0)|\leq (|f_1|+|f_2|)(z_0)=m \end{align*} The last equality is given in the exercise and I also know by triangle inequality, that $|g(z)|\leq (|f_1|+|f_2|)(z), \quad \forall z\in G$. So also $g$ has to reach its maximum in G and by maximum principle $g=d\in \mathbb{C}$.
From here on I got stuck, since I can‘t see how to conclude from $g=f_1+f_2=d$ that $f_1,f_2$ are constant. Can anyone help me with this last step?
Edit: It is important to note, that it is already given, that $f_1+f_2$ has a local maximum. The important step is the last one, which didn‘t get clarified by the other questions regarding this question, especially not the one that works with a finite sum of functions $f_i$. Also in the other posts the question was to proof, that the maximum apears on the border. That's given in this exercise.