Lagrange multipliers with two constraints

aclotm81
Messages
2
Reaction score
0

Homework Statement


By using the Lagrange multipliers find the extrema of the following function:
f(x,y)=x+y
subject to the constraints:

x2+y2+z2=1
y+z=12. The attempt at a solution
Using lambda = 1/(2x) I got x=y-z and y=1-z
plugging that into the first constraint, I got:
6y^2-6y+1=0 which makes y=0.5+-(31/2/6)

I got the same thing when solving for z, which means x=0 and lambda = infinity, which doesn't make sense.
 
Physics news on Phys.org
You've also got z=1-y. So if you choose the root y=(3+sqrt(3))/2 you have to choose z=(3-sqrt(3))/2 not the other root for z. You can't mix and match any two roots with each other.
 
Ah, I forgot to distribute the negative! I hate when that happens...it's all worked out now, thanks a lot!
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top