Find the three values of $x$ for which the derivative of $x^2\mathrm e^{-x^2}$ is zero.
Given that $a$ and $b$ are distinct positive numbers, find a polynomial $\mathrm P(x)$ such that the derivative of $\mathrm P(x)\mathrm e^{-x^2}$ is zero for $x=0$, $x=\pm a$ and $x=\pm b$, but for no other values of $x$.