Skip to content
IB Diploma ProgrammeSL & HL

Differentiation rules

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Differentiation rules notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Differentiation rules notes as text: skim, search, and jump between subtopics.

~11 min read

1. Derivatives of the standard functions

To differentiate a power of x, multiply by the power and reduce the power by one. This works for every rational power n, so write roots and reciprocals as powers first: √x = x^(1/2) and 1/x² = x⁻².

The derivatives of xⁿ, sin x, cos x, e^(x) and ln x are in the data booklet. Note the minus sign in the derivative of cos x.

The derivative of a sum is the sum of the derivatives, and a constant multiple stays in front. Differentiate each term on its own: the markscheme awards A1 for each correct term.

d/dx(xⁿ) = nxⁿ⁻¹

d/dx(sin x) = cos x

d/dx(cos x) = -sin x

d/dx(e^(x)) = e^(x)

d/dx(ln x) = 1/x

Worked example 15 marks

Let f(x) = 4x³ - 6√x + 2sin x - 5ln x, for x > 0. Find f'(x).

  1. 1

    rewrite 6√x as 6x^(1/2) (M1) [1]

  2. 2

    d/dx(4x³) = 12x² (A1) [1]

  3. 3

    d/dx(-6x^(1/2)) = -3x^(-1/2) (A1) [1]

  4. 4

    d/dx(2sinx) = 2cos x (A1) [1]

  5. 5

    f'(x) = 12x² - 3x^(-1/2) + 2cos x - 5/x (A1) [1]

2. The chain rule

A composite function is a function of a function, such as e^(x²+2) or sin(3x - 1). Name the inside u = g(x), differentiate the outside with respect to u, then multiply by the derivative of the inside.

The markscheme marks the two parts separately. For 15cos((π x)/50) it gives (M1) for recognition of the need to differentiate, A1 for -15sin((π x)/50) and A1 for the factor of π/50 from the inside.

A correct expression with additional terms or additional factors earns A1A0.

dy/dx = dy/du × du/dx

y = f(g(x)) ⇒ dy/dx = f'(g(x)) × g'(x)

Worked example 13 marks

Consider the function h(x) = 15cos((π x)/50) + 15, where 0 ≤ x ≤ 50. The tangent, T_k, to the curve y = h(x) is drawn at the point (k, h(k)). Find the gradient of T_k in terms of k.

  1. 1

    recognition of the need to differentiate (M1) [1]

  2. 2

    h'(x) = 15 × (-sin(π x)/50) × π/50: A1 for -15sin(π x)/50 and A1 for the factor of π/50 (A1A1) [2]

  3. 3

    gradient of T_k = h'(k) = -15π/50sin(π k)/50 = -3π/10sin(π k)/50

3. The product rule

When two functions of x are multiplied, call them u and v. Differentiate each in turn and add the two products. The derivative of a product is not the product of the derivatives.

The markscheme gives (M1) for an attempt to use either product rule or quotient rule, then A1 for each term. If u or v is itself a composite function, find its derivative with the chain rule first.

y = uv ⇒ dy/dx = udv/dx + vdu/dx

Worked example 14 marks

Let y = x²e^(3x). Find dy/dx, giving your answer in factorised form.

  1. 1

    attempt to use the product rule with u = x² and v = e^(3x) (M1) [1]

  2. 2

    du/dx = 2x and dv/dx = 3e^(3x) by the chain rule (A1) [1]

  3. 3

    dy/dx = x² × 3e^(3x) + e^(3x) × 2x (A1) [1]

  4. 4

    = xe^(3x)(3x + 2) (A1) [1]

4. The quotient rule

When one function of x is divided by another, let u be the numerator and v the denominator. The numerator of the answer is v times u', minus u times v'. The denominator is v².

The order matters because of the minus sign. If the denominator is missing or incorrect, the markscheme awards at most A1A0 for the numerator.

The markscheme accepts either the quotient rule or the product rule here. By the product rule, with 1/x written as x⁻¹, it awards A1 for each term of (e^(2x) + x)(-x⁻²) + x⁻¹(2e^(2x) + 1). A show that question needs every line, ending on the given expression (AG).

