first of all you need to determin of which function you are gonna search the extrema (minima or maxima, each of these two can be searched seperately as you know)...Can you find this function ? If that is done just apply the algoritm of Lagrangian multiplyersCallisto said:This problem was given in my calc class during the semester,
"Find the lowest point on the intersection of the sphere x^2+y^2 +z^2 = 30 and the cone 2*x^2 +y^2 = c^2". I dont know how to solve this problem with lagrange multipliers.
How is it done?
ok this makes my post look quite stupid :)HallsofIvy said:I assume the "c2" was a typo and the second equation is actually 2x2+ y2= z2. You want to find the "lowest" point on the curve of intersection which means that you want to minimize z itself with the two constraints:
x2+ y2+ z2= 30 and 2x2+ y2= z2.
Then if these as level surfaces of the functions g(x,y,z= x2+ y2+ z2= 30 and h(x,y,z)= 2x2+ y2- z2= 0. The gradient vector of the first is 2xi+ 2yj+ 2zk and the gradient vector of the second is 4xi+ 2yj- 2zk. The gradient of the object function f(x,y,z)= z is just k.
Using "Lagrange multipliers", we try to make that gradient a linear combination of the other two: k= λ(2xi+ 2yj+ 2zk)+ ρ(4xi+ 2yj- 2zk). That has 5 "unknowns", x, y, z, λ, and ρ (although you only need to find x, y, and z) and we have 5 equations:
the i component: 0= 2λx+ 4ρx
the j component: 0= 2λy+ 2ρy
the k component:1= 2λx- 2ρz
the equation of the sphere: x2+ y2+ z2d= 30
the equation of the cone: 2x2+ y2= z2.
Solve those equations for x, y, and z.