How to differentiate a product of two functions

The product rule dictates that the derivative of a product of two functions is the first function times the derivative of the second, plus the second function times the derivative of the first. Apply this method when differentiating an expression composed of two multiplied variable terms, such as x2sin(x)x^2 \sin(x).

The setup

Identify the expression as a product of two distinct functions. Assign one function to u(x)u(x) and the other to v(x)v(x). Verify that both u(x)u(x) and v(x)v(x) are differentiable with respect to xx.

The steps

  1. Define u(x)u(x) and v(x)v(x) from the original function f(x)=u(x)v(x)f(x) = u(x)v(x).
  2. Compute the derivative of the first function, u(x)u'(x).
  3. Compute the derivative of the second function, v(x)v'(x).
  4. Substitute these components into the product rule formula: f(x)=u(x)v(x)+v(x)u(x)f'(x) = u(x)v'(x) + v(x)u'(x).
  5. Simplify the resulting algebraic expression by factoring or combining like terms.

Checking the result

If the functions are polynomials, expand the original expression algebraically before differentiating to verify that the standard power rule yields the same derivative. For more complex functions, verify the derivative at a specific point x=ax=a using a numerical derivative approximation.

Common errors

The most frequent error is assuming that the derivative of a product is the product of the derivatives, f(x)equ(x)v(x)f'(x) eq u'(x)v'(x). Another common mistake is dropping negative signs when differentiating trigonometric or exponential components within u(x)u(x) or v(x)v(x).

Worked example

Find the derivative of f(x)=x3cos(x)f(x) = x^3 \cos(x).

Let u(x)=x3u(x) = x^3 and v(x)=cos(x)v(x) = \cos(x). Compute u(x)=3x2u'(x) = 3x^2. Compute v(x)=sin(x)v'(x) = -\sin(x). Apply the product rule formula: f(x)=u(x)v(x)+v(x)u(x)f'(x) = u(x)v'(x) + v(x)u'(x). Substitute the terms: f(x)=(x3)(sin(x))+(cos(x))(3x2)f'(x) = (x^3)(-\sin(x)) + (\cos(x))(3x^2). Simplify the expression: f(x)=x3sin(x)+3x2cos(x)f'(x) = -x^3 \sin(x) + 3x^2 \cos(x).

FAQ

Run your own problem

References: OpenStax Calculus Volume 1, Chapter 3 · James Stewart Calculus, Chapter 3

See also