Check whether the function defined by $$f(z)=u+iv=\begin{cases} \Im(z^2)/\bar z& \text{if } z\neq 0\\ 0&\text{if} z=0 \end{cases}$$ is analytic or not.
My attempt
I tried to find the $\frac{\partial f}{\partial x}$ and $-i\frac{\partial f}{\partial y}$. But it is getting longer and it is not giving me the answer.