When differentiating the product of two functions, we need to use the product rule. The theory of it is: (fg(x))'=f'(x)g(x) + f(x)g'(x). This explanation is-differentiate the first function and leave the second alone. Then leave the first alone and differentiate the second. Then add the two terms together.