Partial Derivative Q: continuity and directional deriv's

Click For Summary
SUMMARY

The function f(x,y)=√[3]{xy} is continuous at the origin, with partial derivatives f_x and f_y existing at that point. However, directional derivatives do not exist in any direction other than the axes. The confusion arises from the behavior of the function as it approaches the origin, where the limits for directional derivatives differ based on the path taken. Graphical representations using MATLAB's meshgrid and ezsurf illustrate this discrepancy, confirming the theoretical findings.

PREREQUISITES
  • Understanding of partial derivatives and continuity in multivariable calculus
  • Familiarity with directional derivatives and their definitions
  • Proficiency in MATLAB for graphing functions
  • Knowledge of limits and their application in calculus
NEXT STEPS
  • Explore the concept of directional derivatives in depth
  • Learn about the implications of continuity in multivariable functions
  • Investigate the differences between symbolic and numerical graphing in MATLAB
  • Study the behavior of functions near singular points and their graphical representations
USEFUL FOR

Students and educators in mathematics, particularly those studying calculus and multivariable functions, as well as software developers using MATLAB for mathematical modeling and visualization.

kostoglotov
Messages
231
Reaction score
6

Homework Statement



a) Show that the function f(x,y)=\sqrt[3]{xy} is continuous and the partial derivatives f_x and f_y exist at the origin but the directional derivatives in all other directions do not exist

b) Graph f near the origin and comment on how the graph confirms part (a).

2. The attempt at a solution

This is an odd question to me. First off, what do they mean by "directional derivatives in all other directions" ? They only specify the origin as a point at which # f_x # and f_y should exist, but no direction is specified, so how can there be other directions? What other directions? All directions? Ie, f_x and f_y exist at (0,0,0) but in no direction do valid directional derivatives exist??

The other quandary for me is how to show that it is continuous at the origin. I have found the grad vector

\nabla f(x,y) = \frac{1}{3}\left<\frac{y^{\frac{1}{3}}}{x^{\frac{2}{3}}},\frac{x^{\frac{1}{3}}}{y^{\frac{2}{3}}}\right>

But there is no general L'Hopital rule for part. deriv's, so I can't decide these limits as (x,y) \rightarrow (0,0). And if y is taken as a constant for f_x then it just goes to infinity as x approaches zero and likewise for f_y.

So I decided to just go ahead and graph this function in Matlab. I used meshgrid and symbolics to get two different but similar graphs.

1) meshgrid

[x,y] = meshgrid(-1:0.01:1);
z = (x.*y).^(1/3);
z = real(z);
surf(x,y,z), axis equal, xlabel('x'), ylabel('y'), zlabel('z'), shading interp, colormap(jet)

oNGRPtI.jpg


2) using symbolics and ezsurf

syms x y
ezsurf((x*y)^(1/3)), axis equal, xlabel('x'), ylabel('y'), zlabel('z')

lRrDY7N.jpg


Why does using the symbolic ezsurf throw out half the surface? It must be related to taking only the real values for z in meshgrid yes??

So the meshgrid form interpolates points around the origin, suggesting that the surface exists at the origin, but the symbolic toolbox suggests that the surface doesn't exist at the origin.

I am very confused. Please help :)
 
Physics news on Phys.org
The question about directional derivatives is based on the definition of a derivative as the ##\lim_{|h|\to0} \frac{f( x+h_x,y+h_y) - f(x,y) }{|h|} ## looking at it this way, you allow for h to be a vector in any direction on the x-y plane.
You should be able to show that this limit is continuous if h only has x components or y components, but as soon as you have both, the limit is not the same for h as it is for -h and therefore the derivative does not exist in that direction.
Considering that explanation, look again at your plot, and you should see what I am saying.
 
kostoglotov said:

Homework Statement



a) Show that the function f(x,y)=\sqrt[3]{xy} is continuous and the partial derivatives f_x and f_y exist at the origin but the directional derivatives in all other directions do not exist

b) Graph f near the origin and comment on how the graph confirms part (a).

2. The attempt at a solution

This is an odd question to me. First off, what do they mean by "directional derivatives in all other directions" ? They only specify the origin as a point at which # f_x # and f_y should exist, but no direction is specified, so how can there be other directions? What other directions? All directions? Ie, f_x and f_y exist at (0,0,0) but in no direction do valid directional derivatives exist??

The other quandary for me is how to show that it is continuous at the origin. I have found the grad vector

\nabla f(x,y) = \frac{1}{3}\left<\frac{y^{\frac{1}{3}}}{x^{\frac{2}{3}}},\frac{x^{\frac{1}{3}}}{y^{\frac{2}{3}}}\right>

But there is no general L'Hopital rule for part. deriv's, so I can't decide these limits as (x,y) \rightarrow (0,0). And if y is taken as a constant for f_x then it just goes to infinity as x approaches zero and likewise for f_y.

So I decided to just go ahead and graph this function in Matlab. I used meshgrid and symbolics to get two different but similar graphs.

1) meshgrid

[x,y] = meshgrid(-1:0.01:1);
z = (x.*y).^(1/3);
z = real(z);
surf(x,y,z), axis equal, xlabel('x'), ylabel('y'), zlabel('z'), shading interp, colormap(jet)

oNGRPtI.jpg


2) using symbolics and ezsurf

syms x y
ezsurf((x*y)^(1/3)), axis equal, xlabel('x'), ylabel('y'), zlabel('z')

lRrDY7N.jpg


Why does using the symbolic ezsurf throw out half the surface? It must be related to taking only the real values for z in meshgrid yes??

So the meshgrid form interpolates points around the origin, suggesting that the surface exists at the origin, but the symbolic toolbox suggests that the surface doesn't exist at the origin.

I am very confused. Please help :)

A directional derivative at ##\vec{p}_0 = (x_0,y_0)## in direction ##\vec{d}##---YOU pick whatever ##\vec{d}## YOU want!---is defined as
D_{\vec{d}} f(\vec{p}_0) = \lim_{t \to 0+} \frac{ f(\vec{p}_0 + t \vec{d}) - f(\vec{p}_0)}{t}
In other words, for small ##t > 0## we should have
f(\vec{p}_0 + t \vec{d}) \approx f(\vec{p}_0) + t \cdot D_{\vec{d}} f(\vec{p}_0)

So, pick any direction non-axial direction ##\vec{d}## that you want, and see if the required limit exists.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
9
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
1K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K