Lesson 3 of 7 · 15 min

The product rule with e, ln and trig

Differentiate products such as xsin⁡(x)x\sin(x), e2xcos⁡(3x)e^{2x}\cos(3x) and x3ln⁡(x)x^3\ln(x) with the product rule, and write the result in factorised form.

What you will be able to do

  • Recognise when a function is a product of two functions, and when a constant multiple needs no product rule.
  • Use d(uv)dx=udvdx+vdudx\frac{d(uv)}{dx} = u\frac{dv}{dx} + v\frac{du}{dx} with exponential, logarithmic and trigonometric factors.
  • Write the derivative of a product in simplest and factorised form.

The function y=xsin⁡(x)y = x\sin(x) is one function multiplied by another. It is tempting to differentiate each factor and multiply, giving 1×cos⁡(x)=cos⁡(x)1 \times \cos(x) = \cos(x). Check that guess at x=π2x = \frac{\pi}{2}: cos⁡(π2)=0\cos\left(\frac{\pi}{2}\right) = 0, so the graph would be flat there. Trace the real gradient and see.

Interactive

The gradient of y=xsin⁡(x)y = x\sin(x)

Start at x=π2≈1.57x = \frac{\pi}{2} \approx 1.57. The curve is still rising there, with gradient 1, not 0. Drag along to trace the true gradient function, sin⁡(x)+xcos⁡(x)\sin(x) + x\cos(x).

Key idea

The product rule

If y=uvy = uv, where uu and vv are functions of xx, then

dydx=udvdx+vdudx\frac{dy}{dx} = u\frac{dv}{dx} + v\frac{du}{dx}

In words: first times the derivative of the second, plus second times the derivative of the first. It is the rule from Unit 2, and it is on the QCAA formula sheet. Now uu and vv can be any functions you can differentiate.

Using the product rule

  1. Name the two factors uu and vv

    Write them on separate lines.

  2. Differentiate each one

    Find u′u' and v′v', using the chain rule inside either factor if you need it.

  3. Substitute into uv′+vu′uv' + vu'

    Write the whole sum before simplifying.

  4. Take out common factors

    Look for powers of xx, exponentials and trigonometric factors that appear in both terms.

Worked example

Differentiate y=x2sin⁡(x)y = x^2\sin(x)

  • Simple familiar
  • Technology free

Differentiate y=x2sin⁡(x)y = x^2\sin(x), giving your answer in factorised form.

3 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Set out uu, u′u', vv and v′v'.

  2. Substitute into uv′+vu′uv' + vu'.

  3. Factorise out the lowest power of xx.

Watch out for

  • Multiplying the derivatives: 2xcos⁡(x)2x\cos(x) is not the derivative of x2sin⁡(x)x^2\sin(x).

  • Taking out x2x^2: the second term only has x1x^1.

Differentiate y=xcos⁡(x)y = x\cos(x).

fracdydx =
Reads asYour answer shows here as maths.

Which of these functions needs the product rule to differentiate it?

Choose one answer

Worked example

Differentiate f(x)=e2xcos⁡(3x)f(x) = e^{2x}\cos(3x)

  • Complex familiar
  • Technology free

Let f(x)=e2xcos⁡(3x)f(x) = e^{2x}\cos(3x).

(a) Show that f′(x)=e2x(2cos⁡(3x)−3sin⁡(3x))f'(x) = e^{2x}\left(2\cos(3x) - 3\sin(3x)\right).

(b) Find the gradient of the graph of y=f(x)y = f(x) where it crosses the yy-axis.

4 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Use the chain rule to differentiate each factor.

  2. Substitute into uv′+vu′uv' + vu', then take out the exponential factor.

  3. For a gradient, substitute into the factorised derivative.

Watch out for

  • Forgetting the chain rule inside a factor: ddxcos⁡(3x)=−3sin⁡(3x)\frac{d}{dx}\cos(3x) = -3\sin(3x), not −sin⁡(3x)-\sin(3x).

  • In a "show that", jumping straight to the given answer earns no marks. Show the product rule line.

Differentiate y=x3ln⁡(x)y = x^3\ln(x), for x>0x > 0, giving your answer in factorised form.

fracdydx =
Reads asYour answer shows here as maths.

Common mistake

When not to use the product rule

A number times a function is a constant multiple, not a product: ddx(5ex)=5ex\frac{d}{dx}\left(5e^x\right) = 5e^x with no product rule. And sometimes simplifying first saves work: ex×e2x=e3xe^x \times e^{2x} = e^{3x}, so its derivative is just 3e3x3e^{3x}.

Exam tip

Factorised form

Products of exponentials or trigonometric functions usually leave a common factor in both terms, such as e2xe^{2x} or xx. Take it out: e2x(2cos⁡(3x)−3sin⁡(3x))e^{2x}(2\cos(3x) - 3\sin(3x)) is the expected final answer, and it is the form you need to find where the derivative is zero, since e2xe^{2x} is never zero.

Why the product rule works

Think of uvuv as the area of a rectangle with sides uu and vv. When xx increases by a small amount δx\delta x, the sides grow by δu\delta u and δv\delta v, and the area grows by

δ(uv)=u δv+v δu+δu δv\delta(uv) = u\,\delta v + v\,\delta u + \delta u\,\delta v

Divide by δx\delta x and let δx→0\delta x \to 0. The last term becomes δuδx δv\frac{\delta u}{\delta x}\,\delta v, which goes to dudx×0=0\frac{du}{dx} \times 0 = 0. What remains is udvdx+vdudxu\frac{dv}{dx} + v\frac{du}{dx}. Nothing in this argument depends on what kind of function uu and vv are.

Summary

  • For y=uvy = uv: dydx=udvdx+vdudx\frac{dy}{dx} = u\frac{dv}{dx} + v\frac{du}{dx}, for any functions you can differentiate.

  • The derivative of a product is not the product of the derivatives.

  • A constant times a function needs no product rule.

  • Use the chain rule inside uu or vv when a factor is itself a composite, such as e2xe^{2x} or cos⁡(3x)\cos(3x).

  • Finish by taking out common factors, such as a power of xx, ekxe^{kx} or a trigonometric function.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 3 of 70% read

Save your progress with a free account