Directional Derivative at an Angle from the Gradient

Click For Summary
SUMMARY

The discussion focuses on calculating the directional derivative of the function z = x²y at the point (3,4) in specified directions. The directional derivative in the direction of 3π/4 with the x-axis is found to be -15/√2. The second part involves finding the directional derivative at an angle of 3π/4 from the gradient vector, which results in -657/√1314. The largest directional derivative occurs in the direction of the gradient vector, which is <24, 9>.

PREREQUISITES
  • Understanding of directional derivatives and gradient vectors
  • Familiarity with vector operations and dot products
  • Knowledge of trigonometric functions and their applications in vector calculations
  • Basic proficiency in LaTeX for mathematical expressions
NEXT STEPS
  • Study the concept of gradient vectors and their significance in multivariable calculus
  • Learn how to compute directional derivatives for various functions
  • Explore the geometric interpretation of vectors and angles in the context of calculus
  • Investigate the use of complex numbers for vector rotation in advanced calculus
USEFUL FOR

Students of calculus, particularly those studying multivariable functions, mathematicians, and educators looking to deepen their understanding of directional derivatives and gradient vectors.

Drakkith
Mentor
Messages
23,198
Reaction score
7,671

Homework Statement


(a) Find the directional derivative of z = x2y at (3,4) in the direction of 3π/4 with the x-axis. Give an exact answer.

(b) Find the directional derivative of z = x2y at (3,4) in the direction that makes an angle of 3π/4 with the gradient vector at (3,4). Give an exact answer.

(c) In which direction is the directional derivative the largest? Give your answer as a vector.

Homework Equations


##F\vec u (a,b) = \nabla F(a,b) \cdot \vec u##

Found the following two equations using the one above:
##\nabla F(3,4) = \langle 24,9 \rangle##
##\frac { \vec \nabla F(3,4)} {\left\|\vec \nabla F(3,4)\right\|} = \langle \frac {8}{\sqrt{73}},\frac {3} {\sqrt {73}} \rangle ##

The Attempt at a Solution



A. I found the directional derivative as ##\frac {-15}{\sqrt{2}}##.

B. I'm stuck here. I can't seem to figure out how to get the unit vector I need to dot the gradient with.
I've tried using the geometric and algebraic definitions of the dot product and the fact that##\sqrt{{u_1}^2 + {u_2}^2} = 1## to find each component of u, but I'm just getting garbage as an answer (1 = not 1 ?:)). Part of the problem is that I'm supposed to give an exact answer, which I haven't quite figured out how to do yet.

I just tried to use some trig logic to get the angles I need, but it doesn't seem to be working either.
Since ##θ = arccos (x)##, and ##θ = arcsin (y)##, I set my unit vector to ##\vec u = \langle cos(\frac {3π}{4} + arccos\frac {8}{\sqrt{73}}), sin(\frac {3π}{4} + arcsin\frac {3}{\sqrt{73}})\rangle## and dotted it with the gradient, but that's wrong as well.

C. Haven't gotten to this part yet.

The good news is that after 6 years on PF, I've finally learned the basics of LaTeX! :rolleyes:
 
Last edited:
Physics news on Phys.org
Drakkith said:

Homework Statement


(a) Find the directional derivative of z = x2y at (3,4) in the direction of 3π/4 with the x-axis. Give an exact answer.

Do you mean ##x^2y##?

(b) Find the directional derivative of z = x2y at (3,4) in the direction that makes an angle of 3π/4 with the gradient vector at (3,4). Give an exact answer.

(c) In which direction is the directional derivative the largest? Give your answer as a vector.

Homework Equations


##F\vec u (a,b) = \nabla F(a,b) \cdot \vec u##

Found the following two equations using the one above:
##\nabla F(3,4) = \langle 24,9 \rangle##
##\frac { \vec \nabla F(3,4)} {\left\|\vec \nabla F(3,4)\right\|} = \langle \frac {8}{\sqrt{73}},\frac {3} {\sqrt {73}} \rangle ##

The Attempt at a Solution



A. I found the directional derivative as ##\frac {-15}{\sqrt{2}}##.

B. I'm stuck here. I can't seem to figure out how to get the unit vector I need to dot the gradient with.
I've tried using the geometric and algebraic definitions of the dot product and the fact that##\sqrt{{u_1}^2 + {u_2}^2} = 1## to find each component of u, but I'm just getting garbage as an answer (1 = not 1 ?:)). Part of the problem is that I'm supposed to give an exact answer, which I haven't quite figured out how to do yet.

I just tried to use some trig logic to get the angles I need, but it doesn't seem to be working either.
Since ##θ = arccos (x)##, and ##θ = arcsin (y)##, I set my unit vector to ##\vec u = \langle cos(\frac {3π}{4} + arccos\frac {8}{\sqrt{73}}), sin(\frac {3π}{4} + arcsin\frac {3}{\sqrt{73}})\rangle## and dotted it with the gradient, but that's wrong as well.

