Math101learn.math101.caLagrange Multipliers
A rigorous, example-driven guide to lagrange multipliers, including hypotheses, method choice, verification, and practice.
The central idea
To optimize differentiable $f:\mathbb R^n\to\mathbb R$ subject to a regular constraint $g(\mathbf x)=c$, candidate constrained extrema satisfy $\nabla f=\lambda\nabla g$ with $g=c$, provided $\nabla g\ne0$. With several independent constraints, add one multiplier per constraint.
Definitions, hypotheses, and notation
The regularity condition is essential: if $\nabla g=0$, the constraint may not have a smooth tangent space and the multiplier equation can miss or overproduce candidates. Constraints with endpoints, corners, or inequalities require boundary decomposition or Karush–Kuhn–Tucker ideas beyond the basic theorem.
For a compact constraint and continuous objective, absolute extrema exist by the Extreme Value Theorem. Lagrange multipliers then generate candidates, but global classification comes only from evaluating all candidates. The sign and size of $\lambda$ should not be mistaken for max/min classification.
Conceptual meaning
At a constrained extremum, every feasible tangent direction has zero directional change in $f$. Thus $\nabla f$ is normal to the constraint surface, as is $\nabla g$, making them parallel. The multiplier records sensitivity to the constraint level under suitable conditions.
A dependable method and decision rule
- Check compactness or other conditions if absolute extrema are requested.
- Compute both gradients and note singular constraint points separately.
- Solve $\nabla f=\lambda\nabla g$ together with the constraint.
- Include all solution branches, especially zero-coordinate cases.
- Evaluate $f$ at every candidate and compare values.
Fully worked example
Graphical or geometric meaning
Level curves $xy=c$ slide until tangent to the constraint circle. At tangency their normal vectors, the two gradients, are parallel. The four symmetric contacts account for both maximum and minimum pairs.
Common mistakes and why they fail
Verification and reasonableness checks
- Substitute every candidate into the constraint.
- Evaluate objective values rather than classifying from $\lambda$ alone.
- Use symmetry or a direct inequality as an independent check.
Include regularity and every candidate
At a constrained extremum of $f$ on $g=c$, with $\nabla g\ne0$, gradients are parallel: $\nabla f=\lambda\nabla g$. This condition identifies candidates because the objective's level surface is tangent to the constraint. It is necessary under regularity, not a guarantee that every solution is an extremum. Solve the multiplier equations together with the constraint, then compare objective values. Also examine points where $\nabla g=0$, nonsmooth parts, endpoints, or boundary intersections separately because the standard equation can miss them. On a compact constraint, continuity guarantees absolute extrema, making the final value comparison decisive. Keep the multiplier as an auxiliary unknown rather than dividing by a component that might be zero.
Practice
- Maximize $x+y$ on $x^2+y^2=1$.
- What must hold at a regular constrained extremum?
- Does the method alone guarantee an absolute extremum?
Answers and brief solutions
- $\sqrt2$ at $(1/\sqrt2,1/\sqrt2)$.
- The objective and constraint gradients are parallel.
- No; existence and candidate comparison are separate.
Connections and next steps
Try it yourself
Hints are part of learning. Open one whenever it makes the next step feel possible.
What is the maximum of xy subject to x²+y²=2?
- Candidates are (±1,±1).
- xy equals 1 when the signs match and −1 when they differ.
- The maximum is 1.
End of lesson
Nice work making it this far.
Understanding grows through return visits. Save this lesson, try the practice, or continue when you are ready.
