Why this maximization approach fails?

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 1K views
friendbobbiny
Messages
49
Reaction score
2

Homework Statement


Find all points at which the direction of fastest change of the function [tex]f(x,y) = x^2 + y^2 -2x - 2y[/tex]is in the direction of <1,1>.

Homework Equations


[tex]<\nabla f = \frac{\delta f}{\delta x} , \frac{\delta f}{\delta y} , \frac{\delta f}{\delta z}>[/tex]

The Attempt at a Solution


[tex]\frac{\nabla f}{|\nabla f|}[/tex] = <1,1>

This doesn't work but

[tex]\frac{\delta f}{\delta x} = \frac{\delta f}{\delta y}[/tex]

does. This latter approach makes sense. The partial derivatives at x and y have the same value. The former approach should work, however. In general, [tex]\nabla f[/tex] gives the direction of maximum change.
 
Physics news on Phys.org
NVM

set [tex]\frac{\nabla f}{|\nabla f|}[/tex] to <root(2)/2, root(2)/2>

Resolved!
 
  • Like
Likes   Reactions: davidmoore63@y and berkeman
friendbobbiny said:

Homework Statement


Find all points at which the direction of fastest change of the function [tex]f(x,y) = x^2 + y^2 -2x - 2y[/tex]is in the direction of <1,1>.

Homework Equations


[tex]<\nabla f = \frac{\delta f}{\delta x} , \frac{\delta f}{\delta y} , \frac{\delta f}{\delta z}>[/tex]
Your function is one with two variables, so the gradient should be a vector with two components, not three.
$$\nabla f = <\frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}>$$
friendbobbiny said:

The Attempt at a Solution


[tex]\frac{\nabla f}{|\nabla f|}[/tex] = <1,1>

This doesn't work but

[tex]\frac{\delta f}{\delta x} = \frac{\delta f}{\delta y}[/tex]

does. This latter approach makes sense. The partial derivatives at x and y have the same value. The former approach should work, however. In general, [tex]\nabla f[/tex] gives the direction of maximum change.
Do you have a feel for what the surface for this function looks like? The graph of the surface is a paraboloid that opens upward.
 
friendbobbiny said:

Homework Statement


Find all points at which the direction of fastest change of the function [tex]f(x,y) = x^2 + y^2 -2x - 2<b>y </b>[/tex]is in the direction of <1,1>.

Homework Equations


[tex]<\nabla f = \frac{\delta f}{\delta x} , \frac{\delta f}{\delta y} , \frac{\delta f}{\delta z}>[/tex]

Just a note on Latex. First, your [itex]\nabla F[/itex] belongs outside the < > denoting the vector. Second you can use "\partial" to indicate partial derivatives rather than "\delta":
[tex]\nabla f = <\frac{\partial f}{\partial x} , \frac{\partial f}{\partial y} , \frac{\partial f}{\partial z}>[/tex]

3. The Attempt at a Solution
[tex]\frac{\nabla f}{|\nabla f|}[/tex] = <1,1>

This doesn't work but

[tex]\frac{\delta f}{\delta x} = \frac{\delta f}{\delta y}[/tex]

does. This latter approach makes sense. The partial derivatives at x and y have the same value. The former approach should work, however. In general, [tex]\nabla f[/tex] gives the direction of maximum change.