Math Insight

Applet: Non-differentiable function with partial derivatives

Applet: Non-differentiable function with partial derivatives

The Java applet did not load, and the above is only a static image representing one view of the applet. The applet was created with LiveGraphics3D. The applet is not loading because it looks like you do not have Java installed. You can click here to get Java.

Applet: Non-differentiable function with partial derivatives

The partial derivatives of this function $f(x,y)$ are zero at the origin, $\pdiff{f}{x}(0,0)=\pdiff{f}{y}(0,0)=0$. Therefore, the only possibility for a tangent plane would be a horizontal plane. However, since the slopes of this function coming to the origin along different directions are not zero, a horizontal plane cannot be tangent. We conclude that no tangent plane exists at the origin and this function is not differentiable there.

The function is \begin{align*} f(x,y) = \begin{cases} \displaystyle \frac{x^2y}{x^2+y^2} & \text{if } (x,y) \ne (0,0)\\ 0 & \text{if } (x,y) = (0.0). \end{cases} \end{align*} We show that the above claim that the partial derivatives are zero at the origin is indeed true. Since this function is defined in a piecewise fashion around the origin, we have to use the limit definition of the partial derivatives, \begin{align*} \pdiff{f}{x}(0,0) &= \lim_{h \rightarrow 0} \frac{f(0+h,0)-f(0,0)}{h}\\ \pdiff{f}{y}(0,0) &= \lim_{h \rightarrow 0} \frac{f(0,0+h)-f(0,0)}{h}. \end{align*}

Since $f(0,0)=0$, $f(0+h,0)=f(h,0) = 0$, and $f(0,0+h)=f(0,h)=0$, we calculate that \begin{align*} \pdiff{f}{x}(0,0) &= \lim_{h \rightarrow 0} \frac{f(0+h,0)-f(0,0)}{h}\\ &= \lim_{h \rightarrow 0} \frac{0- 0}{h} = \lim_{h \rightarrow 0} 0 =0,\\ \pdiff{f}{y}(0,0) &= \lim_{h \rightarrow 0} \frac{f(0,0+h)-f(0,0)}{h}\\ &= \lim_{h \rightarrow 0} \frac{0- 0}{h} = \lim_{h \rightarrow 0} 0 =0. \end{align*}

Applet file: dabilityex2.m

General information about LiveGraphics3D applets

This applet was created using LiveGraphics3D. To manipulate it, you can

  • click and drag to rotate in any direction,
  • shift + click and drag up/down to zoom out/in,
  • shift + click and drag left/right to rotate around an axis coming out of the screen, and
  • press Home to reset to the original view.

Most of the LiveGraphics3D applets have parameters that you can change. In general, you can click and drag points or balls around to change the parameters.

Since these applets use Java, you must have Java installed and properly configured in your browser for the them to display. You can get Java here. If you have trouble getting them to display in your browser, you can visit the LiveGraphics3D troubleshooting page for information on how to get the Java applets to work.

On occasion, even when Java is configured correctly, the Java applets don't load the first time and one instead sees an error message. You can wait a few moments to see if the applet will eventually load itself anyway. You can also reload the page to see if the applet will properly load. Sometimes, one needs to do this multiple times.