Let $\epsilon>0$ and let $f$ be holomorphic on the disc $\{z \in C : |z| < 1+\epsilon\}$. Suppose that $f(z)$ is real whenever $|z| = 1$. Prove that $f$ is constant.
My proof:
We consider the maximum modulus principle. We know that the imaginary part achivevs maximum on $|z|=1$ ( max on $|z|\leq1$). But the maximum is then $0$. Thus the imaginary part is $0$ and so by cauchy reimann we know the real part is constant, and so $f$ is a real constant.
IS this correct? Is there a different way to go about this?
It's not really what's usually called "maximum modulus", rather the fact that the imaginary part of an analytic function is a harmonic function.