How do you calculate the derivative of the function #f(x)=e^x(x^2 + 1)#?