Find $R$ if the maximum value of $x-y+z$ under the constraint $x^2+y^2+z^2=R^2$ is $\sqrt{27}$.
This is an extrema finding problem so we can use Lagrange multipliers here. $$ \begin{cases} 1=c2x\\ -1=c2y\\ 1=c2z \end{cases} $$ Then: $$ x=z\Leftrightarrow x^2+y^2+x^2=R^2\Leftrightarrow2x^2+y^2=R^2\\ \Leftrightarrow y=\pm\sqrt{R^2-2x^2} $$ We can plug the findings into $x-y+z$: $$ x\pm\sqrt{R^2-2x^2}+x=2x\pm\sqrt{R^2-2x^2} $$ But it doesn't seem to lead me anywhere. How to I proceed?
You could solve all 3 equations symmetrically as $$c=\frac{1}{2x}=-\frac{1}{2y}=\frac{1}{2z}. $$ This gives $$x=-y=z, $$ and the equation of the sphere gives $$3x^2=R^2 \implies x= \pm R/\sqrt3 .$$ The two critical points are then $$ \pm R/\sqrt{3}(1,-1,1).$$ I'll leave it to you to find which one is the maximum.