Given an entire function which is real on the real axis and imaginary on the imaginary axis, prove that it is an odd function i,e $f(-z)= -f(z)$
My attempt : Here two cases will be possible
$1.$ when $z= x$
$2.$ when $z = ix $
I have no any issue when $z=ix$ and solution is alreaday given here
but i have some issue when $z=x$
$$f(x) = \overline{ f(\bar x) }$$
$$\sum_{n=0}^{\infty}a_nz^n=\sum_{n=0}^{\infty}\bar a_nz^n \implies a_n=\bar a_n$$
\begin{align} f(x)=\sum_{n=0}^{\infty}a_nx^n&=\sum_{n=0}^{\infty}a_{2n}x^{2n}+\sum_{n=1}^{\infty}a_{2n+1}x^{2n+1} \end{align}
Here $f(x)$ is both even and odd
so here we are getting contradiction that $f(z)$ is odd that mean $f(x)$ is not even function