I'm trying to find the critical points of: $$ f(x,y) = (x^2 + 2y^2)e^{1-x^2-y^2} $$
I applied the product rule and chain rule for each of the partial derivatives to get these two: $$f_x(x,y) = 2x(e^{1-x^2-y^2}) + (x^2 + 2y^2)(-2x)(e^{1-x^2-y^2})$$ $$f_y(x,y) = 4y(e^{1-x^2-y^2}) + (x^2 + 2y^2)(-2y)(e^{1-x^2-y^2})$$
When I set those two to zero I can reduce them to: $$x^2 + 2y^2 = 1$$ $$x^2 + 2y^2 = 2$$
Which I'm pretty sure is right. Trying to solve those two I only get nonsense like $1 = 2$ or the square root of a negative. I looked at the answer and the points are $(1,0), (-1,0), (0,1), (0,-1), (0,0)$
I can see that those work out with the two formulas right above but I can't get there logically. Is there a flaw in my reasoning so far or do I just need to keep working to solve those two partials ? Also if $y$ is undefined for a value of x does that make it critical value of $x$ ?