y = u/v ⇒ dy/dx = (vdu/dx - udv/dx)/v²

Worked example 14 marks

Consider the function h(x) = (e^(2x) + x)/x, for x > 0. Show that h'(x) = (e^(2x)(2x - 1))/x².

  1. 1

    attempt to use either product rule or quotient rule, with u = e^(2x) + x and v = x (M1) [1]

  2. 2

    h'(x) = (x(2e^(2x) + 1) - (e^(2x) + x))/x² (A1A1) [2]

  3. 3

    = (2xe^(2x) - e^(2x))/x² (A1) [1]

  4. 4

    = (e^(2x)(2x - 1))/x² (AG)

5. Choosing between the rules

Some functions can be differentiated in more than one way. A constant over a function, such as 300/v, can be done by the quotient rule or by writing 300v⁻¹ and using the chain rule. The markscheme gives full marks for either method.

With a constant numerator, the quotient rule carries a term v × 0. The chain rule on a negative power avoids it.

The method mark is for attempting to use the quotient rule or attempting to use the chain rule. Then A1 is for the derivative of the denominator (seen anywhere) and A1 for the whole derivative, before the printed answer (AG).

Worked example 13 marks

The magnitude, F Newtons, of the minimum force that Eleanor needs to apply to make the suitcase move horizontally when the handle makes an angle of θ radians is given by F(θ) = 300/(cosθ + √3sinθ), where 0 ≤ θ < π/2. Show that dF/dθ = (300(sinθ - √3cosθ))/((cosθ + √3sinθ)²).

  1. 1

    attempting to use the chain rule on F = 300(cosθ + √3sinθ)⁻¹ with u = cosθ + √3sinθ (M1) [1]

  2. 2

    du/dθ = -sinθ + √3cosθ (A1) [1]

  3. 3

    dF/dθ = 300 × (-1)(cosθ + √3sinθ)⁻² × (-sinθ + √3cosθ) (A1) [1]

  4. 4

    = (300(sinθ - √3cosθ))/((cosθ + √3sinθ)²) (AG)

