# How do you differentiate f(x)=(x^2+sinx)(e^x-2x) using the product rule?

The product rule states that $\left(a b\right) ' = a ' b + a b '$
$\frac{\mathrm{dy}}{\mathrm{dx}} = \left(2 x + \cos x\right) \left({e}^{x} - 2 x\right) + \left({x}^{2} + \sin x\right) \left({e}^{x} - 2\right)$