[Math] Find maximum and minimum value of function $f(x,y,z)=y+z$ on the circle

calculusoptimization

Find maximum and minimum value of function $$f(x,y,z)=y+z$$ on the circle $$x^2+y^2+z^2 = 1,3x+y=3$$

We have that $$y=3-3x$$ So we would like find minimum and maximum value of function $$g(x,z)=3-3x+z$$ on $$x^2+ (3(1-x))^2 + z^2 = 1$$ And then I was using Lagrange multipliers. I received that $$z=\frac{9-10x}{3}$$ and next I substituted it to circle equal. But the numbers are awful.
This task comes from an exam so I suppose that is the easier way to solve it.

Best Answer

Let's look at what happens when we perturb $(x,y,z)$ infinitesimally in the direction $(\delta x,\delta y,\delta z)$.

To stay on $x^2+y^2+z^2=1$, we need $x\,\delta x+y\,\delta y+z\,\delta z=0$ and to stay on $3x+y=3$, we need $3\delta x+\delta y=0$.

That is, we want to consider only $(\delta x,\delta y,\delta z)$ which are perpendicular to both $(x,y,z)$ and $(3,1,0)$.

We want to find the point at which $\delta f(x,y,z)=(0,1,1)\cdot(\delta x,\delta y,\delta z)=0$ for all $(\delta x,\delta y,\delta z)$ which are perpendicular to both $(x,y,z)$ and $(3,1,0)$. For that to be true, $(0,1,1)$ must be a linear combination of $(3,1,0)$ and $(x,y,z)$. This means that $(x,y,z)$ is also a linear combination of $(3,1,0)$ and $(0,1,1)$; that is, on the plane $x-3y+3z=0$.

Thus, we are looking for a point on the unit sphere that is on the planes $x-3y+3z=0$ and $3x+y=3$. The intersection of these two planes is the line $(0,3,3)+(-3,9,10)t$. So we need to solve $$ \begin{align} 1&=(0-3t)^2+(3+9t)^2+(3+10t)^2\\ &=18+114t+190t^2 \end{align} $$ that is $t=\dfrac{-57\pm\sqrt{19}}{190}$. Note that $$ \begin{align} f((0,3,3)+(-3,9,10)t) &=(0,1,1)\cdot((0,3,3)+(-3,9,10)t)\\ &=6+19t \end{align} $$ Plugging in the values of $t$ give us the extreme values: $\dfrac{3+\sqrt{19}}{10}$ and $\dfrac{3-\sqrt{19}}{10}$