Infinitesimal calculus MOC

Lagrange multiplier

Lagrange multipliers are an optimisation technique under a constraint particularly useful when it is impossible or difficult to reduce the function to be optimised to a single variable function. It forms the basis of the Lagrangian function.1

Statement

Given a function to be optimised ๐‘“(โƒ—๐ฏ) and constraining function ๐‘”(โƒ—๐ฏ) =๐‘˜, a maximising or minimising input โƒ—๐œ will satisfy

โˆ‡๐‘“(โƒ—๐œ)=๐œ†โˆ‡๐‘”(โƒ—๐œ)

where ๐œ† โ‰ 0 is called the Lagrangian multiplier.

Multiple constraints

In the case of optimising ๐‘“(โƒ—๐ฏ) under multiple constraints

๐‘”1(โƒ—๐ฏ)=๐‘˜1,๐‘”2(โƒ—๐ฏ)=๐‘˜2,โ€ฆ,๐‘”๐‘›(โƒ—๐ฏ)=๐‘˜๐‘›

the equation to be satisfied becomes

โˆ‡๐‘“(โƒ—๐œ)=๐‘›โˆ‘๐‘–=1๐œ†๐‘–โˆ‡๐‘”๐‘›(๐‘)=๐œ†1โˆ‡๐‘”1(โƒ—๐œ)+๐œ†2โˆ‡๐‘”2(โƒ—๐œ)+โ‹ฏ+๐œ†๐‘›โˆ‡๐‘”๐‘›(โƒ—๐œ)

Intuitive justification

The constraint ๐‘”(โƒ—๐ฏ) =๐‘˜ forms a Level set of ๐‘”(โƒ—๐ฏ). Therefore any inputs to ๐‘“ which satisfy the constraint correspond to intersections of the level curve ๐‘”(โƒ—๐ฏ) =๐‘˜ and some level curve ๐‘“(โƒ—๐ฏ) =๐‘™. For any optimising (i.e. maximising or minimising) input of โƒ—๐œ, the two level curves will be tangent. Since Gradient vectors are perpendicular to level curves, this necessarily implies the the gradients โˆ‡๐‘“(โƒ—๐œ) and โˆ‡๐‘”(โƒ—๐œ) are parallel, and hence there exists some nonzero ๐œ† such that2

โˆ‡๐‘“(โƒ—๐œ)=๐œ†โˆ‡๐‘”(โƒ—๐œ)

Usage

In order to solve an optimisation problem using Lagrangian multipliers with input of dimension ๐‘› (i.e. ๐‘“ :โ„๐‘› โ†’โ„), one must solve a system of ๐‘› +1 equations.

โŽกโŽข โŽข โŽข โŽข โŽข โŽข โŽขโŽฃ๐œ•๐‘“๐œ•๐‘ฅ1(๐‘ฅ1,๐‘ฅ2โ€ฆ๐‘ฅ๐‘›)๐œ•๐‘“๐œ•๐‘ฅ2(๐‘ฅ1,๐‘ฅ2โ€ฆ๐‘ฅ๐‘›)โ‹ฎ๐œ•๐‘“๐œ•๐‘ฅ๐‘›(๐‘ฅ1,๐‘ฅ2โ€ฆ๐‘ฅ๐‘›)๐‘”(๐‘ฅ1,๐‘ฅ2โ€ฆ๐‘ฅ๐‘›)โŽคโŽฅ โŽฅ โŽฅ โŽฅ โŽฅ โŽฅ โŽฅโŽฆ=โŽกโŽข โŽข โŽข โŽข โŽข โŽข โŽขโŽฃ๐œ†๐œ•๐‘”๐œ•๐‘ฅ1(๐‘ฅ1,๐‘ฅ2โ€ฆ๐‘ฅ๐‘›)๐œ†๐œ•๐‘”๐œ•๐‘ฅ2(๐‘ฅ1,๐‘ฅ2โ€ฆ๐‘ฅ๐‘›)โ‹ฎ๐œ†๐œ•๐‘”๐œ•๐‘ฅ๐‘›(๐‘ฅ1,๐‘ฅ2โ€ฆ๐‘ฅ๐‘›)๐‘˜โŽคโŽฅ โŽฅ โŽฅ โŽฅ โŽฅ โŽฅ โŽฅโŽฆ

Significance of the multiplier

The lambda multiplier ๐œ† is not an arbitrary, meaningless value. It is the derivative of the optimised value with respect to the constraining value ๐‘˜ where ๐‘”(โƒ—๐ฏ) =๐‘˜ is the constraint.

See also

Practice problems


tidy | SemBr | en | review

Footnotes

  1. 2022. MATH1011: Multivariable calculus, pp. 65โ€“66 โ†ฉ

  2. 2016. Calculus, pp. 1011โ€“1012 โ†ฉ