Problem with a directional derivative calculation

  • Thread starter Amaelle
  • Start date
  • #1
Amaelle
310
54
Homework Statement:
calculate the directional derivative
Relevant Equations:
directional derivative
Good day

I have a problem regarding the directional derivative (look at the example below)

1605103234654.png


in this example, we try to find the directional derivatives according to the two approaches ( the definition with the limit and the dot product of the vector gradient and the vector direction)
in this example, we got totally different results?

why?

many thanks in advance!
 

Answers and Replies

  • #2
pasmith
Homework Helper
2022 Award
2,585
1,184
The partial deivatives are not continuous: for [itex]x= 0[/itex] and [itex]y \neq 0[/itex] you have [itex]\frac{\partial f}{\partial x} = \frac{y^4}{y^4} = 1[/itex] which does not tend to 0 as [itex]y \to 0[/itex].
 
  • Like
Likes PeroK and Amaelle
  • #3
Amaelle
310
54
Thanks a lot for your prompt answer
so If I understand well, the dot product method works only if the function is differentiable? otherwise, we should only use the limit method?
 
  • #4
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,020
15,708
in this example, we try to find the directional derivatives according to the two approaches ( the definition with the limit and the dot product of the vector gradient and the vector direction)
in this example, we got totally different results?

why?

many thanks in advance!

What your book is doing is calculating the derivative along a parameterised curve through ##(0,0)##:$$g(t) = f(t\cos \theta, t\sin \theta) = t\cos \theta \ \sin^2 \theta$$ Which is well-defined. And, trivially: $$g'(t) = \cos \theta \ \sin^2 \theta$$
 
Last edited:
  • #5
Amaelle
310
54
yes thank you, understanding things takes times :) but thank you for easing the pain
 
  • #6
Delta2
Homework Helper
Insights Author
Gold Member
5,695
2,473
Thanks a lot for your prompt answer
so If I understand well, the dot product method works only if the function is differentiable? otherwise, we should only use the limit method?
Yes. A function of many variables is differentiable if and only if all the partial derivatives exist and are continuous . But in this case as post #2 shows the partial derivatives are not continuous at (0,0) hence the function is not differentiable at (0,0) hence you can't apply the gradient approach for calculating the directional derivative.
 
  • #7
Amaelle
310
54
thanks a million!
 

Suggested for: Problem with a directional derivative calculation

Replies
13
Views
990
  • Last Post
Replies
21
Views
1K
  • Last Post
Replies
4
Views
1K
Replies
7
Views
438
  • Last Post
Replies
11
Views
1K
Replies
2
Views
491
  • Last Post
Replies
2
Views
878
Replies
6
Views
291
Replies
3
Views
580
Replies
2
Views
130
Top