Let $f(z)=\frac{\bar z^2}{z}$ when $z\neq 0$ and $f(0)=0$. Show that $f'(0)$ does not exist.
$$f'(0)=\lim_{z \to 0} \frac{f(z)-f(0)}{z-0}=\lim_{z \to 0} \left( \frac{x-iy}{x+iy}\right)^2$$ Reaching the origin along the line $y=mx$, we get $$f'(0)=\lim_{x \to 0} \left( \frac{x-imx}{x+imx}\right)^2=\left( \frac{1-im}{1+im}\right)^2$$ Since this value depends on $m$, the derivative takes different values along different paths and hence does not exist. Is this right and what are other ways to do this?
Yes, that is correct. But in fact, taking only two directions is enough: