The great advantage of this method is that it allows the optimization to be solved without explicit
parameterization in terms of the constraints.
Let us denote function
z = f(x, y) and the constraints given by equality as
g(x, y) = 0.
Lagrangian function
L(x, y) = f(x, y) - λ
g(x, y)
Stationary point of the Lagrangian function:
L'x (x, y) = 0 andL'y (x, y) = 0 gives a
necessary condition for optimality in constrained problems.
For the hyperboloid
z = x . y above the hyperbola x2 −
3xy + y2= 20 we have Langrangian function
L(x, y) = x . y - λ
(x2 −
3xy + y2 −
20)
Equations for stationary point
L'x (x, y) = y −
2λx + 3λy = 0 andL'y (x, y) = x + 3λx −
2λy = 0
Add equations together and factor the member (x+y). From the acquired reduction we have the relation for minimal points: x = −
y.
Conclusion
Function z = x.y has two minimal values above hyperbola: at points Min1 = (−
2, 2) and Min2 = (2, −
2).