This reference covers how to optimize a multivariable function subject to one or more constraints using Lagrange multipliers. Students need it because constrained optimization problems appear in calculus, economics, physics, engineering, and data science. The method replaces a difficult geometric condition with a system of equations involving gradients.
A clear step-by-step reference helps prevent algebra errors and missed candidates.
Key Facts
- For one constraint , solve together with .
- For one constraint in variables, solve together with .
- With two constraints, use together with and .
- The Lagrangian for one constraint is .
- Critical candidates satisfy , , and for a two-variable one-constraint problem.
- The geometric meaning of is that the level curve of is tangent to the constraint curve .
- Lagrange multipliers require regular constraint points, meaning for a single constraint.
- To find absolute extrema on a closed and bounded constraint set, evaluate at every valid candidate and compare the resulting values.
Vocabulary
- Objective function
- The objective function is the function that you want to maximize or minimize.
- Constraint
- A constraint is an equation such as that limits which input points are allowed.
- Gradient
- The gradient is the vector of partial derivatives that points in the direction of greatest increase of .
- Lagrange multiplier
- A Lagrange multiplier such as is a scalar that relates the gradient of the objective function to the gradient of the constraint.
- Lagrangian
- The Lagrangian is an auxiliary function, often written , whose critical points encode the constrained optimization equations.
- Regular point
- A regular point on a constraint is a point where the constraint gradient is nonzero, such as .
Common Mistakes to Avoid
- Forgetting to include the constraint equation is wrong because alone does not guarantee that the point lies on .
- Using instead of is wrong because the multiplier must scale a vector, not the scalar constraint function.
- Dividing by a variable that might be can remove valid solutions, so always check cases such as before simplifying.
- Stopping after finding candidate points is wrong because absolute maxima and minima require comparing the values of at all valid candidates.
- Ignoring boundary or singular cases is wrong because Lagrange multipliers apply cleanly only where the constraint is regular, such as .
Practice Questions
- 1 Use Lagrange multipliers to find the maximum and minimum of subject to .
- 2 Find the point on the plane closest to the origin by minimizing .
- 3 Maximize subject to the ellipse .
- 4 Explain why the condition means the level curve of is tangent to the constraint curve at a regular constrained extremum.