Continuity, derivatives of rational function I'm studying the continuity of a function and its derivatives checking if the function is continuous, differentiable and calculating some derivatives.
The function is 

\begin{cases}
\dfrac{x^2y}{x^2+y^2}&amp; \text{if }\, (x,y)\neq 0\\
0&amp; \text{if}\,\, (x,y)=0
\end{cases}

I'm asked to study the continuity in $(0,0)$.

My work:

I started checking the limit of the function for $(x,y) \rightarrow (0,0)$ and considered the trasformation in polar coordinates to get a easier limit:

$$\lim_{\rho\rightarrow 0} \frac{\rho^3\cos^2\theta \sin\theta}{\rho^2}=\lim_{\rho\rightarrow 0} \rho \cos^2\theta \sin\theta=0$$
So I got the continuity.

Then I've been asked to study the value of partial derivatives in $(0,0)$ and the directional derivatives in $(0,0)$ calculated on $y=x$.

I calculated the derivatives:

$f_x=\dfrac{2xy^3}{(x^2+y^2)^2}$,
this is not defined in $(0,0)$ so I considered the limit using polar coordinates again, and I got:
$$\lim_{\rho\rightarrow 0} \frac{2\rho^4 \cos\theta \sin^3\theta}{\rho^4}=2\cos\theta \sin^3\theta$$

Is it right? What can I say now about this limit?
The value of the derivatives in this point is supposed to be $0$ according to the solution given but I'm stuck in this point.

Besides  $f_y=\dfrac{x^4-x^2y^2}{(x^2+y^2)^2}$, from which I get to the same kind of problem (again the values is supposed to be $0$)

Finally the directional derivatives: I used the definition and got:

the vector of the direction is $(\sqrt2/2;\sqrt2/2)$ and $f(0,0)=0$ so

$$\lim_{t\rightarrow 0} \frac{f(\frac{\sqrt2}{2}t;\frac{\sqrt2}{2}t)-0}{t}=\lim_{t\rightarrow 0} \frac{\frac{1}{2}t^2\cdot\frac{\sqrt2}{2}t}{\frac{1}{2}t^2+\frac{1}{2}t^2}\cdot\frac{1}{t}=\frac{\frac{\sqrt2}{4}t^3}{t^2}\cdot\frac{1}{t}=\frac{\sqrt2}{4}$$

I have no idea how to finish the discussion of the two first derivatives and so how to check if the whole function is differentiable in the point $(0,0)$
To work out $\mathrm{f}_x$ you need to use the limit definition:

$$\left.\frac{\partial\mathrm{f}}{\partial x}\right|_{x=y=0} = \lim_{h \to 0} \ \frac{\mathrm{f}(h,0) - \mathrm{f}(0,0)}{h} = \lim_{h \to 0}\ \frac{0-0}{h} = 0$$

To find the partial derivative $\mathrm{f}_y(0,0)$ you need to find the limit

$$\left.\frac{\partial\mathrm{f}}{\partial y}\right|_{x=y=0} = \lim_{h \to 0} \frac{\mathrm{f}(0,h)-\mathrm{f}(0,0)}{h} = \lim_{h \to 0} \ \frac{0-0}{h} = 0$$

To see if $\mathrm{f}$ is differentiable at $x=y=0$ then we need to show that $z=\mathrm{f}(x,y)$ is well approximated by a plane close to $x=y=0$. Since $\mathrm{f}(0,0)=\mathrm{f}_x(0,0) = \mathrm{f}_y(0,0) = 0$ then the only candidate for this plane is $z=0$. To see if $z=\mathrm{f}(x,y)$ is approximated by the plane $z=0$ we need to show that

$$\lim_{(x,y)\to(0,0)} \frac{\mathrm{f}(x,y)-(0x+0y)}{\sqrt{x^2+y^2}} = 0$$

This is the ideal time to use polar coordinates: $x=r\cos\theta$ and $y=r\sin\theta$. We need to show

$$\lim_{r \to 0} \ \frac{\mathrm{f}(r\cos\theta,r\sin\theta)-(0x+0y)}{\sqrt{r^2\cos^2\theta+r^2\sin^2\theta}} = 0$$

We can simplify this quite considerably:

$$\lim_{r \to 0} \ \frac{\mathrm{f}(r\cos\theta,r\sin\theta)}{r} = \lim_{r \to 0} \frac{r\cos^2\theta\sin\theta}{r} = \cos^2\theta\sin\theta$$

This limit depends on $\theta$, which means it is not unique. Since the limit is not well-defined, it follows that $\mathrm{f}$ is not differentiable at $x=y=0$. I've attached a picture below which shows the surface $z=\mathrm{f}(x,y)$ and the plane $z=0$. Notice what bad of a job the plane does at being tangent to the surface at the origin. The blue line is the line $z=\mathrm{f}(0,y)$, the green line is $z=\mathrm{f}(x,0)$ and the red line is $z=\mathrm{f}(t,t)$.
I know it has been past two years when this question was asked, but I study that example and I think I can show you some new idea that hasn't been shown so future reader can learn something.
 The main idea is to use Squeeze theorem and AG inequality.
$$\frac{x+y}{2}&gt;=\sqrt{xy}$$
$$\frac{x^2+2xy+y^2}{4}&gt;=xy$$
$$\frac{x^2+y^2}{1}&gt;=2xy$$
$$\frac{xy}{x^2+y^2}&gt;=\frac{1}{2}$$
$$\frac{xy*|x|}{x^2+y^2}&gt;=\frac{1}{2}*|x|$$
So we can squeeze our limit and use absolute of that:
$$\lim_{(x,y)\rightarrow 0,0}|\frac{x^2*y}{x^2+y^2}|$$
$$0=&lt;|\frac{x^2*y}{x^2+y^2}|&lt;=\frac{1}{2}*|x|$$
SO by the squeeze theorem this limit is equal to zero and function is continous at $(0,0).$