If f(z) is holomorphic in an open set containing the closed unit disc, and if f($e^{i\theta})$ is real for all $\theta$ in $\mathbb R$, then prove that f(z) is constant.
I came across this problem in the exercises of a book on Complex Analysis. I need two clarifications about this problem. I think the word "connected" is missing in the problem in the domain of f(z). Is the problem true for all open sets or only for domains? For the domain of f for which the problem is true, how do I prove the result? What is given is that the function is real on the boundary of the unit disc $\mathbb D$. This means that the imaginary part of f say v is zero on $\partial\mathbb D$. From here how do I prove that f is constant? Please help.