Lagrange Multipliers Question?

In summary, the student tried to solve for the minimum and maximum values of the function subject to the given constraint, but made a mistake in their assumption about x and z being nonzero. They were able to solve for the value of lambda using either the \nabla F= \lambda \nabla G or \nabla F+ \lambda\nabla G formulas, but were not able to automatically solve for x and y.
  • #1
TheSpaceGuy
25
0
Lagrange Multipliers Question?

Homework Statement


Find the minimum and maximum values of the function subject to the given constraint.

f (x,y,z) = x^2 - y - z, x^2 - y^2 +z = 0



The Attempt at a Solution



Okay this is what I did:

Gradient f = <2x,-1,-1> Gradient g = <2x,-2y,1>

Gradient f = (Lambda) Gradient g
<2x,-1,-1> = L <2x,-2y,1>

2x = L(2x) L=1
-1=-L(2y)
-1=L(1)

by this Lambda = 1 and -1? How can this be, am I doing something wrong? Thanks for the help.
 
Physics news on Phys.org
  • #2


I haven't seen this terminology before, but are you sure it isn't Gradient f = - (Lambda) Gradient g?

In any event, look more closely at your first equation. What assumption did you make to obtain the value for L?
 
Last edited:
  • #3


I checked and yes I got the formula right. To get my values for lambda all I did was set the two gradients with g multiplied lambda. This gives L = 1, -1. I don't know how to get the values of x , y , and z from this which is what I need.
 
  • #4


I'm referring to the following step:

2x = L(2x) L=1

What assumption is implied about x and is the assumption valid?
 
  • #5


There's a conceptual mistake here:
Gradient f = (Lambda) Gradient g

<2x,-1,-1> = L <2x,-2y,1>

You have a function:

[tex]F(x,y,z)= x^2 - y - z[/tex]

and a vinculum which will be equal to zero:

[tex]G(x,y,z)= x^2 - y^2 +z[/tex]

build the Lagrange formula like this

[tex]H(x,y,z)= F(x,y,z) + \lambda G(x,y,z)[/tex]

Then take the partial derivatives and equal them to zero

[tex]H_x = 0[/tex]

[tex]H_y = 0[/tex]

[tex]H_z = 0[/tex]

[tex]H_{\lambda} = 0[/tex]

In doing all this you have missed one thing.
 
  • #6


Hmm wow I didn't know you could do it that way. But anyway I figured out what I was doing wrong in regards to my method. I was assuming that x, y, and z were not zero. I can't automatically do that.
 
  • #7


The two methods, [itex]\nabla F= \lambda \nabla G[/itex] and [itex]\nabla F+ \lambda\nabla G= 0[/itex] are exactly the same. They just change the sign on [itex]\lambda[/itex] which is irrelevant to the answer.

[itex]F= x^2- y- z[/itex] so [itex]\nabla F= 2x\vec{i}- \vec{j}-\vec{k}[/itex]

[itex]G= x^2- y^2+ z[/itex] so [itex]\nabla G= 2x\vec{i}- 2y\vec{j}+ \vec{k}[/itex]

[itex]\nabla F= \lambda\nabla G[/itex] becomes [itex]2x= 2\lambda x[/itex], [itex]-1= -2\lambda y[/itex] and [itex]-1= \lambda[/itex]. It does NOT follow from that that [itex]\lambda[/itex] is "both 1 and -1". In particular, the first equation, [itex]2\lambda x= 2x[/itex], does NOT mean [itex]\lambda= 1[/itex]. It means either [itex]\lambda= 1[/itex] or x= 0.

The last equation tells you that [itex]\lambda= -1[/itex]. Putting that into the second equation, [itex]-2\lambda y= 2y= -1[/itex] so that y= -1/2. Putting [itex]\lambda= -1[/itex] into the first equation, [itex]2x= 2x[/itex] we get, as I said before, x= 0.

Since we must have [itex]G(x, y, z)= x^2- y^2+ z= 0[/itex], x= 0, y= -1/2 give z= 1/4.
 
  • #8


Yes, Halls of Ivy is right.
Thank you for the comment.
 

What is the concept behind Lagrange multipliers?

The concept behind Lagrange multipliers is to find the maximum or minimum value of a function when there are constraints involved. It involves taking the gradient of the function and setting it equal to the gradient of the constraint multiplied by a new variable, known as the Lagrange multiplier.

What is the purpose of using Lagrange multipliers?

The purpose of using Lagrange multipliers is to find the optimal solution to a constrained optimization problem. It allows for the consideration of constraints without having to rely on trial and error methods or graphical solutions.

How do you use Lagrange multipliers to solve a problem?

To use Lagrange multipliers to solve a problem, you must first set up the objective function and the constraints. Then, you take the gradient of the objective function and set it equal to the gradient of the constraints multiplied by the Lagrange multiplier. Solve the resulting system of equations to find the optimal solution.

What are the advantages of using Lagrange multipliers?

One advantage of using Lagrange multipliers is that it simplifies the process of solving constrained optimization problems. It also allows for the consideration of multiple constraints at once, making it a more efficient method compared to trial and error or graphical solutions.

What are some real-world applications of Lagrange multipliers?

Lagrange multipliers have various real-world applications, such as in economics, where they are used to find the maximum or minimum profit for a company with limited resources. They are also used in physics to determine the path of a particle with constraints, and in engineering to optimize designs under certain constraints.

Similar threads

  • Calculus and Beyond Homework Help
Replies
8
Views
454
  • Calculus and Beyond Homework Help
Replies
2
Views
530
  • Calculus and Beyond Homework Help
Replies
6
Views
838
  • Calculus and Beyond Homework Help
Replies
16
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
18
Views
1K
  • Calculus and Beyond Homework Help
Replies
6
Views
882
  • Calculus and Beyond Homework Help
Replies
1
Views
454
  • Calculus and Beyond Homework Help
Replies
26
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
822
Back
Top