Recap

  • d/dx(xⁿ) = nxⁿ⁻¹ for any rational n. Rewrite roots and reciprocals as powers first.
  • (sin x)' = cos x, (cos x)' = -sin x, (e^(x))' = e^(x), (ln x)' = 1/x. Differentiate a sum term by term.
  • Chain rule: differentiate the outside, then multiply by the derivative of the inside.
  • Product rule: uv' + vu'. Quotient rule: (vu' - uv')/v², with the minus sign and the v².
  • In a show that question, write every line and finish on the printed answer.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. Let f(x) = x⁻². State f'(x).1 mark
    Answer
    1. f'(x) = -2x⁻³ (A1)

    Trap: The power reduces by one: -2 - 1 = -3, not -1.

  2. Do not use a calculator. Let f(x) = 6√x + 4/x², for x > 0. Find f'(x).2 marks
    Answer
    1. f(x) = 6x^(1/2) + 4x⁻², so d/dx(6x^(1/2)) = 3x^(-1/2) (A1)
    2. f'(x) = 3x^(-1/2) - 8x⁻³ (A1)

    Trap: Rewrite the root and the reciprocal as powers before differentiating. Do not leave x² in a denominator.

  3. Do not use a calculator. Let f(x) = 3sin x - 2cos x + e^(x). Find the gradient of the graph of f at x = 0.3 marks
    Answer
    1. f'(x) = 3cos x + 2sin x + e^(x) (A1A1)
    2. f'(0) = 3(1) + 2(0) + 1 = 4 (A1)

    Trap: The derivative of -2cos x is +2sin x. The two minus signs combine to a plus.

  4. Do not use a calculator. Let y = e^(x² + 2). Determine the exact gradient of the curve at x = 1.3 marks
    Answer
    1. attempt to use the chain rule with u = x² + 2 (M1)
    2. dy/dx = 2xe^(x²+2) (A1)
    3. at x = 1 the gradient is 2e³ (A1)

    Trap: e^(x²+2) does not differentiate to itself. Multiply by the derivative of the inside, 2x.

  5. A drink cools. Its temperature, T °C, is modelled by T(t) = 20 + 65e^(-0.04t), where t is the time in minutes after it is poured. Calculate the rate of change of temperature when t = 10. Include the unit in your answer.3 marks
    Answer
    1. attempt to use the chain rule: dT/dt = 65 × (-0.04)e^(-0.04t) = -2.6e^(-0.04t) (M1)(A1)
    2. at t = 10: -2.6e^(-0.4) = -1.74 °C min⁻¹ (A1)

    Trap: Forgetting the factor -0.04 from the inside leaves -65e^(-0.04t), which is far too large. The rate is negative because the drink is cooling.

  6. Do not use a calculator. Let y = x³ln x, for x > 0. Find the exact gradient of the curve at x = e.4 marks
    Answer
    1. attempt to use the product rule with u = x³ and v = ln x (M1)
    2. dy/dx = x³ × 1/x + ln x × 3x² = x² + 3x²ln x (A1A1)
    3. at x = e, ln e = 1, so the gradient is e² + 3e² = 4e² (A1)

    Trap: Multiplying the two derivatives gives 3x² × 1/x = 3x. That is not the product rule.

  7. Do not use a calculator. Let y = (e^(x))/(x² + 1). Show that dy/dx = (e^(x)(x - 1)²)/((x² + 1)²).4 marks
    Answer
    1. attempt to use the quotient rule with u = e^(x) and v = x² + 1 (M1)
    2. dy/dx = ((x² + 1)e^(x) - e^(x)(2x))/((x² + 1)²) (A1A1)
    3. = (e^(x)(x² - 2x + 1))/((x² + 1)²) (A1)
    4. = (e^(x)(x - 1)²)/((x² + 1)²) (AG)

    Trap: The quotient rule numerator is vu' - uv'. Writing uv' - vu' reverses the sign and the printed answer is never reached.

  8. Do not use a calculator. Let f(x) = xsin 2x. Determine the exact value of f'(π/4).5 marks
    Answer
    1. attempt to use the product rule with u = x and v = sin 2x (M1)
    2. dv/dx = 2cos 2x by the chain rule (A1)
    3. f'(x) = 2xcos 2x + sin 2x (A1)
    4. f'(π/4) = 2 × π/4cosπ/2 + sinπ/2 (M1)
    5. = 0 + 1 = 1 (A1)

    Trap: Differentiating sin 2x as cos 2x loses the factor 2. The angle π/2 is in radians, so cosπ/2 = 0.

  9. Do not use a calculator. The height of a float on a wave is h metres at time t seconds, modelled by h(t) = e^(-0.5t)sin(π t), for t ≥ 0. (a) Find h'(t). (b) Determine the exact rate of change of the height when t = 2. Include the unit in your answer.6 marks
    Answer
    1. (a)
    2. attempt to use the product rule with u = e^(-0.5t) and v = sin(π t) (M1)
    3. du/dt = -0.5e^(-0.5t) and dv/dt = πcos(π t), each by the chain rule (A1A1)
    4. h'(t) = πe^(-0.5t)cos(π t) - 0.5e^(-0.5t)sin(π t) (A1)
    5. (b)
    6. h'(2) = πe⁻¹cos 2π - 0.5e⁻¹sin 2π = πe⁻¹(1) - 0 (M1)
    7. = π/e m s⁻¹ (A1)

    Trap: Both factors need the chain rule: sin(π t) gives the factor π and e^(-0.5t) the factor -0.5; the markscheme gives a separate A1 for an inside factor. Work in radians, so sin 2π = 0 and cos 2π = 1.

  10. The concentration, C mg l⁻¹, of a chemical in a reaction t minutes after it starts is modelled by C(t) = at/(e^(0.5t)), for t ≥ 0, where a is a positive constant. (a) Show that C'(t) = (a(2 - t))/(2e^(0.5t)). (b) At the start, the concentration is increasing at 6 mg l⁻¹ min⁻¹. Find the value of a. (c) Calculate the rate of change of the concentration when t = 4, and state whether the concentration is increasing or decreasing.9 marks
    Answer
    1. (a)
    2. attempt to use the quotient rule with u = at and v = e^(0.5t) (M1)
    3. dv/dt = 0.5e^(0.5t) (A1)
    4. C'(t) = (e^(0.5t) × a - at × 0.5e^(0.5t))/((e^(0.5t))²) (A1)
    5. = (ae^(0.5t)(1 - 0.5t))/(e^(t)) = (a(1 - 0.5t))/(e^(0.5t)) (A1)
    6. = (a(2 - t))/(2e^(0.5t)) (AG)
    7. (b)
    8. C'(0) = (a(2))/2e⁰ = a, so a = 6 (M1)(A1)
    9. (c)
    10. C'(4) = (6(2 - 4))/2e² = -6/e² (M1)
    11. = -0.812 mg l⁻¹ min⁻¹ (A1)
    12. C'(4) < 0, so the concentration is decreasing (R1)

    Trap: The denominator is v² = (e^(0.5t))² = e^(t), not e^(0.5t) or e^(0.25t²); a missing or incorrect denominator earns at most A1A0. In (b), e⁰ = 1, not 0.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
