Consider the problem
$$\begin{array}{ll} \text{maximize} & x^2+y^2 \\ \text{subject to} & \dfrac{x^2}{25} + \dfrac{y^2}{9} = 1\end{array}$$
Solving this using the Lagrange multiplier method, I get
$$x = \pm5, \qquad y = 0, \qquad \lambda = 25$$
However, if I rewrite the constraint as $9x^2+25y^2=225$, I get a different value of $\lambda$, namely, $\lambda = \frac 19$. I am unclear about why this should happen: the constraint is exactly the same, only rewritten after cross multiplication — why should that affect the value of the multiplier? What am I missing?
Let $f(x,y)=x^2+y^2+\lambda(9x^2+25y^2-225).$
Thus, from $$\frac{\partial f}{\partial x}=2x+18\lambda x=0$$ and $$\frac{\partial f}{\partial y}=2y+50\lambda y=0$$ we obtain two possibilities: $\lambda=-\frac{1}{9}$ or $\lambda=-\frac{1}{25}.$
The second gives a minimal value, wile the first gives a maximal value: $$f(x,y)=x^2+y^2-\frac{1}{9}(9x^2+25y^2-225)=25-\frac{16}{9}y^2\leq25,$$ where the equality occurs for $y=0.$
If we consider $f(x,y)=x^2+y^2+\lambda\left(\frac{x^2}{25}+\frac{y^2}{9}-1\right)$ so we'll get $\lambda=-25$
and we'll get the same answer of course.
It happens because $-\frac{1}{9}\cdot225=-25$ and $$x^2+y^2-\frac{1}{9}(9x^2+25y^2-225)=x^2+y^2-25\left(\frac{x^2}{25}+\frac{y^2}{9}-1\right).$$