Directional Derivative demonstration

In summary: +y^2)##, and so the directional derivative is just the partial derivative with respect to x and y, as desired.
  • #1
mech-eng
828
13
I find directional derivatives confusing. For example if there is a change in a direction and if this direction have both x and y components should not the change be calculated as square root of squares, i.e the pythogores theorem? Would you please provide a simple demonstration showing the directional derivative in terms of partial derivatives with respect to both x and y.

Thank you.
 
  • Like
Likes Terrell
Physics news on Phys.org
  • #2
mech-eng said:
I find directional derivatives confusing. For example if there is a change in a direction and if this direction have both x and y components should not the change be calculated as square root of squares, i.e the pythogores theorem? Would you please provide a simple demonstration showing the directional derivative in terms of partial derivatives with respect to both x and y.

Thank you.

The directional derivative is the derivative in a given direction. Whatever that direction, you could imagine rotating your function so that the direction lies along the x-axis. In which case, the directional derivative is just the partial derivative with respect to x.

Otherwise, the directional derivative is just the relevant proportions of the various partial derivatives. For example if the unit vector in the given direction is ##\vec{u} = (a, b)##, then:

##D_{\vec{u}}f = a f_x + bf_y##

There's a proof of that here:

http://tutorial.math.lamar.edu/Classes/CalcIII/DirectionalDeriv.aspx

Does that help?
 
  • Like
Likes QuantumQuest and mech-eng
  • #3
PeroK said:
Does that help?

That's not much help. I hope to see a visual example. How we demonstrate decomposition of a vector in a plane by projecting its components onto x and y-axes. Then we put one's tail to other's head to sum them. That example is easy to demonstrate. But how can we do this with directional derivatives?

Thank you.
 
  • #4
PeroK said:
The directional derivative is the derivative in a given direction. Whatever that direction, you could imagine rotating your function so that the direction lies along the x-axis. In which case, the directional derivative is just the partial derivative with respect to x.

Otherwise, the directional derivative is just the relevant proportions of the various partial derivatives. For example if the unit vector in the given direction is ##\vec{u} = (a, b)##, then:

##D_{\vec{u}}f = a f_x + bf_y##

There's a proof of that here:

http://tutorial.math.lamar.edu/Classes/CalcIII/DirectionalDeriv.aspx

Does that help?

This is confusing for me because there is a magnitude in x direction and there is a magnitude in y-direction. These magnitudes are magnitudes of rate of changes. These two directions are perpendicular to each other. So should not the Pythaogoras theorem be applied?
 
  • #5
mech-eng said:
This is confusing for me because there is a magnitude in x direction and there is a magnitude in y-direction. These magnitudes are magnitudes of rate of changes. These two directions are perpendicular to each other. So should not the Pythaogoras theorem be applied?

"Confusing" or "surprising"? The proof shows why ##a## and ##b## come out, rather than ##\sqrt{a^2 + b^2}##. You can't just apply Pythagoras. This is about the rate of change of a function, not the magnitude of a vector with two components.
 
  • Like
Likes QuantumQuest and FactChecker
  • #6
PeroK said:
"Confusing" or "surprising"? The proof shows why ##a## and ##b## come out, rather than ##\sqrt{a^2 + b^2}##. You can't just apply Pythagoras. This is about the rate of change of a function, not the magnitude of a vector with two components.

But isn't there any geometric explanation or interpretation or even an animation?

Thank you.
 
  • #7
mech-eng said:
But isn't there any geometric explanation or interpretation or even an animation?

Thank you.

Well, I guess you can google for an animation. I can't immediately see a neat geometric explanation - not that that means there isn't one. The proof comes from the chain rule for derivatives, rather than Pythagoras.

Interesting!
 
  • Like
Likes mech-eng
  • #8
PeroK said:
Well, I guess you can google for an animation. I can't immediately see a neat geometric explanation - not that that means there isn't one. The proof comes from the chain rule for derivatives, rather than Pythagoras.

Interesting!

Yes, I had started before you wrote this and I encountered with this. This is a strange tool. Have you ever used before? A Computable Document does not make any sense to me.

