I'm trying to do this old qualifying exam problem from UW Madison.
Let $D^\ast=\{z\in\mathbb{C},0<|z|<1\}$ and $f$ be a non constant holomorphic function on $D^\ast$. Assume that $\text{Im} f(z)\geq 0$ if $\text{Im} z\geq 0$ and $\text{Im} f(z)\leq 0$ if $\text{Im} z\leq 0$. Prove that if $z\in D^\ast$ is not real, then $f(z)$ is not real. Show that if $z\in (-1,0)\cup(0,1)$, then $f'(z)\not=0$. Prove that $0$ is either a removable singularity with $f'(0)\not=0$ or $0$ is a simple pole of $f$.
What I have thought of so far:
If $z\in D^\ast$ and $\text{Im} z>0$, but $\text{Im} f(z)=0$, then apply the maximum modulus principle on $\{z|z\in D^\ast,\text{Im} z>0\}$ to $e^{if}$ to obtain a contradiction. This shows that if $z\in D^\ast$ and $\text{Im} z>0$, then $\text{Im} f(z)>0$. Similarly if $z\in D^\ast$ and $\text{Im} z<0$. Furthermore, the reflection principle shows that $f(\overline{z})=\overline{f(z)}$. If $z\in(-1,0)\cup(1,0)$, to show that $f'(z)\not=0$, we use the following fact:
fact: If $f$ is a complex valued function continuous on $\overline{D(0,R)}$ and holomorphic on $D(0,R)$, then for any $z\in D(0,R)$, we have $$f(z)=\int_0^{2\pi}i \text{Im} f(\xi)\frac{\xi+z}{\xi-z}\frac{d\theta}{2\pi}+K$$ for some constant $K$, where $\xi=Re^{i\theta}$. We can differentiate the expression to get an expression of $f'(z)$ in terms of $\text{Im} f$. This same fact shows that $f'(0)\not=0$ if $0$ is a removable singularity. If $0$ is a pole, $\text{Im} z$ is dominated by the imaginary part of $\frac{C}{z^n}$ for some $n\in\mathbb{Z}^+$ and $C\in\mathbb{R}$ when $|z|>0$ is small, then unless $n\not=1$, we can find some $z\in D^\ast$, $\text{Im} z>0$ such that $\text{Im} f(z)<0$. So if $0$ is a pole, then it is a simple pole.
My question is: how to show that $0$ is not an essential singularity? Thanks!!