x1−x2 -> max
x12+x22<=1
Lagrange:
F(x1,x2,λ)=x1−x2−λ∗(x12+x22−12)
we obtain the stationary conditions
1−2λx1=01+2λx2=0
subtracting the first from the second we have:
2λ(x1+x2)=0=>x1=−x2
substituting in the original equation we get
x1=0.707106781186548x2=−0.707106781186548
answer: 1.414213562373095
Comments