Calculus (JAMB bridge) · Lesson 2 of 5

Chain, product and quotient rules

Differentiating sin x and cos x, the chain rule for a function inside a function, the product and quotient rules, and the second derivative.

17 minYou should already know: Quadratics & their graphs Coordinate geometry
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5

Sine and cosine

With xx in radians, the gradient of y=sin⁡xy = \sin x at every point is cos⁡x\cos x, and the gradient of y=cos⁡xy = \cos x is −sin⁡x-\sin x. The board below shows it: the gradient graph of sin⁡x\sin x is exactly the curve cos⁡x\cos x.

The gradient of a curveSlide P along the curve
−3−2−11234567−1.5−1−0.50.511.5xy
(0.5, 0.48)P0.88gradient of tangent
x is in radians. The derivative is dy/dx = cos x, so at x = 0.5 the tangent's gradient is 0.88: the curve is going up. The grey dashed curve plots the gradient at every x: it is the graph of y = cos x, and it crosses zero where the tangent is flat.
ddxsin⁡x=cos⁡xddxcos⁡x=−sin⁡x\begin{aligned} \frac{d}{dx}\sin x &= \cos x \\ \frac{d}{dx}\cos x &= -\sin x \end{aligned}
sin xcos x−sin x−cos xd/dx
The cycleEach differentiation moves one step round: sin → cos → −sin → −cos → sin

The chain rule

For a function inside another function, such as (3x+1)5(3x + 1)^5 or sin⁡(4x)\sin(4x), differentiate the outside (leaving the inside alone), then multiply by the derivative of the inside:

dydx=dydu×dudx\frac{dy}{dx} = \frac{dy}{du} \times \frac{du}{dx}

where uu is the inside.

y = (3x + 1)5
dy/dx = 5(3x + 1)4 × 3
differentiate the outside, leaving the inside alone, then × the inside’s derivative
The chain ruleOutside first, then times the derivative of the inside

The product rule

For a product of two functions, y=uvy = uv:

dydx=u′v+uv′\frac{dy}{dx} = u'v + uv'

Differentiate one factor at a time, keeping the other as it is, and add. The picture shows why: when uu and vv both grow a little, the area uvuv grows by two strips.

uvuvδuδvv δuu δv
The product ruleThe rectangle's area uv grows by v·δu + u·δv

The quotient rule

For y=uvy = \dfrac uv:

dydx=vu′−uv′v2\frac{dy}{dx} = \frac{vu' - uv'}{v^2}

The order matters because of the minus sign: bottom times the top’s derivative first.

d/dx (u ⁄ v) = (v·u′ − u·v′) ⁄ v²
bottom × derivative of top, minus top × derivative of bottom, all over bottom squared
The quotient ruleBottom × top′ − top × bottom′, over bottom squared

Try it

Chain, product and quotient rulesPress Next
y = (5x − 2)³
dy/dx = (derivative of the outside) × (derivative of the inside)
The parts……
Differentiate each……
Multiply……
dy/dx = …
Chain rulerule0 of 4step
y = (5x − 2)³ needs the chain rule: dy/dx = (derivative of the outside) × (derivative of the inside). Press Next.

Step through each example. Watch how the two coloured parts move through the rule.

The second derivative

Differentiating dydx\frac{dy}{dx} again gives the second derivative, d2ydx2\dfrac{d^2y}{dx^2}. It is used in the next lesson to tell maximum points from minimum points.

Worked example · NECO 2023

NECO 2023 · Paper 2 · Q4 (b)

Differentiate (2x2+5)4(2x^2 + 5)^4 with respect to xx.

  1. Outside and inside

    The outside is (  )4(\;)^4 and the inside is u=2x2+5u = 2x^2 + 5.

    Think first. What is the inside of (2x² + 5)⁴?

  2. Differentiate each

    The outside gives 4(2x2+5)34(2x^2 + 5)^3; the inside gives 4x4x.

    Think first. Outside, then inside.

  3. Multiply

    dydx=16x(2x2+5)3\frac{dy}{dx} = 16x(2x^2 + 5)^3.

    Think first. 4(2x² + 5)³ × 4x = ?

Worked example · JAMB 1999

JAMB 1999 · UME · Q39

What is the derivative of t2sin⁡(3t−5)t^2\sin(3t - 5) with respect to tt?

  1. Which rule?

    It is a product: u=t2u = t^2 and v=sin⁡(3t−5)v = \sin(3t - 5).

    Think first. What is multiplied by what?

  2. Differentiate each

    u′=2tu' = 2t and v′=3cos⁡(3t−5)v' = 3\cos(3t - 5).

    Think first. v needs the chain rule.

  3. Product rule

    2tsin⁡(3t−5)+3t2cos⁡(3t−5)2t\sin(3t - 5) + 3t^2\cos(3t - 5): option C.

    Think first. u′v + uv′.

Your turn

NECO 2024 · Paper 2 · Q5 (a)

  1. (a)

    If y=(3x3+2x2+1)(3x2+4)y = (3x^3 + 2x^2 + 1)(3x^2 + 4), find dydx\dfrac{dy}{dx}.

Worked solution (try it first)

(a)

  1. Use the product rule: if y=uvy = uv, then dydx=vdudx+udvdx\frac{dy}{dx} = v\frac{du}{dx} + u\frac{dv}{dx}.
  2. Here u=3x3+2x2+1u = 3x^3 + 2x^2 + 1, so dudx=9x2+4x\frac{du}{dx} = 9x^2 + 4x, and v=3x2+4v = 3x^2 + 4, so dvdx=6x\frac{dv}{dx} = 6x.
  3. Then dydx=(9x2+4x)(3x2+4)+(3x3+2x2+1)(6x)\frac{dy}{dx} = (9x^2 + 4x)(3x^2 + 4) + (3x^3 + 2x^2 + 1)(6x).
  4. Expand: (27x4+12x3+36x2+16x)+(18x4+12x3+6x)(27x^4 + 12x^3 + 36x^2 + 16x) + (18x^4 + 12x^3 + 6x).
  5. Collect like terms: dydx=45x4+24x3+36x2+22x\frac{dy}{dx} = 45x^4 + 24x^3 + 36x^2 + 22x.

Report a problem with this question

More past questions like this