TL;DR
Lagrange Multipliers: Optimize f(x,y) subject to g(x,y)=0 by solving grad(f) = lambda * grad(g). This concept is essential for quantitative trading interviews and is frequently tested at top firms.
By Valenke Exam Prep Team·Last updated 2026-06-01
Analysis
Lagrange Multipliers
Optimize f(x,y) subject to g(x,y)=0 by solving grad(f) = lambda * grad(g).
Lagrange multipliers find the extrema of a function subject to a constraint :
Solve this system along with to find the optimal point(s) and the multiplier .
Intuition: At a constrained optimum, the gradient of must be parallel to the gradient of . Why? If they weren't parallel, you could move along the constraint surface in a direction that increases — meaning you haven't found the optimum yet. The condition says exactly "the only way to increase is to violate the constraint."
Concrete example: Maximize subject to .
Set . Then and .
System: .
Solution: , , maximum .
The multiplier has meaning: It measures the sensitivity of the optimum to the constraint. If the constraint were , the optimal value would increase by approximately . This is the "shadow price" in economics.
When to use: Constrained optimization in portfolio theory (maximize return subject to risk budget), entropy maximization, and any "optimize subject to" problem. In interviews: "maximize/minimize X given that Y is fixed."
Alternative approach: For simple two-variable problems, you can substitute the constraint directly (set and optimize ). Lagrange multipliers scale to higher dimensions and multiple constraints where substitution becomes unwieldy.
Ready to practice for the Valenke Finance Exam?
Adaptive practice powered by Item Response Theory targets your weak areas. Start with 3 free sessions.
Start free practice →