Skip to main content

Section 3.13 PD8: Lagrange Multipliers

Handout PD8: Lecture Scaffold

Motivation.

Consider problems of the following type:
  • Find the hottest and coldest points on the sphere \(x^2+y^2+z^2=100\) if temperature is given by \(T(x,y,z)=xyz\text{.}\)
  • Find the points on the curve \(x^2+y^2+y^2=1\) that are nearest and furthest from the origin.

Some Geometry.

Suppose that \(f(x,y,z)\) is some function that we wish to find the max and min of subject to the constraint that our inputs live on a level surface \(g(x,y,z)=c\) for some real number \(c\text{.}\)
Question: What must be true of \(\nabla(f)\) and \(\nabla (g)\) at \((x,y,z)\) if this point is a max or min value?

Example 3.13.2.

Find the largest and smallest values of the function \(xy\) defined on the ellipse:
\begin{equation*} \frac{x^2}{8}+\frac{y^2}{2}=1. \end{equation*}

Example 3.13.3.

Suppose that \(T(x,y,z)=xyz\) represents temperature. Find the hottest and coldest points on the sphere \(x^2+y^2+z^2=100.\)

Problem 3.13.4 PD8 Representative Assessment.

(a)

Explain and demonstrate how to use the method of Lagrange multipliers to find the points on the curve \(x^2+xy+y^2=1\) that are nearest and furthest from the origin.
Solution.
To find the points on the curve \(x^2 + xy + y^2 = 1\) closest to and furthest from the origin, we minimize and maximize the square of the distance to the origin, \(f(x, y) = x^2 + y^2\text{,}\) subject to the constraint \(g(x, y) = x^2 + xy + y^2 = 1\text{.}\)
Using the method of Lagrange multipliers, we set \(\nabla f = \lambda \nabla g\text{:}\)
\begin{gather*} \langle 2x, 2y \rangle = \lambda \langle 2x + y, x + 2y \rangle \end{gather*}
This yields the system of equations:
\begin{align*} 2x &= \lambda (2x + y)\\ 2y &= \lambda (x + 2y)\\ x^2 + xy + y^2 &= 1 \end{align*}
Note: there are different approaches one can take to solving this system. Below I offer just one approach.
Subtracting the second equation from the first gives:
\begin{gather*} 2(x - y) = \lambda (x - y) \implies (x - y)(2 - \lambda) = 0 \end{gather*}
This leads to two cases:
Case 1: \(x = y\text{.}\) Substituting into the constraint gives:
\begin{gather*} x^2 + x^2 + x^2 = 1 \implies 3x^2 = 1 \implies x = \pm \frac{1}{\sqrt{3}} \end{gather*}
This gives two critical points: \(\left(\frac{1}{\sqrt{3}}, \frac{1}{\sqrt{3}}\right)\) and \(\left(-\frac{1}{\sqrt{3}}, -\frac{1}{\sqrt{3}}\right)\text{.}\)
Case 2: \(\lambda = 2\text{.}\) Substituting \(\lambda = 2\) into \(2x = 2(2x + y)\) yields \(2x + 2y = 0 \implies y = -x\text{.}\) Substituting into the constraint gives:
\begin{gather*} x^2 - x^2 + x^2 = 1 \implies x^2 = 1 \implies x = \pm 1 \end{gather*}
This gives two critical points: \((1, -1)\) and \((-1, 1)\text{.}\)
Evaluating \(f(x, y) = x^2 + y^2\) at all candidate points:
\begin{align*} f\left(\pm \frac{1}{\sqrt{3}}, \pm \frac{1}{\sqrt{3}}\right) &= \left(\frac{1}{\sqrt{3}}\right)^2 + \left(\frac{1}{\sqrt{3}}\right)^2 = \frac{2}{3}\\ f(\pm 1, \mp 1) &= (1)^2 + (-1)^2 = 2 \end{align*}
Since the constraint curve \(x^2 + xy + y^2 = 1\) is a closed and bounded ellipse, the extrema must occur at these points:
  • The points nearest to the origin are \(\left(\frac{1}{\sqrt{3}}, \frac{1}{\sqrt{3}}\right)\) and \(\left(-\frac{1}{\sqrt{3}}, -\frac{1}{\sqrt{3}}\right)\text{,}\) with distance \(\sqrt{\frac{2}{3}}\text{.}\)
  • The points furthest from the origin are \((1, -1)\) and \((-1, 1)\text{,}\) with distance \(\sqrt{2}\text{.}\)