This is the problem I'm trying to solve: let $g(x,y)=e^{-3(x-1)^2}+e^{-3y^2}$ be the height of a mountain at a given $(x,y)$ point. Find max heights within $\frac{(x-1)^2}4+\frac{y^2}4 \le 1$
So what I first thought is Lagrange multipliers. So I got the gradients for both the surface and the restriction (which I called $f$):
$\nabla g=<-6e^{-3(x-1)^2}(x-1) ; -6ye^{-3y^2}>$
$\nabla f=<\frac{x-1}2; \frac y 2>$
So, given that $\nabla g = \lambda \nabla f$ my system of equations is: \begin{cases} -6e^{-3(x-1)^2}(x-1) = \lambda \frac{x-1}2 \\ -6ye^{-3y^2} = \lambda \frac y 2 \\ \frac{(x-1)^2}4+\frac{y^2}4 = 1 \end{cases}
If I set up my information the right way, I'm now completely stuck with this system of equations and how to solve it...




If we divide $x-1$ out of the first equation and $y$ out of the second, and then multiply the two equations, we get $(x-1)^2 + y^2$ in an exponent. From the third equaiton, we know $(x-1)^2 + y^2 = 4$. So this will allow us to solve for $\lambda$.