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

$y ' = {e}^{x} \left({x}^{2} + 1\right) + {e}^{x} \cdot 2 x = {e}^{x} \left({x}^{2} + 1 + 2 x\right) = {e}^{x} {\left(x + 1\right)}^{2}$
$y = f \left(x\right) \Rightarrow y ' = f ' \left(x\right) \cdot g \left(x\right) + f \left(x\right) g ' \left(x\right)$.