Skip to content
Infinitesimal Dynamics home
Notebook: 0 XP

Multivariable Calculus / Partial derivatives

Lagrange Multipliers

Optimize a function along a constraint by aligning its gradient with the constraint’s gradient.

3 min read · 4 sections · 0 checks

Contents 4 sections
  1. §1Introduction
  2. §2The Method
  3. §3Worked Example
  4. §4Summary

By the end you can

  • Set up the Lagrange condition ∇f = λ∇g
  • Solve constrained optimization problems
  • Interpret the multiplier λ as a sensitivity rate

Helps to know: The Gradient, Partial Derivatives

§1Introduction

To maximize a quantity while tied to a constraint — most output for a fixed budget, least material for a fixed volume — we cannot roam freely. Lagrange multipliers handle the constraint elegantly through gradients.

§2The Method

§3Worked Example

Maximize f(x,y)=xyf(x, y) = xy subject to x+y=10x + y = 10.

Example 1Solution

  1. Gradients: ∇f=(y,x)\nabla f = (y, x) and ∇g=(1,1)\nabla g = (1, 1). The condition gives y=λy = \lambda and x=λx = \lambda, so x=yx = y.

§4Summary

  1. At a constrained extremum, ∇f\nabla f and ∇g\nabla g point the same way.
  2. Solve ∇f=λ∇g\nabla f = \lambda \nabla g alongside the constraint equation.
  3. The multiplier λ\lambda is the sensitivity of the optimum to the constraint.