Lagrange multiplier (source code)

= Lagrange multiplier
{c}
{wiki}

At a regular constrained extremum of $f$ subject to $g=0$, the gradients satisfy
$$
\nabla f=\lambda\nabla g.
$$