The following function is taken from my textbook example. \begin{cases} f(x,y)=\frac{2xy^2}{x^2+y^4}, &(x,y) \neq (0,0)\\ f(x,y)=0, &(x,y)=(0,0) \end{cases} My textbook asserts that the partial derivatives of $f$ exists everywhere, which I do not understand. I tried to solve this myself, but it seems like I am misunderstanding something because my work shows some inconcsistencies:
To calculate $f_x$ at $(0,0)$: $$ \lim_{x \to 0}\frac{f(x,y)-f(0,0)}{x}=\lim_{x \to 0} \frac{2y^2}{x^2+y^4}=\frac{2}{y^2} \to \infty \text{ as } y \to 0 $$ However, if I fix $y=0 \to f(x,0)=0 \space \forall x$, then: $$ \lim_{x \to 0, y=0}\frac{f(x,0)-f(0,0)}{x}=0 $$
Does this mean $f_x$ does not exist at $(0,0)$? But this contradicts with my textbook's claim.
For $f_x(0)$ you must compute $\lim_{x \to 0} \frac{f(x,0) - f(0,0)}{x}$ instead (so $y=0$ all the time, because we approach along the $x$-axis); the first computation is irrelevant. It's clear that $f(x,0) = 0$ for all $x \neq 0$ from the formula and also $f(0,0)=0$, hence the limit and the partial derivative is just $0$.
Similarly the other partial derivative is $\lim_{y \to 0} \frac{f(0,y) - f(0,0)}{y}$, which is similarly seen to be $0$ too.