The rule
To differentiate a product of two functions, differentiate each one in turn while holding the other fixed, then add the results:
dxd[u(x)v(x)]=u′(x)v(x)+u(x)v′(x)Worked example
Find the derivative of f(x)=(x2+1)(x3−3x).
Solution: With u=x2+1 (so u′=2x) and v=x3−3x (so v′=3x2−3):
f′(x)=2x(x3−3x)+(x2+1)(3x2−3)=(2x4−6x2)+(3x4−3)=5x4−6x2−3Logarithmic differentiation, a product-rule cousin
When a variable appears in both the base and the exponent, taking a logarithm first turns the problem into one the product rule can handle.
If y=xsinx for x>0, find dxdy.
Solution: Take the natural log of both sides: lny=sinxlnx. Differentiate both sides: the right side is now a product:
yy′=cosxlnx+sinx⋅x1Multiplying back through by y=xsinx:
y′=xsinx[xsinx+lnxcosx]