If $f$ is a continuous function such that $g(z)=\sin{f(z)}$ is analytic, then is $f$ analytic?
I know we can take $f(z)=\bar{z}$ then $f$ is continuous but $g$ is not analytic. Same holds if we take $f(x+iy)=x$.
I tried letting $f(z)=u+iv$ then expanding $g(z)=\sin u\cosh v+i\cos u\sinh v$ taking the partial derivatives and using the Cauchy Riemann equations. That seems like a messy way to go.