Problem with a directional derivative calculation

  • Thread starter Amaelle
  • Start date
  • #1
Amaelle
310
54
Homework Statement:
the directional derivative of the function f(x,y) in respect to the point(0,0) according to the vector v(1,2) is equal to
Relevant Equations:
directional derivative
this is the function

1604746632373.png

and this is the solution in which the definition has been used
1604746740222.png


my question is
Why we can not use the traditional approach? I mean calculation the partial derivative which equals 0 in our case? And doing the dot product with the vector v (after normalizing it)

many thanks in advance
 

Answers and Replies

  • #2
Delta2
Homework Helper
Insights Author
Gold Member
5,695
2,473
The traditional approach ( i suppose you mean to calculate ##\nabla f (0,0)\cdot \vec{v}## )seems more complex to me.

But i am afraid there is another problem here too: The traditional approach can be used only when the function is differentiable at the point of interest, but i am afraid this function isn't differentiable at (0,0) (from a quick look I see that even the partial derivatives at (0,0) don't exist).

So if indeed the partial derivatives don't exist at (0,0) then we just can't use the traditional approach anyway. I hope I didn't blunder on this, can you show me how you calculate the partial derivatives at (0,0) cause I get infinities...
 
Last edited:
  • Like
  • Informative
Likes Amaelle and fresh_42
  • #3
PeroK
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
24,041
15,743
The function is not even continuous at ##(0,0)##.
 
  • Like
Likes Amaelle and Delta2
  • #4
Amaelle
310
54
Thanks a million for your answer, it made thing clearer now :)
 
  • #5
haruspex
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
39,571
8,837
The answer given still makes no sense. It ignores the 2/t term in taking the limit.
 
  • #6
Delta2
Homework Helper
Insights Author
Gold Member
5,695
2,473
It ignores the 2/t term in taking the limit
I see two 2/t term, one positive and one negative and they cancel each other.
 
  • #7
haruspex
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
39,571
8,837
I see two 2/t term, one positive and one negative and they cancel each other.
Ah, yes, ok.
But the answer is still wrong. t is an arbitrary parameter. It makes no sense to divide by t; need to consider the length in the given direction.
Given that we know the limit of the function is zero, making it continuous, in the given direction, it is simpler to switch to polar:
##f=5\sin(\theta)\cos(\theta)+3r\cos(\theta)##
Diff wrt r and plug in the value of theta.
 
  • #8
Delta2
Homework Helper
Insights Author
Gold Member
5,695
2,473
Ah, yes, ok.
But the answer is still wrong. t is an arbitrary parameter. It makes no sense to divide by t; need to consider the length in the given direction.
That's the definition of the directional derivative, one divides by ##t## there. By the way I see it ,##t## is the length in the direction of ##\vec{v}##.

In the normalized version you divide also by ##|\vec{v}|##.
 
  • #9
haruspex
Science Advisor
Homework Helper
Insights Author
Gold Member
2022 Award
39,571
8,837
That's the definition of the directional derivative
So the answer depends on the magnitude of ##\vec v##? Strange, but I stand corrected.
 
  • #10
Delta2
Homework Helper
Insights Author
Gold Member
5,695
2,473
So the answer depends on the magnitude of ##\vec v##? Strange, but I stand corrected.
Well yes i guess the non normalized version depends on the magnitude of the vector, though i can't imagine how we can prove that the dependency is always linear.
 
  • #11
There are two different conventions, one that ##\nabla_{\vec{v}} f(\vec{x}) = \nabla f(\vec{x}) \cdot \vec{v}##, and the other that ##\nabla_{\vec{v}} f(\vec{x}) = \nabla f(\vec{x}) \cdot \left(\vec{v}/|\vec{v}| \right)##. I was taught that the first convention is more common (##\nabla_{\vec{v}} f(\vec{x}) = \nabla f(\vec{x}) \cdot \vec{v}##), but that you should be aware of the other convention.
 
  • Like
Likes Delta2 and PeroK
  • #12
Delta2
Homework Helper
Insights Author
Gold Member
5,695
2,473
There are two different conventions, one that ##\nabla_{\vec{v}} f(\vec{x}) = \nabla f(\vec{x}) \cdot \vec{v}##, and the other that ##\nabla_{\vec{v}} f(\vec{x}) = \nabla f(\vec{x}) \cdot \left(\vec{v}/|\vec{v}| \right)##. I was taught that the first convention is more common (##\nabla_{\vec{v}} f(\vec{x}) = \nabla f(\vec{x}) \cdot \vec{v}##), but that you should be aware of the other convention.
According to wikipedia (and i think also according to my vector calculus notes of 199x) neither of the above is the definition of the directional derivative. The above we can prove from the definition, if the function f is differentiable.
 
  • Like
Likes Amaelle and etotheipi
  • #13
According to wikipedia (and i think also according to my vector calculus notes of 199x) neither of the above is the definition of the directional derivative. The above we can prove from the definition, if the function f is differentiable.

In Physics, everything is differentiable :wink:
 
  • Like
  • Love
Likes archaic and Delta2
  • #14
Delta2
Homework Helper
Insights Author
Gold Member
5,695
2,473
  • Love
  • Like
Likes etotheipi and Amaelle

Suggested for: Problem with a directional derivative calculation

Replies
6
Views
782
  • Last Post
Replies
21
Views
1K
  • Last Post
Replies
4
Views
1K
Replies
7
Views
444
  • Last Post
Replies
11
Views
1K
Replies
2
Views
500
  • Last Post
Replies
2
Views
883
Replies
6
Views
298
Replies
3
Views
588
Replies
2
Views
143
Top