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{.}\)