Lagrange multipliers

From HandWiki


Let Hepa img546.gif be a function of n variables Hepa img547.gif . If the n variables are independent, then a local minimum of f can be found by solving the n equations

Hepa img548.gif

In general, these equations define an extremum of f (a minimum, maximum or saddle point).

If the n variables are not independent, but satisfy m constraint equations

Hepa img549.gif

gradient of f need not vanish at the extremum, it need only be orthogonal to the (n-m)-dimensional surface described by the constraint equations. That is,

Hepa img550.gif

or in matrix notation Hepa img551.gif , where the coefficients Hepa img552.gif are called Lagrange multipliers. The above equations together may be written as

Hepa img553.gif

where

Hepa img554.gif

A useful method for solving these equations is the Newton-Raphson method. Stick to matrix notation and let

Hepa img555.gif

i.e. Hepa img556.gif Hessian of f and Hepa img557.gif ( Hepa img2.gif Jacobi Matrix). Assuming that x is an approximation to the required solution, a better approximation Hepa img558.gif is calculated. This procedure is iterated until some convergence criterion is satisfied, e.g. until the equations are satisfied to a given precision, or until the step Hepa img309.gif is ``sufficiently small.

For the unconstrained minimization problem, the Newton-Raphson formula is

Hepa img559.gif

For the constrained problem, the Newton-Raphson formula becomes

Hepa img560.gif

where the superscripts `u' or `c' stand for ``unconstrained or ``constrained.

Apart from the additional term in the formula for Hepa img309.gif , there is no change in the procedure.

Note in particular that the first guess for the solution may well violate the constraint equations, since these equations are solved during the iteration procedure.

Note also that if efficiency is essential, Hepa img561.gif and Hepa img562.gif can be calculated without explicit inversions of the matrices involved. For example, the Hepa img563.gif matrix Hepa img564.gif should be calculated by solution of the linear equation Hepa img565.gif , not by calculation of A-1.

The formulae given here for Hepa img561.gif and Hepa img562.gif are only valid if the matrix A has an inverse. If A is singular, then one must solve the linear equations

Hepa img566.gif

for Hepa img562.gif and Hepa img20.gif together.

The Lagrange multiplier method is in general very easy to use. It may, however, be more sensitive to rounding errors and also more time-consuming than the elimination method ( Hepa img2.gif Constraints), in which the constraint equations are solved explicitly. However, an explicit solution is frequently not possible.  also Minimization.