14.8.1.
Find the extreme values of the function \(f(x,y) = 2x + 4y\) subject to the constraint \(g(x,y) = x^2 + y^2 - 5 = 0\) following the following steps:
-
Show that the Lagrange equation \(\nabla f = \lambda \nabla g\) gives \(\lambda x = 1\) and \(\lambda y = 2\text{.}\)
-
Use the constraint equation to determine the possible critical points \((x,y)\text{.}\)
-
Evaluate \(f(x,y)\) at the critical points and determine the minimum and maximum values.
Solution.
-
We are given the objective function \(f(x,y) = 2x + 4y\) and the constraint \(g(x,y) = x^2 + y^2 - 5 = 0\text{.}\) Taking the gradients, we get:\begin{align*} \nabla f \amp = \langle 2, 4 \rangle \\ \nabla g \amp = \langle 2x, 2y \rangle \end{align*}Setting \(\nabla f = \lambda \nabla g\) gives us the system:\begin{align*} 2 \amp = \lambda (2x) \implies 1 = \lambda x \\ 4 \amp = \lambda (2y) \implies 2 = \lambda y \end{align*}
-
If \(\lambda = 0\text{,}\) the first equation becomes \(1 = 0\text{,}\) which is a contradiction. Therefore, \(\lambda \neq 0\text{.}\) Since \(\lambda \neq 0\text{,}\) we can solve for \(x\) and \(y\) in terms of \(\lambda\text{:}\)\begin{align*} x \amp = \frac{1}{\lambda} \\ y \amp = \frac{2}{\lambda} \end{align*}Notice that \(y = \frac{2}{\lambda} = 2\left(\frac{1}{\lambda}\right) = 2x\text{.}\) Thus, \(y = 2x\text{.}\)
-
Substitute \(y = 2x\) into the constraint equation \(x^2 + y^2 = 5\text{:}\)\begin{align*} x^2 + (2x)^2 \amp = 5 \\ x^2 + 4x^2 \amp = 5 \\ 5x^2 \amp = 5 \implies x^2 = 1 \implies x = \pm 1 \end{align*}When \(x = 1\text{,}\) \(y = 2(1) = 2\text{.}\) When \(x = -1\text{,}\) \(y = 2(-1) = -2\text{.}\) Our critical points are \((1,2)\) and \((-1,-2)\text{.}\)
-
Finally, evaluate \(f(x,y) = 2x + 4y\) at the critical points:\begin{align*} f(1,2) \amp = 2(1) + 4(2) = 10 \\ f(-1,-2) \amp = 2(-1) + 4(-2) = -10 \end{align*}The maximum value is \(10\) at \((1,2)\text{,}\) and the minimum value is \(-10\) at \((-1,-2)\text{.}\)
