CoV2
From Exampleproblems
Find the extrema of
subject to the constraint
.
Using Lagrange multipliers, make a new function:

Take the partial derivatives of this function with respect to x, y, and z.
1) 
2) 
3) 
For each equation above, find a value of lambda that works and force that value into the other two equations. Choose the other two variables appropriately to satisfy the equalities.
From 1), λ = − 1, and in that case y = z = 0. Plugging into our constraint equation yields x = 1, − 1.
From 2), λ = − 1 / 2, and in that case
.
From 3), λ = 1, and in that case x = y = 0,z = i, − i.
Combining these results, the extrema are

The last two solutions may be disregarded if we are restricting to real variables.
