Explore modules

Lagrange Multipliers

Visualize how the gradient of the objective function aligns with the gradient of the constraint function at extreme points.

Free theory article

Visualize how the gradient of the objective function aligns with the gradient of the constraint function at extreme points.

Concept & interpretation

The method of Lagrange multipliers is a strategy for finding the local maxima and minima of a function subject to equation constraints. Instead of explicitly solving the constraints and substituting them into the objective function, which can be difficult or impossible, this method transforms the constrained problem into an unconstrained one by introducing a new scalar variable called the Lagrange multiplier. The fundamental insight is that at an extremum, the contour lines of the objective function are tangent to the constraint curve, meaning their gradient vectors are parallel.

Read the full free theory article