One of the important key phrase is "Visualize directional derivatives".

http://demonstrations.wolfram.com/download-cdf-player.html

Thank you.
 
  • #9
mech-eng said:
But isn't there any geometric explanation or interpretation or even an animation?

Perhaps you aren't noticing that the pythagorean theorem is implicitly used in the definition of a directional derivative.

Suppose you are in a room where the floor is "flat", but not level. You walk across the room from one corner to the diagonally opposite corner of the room and go uphill. You would go uphill by the same amount as if you had walked beside two of the walls to reach the opposite corner.

(length of x-wall)(slope of x-wall) + (length of y-wall)(slope of y-wall) = (length of diagonal)(slope of diagonal).

Symbollicaly:

## x s_x + y s_y = d s_d##
## s_d = (x s_x + y s_y)/ d = (x/d)s_x + (y/d)s_y ##

The factor ##d## does equal ##sqrt(x^2 + y^2)##.

Computing the directional derivative involves using a vector that defines a direction. In the case at hand, the unit vector that points diagonally across the room is ##(x/d, y/d)##.

If you were thinking the Pythagorean theorem should be applied to ##s_x## and ##s_y##, you can see by the above example, that there is no reason to do that.
 
  • Like
Likes Terrell, mech-eng and FactChecker
  • #10
Suppose you have tiny Δx and Δy in a particular direction. Then you also have a tiny vector in that direction of length Δs = √(Δx2 + Δy2). But Δs is not directly useful for finding the change of a function, f(x,y). In fact, Δs gives us no information regarding direction at all, so it is useless as a directional derivative. Since Δs came from Δx and Δy, which indicate direction, the way to estimate the change of f in a particular direction is to use the partials wrt x and y times Δx and Δy, respectively.

On the other hand, suppose you parameterize a line in the desired direction using the variable s to get f(s). Then df/ds is exact. ∂f/∂x ∂x/∂s ds + ∂f/∂y ∂y/∂s ds should be a close approximation for small deltas, but that depends on the nature of the function f.
 
Last edited:
  • Like
Likes mech-eng
  • #11
Stephen Tashi said:
(length of x-wall)(slope of x-wall) + (length of y-wall)(slope of y-wall) = (length of diagonal)(slope of diagonal).
This really made it click for me. THANK YOU!
 

1) What is a directional derivative demonstration?

A directional derivative demonstration is a method used in mathematics and physics to show the change in a function at a specific point in a particular direction. It is used to understand how a function changes in a particular direction and can help in solving optimization problems.

2) How is a directional derivative demonstration performed?

A directional derivative demonstration is performed by taking the partial derivative of a function with respect to a specific direction vector and evaluating it at a given point. This gives the rate of change of the function in the direction of the vector at that point. It can also be calculated using the dot product of the gradient of the function and the unit vector in the desired direction.

3) What is the significance of a directional derivative demonstration?

A directional derivative demonstration is significant because it helps in understanding the behavior of a function in a specific direction. It is useful in many fields such as physics, engineering, and economics, where understanding the rate of change of a function is essential for solving problems and making predictions.

4) What are the applications of a directional derivative demonstration?

A directional derivative demonstration has various applications in different fields. In physics, it is used to calculate the velocity and acceleration of a moving object. In economics, it helps in understanding the marginal rate of substitution. In engineering, it is used in optimization problems, such as finding the steepest descent path in a terrain.

5) Are there any limitations to a directional derivative demonstration?

Yes, there are limitations to a directional derivative demonstration. It can only be used for differentiable functions, and the direction vector must be continuous and differentiable as well. It also does not provide information about the behavior of a function in multiple directions simultaneously, and therefore, multiple directional derivatives may be required to fully understand the function's behavior.

Similar threads

  • Calculus
Replies
2
Views
2K
Replies
2
Views
292
Replies
1
Views
931
Replies
9
Views
1K
Replies
5
Views
1K
Replies
2
Views
1K
Replies
4
Views
2K
  • Calculus
Replies
3
Views
2K
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
559
Back
Top