The Physics Travel Guide

Lagrange Multiplier

Prerequisites: Calculus.

Intuitive

Sometimes you want to maximize something (profit, health, utility, floor space) but subject to a constraint. A Lagrange multiplier is an extra variable introduced for each constraint. At the maximum it tells you how much the maximum value would change if the constraint were loosened a little.

Concrete

https://johncarlosbaez.wordpress.com/2012/01/19/classical-mechanics-versus-thermodynamics-part-1/

Abstract

Let MM be a smooth manifold, f:M→Rf: M \to \mathbb{R} smooth, and g=(g1,…,gk):M→Rkg = (g^1, \dots, g^k): M \to \mathbb{R}^k smooth with 00 a regular value. Then N=g−1(0)N = g^{-1}(0) is an embedded submanifold of codimension kk with tangent spaces TpN=ker⁡dgpT_pN = \ker dg_p. A point p∈Np \in N is a critical point of f∣Nf|_N exactly when dfpdf_p vanishes on ker⁡dgp\ker dg_p. A linear functional vanishes on the common kernel of dgp1,…,dgpkdg^1_p, \dots, dg^k_p if and only if it is a linear combination of them, so the condition is

dfp=∑a=1kλa dgpadf_p = \sum_{a = 1}^k \lambda_a\, dg^a_p

for unique numbers λa\lambda_a (unique because the dgpadg^a_p are linearly independent). Equivalently, (p,λ)(p, \lambda) is an unconstrained critical point of the Lagrange function L(p,λ)=f(p)−λaga(p)\mathcal{L}(p, \lambda) = f(p) - \lambda_a g^a(p) on M×RkM \times \mathbb{R}^k. Geometrically, dfpdf_p lies in the conormal space of NN at pp. Whether a critical point is a maximum or minimum is decided by the Hessian of L\mathcal{L} in pp at fixed λ\lambda, restricted to TpNT_pN.

Multipliers as sensitivities. Replace the constraint by g=cg = c and let f∗(c)f^*(c) be the value of ff at a nondegenerate constrained extremum that depends smoothly on cc. Then

∂f∗∂ca=λa.\frac{\partial f^*}{\partial c_a} = \lambda_a.

This is how multipliers acquire physical meaning. Maximizing the entropy S/kB=−∑ipiln⁡piS/k_B = -\sum_i p_i \ln p_i subject to ∑ipi=1\sum_i p_i = 1 and ∑ipiEi=U\sum_i p_i E_i = U gives pi=e−βEi/Zp_i = e^{-\beta E_i}/Z, where β\beta is the multiplier of the energy constraint. The sensitivity formula gives β=∂(S/kB)/∂U=1/kBT\beta = \partial (S/k_B)/\partial U = 1/k_B T, so temperature enters as a Lagrange multiplier. In mechanics with holonomic constraints ga(q)=0g^a(q) = 0, the equations of motion are mq¨=−∇V+λa∇gam\ddot q = -\nabla V + \lambda_a \nabla g^a, and λa∇ga\lambda_a \nabla g^a is the constraint force.

Duality. For the problem of minimizing ff subject to g=0g = 0, the dual function d(λ)=inf⁡pL(p,λ)d(\lambda) = \inf_p \mathcal{L}(p, \lambda) is a lower bound on the constrained minimum for every λ\lambda (weak duality). For convex problems that satisfy a constraint qualification such as Slater's condition, the largest of these bounds equals the constrained minimum (strong duality). Inequality constraints lead to the Karush-Kuhn-Tucker conditions, with sign-constrained multipliers that vanish for inactive constraints. In thermodynamics the switch from the constrained problem (fixed UU) to the unconstrained one (fixed β\beta) is a Legendre transformation: with the distribution above, ln⁡Z=S/kB−βU\ln Z = S/k_B - \beta U, so that −kBTln⁡Z=U−TS-k_B T \ln Z = U - TS is the free energy.