For example, to maximise $f(x, y)$ subject to the constraint $g(x, y) = 0$, we introduce the auxiliary function $L(x, y, \lambda) = f(x, y) - \lambda g(x, y)$, and solve $\nabla L = 0$.