Using Lagrange Multipliers to Solve Constrained Optimization Problems

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
7 replies · 3K views
ElijahRockers
Gold Member
Messages
260
Reaction score
10

Homework Statement



f(x,y) = y2-x2, g(x,y) = x2/4 +y2=9

Homework Equations



[itex]\nabla f = \lambda \nabla g[/itex]

[itex]-2x = \lambda \frac{x}{2}[/itex]
[itex]2y = 2\lambda y[/itex]
[itex]\frac{1}{4} x^2 + y^2 = 9[/itex]

The Attempt at a Solution



I arrived at the three equations above. So according to the first equation, lambda can equal -4. According to the second equation, it can equal 1. After this, I am algebraically lost. The x's and y's cancel themselves out from the first two equations. What does this mean?
 
Physics news on Phys.org
ElijahRockers said:

Homework Statement



f(x,y) = y2-x2, g(x,y) = x2/4 +y2=9

Homework Equations



[itex]\nabla f = \lambda \nabla g[/itex]

[itex]-2x = \lambda \frac{x}{2}[/itex]
[itex]2y = 2\lambda y[/itex]
[itex]\frac{1}{4} x^2 + y^2 = 9[/itex]

The Attempt at a Solution



I arrived at the three equations above. So according to the first equation, lambda can equal -4. According to the second equation, it can equal 1. After this, I am algebraically lost. The x's and y's cancel themselves out from the first two equations. What does this mean?

If x ± 0 then λ = -4, so in the second equation you must have y = 0.

RGV
 
Last edited:
Dick said:
What are you talking about?

I had the typo λ = 4 instead of the correct λ = -4, but that still implies we need y = 0 to satisfy the second equation (which would be 2y = -8y).

RGV
 
Ok, well a lambda of -4 makes the other equation untrue. So lambda can not be -4 then, right?
 
Duh, ok, I think I got it. Thanks again.