Suppose $f$ is holomorphic in region $G$, and $f(G) \subseteq \{ |z|=1 \}$. Prove $f$ is constant.
(I guess we may assume $f: G \to \mathbb C$ s.t. image(f)=$f(G)$. I guess it doesn't matter if we somehow have $f: A \to \mathbb C$ for any $A$ s.t. $G \subseteq A \subseteq \mathbb C$ as long as $G$ is a region and $f$ is holo there.)
I will now attempt to elaborate the following proof at a Winter 2017 course in Oregon State University.
Question 1: For the following elaboration of the proof, what errors if any are there?
Question 2: Are there more elegant ways to approach this? I have a feeling this can be answered with Ch2 only, i.e. Cauchy-Riemann or differentiation/holomorphic properties instead of having to use Möbius transformations.
OSU Pf (slightly paraphrased): Let $g(z)=\frac{1+z}{1-z}$, and define $h(z)=g(f(z)), z \in G \setminus \{z : f(z) = 1\}$. Then $h$ is holomorphic on its domain, and $h$ is imaginary valued by Exer 3.7. By a variation of Exer 2.19, $h$ is constant. QED
My (elaboration of OSU) Pf: $\because f(G) \subseteq C[0,1]$, let's consider the Möbius transformation in the preceding Exer 3.7 $g: \mathbb C \setminus \{z = 1\} \to \mathbb C$ s.t. $g(z) := \frac{1+z}{1-z}$:
If we plug in $C[0,1] \setminus \{1\}$ in $g$, then we'll get the imaginary axis by Exer 3.7. Precisely: $$g(\{e^{it}\}_{t \in \mathbb R \setminus \{0\}}) = \{is\}_{s \in \mathbb R}. \tag{1}$$ Now, define $G' := G \setminus \{z \in G | f(z) = 1 \}$ and $h: G' \to \mathbb C$ s.t. $h := g \circ f$ s.t. $h(z) = \frac{1+f(z)}{1-f(z)}$. If we plug in $G'$ in $h$, then we'll get the imaginary axis. Precisely: $$h(G') := \frac{1+f(G')}{1-f(G')} \stackrel{(1)}{=} \{is\}_{s \in \mathbb R}. \tag{2}$$
Now Exer 2.19 says that a real valued holomorphic function over a region is constant: $f(z)=u(z) \implies u_x=0=u_y \implies f'=0$ to conclude by Thm 2.17 that $f$ is constant or simply by partial integration that $u$ is constant. Actually, an imaginary valued holomorphic function over a region is constant too: $f(z)=iv(z) \implies v_x=0=v_y \implies f'=0$ again by Cauchy-Riemann Thm 2.13 to conclude by Thm 2.17 that $f$ is constant or simply by partial integration that $v$ is constant.
$(2)$ precisely says that $h$ is imaginary valued over $G'$. $\therefore,$ if $G'$ is a region (A) and if $h$ is holomorphic on $G'$ (B), then $h$ is constant on $G'$ with value I'll denote $Hi, H \in \mathbb R$:
$\forall z \in G',$
$$Hi = \frac{1+f(z)}{1-f(z)} \implies f(z) = \frac{Hi-1}{Hi+1}, \tag{3}$$
where $Hi+1 \ne 0 \forall H \in \mathbb R$.
$\therefore, f$ is constant on $G'$ (Q4) with value given in $(3)$.
QED except possibly for (C)
(A) $G'$ is a region
I guess if $G \setminus G'$ is finite, then G' is a region. I'm thinking $D[0,1]$ is a region and then $D[0,1] \setminus \{0\}$ is still a region.
(B) To show $h$ is holomorphic in $G'$:
Well $h(z)$ is differentiable $\forall z \in G'$ and $f(z) \ne 1 \forall z \in G'$ and $f'(z)$ exists in $G' \subseteq G$ because $f$ is differentiable in $G$ because $f$ is holomorphic in $G$.
$$h'(z) = g'(f(z)) f'(z) = \frac{2}{(1-w)^2}|_{w=f(z)} f'(z) = \frac{2 f'(z)}{(1-f(z))^2} $$
Now, $f'(z)$ exists on an open disc $D[z,r_z] \ \forall z \in G$ where $r_z$ denotes the radius of the open disc s.t. $f(z)$ is holomorphic at $z$. So, I guess $\frac{2 f'(z)}{(1-f(z))^2} = h'(z)$ exists on an open disc with the same radius $D[z,r_z] \ \forall z \in G'$, and $\therefore, h$ is holomorphic in $G'$.
(C) Possible flaw:
It seems that on $G'$, $f$ has value $\frac{Hi-1}{Hi+1}$ while on $G \setminus G'$, $f$ has value $1$.
$$\therefore, \forall z \in G, f(z) = \frac{Hi-1}{Hi+1} 1_{G'}(z) + 1_{G \setminus G'}(z)$$
It seems then that we've actually show only that $f$ is constant on $G$ except for the subset of G where $f=1$.
Note that $f\overline {f}=1$ in $G.$ This implies $\overline {f} =1/f$ in $G.$ Hence $\overline {f}$ is holomorphic in $G.$ This implies both $f+\overline f= 2\text { Re } f$ and $f-\overline f=2i\text { Im } f$ are holomorphic in $G.$ By the remarks you made right after $(2)$ in your question, these functions are constant, which implies $f$ is constant.