<s>[INST] How to solve this system of equations in Lagrange Multiplier problem Find the maximum and minimum values of ${x^{2} + y^{2} + z^{2}}$ subject to the conditions ${\frac{x^{2}}{4} + \frac{y^{2}}{5} + \frac{z^{2}}{25} = 1}$  and ${x + y - z = 0}$.
Using Lagrange multiplier method, I got following equations:
$$ {2x = \frac{\lambda_{1} x}{2} + \lambda_{2}}$$
$$ {2y = \frac{2 \lambda_{1} y}{5} + \lambda_{2}}$$
$$ {2z = \frac{2 \lambda_{1} z}{25} - \lambda_{2}}$$
$${\frac{x^{2}}{4} + \frac{y^{2}}{5} + \frac{z^{2}}{25} = 1}$$
$${x + y - z = 0}$$
I'm stuck after this. I've tried to solve this system of equations to get critical point many times. Any help will be greatly appreciated. Also is there any other way to approach this problem?
 [/INST] I think Lagrange multipliers method is not necessary here. 
We need to find a maximal and a minimal value of $x^2+y^2+(x+y)^2$, where $\frac{x^2}{4}+\frac{y^2}{5}+\frac{(x+y)^2}{25}=1.$
Let $2(x^2+xy+y^2)=k$.
Hence, the condition gives $29x^2+8xy+24y^2=100$ or
$$k(29x^2+8xy+24y^2)=200(x^2+xy+y^2),$$
which says that the equation
$$(29k-200)x^2+(8k-200)xy+(24k-200)y^2=0$$
has real solutions.
If $k=\frac{200}{29}$ we has solutions.
Let $k\neq\frac{200}{29}$.
Hence,
$$(4k-100)^2-(29k-200)(24k-200)\geq0,$$ 
which gives $$\frac{75}{17}\leq k\leq10$$
It's obvious that the equality occurs in both cases and we are done! 
</s>