AI engineering glossary · Calculus optimisation

What is lagrange multiplier?

Lagrange multiplier (also called Method of Lagrange multipliers): A number attached to a constraint that converts a constrained problem into an unconstrained one via the Lagrangian. At the solution it measures how sensitive the optimal value is to loosening that constraint.

Level: intermediateTopic: Calculus optimisation

Lagrange multiplier: an example

To minimise x^2 + y^2 subject to x + y = 2, set gradient f = lambda * gradient of constraint: 2x = lambda and 2y = lambda, so x = y = 1 and lambda = 2.

Related terms

More Calculus optimisation terms

Where you learn it

Lagrange multiplier is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.