Maximization of 4-variable function…

algebra-precalculuscalculusmaxima-minima

Maximize $$x_2 – x_1 + y_1 – y_2$$ given that $x_1^2 + y_1^2 =1$ and $x_2^2 + y_2^2 = 1$.

I was thinking about using Lagrange multipliers, but I only know how that works for a 3-variable function, not 4. Could someone please suggest a way to solve this? Maybe with Lagrange multipliers or some more elementary method?

Best Answer

By the hypotesis you can write $x_1=\sin \theta, y_1=\cos \theta$ and $x_2=\sin \alpha, y_2=\cos \alpha$. Then, your want to find the maximum value of $$E=(\sin \alpha - \sin \theta)+(\cos \alpha - \cos \theta)=(\sin \alpha+\cos \alpha) -(\sin \theta +\cos \theta).$$ But, $-\sqrt{2}\le \sin x+\cos x\le \sqrt{2}, \ \forall x\in [0,2\pi]$ and the equality holds for $\alpha=\pi/4$ and $\theta=5\pi/4$. In particular, $E\le 2\sqrt{2},$ exactly as professor Rama Murty found.

Related Question