Let $A\subseteq C$ be an open connected domain and $f$ a holomorphic in $A$. I want to show that: if $f(A)$ is a subset of a line on the complex plane, then $f$ is constant.
I began with expressing every $z_0$ on some line $\gamma (t) =at+b$ on the complex plane as: $z_0=x_0+i[ax_0+b]$
So: $f(z)=x+i[ax+b]$ , but I'm stack (pun intended) with one variable. I doubt that this syllogism is correct. Any help on that one?