Find two angles where the directional derivative is 1 at p0

In summary, the conversation discusses finding the two angles that the directional derivative makes with the x-axis, given a function f(x,y) and a point (x0,y0). The function and point provided are f(x,y) = sec(pi/14)*sqrt(x^2 + y^2) and p0 = (6,6), respectively. The conversation also mentions the use of the relation D_u = grad(f) * u, where u is an elementary vector. The calculated angles are pi/14 + pi/4 = 9*pi/28 and pi/14 - 3*pi/4 = -19*pi/28, but there may be errors in the trigonometric calculations.
  • #1
eple
2
0
1.

Given a function f(x,y) at (x0,y0). Find the two angles the directional derivative makes with the x-axis, where the directional derivative is 1. The angles lie in (-pi,pi].

2.


f(x,y) = sec(pi/14)*sqrt(x^2 + y^2)
p0 = (6,6)

3.

I use the relation D_u = grad(f) * u, where u is the elementary vector <cos(theta),sin(theta)>.

grad(f) at (6,6) is <sec(pi/14)/sqrt(2), sec(pi/14)/sqrt(2)>

Using these we have D_u = 1 = sec(pi/14)/sqrt(2)*(cos(theta) + sin(theta))

Rearranging:

cos(theta) + sin(theta) = sqrt(2) * cos(pi/14)

Isolating theta on LHS by using a relevant angle formula:

sqrt(2)*cos(theta - gamma) = sqrt(2) * cos(pi/14), where gamma = atan(1). Here, atan(1) can be pi/4 or -3*pi/4.

using cos^-1 on L- and RHS.

theta = pi/14 + gamma

Giving the answers:

theta1 = pi/14 + pi/4 = 9*pi/28
theta2 = pi/14 - 3*pi/4 = -19*pi/28

Somehow these angles are incorrect, but I am unable to locate my error in calculating them. Any help in guidance in the right direction will be greatly appreciated.
 
Physics news on Phys.org
  • #2
eple said:
1.

Given a function f(x,y) at (x0,y0). Find the two angles the directional derivative makes with the x-axis, where the directional derivative is 1. The angles lie in (-pi,pi].

2.


f(x,y) = sec(pi/14)*sqrt(x^2 + y^2)
p0 = (6,6)

3.

I use the relation D_u = grad(f) * u, where u is the elementary vector <cos(theta),sin(theta)>.

grad(f) at (6,6) is <sec(pi/14)/sqrt(2), sec(pi/14)/sqrt(2)>

Using these we have D_u = 1 = sec(pi/14)/sqrt(2)*(cos(theta) + sin(theta))

Rearranging:

cos(theta) + sin(theta) = sqrt(2) * cos(pi/14)

Isolating theta on LHS by using a relevant angle formula:

sqrt(2)*cos(theta - gamma) = sqrt(2) * cos(pi/14), where gamma = atan(1). Here, atan(1) can be pi/4 or -3*pi/4.

using cos^-1 on L- and RHS.

theta = pi/14 + gamma

Giving the answers:

theta1 = pi/14 + pi/4 = 9*pi/28
theta2 = pi/14 - 3*pi/4 = -19*pi/28

Somehow these angles are incorrect, but I am unable to locate my error in calculating them. Any help in guidance in the right direction will be greatly appreciated.

9*pi/28 is corrrect. Things start getting sloppy in the trig part. sqrt(2)(cos(t)+sin(t))=cos(t+pi/4). The other angle for atan(t)=1 doesn't work. It gives negative signs on the sin and cos. And watch out when you use inverse cos. There's more than one angle on (-pi,pi) that has the same cos.
 

1. What is the directional derivative?

The directional derivative is a measure of how much a function changes at a given point in a particular direction. It is the slope of the function in the direction of the given vector.

2. How is the directional derivative calculated?

The directional derivative is calculated using the gradient of the function and the unit vector in the direction of interest. It can be found using the dot product of the gradient and the unit vector.

3. What is the significance of the directional derivative being 1?

A directional derivative of 1 at a given point indicates that the function is changing at a rate of 1 unit in the direction of the given vector. This means that the function is increasing at a steady rate in that direction.

4. How do we find two angles where the directional derivative is 1 at p0?

To find two angles where the directional derivative is 1 at a given point, we must first find the gradient of the function at that point. Then, we can use the dot product formula to find the angle between the gradient and the unit vector in the direction of interest. By varying the direction of the unit vector, we can find two angles where the directional derivative is 1.

5. What is the practical application of finding two angles where the directional derivative is 1?

Finding two angles where the directional derivative is 1 can be useful in optimization problems, where we want to maximize or minimize a function in a certain direction. It can also be used in physics and engineering to determine the direction and rate of change of a physical quantity.

Similar threads

  • Calculus and Beyond Homework Help
Replies
5
Views
670
  • Calculus and Beyond Homework Help
Replies
6
Views
940
  • Calculus and Beyond Homework Help
Replies
3
Views
784
  • Calculus and Beyond Homework Help
Replies
3
Views
547
  • Calculus and Beyond Homework Help
Replies
3
Views
869
  • Calculus and Beyond Homework Help
Replies
8
Views
866
  • Calculus and Beyond Homework Help
Replies
34
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
555
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
819
Back
Top