As the title says
Prove $f(z)=c$ when $\operatorname{Re}(f)$ has an upper bound, given that $f$ is analytic
I am just getting introduced on complex analysis, and I found proving that $f(z)=c$ when $f'(z)=0$ (some previous exercise) relatively easy, but this one looks very strange since $\operatorname{Re}(f)$ being upper bounded sounds very generic.
Any help will be appreciated.
Let $g(z)=e^{f(z)}$. Then $\bigl\lvert g(z)\bigr\lvert=e^{\operatorname{Re}f(z)}$ and therefore $g$ is bounded. Can you take it from here?