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

  • Thread starter squenshl
  • Start date
  • #1
479
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 - [tex]\lambda[/tex]g = x2 + y2 + z2 - 2x - [tex]\lambda[/tex](x2 + y2 + z2 - 25).

Step 2:
Lx = 2x - 2 - 2[tex]\lambda[/tex]x = 0
Ly = 2y - 2[tex]\lambda[/tex]y = 0
Lz = 2z - 2[tex]\lambda[/tex]z = 0

What do I do now? Please help.
 

Answers and Replies

  • #2
Office_Shredder
Staff Emeritus
Science Advisor
Gold Member
4,003
223


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?
 

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

  • Last Post
Replies
4
Views
2K
Replies
2
Views
10K
Replies
4
Views
2K
  • Last Post
Replies
2
Views
646
  • Last Post
Replies
2
Views
1K
Replies
11
Views
3K
Replies
8
Views
9K
Replies
1
Views
2K
  • Last Post
Replies
2
Views
3K
  • Last Post
Replies
1
Views
907
Top