Prove or give a counter-example:
If $f_j(j=1,2,...,n)$ is analytic on the domain $D$ such that $\sum_{j=1}^n |f_j(z)|^2$ is constant on $D$. Then each $f_j$ is a constant function.
Inputs:
We know that, if $f$ is analytic on a domain D and if $|f|$ is a constant then $f$ must also be a constant.
I tried to prove the problem, but I am having a real difficult time. Starting with
$\sum_{j=1}^n |f_j(z)|^2=k $, where $k\in\Bbb C$ is a constant
$\sum_{j=1}^n (u_j^2 +v_j^2)=k$, (As $f_j=u_j+iv_j$)
Then I differentiated the above equation partially w.r.t $x$ as well as $y$ and tried a lot of manipulations and used CR equations in order to prove it. But I have had no success.
Now I am wondering whether the above result is at all true? Is there a counter-example for the problem?
Here's another proof of the more general statement mentioned by @MartinR. The domain $D$ is assumed to be connected and the constant equal to $1$. Take a fixed $z_0\in D$ such that $$\sum_{k=1}^n\lvert f_k(z_0) \rvert^2 =1$$ and define the function $f(z)$ by
$$f(z)=\sum_{k=1}^nf_k(z)\overline{f_k(z_0)}.$$
Then
Then $f(z) = 1$ for all $z\in D$ by the maximum modulus principle. Again by Cauchy-Schwarz this means that $(f_1(z), \ldots, f_n(z))$ is a scalar multiple of $(f_1(z_0), \ldots, f_n(z_0))$ for all $z\in D$. Since $f(z)=1$ it follows that this scalar must be $1$ and therefore $f_k(z)=f_k(z_0)$ for $k\in\{1, \ldots, n\}$.
Alternatively, a bit more verbose (using $f(z)=1$ in the second equality):
$$\begin{eqnarray} 1 \geq \sum_{k=1}^n\lvert f_k(z) \rvert^2 &=& \sum_{k=1}^n\lvert f_k(z) - f_k(z_0) + f_k(z_0) \rvert^2 \\ &=& \sum_{k=1}^n\lvert f_k(z) - f_k(z_0)\rvert^2 + \sum_{k=1}^n \lvert f_k(z_0) \rvert^2\\ &=& 1+\sum_{k=1}^n\lvert f_k(z) - f_k(z_0)\rvert^2 \end{eqnarray}$$ and so $f_k(z) - f_k(z_0)=0$ for $k\in\{1, \ldots, n\}$.