Chapter 10 Lagrange Multipliers
10.1 Extreme Values with a Constraint
The study of stationary points provides us with a method by which to calculate local maximums and minimums of multivariate functions. In this chapter we ask a more general question: how can one find the extremal values (maximums and minimums) of a function \(f\) subject to a constraint \(g=0\). That is, \(f\) is only evaluated at points where \(g\) evaluates to \(0\)? Initially consider the case where \(f(x,y)\) and \(g(x,y)\) are functions of two variables.
Sometimes such a problem can be tackled directly.
Find the minimum value of \(f(x,y)=4x^2 +3y^2\) subject to the constraint \(g(x,y)=y+2x-8=0\).
Manipulating \(g(x,y)=0\) to obtain an expression for \(y\):
Eliminating \(y\) from the expression for \(f\) obtain
\(F\) is a univariate function, and a minimum turning point of \(F\) will lead to a solution to the constraint problem. Calculating the derivatives of \(F\):
Solving \(\frac{dF}{dx} = 32x -96=0\) gives \(x=3\). Since \(\frac{d^2 F}{dx^2}(3) = 32 >0\), this turning point is a minimum. At \(x=3\), calculate
and
Hence \(4x^2 + 3y^2\) subject to the constraint \(y+2x-8=0\) has minimum value 48 at the point \((3,2)\).
Example 10.1.1 has an interesting geometric interpretation. The constraint \(g(x,y)=y+2x-8=0\) is the equation of a straight line in the \((x,y)\)-plane. The level curves of \(z=f(x,y)\) at height \(\lambda \geq 0\) are ellipses \(4x^2+3y^2 = \lambda\) with center \((0,0)\) in the \((x,y)\)-plane. As \(\lambda\) increases from \(0\), the ellipse gets bigger until it touches the line \(y+2x-8=0\). This point of contact occurs at the point \((3,2)\) between the line and the level curve at height \(\lambda =48\). For any smaller value for \(\lambda\), there is no contact and so the constraint is not satisfied for points on the level curve.
It is not hard to see that this direct computation method would fail for expressions of \(f\) and \(g\) that are more complicated, or in the case that \(f\) and \(g\) have more than two variables. We require a more general method to solve this constraint problem.
10.2 Method of Lagrange Multipliers
The technique used to solve these extrema values under a constraint problem is method of Lagrange multipliers.
Let \(f(x,y)\) and \(g(x,y)\) be functions of two variables. Let \(\lambda\) be a new variable, and define
Then a stationary point \((x_0,y_0,\lambda_0)\) of \(F(x,y,\lambda)\) corresponds to an extremal point \((x_0,y_0)\) of \(f(x,y)\) subject to the constraint \(g(x,y)=0\).
The variable \(\lambda\) is called the Lagrange multiplier.
We solve the problem posed in Example 10.1.1 again, this time using the method of Lagrange multipliers instead of a direct computation.
Find the extrema values of \(f(x,y)=4x^2 +3y^2\) subject to the constraint \(g(x,y)=y+2x-8=0\).
By the method of Lagrange multipliers define
To find the stationary points of \(F\), equate the partial derivatives to \(0\):
Solving these equations simultaneously:
Therefore by the method of Lagrange multipliers, an extrema value is obtained at \((3,2)\) and this point calculate \(f(3,2)=48\).
The solution to Example 10.2.1 was the same as that obtained by direct computation in Example 10.1.1.
One drawback of the method of Lagrange multipliers is that it doesn’t tell us whether the extrema is a maximum or minimum. In Example 10.2.1, one has that \(4x^2 + 3y^2 \geq 0, \forall (x,y)\) and so necessarily the function must have a minimum value. Since there was a unique extrema value \((3,2)\), this must be the minimum value.
The method of Lagrange multipliers generalises to finding extremal values of a function of \(n\) variables subject to \(m\) constraints.
Let \(f(x_1,\ldots, x_n), g_1(x_1,\ldots, x_n), \ldots, g_m (x_1,\ldots, x_n)\) be multivariate functions of \(n\) variables. Let \(\lambda_1, \ldots, \lambda_m\) be new variables, and define
Then a stationary point \(\left( \bar{x}_1,\ldots, \bar{x}_n,\bar{\lambda}_1, \ldots, \bar{\lambda}_m \right)\) of \(F(x_1,\ldots, x_n,\lambda_1, \ldots, \lambda_m)\) corresponds to an extremal point \((\bar{x}_1,\ldots, \bar{x}_n)\) of \(f(x_1,\ldots, x_n)\) subject to the constraints \(g_1(x_1,\ldots, x_n) = \ldots g_m(x_1,\ldots, x_n)=0\).
Find the point on the hyperbolic cylinder \(x^2 - z^2=4\) which is nearest to the origin.
The problem is equivalent to minimising \(f(x,y,z)= x^2 + y^2 + z^2\) subject to the constraint \(g(x,y,z)=x^2 -z^2-4=0\). By the method of Lagrange multipliers define
To find the stationary points of \(F\), equate the partial derivatives to \(0\):
Solving these equations simultaneously:
But if \(x=0\), then \((\dagger \dagger)\) cannot have a real solution. Therefore
Therefore by the method of Lagrange multipliers, an extrema value is obtained at both \((2,0,0)\) and \((-2,0,0)\). Both points are a distance \(2\) from the origin. Geometrically a minimum value of the distance must exist, and hence must be \(2\).