Optimize f(x,y,z) = x2 + y2 + z2 - 2x

  • Thread starter Thread starter squenshl
  • Start date Start date
squenshl
Messages
468
Reaction score
4
Optimize f(x,y,z) = x2 + y2 + z2 - 2x subject to the constraint g(x,y,z) = x2 + y2 + z2 - 25 = 0

Step 1:
L = f - \lambdag = x2 + y2 + z2 - 2x - \lambda(x2 + y2 + z2 - 25).

Step 2:
Lx = 2x - 2 - 2\lambdax = 0
Ly = 2y - 2\lambday = 0
Lz = 2z - 2\lambdaz = 0

What do I do now? Please help.
 
Physics news on Phys.org


I see four equations and four unknowns (don't forget that g(x,y,z)=0 gives you another equation!). Have you tried solving for those unknowns?
 
Back
Top