Partial derivative of piecewise function of two variables

6.7k Views Asked by At

I'm having some difficulty figuring out $\frac{\partial}{\partial x}$ of the following function:

$ f(x,y) = \left\{ \begin{array}{lr} x^2+y^2 & : x \not= 0\\ y^4 & : x = 0 \end{array} \right. $

Obviously, when $x \not= 0$, $\frac{\partial}{\partial x}f(x,y)=2x$. However, when $x=0$ I'm applying the definition of partial derivative to get:

$$ \frac{\partial }{\partial x}f(0,y)=\lim_{h \to 0} \frac{h^2+{y}^2-y^4 }{h} $$

Thus, $\frac{\partial}{\partial x}f(0,y)$ exists only if $y=0$ or $y=\pm1$, in which cases it equals $0$.

Is this correct?

1

There are 1 best solutions below

0
On BEST ANSWER

Yes, your solution is correct.

You may want to observe that for a fixed value $y\notin \{-1,0,1\}$ the function $x\mapsto f(x,y)$ is not even continuous at $0$, so it can't be differentiable.