Using Lagrange Multipliers to Solve Constrained Optimization Problems

Click For Summary

Homework Help Overview

The discussion revolves around using Lagrange multipliers to solve a constrained optimization problem involving the functions f(x,y) = y² - x² and g(x,y) = x²/4 + y² = 9. Participants are exploring the relationships between the gradients of these functions and the implications of their equations.

Discussion Character

  • Exploratory, Assumption checking, Problem interpretation

Approaches and Questions Raised

  • Participants discuss the derivation of equations from the Lagrange multiplier method and the implications of different values for lambda (λ). There is an exploration of the conditions under which λ can equal -4 or 1, and the necessity of checking both cases. Questions arise regarding the cancellation of variables and the implications for y.

Discussion Status

The discussion is active, with participants clarifying the conditions under which certain values of λ are valid. There is acknowledgment of the need to consider multiple scenarios, particularly regarding the values of x and y that satisfy the equations derived from the Lagrange method.

Contextual Notes

Participants are navigating potential typos and misunderstandings regarding the values of λ and their implications for the variables involved. There is a focus on ensuring that all conditions are satisfied for the equations to hold true.

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
−2x=λx/2 means EITHER λ=(-4) OR x=0. You have to check both options.
 
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:
Ray Vickson said:


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

RGV


What are you talking about?
 
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?
 
ElijahRockers said:
Ok, well a lambda of -4 makes the other equation untrue. So lambda can not be -4 then, right?

Yes, it can. lambda can be -4 if y is zero.
 
Duh, ok, I think I got it. Thanks again.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
2K
Replies
4
Views
2K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K