Lably
Skip to content

Lagrange multiplier

Method to solve constrained optimization problems

  • 17 min read
  • 9 chapters

Related on Lably

Through Mathematical optimization, Maximum and minimum and Function (mathematics)

Summary and rationale

The basic idea is to convert a constrained problem into a form such that the derivative test of an unconstrained problem can still be applied. The relationship between the gradient of the function and gradients of the constraints rather naturally leads to a reformulation of the original problem, known as the Lagrangian function or Lagrangian. In the general case, the Lagrangian is defined as

L(x,λ)≡f(x)+⟨λ,g(x)⟩

for functions f,g; the notation ⟨⋅,⋅⟩ denotes an inner product. The value λ is called the Lagrange multiplier.

In simple cases, where the inner product is defined as the dot product, the Lagrangian is

L(x,λ)≡f(x)+λ⋅g(x)

The method can be summarized as follows: in order to find the maximum or minimum of a function f subject to the equality constraint g(x)=0, find the stationary points of L considered as a function of x and the Lagrange multiplier λ. This means that all partial derivatives should be zero, including the partial derivative with respect to λ.

∂L∂x=0 and ∂L∂λ=0;

or equivalently

∂f(x)∂x+λ⋅∂g(x)∂x=0 and g(x)=0.

The solution corresponding to the original constrained optimization is always a saddle point of the Lagrangian function, which can be identified among the stationary points from the definiteness of the bordered Hessian matrix.

The great advantage of this method is that it allows the optimization to be solved without explicit parameterization in terms of the constraints. As a result, the method of Lagrange multipliers is widely used to solve challenging constrained optimization problems. Further, the method of Lagrange multipliers is generalized by the Karush–Kuhn–Tucker conditions, which can also take into account inequality constraints of the form h(x)≤c for a given constant c.

Sign in to keep reading

8 more chapters are free with a Lably account.

More in Calculus and analysis