h'(x) = -15sin((π x)/50), with the inside factor left outh'(x) = -15π/50sin((π x)/50). The markscheme gives a separate A1 for the factor of π/50
dy/dx with an additional term, such as 4x³ - 4cos 4x + conly 4x³ - 4cos 4x: A1 for each correct term, and at most A1A0 if additional terms are seen
x(e^(2x) + 1) in the numerator of h'(x)x(2e^(2x) + 1), which earns its own A1. The 2 comes from the chain rule on e^(2x)
a quotient rule numerator with no denominator, or one that is not x²(x(2e^(2x)+1) - (e^(2x)+x))/x², with the denominator written. A denominator that is missing or incorrect earns at most A1A0

Frequently asked questions

What is the chain rule and when do I use it?
Use the chain rule for a function of a function, such as e^(x²+2) or sin(3x - 1). Name the inside u = g(x), differentiate the outside with respect to u, then multiply by the derivative of the inside. For y = e^(x²+2), dy/dx = 2xe^(x²+2), so at x = 1 the gradient is 2e³.
What is the product rule and when do I use it?
Use the product rule when two functions of x are multiplied. For y = uv, dy/dx = udv/dx + vdu/dx. The derivative of a product is not the product of the derivatives. For y = x³ln x, dy/dx = x² + 3x²ln x, so at x = e the gradient is 4e².
What is the quotient rule?
For y = u/v, dy/dx = (vdu/dx - udv/dx)/v². The numerator has a minus sign and the denominator is v². For h(x) = (e^(2x) + x)/x, the derivative simplifies to (e^(2x)(2x - 1))/x², and a show that question needs every line of working.
How do I differentiate a product of an exponential and a sine function?
Use the product rule with u = e^(-0.5t) and v = sin(π t). Both factors need the chain rule, giving -0.5e^(-0.5t) and πcos(π t). So h'(t) = π e^(-0.5t)cos(π t) - 0.5e^(-0.5t)sin(π t), and h'(2) = π/e m s⁻¹, working in radians.
What is the exact value of the derivative of x sin 2x at pi over 4?
Use the product rule with u = x and v = sin 2x, where dv/dx = 2cos 2x by the chain rule. So f'(x) = 2xcos 2x + sin 2x. At x = π/4, cosπ/2 = 0 and sinπ/2 = 1, so f'(π/4) = 1.
What is a common mistake when differentiating a function with an inside factor?
Students often forget the factor from the inside. Differentiating 65e^(-0.04t) without the factor -0.04 gives -65e^(-0.04t), which is far too large. Differentiating sin 2x as cos 2x loses the factor 2. With the factor, dT/dt = -2.6e^(-0.04t), and at t = 10 the rate is -1.74 °C min⁻¹.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters