f(x) = x2exsin x
thinking of the function as
f(x) = (x2)(exsin x).
We need to find the derivative of each factor.
(x2)' = 2x
For the other, we need to use the product rule:
Now we need to remember to put everything back together.
Thankfully, this is the same answer we got before!
Multiplying everything out can make it easier to see when two answers are the same.