Im doing Lagrange multipliers and i cant seem to figure out which of the possible solution are correct. heres the problem.
f(x,y) = x^2+y^2 (maximize/minimize)
g(x,y) = 4x^2+Y^2=1 (constraint)
find closest and furthest pts from the origin
fx(x,y) = 2x
fy (x,y) = 2y
gx(x,y) = 8x
gy(x,y) = 2y
∇f (x,y) = λ∇g(x,y)
∇f (x,y) = <2x, 2y>
∇g(x,y) = <8x, 2y>
<2x, 2y> = λ<8x, 2y> ; 4x^2+y^2=1
2x=λ8x
2y=λ2y
4x^2+y^2=1
x=λ4x
y=λy
4x^2+y^2=1
x-λ4x=0
y-λy=0
4x^2+y^2=1
roots:
x(1-4λ)=0 . . . y(1-λ)=0
x=0 or λ=1/4 . . . y=0 or λ=1
so ive found the roots, now i need to find the possible solutions. how is that done? do you just match all of them together like so?
1. x=0 y=0
2. y=0 λ=1/4
3. x=0 λ=1
4. x=0 λ=1/4
5. y=0 λ=1
or do some of them not make it to the possible solutions part? and from here, how do you choose the correct selections (2 of them right?) to plug into the contraint (4x^2+y^2=1), where we find the roots, and then plug iinto the same eqn again to fnd the solution.
the final solution is
f(0,1) = 1
f(1/2,0) = 1/4
the closest pts to the origin (1/2,0) and (-1/2,0)
the farthest pts to the origin (0,1) and (0,-1)
thanks.
f(x,y) = x^2+y^2 (maximize/minimize)
g(x,y) = 4x^2+Y^2=1 (constraint)
find closest and furthest pts from the origin
fx(x,y) = 2x
fy (x,y) = 2y
gx(x,y) = 8x
gy(x,y) = 2y
∇f (x,y) = λ∇g(x,y)
∇f (x,y) = <2x, 2y>
∇g(x,y) = <8x, 2y>
<2x, 2y> = λ<8x, 2y> ; 4x^2+y^2=1
2x=λ8x
2y=λ2y
4x^2+y^2=1
x=λ4x
y=λy
4x^2+y^2=1
x-λ4x=0
y-λy=0
4x^2+y^2=1
roots:
x(1-4λ)=0 . . . y(1-λ)=0
x=0 or λ=1/4 . . . y=0 or λ=1
so ive found the roots, now i need to find the possible solutions. how is that done? do you just match all of them together like so?
1. x=0 y=0
2. y=0 λ=1/4
3. x=0 λ=1
4. x=0 λ=1/4
5. y=0 λ=1
or do some of them not make it to the possible solutions part? and from here, how do you choose the correct selections (2 of them right?) to plug into the contraint (4x^2+y^2=1), where we find the roots, and then plug iinto the same eqn again to fnd the solution.
the final solution is
f(0,1) = 1
f(1/2,0) = 1/4
the closest pts to the origin (1/2,0) and (-1/2,0)
the farthest pts to the origin (0,1) and (0,-1)
thanks.
Comment