What is the Gradient of a Function at a Given Point?

  • MHB
  • Thread starter JProgrammer
  • Start date
  • Tags
    Direction
In summary, the person is trying to find the direction of steepest ascent of the function f(x) = x^2 - 4y^2 - 9 at the given point (1,-2). They believe they can use the gradient to determine this, but when they input their equation into Wolfram Alpha, it interprets it incorrectly and does not provide a direction. The person is asking for help with finding the correct input and understanding how to take the gradient.
  • #1
JProgrammer
20
0
I am trying to find the direction of steepest ascent of this function with this given point:

f(x) = x^2 - 4y^2 - 9

(1,-2)

I have the understanding that the steepest ascent or in some cases descent can be measured by the gradient. So in wolfram alpha I type in: gradient f(x) = x^2 - 4y^2 - 9, (1,-2) it says it interprets my input as: grad(-9+x^2-4 y^2, 18+x^2-4 y^2)
and gives me: grad(-9+x^2-4 y^2, 18+x^2-4 y^2) = ({2 x, 2 x}, {-8 y, -8 y}).

It interprets my input wrong and does not give me a direction. If someone could tell me what I am doing wrong and what I need to do instead, I would appreciate.

Thank you.
 
Physics news on Phys.org
  • #2
Shouldn't that be f(x, y)?
 
  • #3
JProgrammer said:
I am trying to find the direction of steepest ascent of this function with this given point:

f(x) = x^2 - 4y^2 - 9

(1,-2)

I have the understanding that the steepest ascent or in some cases descent can be measured by the gradient. So in wolfram alpha I type in: gradient f(x) = x^2 - 4y^2 - 9, (1,-2) it says it interprets my input as: grad(-9+x^2-4 y^2, 18+x^2-4 y^2)
and gives me: grad(-9+x^2-4 y^2, 18+x^2-4 y^2) = ({2 x, 2 x}, {-8 y, -8 y}).

It interprets my input wrong and does not give me a direction. If someone could tell me what I am doing wrong and what I need to do instead, I would appreciate.

Thank you.
Really? I got this. But it's so simple a problem, why are you using W|A to do it? Do you know how to take the gradient?

-Dan
 

1. What is the direction of steepest ascent?

The direction of steepest ascent is the direction in which a function increases the fastest. It is the direction of the gradient vector, which is a vector that points in the direction of the greatest increase of a function at a given point.

2. How is the direction of steepest ascent calculated?

The direction of steepest ascent is calculated by finding the gradient vector of a function at a given point and normalizing it to a unit vector. This unit vector represents the direction of steepest ascent.

3. What is the significance of the direction of steepest ascent?

The direction of steepest ascent is important in optimization problems, as it can help determine the fastest way to reach a maximum point on a function. It is also useful in gradient descent algorithms, where the direction of steepest descent is used to find the minimum of a function.

4. Can the direction of steepest ascent change at different points on a function?

Yes, the direction of steepest ascent can change at different points on a function, as it is dependent on the gradient vector, which can vary from point to point. However, at a local maximum point, the direction of steepest ascent will be zero as there is no increase in the function in any direction.

5. How is the direction of steepest ascent related to the rate of change of a function?

The direction of steepest ascent is directly related to the rate of change of a function. The gradient vector, which represents the direction of steepest ascent, is also the vector that points in the direction of the greatest rate of change of the function. This means that the direction of steepest ascent is the direction in which the function is changing the fastest.

Similar threads

Replies
1
Views
1K
Replies
18
Views
2K
Replies
3
Views
1K
Replies
1
Views
212
Replies
3
Views
340
Replies
36
Views
4K
  • Advanced Physics Homework Help
Replies
5
Views
788
Replies
6
Views
2K
Replies
1
Views
763
Replies
4
Views
2K
Back
Top