C. Haven't gotten to this part yet.

The good news is that after 6 years on PF, I've finally learned the basics of LaTeX! :rolleyes:

I will give you a hint on how to find that vector for (b). Let's start with ##\vec v = \langle 8,3\rangle## which is in the direction of your gradient. Two vectors perpendicular to ##\vec v## are ##\langle -3,8\rangle## and ##\langle 3,-8\rangle## (obvious from the dot product = 0). Draw these three vectors and also ##-\vec v## at the origin. Do you see in that picture two vectors you could add to give you a vector in the direction ##\frac{3\pi}{4}## from ##\vec v##? If so, make it a unit vector and proceed.
 
LCKurtz said:
Do you mean x^2y?

Indeed.

LCKurtz said:
I will give you a hint on how to find that vector for (b). Let's start with ⃗v=⟨8,3⟩v→=⟨8,3⟩\vec v = \langle 8,3\rangle which is in the direction of your gradient. Two vectors perpendicular to ⃗vv→\vec v are ⟨−3,8⟩⟨−3,8⟩\langle -3,8\rangle and ⟨3,−8⟩⟨3,−8⟩\langle 3,-8\rangle (obvious from the dot product = 0). Draw these three vectors and also −⃗v−v→-\vec v at the origin. Do you see in that picture two vectors you could add to give you a vector in the direction 3π43π4\frac{3\pi}{4} from ⃗vv→\vec v? If so, make it a unit vector and proceed.

That worked perfectly.

B. The answer is ##-\frac{657}{\sqrt{1314}}##

C. The answer is ##\left\langle 24,9\right\rangle ##

Thanks, Kurtz.
 
Drakkith said:
Indeed.
That worked perfectly.

B. The answer is ##-\frac{657}{\sqrt{1314}}##

C. The answer is ##\left\langle 24,9\right\rangle ##

Thanks, Kurtz.

I hope you realize that for any ##f(x_1, x_2, \ldots, x_n)## the directional derivative is largest in the direction ##\nabla f##, and the proof is extremely easy.
 
Ray Vickson said:
I hope you realize that for any ##f(x_1, x_2, \ldots, x_n)## the directional derivative is largest in the direction ##\nabla f##, and the proof is extremely easy.

Yep. There's several examples in my book that I've gone through.
 
Drakkith said:
Indeed.
That worked perfectly.

B. The answer is ##-\frac{657}{\sqrt{1314}}##

Are you sure about that answer? What did you get for your unit vector in the new direction?
[Edit, added]: That answer is correct but it can be reduced.

Of course, the geometric trick I just showed you depended on the fact that the angle ##\frac{3\pi}{4}## is easy to construct geometrically. But what if you had wanted to rotate the vector clockwise by an arbitrary angle ##\theta##? If you have studied the complex plane, you know that if you represent a vector ##z=\langle a,b \rangle## as ##a + bi## and multiply it by the complex number ##e^{i\theta}##, the result rotates ##z## by the angle ##\theta##. In your problem you would multiply by ##e^{\frac {3\pi i} 4} = \cos(\frac {3\pi i} 4) + i \sin(\frac {3\pi i} 4) = -\frac 1 {\sqrt 2} + i\frac 1 {\sqrt 2}##. You could use this idea to check your work above.
 
Last edited:
LCKurtz said:
Are you sure about that answer?

The online program accepted it as a correct answer.

LCKurtz said:
What did you get for your unit vector in the new direction?

##\langle \frac {-33}{\sqrt{1314}}, \frac{15}{\sqrt{1314}}\rangle##

LCKurtz said:
But what if you had wanted to rotate the vector clockwise by an arbitrary angle θθ\theta? If you have studied the complex plane, you know that if you represent a vector z=⟨a,b⟩z=⟨a,b⟩z=\langle a,b \rangle as a+bia+bia + bi and multiply it by the complex number eiθeiθe^{i\theta}, the result rotates zzz by the angle θθ\theta. In your problem you would multiply by e3πi4=cos(3πi4)+isin(3πi4)=−1√2+i1√2e3πi4=cos⁡(3πi4)+isin⁡(3πi4)=−12+i12e^{\frac {3\pi i} 4} = \cos(\frac {3\pi i} 4) + i \sin(\frac {3\pi i} 4) = -\frac 1 {\sqrt 2} + i\frac 1 {\sqrt 2}. You could use this idea to check your work above.

I have not studied the complex plane but I'll try to remember this. Thanks Kurtz.
 
I edited my answer about the same time that you replied noting that your answer is correct but that it can be reduced. You can factor a 3 out of both numerator and denominator. Ditto for your unit vector.
 
LCKurtz said:
I edited my answer about the same time that you replied noting that your answer is correct but that it can be reduced. You can factor a 3 out of both numerator and denominator. Ditto for your unit vector.

Roger!
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
9
Views
2K
Replies
2
Views
1K
Replies
7
Views
2K
Replies
9
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
20
Views
2K