The product rule – exercises with solutions
Differentiate a product of two functions: the derivative of the first times the second, plus the first times the derivative of the second.
How to solve it
The derivative of a product is not the product of the derivatives. With the product rule, (uv)′ = u′v + uv′: differentiate one factor and keep the other, then the other way round, and add the two.
Worked example
Differentiate
the derivative with respect to x of x squared times cosine of x
Step 1: Here u = x squared and v = cos x. Write out u′v + uv′: the derivative of x squared times cos x, plus x squared times the derivative of cos x.
the derivative with respect to x of x squared times cosine of x plus x squared times the derivative with respect to x of cosine of xStep 2: The derivative of x squared is 2x.
2 x times cosine of x plus x squared times the derivative with respect to x of cosine of xStep 3: The derivative of cos x is −sin x, so the second term becomes −x squared sin x.
2 x times cosine of x minus x squared times sine of x
Typical mistakes
- That’s one half of it. The other part also takes its turn to be differentiated, and the two halves are added.
- The derivative of a product isn’t the product of the derivatives. Each part takes its turn: d/dx(x squared · sin x) = 2x · sin x + x squared · cos x.