Many times it is necessary to find the minimum or maximum of a function when that function is subject to constraints. Under these conditions the mathematical approach called the "method of lagrange multipliers" is used to solve these equations.