What Is a Lagrange Multiplier Calculator?
A Lagrange multiplier calculator finds the maximum or minimum of a function subject to one or more constraints. The method of Lagrange multipliers is a powerful technique in multivariable calculus and optimization, used in economics, engineering, and physics to optimize an objective when variables are restricted. Enter your objective function and constraint, and the calculator sets up and solves the system to find the constrained optima.
How to Use the Calculator
- Enter the objective function f(x, y) you want to optimize.
- Enter the constraint g(x, y) = c.
- Calculate — see the critical points and optimal values.
How the Method Works
At a constrained optimum, the gradient of the objective is parallel to the gradient of the constraint. This gives the Lagrange condition:
∇f = λ ∇g, together with the constraint g = c.
You solve this system of equations for the variables and the multiplier λ to find candidate points.
Step-by-Step Approach
| Step | Action |
|---|---|
| 1 | Set up ∇f = λ ∇g |
| 2 | Write one equation per variable |
| 3 | Add the constraint equation |
| 4 | Solve the system for the variables and λ |
| 5 | Evaluate f at each solution to find max and min |
What λ Represents
The multiplier λ has a meaningful interpretation: it measures how much the optimal value of the objective changes per unit change in the constraint. In economics this is often called a shadow price, indicating the value of relaxing the constraint slightly.
Where It Is Used
- Economics: maximizing utility or output subject to a budget.
- Engineering: optimizing designs under physical constraints.
- Physics: finding equilibria with conservation constraints.
Frequently Asked Questions
What are Lagrange multipliers?
They are a method for finding the maxima and minima of a function subject to constraints, by setting the gradient of the objective proportional to the gradient of the constraint.
What is the Lagrange condition?
The condition is ∇f = λ ∇g along with the constraint g = c. Solving this system gives the candidate optimal points.
What does the multiplier λ mean?
λ indicates how much the optimal objective value changes per unit change in the constraint — often interpreted as a shadow price in economics.
When do you use Lagrange multipliers?
Use them for constrained optimization — when you want to maximize or minimize a function while the variables must satisfy one or more constraints.
Is this Lagrange multiplier calculator free?
Yes — it is completely free, requires no signup, and solves constrained optimization problems.