Lagrange Multiplier — Definition, Formula & Examples
A Lagrange multiplier is a scalar variable introduced to find the maximum or minimum of a function subject to a constraint. It converts a constrained optimization problem into a system of equations you can solve using partial derivatives.
Given a function to optimize subject to a constraint , the method of Lagrange multipliers states that at any local extremum where , there exists a scalar such that . The value is called the Lagrange multiplier.
Key Formula
Where:
- = The objective function to be maximized or minimized
- = The constraint function, set equal to zero
- = The Lagrange multiplier (unknown scalar)
- = The gradient operator (vector of all partial derivatives)
How It Works
To use Lagrange multipliers, set up the equation alongside the constraint . This produces equations in unknowns (the original variables plus ). Solve the system simultaneously to find the candidate points. Evaluate at each candidate to determine which gives the maximum or minimum. The multiplier itself has a useful interpretation: it approximates how much the optimal value of changes per unit change in the constraint.
Worked Example
Problem: Find the maximum value of subject to the constraint .
Set up the gradient equation: Write the constraint as . Then gives two component equations.
Solve for λ: From the first equation, . From the second, . Setting them equal:
Apply the constraint: Substitute into to get , so . The candidate points are , , , and .
Answer: The maximum value of is , occurring at and .
Why It Matters
Lagrange multipliers appear throughout economics (utility maximization under a budget constraint), physics (energy minimization), and machine learning (support vector machines). Mastering this technique is essential for any course in multivariable calculus or mathematical optimization.
Common Mistakes
Mistake: Forgetting to rewrite the constraint in the form before computing .
Correction: Always rearrange the constraint so one side equals zero — for example, rewrite as — before taking partial derivatives of .
