Product Rule Notes

Published on: September 29, 2026

These Product Rule Notes explain how to differentiate two functions multiplied together, with the working shown line by line. The derivative of a product is not the product of the derivatives, so each factor takes a turn being differentiated while the other is left alone, and the two results are added. Identifying the factors first is what keeps the terms straight. Following the same pattern every time stops the two halves being run together.

Step-by-step method

  1. Set up the problem.
  2. Write the product rule formula.
  3. Differentiate the first factor.
  4. Differentiate the second factor.
  5. Substitute into the product rule formula.
  6. Simplify the result.

Formula: Product Rule

This rule differentiates two functions multiplied together. Take the derivative of the first times the second, then add the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Useful Tips to Remember

The product rule says \((uv)' = u'v + uv'\). The derivative of a product is not the product of the derivatives, which is the most common mistake. Choose \(u\) and \(v\) clearly, find each derivative, and then put them into the formula. Simplify the result by factoring out any common terms.

Required knowledge

Where Is the Product Rule Used?

The product rule differentiates two functions multiplied together, using \((uv)' = u'v + uv'\). It is needed whenever a quantity is the product of two changing parts, such as revenue being price times the number sold, where both can change. In physics, momentum and power are products that change over time, and in biology, a population's total mass depends on both the number of animals and their average size. The rule shows how each part's change contributes to the change in the whole.

  • Finding how revenue changes when both price and sales change
  • Differentiating functions like \(x^2 \sin x\) and \(x e^x\)
  • Working out the rate of change of momentum and power
  • Modelling total biomass from population and average size
  • Finding how area changes when both sides of a rectangle grow

Product Rule Practice Problems

Example 1 differentiates \((x^2 + 1)(x^3 - 2x)\), and Example 2 differentiates \(x^2\sin x\). Examples 3 and 4 give you two more problems of the same kind to try. Try choosing \(u\) and \(v\) yourself before opening each example.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(f\left(x\right) = \left(x^{2} + 1\right) \left(x^{3} - 2 x\right)\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the product rule formula.
  3. Differentiate the first factor.
  4. Differentiate the second factor.
  5. Substitute into the product rule formula.
  6. Simplify the result.

Formula

Formula: Product Rule

This rule differentiates two functions multiplied together. Take the derivative of the first times the second, then add the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 1

Step 1 - Set up the two factors f(x) and g(x).

In this problem: The first factor is \(x^{2} + 1\) and the second factor is \(x^{3} - 2 x\).

\(\begin{gathered} f\left(x\right) = x^{2} + 1 \\ g\left(x\right) = x^{3} - 2 x \end{gathered}\)

Step 2

Step 2 - Write the product rule formula.

In this problem: The derivative of a product is the derivative of the first times the second, plus the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 3

Step 3 - Differentiate the first factor.

In this problem: Differentiate \(x^{2} + 1\) to get \(2 x\).

\(f'\left(x\right) = \frac{d}{dx}\left(x^{2} + 1\right) = 2 x\)

Step 4

Step 4 - Differentiate the second factor.

In this problem: Differentiate \(x^{3} - 2 x\) to get \(3 x^{2} - 2\).

\(g'\left(x\right) = \frac{d}{dx}\left(x^{3} - 2 x\right) = 3 x^{2} - 2\)

Step 5

Step 5 - Substitute into the product rule formula.

In this problem: Substitute the factors and their derivatives into the formula.

\(y'\left(x\right) = \left(2 x\right) \cdot \left(x^{3} - 2 x\right) + \left(x^{2} + 1\right) \cdot \left(3 x^{2} - 2\right)\)

Step 6

Step 6 - Simplify the result.

In this problem: Expand the products and combine like terms.

\(y'\left(x\right) = 2 x \left(x^{3} - 2 x\right) + \left(x^{2} + 1\right) \left(3 x^{2} - 2\right) = 5 x^{4} - 3 x^{2} - 2\)

Final Answer

\(f'\left(x\right) = 5 x^{4} - 3 x^{2} - 2\)
See Example 2 Hide Example 2

Problem

\(f\left(x\right) = x^{2} \sin{\left(x \right)}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the product rule formula.
  3. Differentiate the first factor.
  4. Differentiate the second factor.
  5. Substitute into the product rule formula.
  6. Simplify the result.

Formula

Formula: Product Rule

This rule differentiates two functions multiplied together. Take the derivative of the first times the second, then add the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 1

Step 1 - Set up the two factors f(x) and g(x).

In this problem: The first factor is \(x^{2}\) and the second factor is \(\sin{\left(x \right)}\).

\(\begin{gathered} f\left(x\right) = x^{2} \\ g\left(x\right) = \sin{\left(x \right)} \end{gathered}\)

Step 2

Step 2 - Write the product rule formula.

In this problem: The derivative of a product is the derivative of the first times the second, plus the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 3

Step 3 - Differentiate the first factor.

In this problem: Differentiate \(x^{2}\) to get \(2 x\).

\(f'\left(x\right) = \frac{d}{dx}\left(x^{2}\right) = 2 x\)

Step 4

Step 4 - Differentiate the second factor.

In this problem: Differentiate \(\sin{\left(x \right)}\) to get \(\cos{\left(x \right)}\).

\(g'\left(x\right) = \frac{d}{dx}\left(\sin{\left(x \right)}\right) = \cos{\left(x \right)}\)

Step 5

Step 5 - Substitute into the product rule formula.

In this problem: Substitute the factors and their derivatives into the formula.

\(y'\left(x\right) = \left(2 x\right) \cdot \left(\sin{\left(x \right)}\right) + \left(x^{2}\right) \cdot \left(\cos{\left(x \right)}\right)\)

Step 6

Step 6 - Simplify the result.

In this problem: Expand the products and combine like terms.

\(y'\left(x\right) = x^{2} \cos{\left(x \right)} + 2 x \sin{\left(x \right)}\)

Final Answer

\(f'\left(x\right) = x^{2} \cos{\left(x \right)} + 2 x \sin{\left(x \right)}\)
See Example 3 Hide Example 3

Problem

\(f\left(x\right) = \left(x + 2\right) \left(x^{2} - 1\right)\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the product rule formula.
  3. Differentiate the first factor.
  4. Differentiate the second factor.
  5. Substitute into the product rule formula.
  6. Simplify the result.

Formula

Formula: Product Rule

This rule differentiates two functions multiplied together. Take the derivative of the first times the second, then add the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 1

Step 1 - Set up the two factors f(x) and g(x).

In this problem: The first factor is \(x + 2\) and the second factor is \(x^{2} - 1\).

\(\begin{gathered} f\left(x\right) = x + 2 \\ g\left(x\right) = x^{2} - 1 \end{gathered}\)

Step 2

Step 2 - Write the product rule formula.

In this problem: The derivative of a product is the derivative of the first times the second, plus the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 3

Step 3 - Differentiate the first factor.

In this problem: Differentiate \(x + 2\) to get \(1\).

\(f'\left(x\right) = \frac{d}{dx}\left(x + 2\right) = 1\)

Step 4

Step 4 - Differentiate the second factor.

In this problem: Differentiate \(x^{2} - 1\) to get \(2 x\).

\(g'\left(x\right) = \frac{d}{dx}\left(x^{2} - 1\right) = 2 x\)

Step 5

Step 5 - Substitute into the product rule formula.

In this problem: Substitute the factors and their derivatives into the formula.

\(y'\left(x\right) = \left(1\right) \cdot \left(x^{2} - 1\right) + \left(x + 2\right) \cdot \left(2 x\right)\)

Step 6

Step 6 - Simplify the result.

In this problem: Expand the products and combine like terms.

\(y'\left(x\right) = x^{2} + 2 x \left(x + 2\right) - 1 = 3 x^{2} + 4 x - 1\)

Final Answer

\(f'\left(x\right) = 3 x^{2} + 4 x - 1\)
See Example 4 Hide Example 4

Problem

\(f\left(x\right) = x^{2} \cos{\left(x \right)}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the product rule formula.
  3. Differentiate the first factor.
  4. Differentiate the second factor.
  5. Substitute into the product rule formula.
  6. Simplify the result.

Formula

Formula: Product Rule

This rule differentiates two functions multiplied together. Take the derivative of the first times the second, then add the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 1

Step 1 - Set up the two factors f(x) and g(x).

In this problem: The first factor is \(x^{2}\) and the second factor is \(\cos{\left(x \right)}\).

\(\begin{gathered} f\left(x\right) = x^{2} \\ g\left(x\right) = \cos{\left(x \right)} \end{gathered}\)

Step 2

Step 2 - Write the product rule formula.

In this problem: The derivative of a product is the derivative of the first times the second, plus the first times the derivative of the second.

\(\frac{d}{dx}\left(f\left(x\right) \cdot g\left(x\right)\right) = f'\left(x\right)g\left(x\right) + f\left(x\right)g'\left(x\right)\)

Step 3

Step 3 - Differentiate the first factor.

In this problem: Differentiate \(x^{2}\) to get \(2 x\).

\(f'\left(x\right) = \frac{d}{dx}\left(x^{2}\right) = 2 x\)

Step 4

Step 4 - Differentiate the second factor.

In this problem: Differentiate \(\cos{\left(x \right)}\) to get \(- \sin{\left(x \right)}\).

\(g'\left(x\right) = \frac{d}{dx}\left(\cos{\left(x \right)}\right) = - \sin{\left(x \right)}\)

Step 5

Step 5 - Substitute into the product rule formula.

In this problem: Substitute the factors and their derivatives into the formula.

\(y'\left(x\right) = \left(2 x\right) \cdot \left(\cos{\left(x \right)}\right) + \left(x^{2}\right) \cdot \left(- \sin{\left(x \right)}\right)\)

Step 6

Step 6 - Simplify the result.

In this problem: Expand the products and combine like terms.

\(y'\left(x\right) = - x^{2} \sin{\left(x \right)} + 2 x \cos{\left(x \right)}\)

Final Answer

\(f'\left(x\right) = - x^{2} \sin{\left(x \right)} + 2 x \cos{\left(x \right)}\)

Calculator and Practice Mode