Method of Lagrange multipliers
We have studied how to identify extreme values of two-variable functions \(f(x,y)\). In practice, we may have additional constraints. For example,
Find the extreme values of \(f(x,y)\) subject to the constraint \(g(x,y) = 0\).
We can use the method of Lagrange multipliers to solve this type of problem.
Let's consider the following example.
Problem. If \((x,y)\) moves on the unit circle \(x^2 + y^2 = 1\), find the extreme values of \(f(x,y) = x^2 + xy + y^2\). □
This problem can be restated as follows:
Problem (restated). Let \(g(x,y) = x^2 + y^2 - 1\). Find the extreme values of \(f(x,y) = x^2 + xy + y^2\) subject to the constraint \(g(x,y) = 0\). □
Let's solve this problem using an "explicit" method.
Solution 1 (Explicit method). Consider the implicit function \(y = \sqrt{1 - x^2}\) of \(g(x,y)\) on the open interval \((-1, 1)\) and substitute it to \(f(x, y)\) to have
\[h(x) = f(x,y(x)) = x^2 + x\sqrt{1-x^2} + (\sqrt{1-x^2})^2 = x\sqrt{1-x^2}+1.\]
Since
\[h'(x) = \frac{1 - 2x^2}{\sqrt{1 - x^2}},\]
\(h(x)\) has a local minimum at \(x = -\frac{1}{\sqrt{2}}\) and a local maximum at \(x = \frac{1}{\sqrt{2}}\). Therefore, \(f(x,y)\) has a local minimum value \(\frac{1}{2}\) at point \(\left(-\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)\), and a local maximum value \(\frac{3}{2}\) at point \(\left(\frac{1}{\sqrt{2}}, \frac{1}{\sqrt{2}}\right)\) on the unit circle.
Similarly, using the implicit function \(y = -\sqrt{1-x^2}\) on the open interval \((-1,1)\), we can define \(h(x) = -x\sqrt{1-x^2} + 1\) and find that \(f(x,y)\) has a local minimum value \(\frac{1}{2}\) at \(\left(\frac{1}{\sqrt{2}}, -\frac{1}{\sqrt{2}}\right)\) and a local maximum value \(\frac{3}{2}\) at \(\left(-\frac{1}{\sqrt{2}}, -\frac{1}{\sqrt{2}}\right)\).
Next, we examine the neighbors of the points \((1, 0)\) and \((-1, 0)\). In these cases, we consider the implicit functions \(x = \sqrt{1 - y^2}\) (the branch passing through \((1,0)\)) and \(x = -\sqrt{1 - y^2}\) (the branch passing through \((-1, 0)\)), and find the same points as above to give local minimum and maximum.
In summary, \(f(x,y)\) has a local minimum value \(\frac{1}{2}\) at \((x,y) = \left(\pm\frac{1}{\sqrt{2}}, \mp\frac{1}{\sqrt{2}}\right)\), and a local maximum value \(\frac{3}{2}\) at \((x,y) = \left(\pm\frac{1}{\sqrt{2}}, \pm\frac{1}{\sqrt{2}}\right)\). □
The above solution is explicit and easy to understand. However, this method applies only when the implicit functions of \(g(x,y) = 0\) can be obtained explicitly. If that is not the case, the following method of Lagrange (undetermined) multipliers provides an effective approach. We first show how to solve the above problem using the method of Lagrange multipliers. We will prove the method in general later.
Solution 2 (Lagrange multiplier). First, let us define a new function
\[F(x,y,\lambda) = f(x,y) - \lambda g(x,y) = (x^2 + xy + y^2) - \lambda(x^2 + y^2 - 1)\]
where \(\lambda\) is a new variable (undetermined constant) called the Lagrange multiplier. Note that we have \(F(x,y) = f(x,y)\) if the constraint \(g(x,y) = 0\) is satisfied. We now consider the extreme value problem of this function.
Next, we differentiate \(F(x,y)\) with respect to \(x\) and \(y\) and solve
\[\begin{eqnarray} F_x(x,y,\lambda) &=& 2(1-\lambda)x + y = 0,\tag{Eq:lagx}\\ F_y(x,y,\lambda) &=& x + 2(1-\lambda)y = 0.\tag{Eq:lagy} \end{eqnarray}\]
Furthermore,
\[F_{\lambda}(x,y,\lambda) = -(x^2 + y^2 - 1) = 0 \tag{Eq:lambda}\]
should also be satisfied. The latter equation implies, in particular, that \((x,y) \neq (0,0)\) (i.e., \(x\) and \(y\) cannot be simultaneously equal to 0). However, from (Eq:lagx) and (Eq:lagy) above, if \(x = 0\), then \(y = 0\) and vice versa, which is a contradiction. Thus, both \(x\) and \(y\) are non-zero. Eliminating, for example, \(y\) from (Eq:lagx) and (Eq:lagy) and some rearrangement gives
\[x(2\lambda - 1)(2\lambda - 3) = 0.\]
Since \(x \neq 0\), we have \(\lambda = \frac{1}{2}, \frac{3}{2}\). For each of these values of \(\lambda\), we solve the simultaneous equations (Eq:lagx) and (Eq:lagy) for \(x\) and \(y\):
- For \(\lambda = \frac{1}{2}\), we have \(x = -y\).
- For \(\lambda = \frac{3}{2}\), we have \(x = y\).
Combining with (Eq:lambda), we have
- For \(\lambda = \frac{1}{2}\), we have \((x,y) = \left(\pm\frac{1}{\sqrt{2}}, \mp\frac{1}{\sqrt{2}}\right)\).
- For \(\lambda = \frac{3}{2}\), we have \((x,y) = \left(\pm\frac{1}{\sqrt{2}}, \pm\frac{1}{\sqrt{2}}\right)\).
- Enumerate the possible extreme points by the method of Lagrange multipliers.
- For each possible extreme point, consider the implicit function in the neighbor of the point and evaluate the first and second derivatives.
Theorem [Method of Lagrange multipliers]
- The function \(f(x,y)\) has an extreme value at \((x,y) = (a,b)\) subject to the constraint \(g(x,y) = 0\) (in particular, \(g(a,b) = 0\));
- \((a,b)\) is a regular point of \(g(x,y) = 0\) (i.e., it is not the case that \(g_x(a,b) = g_y(a,b) = 0\)).
Comments
Post a Comment