Question is as follows :
Suppose that $f:\mathbb{C}\rightarrow \mathbb{C}$ is continuous such that $f^3,f^4$ are analytic in $\mathbb{C}$ then prove that $f$ is analytic in $\mathbb{C}$..
Choose $z_0\in \mathbb{C}$. Suppose that $f(z_0)\neq 0$. As $f$ is continuous, in a nbd around $z_0$ the value of $f$ is nonzero.
So, $f^4(z)/f^3(z)=f(z)$ in a small open ball centered at $z_0$.. So, $f$ is analytic at $z_0$.
Suppose $z_0$ is such that $f(z_0)=0$ then we can not say that $f^4(z)/f^3(z)=f(z)$ for all $z$ in a small open ball around $z_0$ as $f(z_0)=0$ we can not cancel.
But then we can certainly say that there is a ball where $f(z)$ is non zero except at $z_0$. Then in this ball we do have that $f^4(z)/f^3(z)=f(z)$. So, $f(z)$ is analytic in punctured disk around $z_0$.
I some how feel that function being analytic on punctured disk and function being continuous imply that function is analytic..
Could not figure out the proof for my supposedly correct statement.
As $f$ is analytic on punctured disk around $z_0$ we have laurent expansion for $f(z)$ as
$$f(z)=\cdots+\frac{a_{-2}}{(z-z_0)^2}+\frac{a_{-1}}{z-z_0}+a_0+a_1(z-z_0)+a_2(z-z_0)^2+\cdots$$
Suppose there is atleast one coefficient of $\dfrac{1}{z-z_0}$ that is non zero, then $|f(z)|\rightarrow \infty$ as $z\rightarrow z_0$..
But then, it is given that $f(z)$ is continuous.. continuous function on compact set is bounded so $f(z)$ has to be bounded on the disk where as we have $|f(z)|\rightarrow \infty$ if atleast one coefficient of negative powers of $(z-z_0)$ is non zero. So, this says all negative powers coefficients are zero..
So, we have $f(z)=a_0+a_1(z-z_0)+a_2(z-z_0)^2+\cdots$ in a nbd around $z_0$.
Could not deduce anything from here.
I think i am very close to final answer but could not see it immediately.
You could also use Riemann's removable singularity theorem: If $f$ is bounded and analytic in $\{0<|z-a|<r\},$ then f has a removable singularity at $a.$
Added in response to comment: Suppose $f$ is continuous on $\mathbb C$ and $f^3$ is analytic on $\mathbb C.$ Then $f$ is analytic on $\mathbb C.$
Proof: Suppose $f(a) \ne 0.$ We have
$$\frac{f(z)^3 -f(a)^3}{z-a} = \frac{f(z) -f(a)}{z-a} \cdot [f(z)^2 + f(z)f(a) + f(a)^2].$$
Now $f$ is continuous at $a,$ so for $z$ close to $a,$ the term in brackets is nonzero, and has limit $3f(a)^2.$ It follows that
$$\frac{(f^3)'(a)}{3f(a)^2}=f'(a).$$
Thus $f'(a)$ exists on the open set where $f\ne 0.$ You handle the case $f(a) = 0$ as already discussed.