I'm doing the $n$th derivate of $e^{-x^2}$ and I can't see how to generalize it:
$\frac{d^0 y}{dx^0}=e^{-x^2}$
$\frac{dy}{dx}=e^{-x^2}(-2x)$
$\frac{d^2y}{dx^2}=-e^{-x^2}(4x^2-2)$
$\frac{d^3y}{dx^3}=-e^{-x^2}(8x^3-12x)$
$\frac{d^4y}{dx^4}=-e^{-x^2}(16x^4-48x^2+12)$
I just see that some numbers of the polynomial are multiplying between each other in each iteration, but I can't see how to generalize it.