Skip to content
IB Diploma ProgrammeSL & HL

Continuity and differentiability

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Continuity and differentiability notes as a printable PDF.

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

Read the notes

The full Continuity and differentiability notes as text: skim, search, and jump between subtopics.

~9 min read

1. Continuity and differentiability, informally

A function is continuous at a point when its graph has no break there. You can draw through the point without lifting the pen.

A function is differentiable at a point when its graph is smooth there. The point has one tangent, so one gradient. A corner, a jump or a gap stops this.

A function can be continuous at a point but not differentiable there. The graph of y=|x| has no break at x=0, yet it has a corner there. In examinations you will not be asked to test for continuity and differentiability.

corner or jump at x=a ⇒ not differentiable at x=a

Worked example 13 marks

The function f is defined by f(x)=|x|. Explain why f is continuous at x=0 but not differentiable at x=0.

  1. 1

    the graph of f has no break at x=0, so it can be drawn without lifting the pen: f is continuous (R1) [1]

  2. 2

    for x<0 the gradient is -1 and for x>0 the gradient is +1 (A1) [1]

  3. 3

    the two gradients differ, so the graph has a corner and no single tangent at x=0: f is not differentiable (R1) [1]

2. Limits: convergence and divergence

A limit is the value a quantity approaches. Write lim_h→0 g(h)=L when g(h) gets closer and closer to L as h gets closer to 0. The value of g at h=0 does not matter, and g(0) need not exist.

A sequence or series converges when its values approach one finite value. It diverges when they do not, for example when they grow without bound.

Link to infinite geometric sequences: the sum to infinity is the limit of the partial sums. It converges only when |r|<1.

lim_h→0(h²+6h)/h=lim_h→0(h+6)=6

S_∞=u₁/(1-r), |r|<1

Worked example 16 marks

Determine whether each geometric series converges. For each series that converges, find its sum to infinity.

(a) 12+6+3+⋯ [4]

(b) 5+15+45+⋯ [2]

  1. 1

    (a) r=6/12=1/2 (A1) [1]

  2. 2

    |r|<1, so the series converges (R1) [1]

  3. 3

    S_∞=12/(1-1/2) (M1) [1]

  4. 4

    =24 (A1) [1]

  5. 5

    (b) r=15/5=3 (A1) [1]

  6. 6

    |r|>1, so the series diverges and has no sum to infinity (R1) [1]

3. The derivative from first principles

The derivative is defined as a limit. For a function f, the fraction in the definition is the gradient of the chord joining the points with x-coordinates x and x+h. As h gets smaller the chord approaches the tangent, and the limit is the gradient of the tangent.

The method has four steps. Write f(x+h). Subtract f(x). Divide by h and cancel the common factor h. Then let h→0.

The syllabus asks for this definition for polynomials only.

f'(x)=lim_h→0(f(x+h)-f(x))/h

(f(x+h)-f(x))/h=gradient of the chord from x to x+h

Worked example 13 marks

Use the definition of the derivative to find f'(x) for f(x)=5x-4.

  1. 1

    f(x+h)=5(x+h)-4=5x+5h-4 (M1) [1]

  2. 2

    (f(x+h)-f(x))/h=5h/h=5 (A1) [1]

  3. 3

    f'(x)=lim_h→05=5 (A1) [1]

4. First principles for a quadratic

For a quadratic, f(x+h) needs the expansion (x+h)²=x²+2xh+h². Writing x²+h² loses the middle term 2xh, and with it the answer.

After subtracting f(x), every term left has a factor of h. Simplify by dividing by h. The terms that still contain h vanish in the limit.

(x+h)²=x²+2xh+h²

lim_h→0((x+h)²-x²)/h=lim_h→0(2x+h)=2x

Worked example 15 marks

The function f is defined by f(x)=2x²+x. Use the definition of the derivative to show that f'(x)=4x+1.

  1. 1

    f(x+h)=2(x+h)²+(x+h) (M1) [1]

  2. 2

    =2x²+4xh+2h²+x+h (A1) [1]

  3. 3

    f(x+h)-f(x)=4xh+2h²+h (A1) [1]

  4. 4

    (f(x+h)-f(x))/h=4x+2h+1 (M1) [1]

  5. 5

    f'(x)=lim_h→0(4x+2h+1)=4x+1 (A1) (AG) [1]

5. First principles for a cubic

For a cubic, (x+h)³=x³+3x²h+3xh²+h³. The coefficients come from the binomial expansion. There are four terms, so check that all four are written.

After subtracting f(x), the x³ cancels. Every term that is left has a factor of h, so divide by h. The terms that still contain h vanish as h→0.

For a polynomial with several terms, expand each power of (x+h) and treat the terms one at a time.

(x+h)³=x³+3x²h+3xh²+h³

lim_h→0((x+h)³-x³)/h=lim_h→0(3x²+3xh+h²)=3x²

Worked example 15 marks

The function f is defined by f(x)=x³-4x. Use the definition of the derivative to find f'(x).

  1. 1

    f(x+h)=(x+h)³-4(x+h) (M1) [1]

  2. 2

    =x³+3x²h+3xh²+h³-4x-4h (A1) [1]

  3. 3

    f(x+h)-f(x)=3x²h+3xh²+h³-4h, then divide by h (M1) [1]

  4. 4

    (f(x+h)-f(x))/h=3x²+3xh+h²-4 (A1) [1]

  5. 5

    f'(x)=lim_h→0(3x²+3xh+h²-4)=3x²-4 (A1) [1]

6. Higher derivatives and their notation

Differentiate a function to get the first derivative. Differentiate that to get the second derivative. Repeat for the third, fourth and so on.

For y=f(x) the nth derivative is written f⁽ⁿ⁾(x) or dⁿy/dxⁿ. So f''(x)=f⁽²⁾(x)=d²y/dx².

The bracket in f⁽ⁿ⁾ matters. f⁽³⁾(x) is the third derivative, not f(x) cubed. Likewise d²y/dx² is the derivative of dy/dx, not its square.

f⁽ⁿ⁾(x)=dⁿy/dxⁿ

d²y/dx²=d/dx(dy/dx)

Worked example 14 marks

The function f is defined by f(x)=2x⁴-x³+7x. Find f'(x), f''(x) and f⁽³⁾(x).

  1. 1

    differentiate each term using d/dxxⁿ=nxⁿ⁻¹ (M1) [1]

  2. 2

    f'(x)=8x³-3x²+7 (A1) [1]

  3. 3

    f''(x)=24x²-6x (A1) [1]

  4. 4

    f⁽³⁾(x)=48x-6 (A1) [1]

7. Higher derivatives and proof by induction

A pattern in the nth derivative can be confirmed by proof by mathematical induction. Prove the statement for n=1, assume true for n=k, then show it is true for n=k+1.

The key move is to write the (k+1)th derivative as the kth derivative of the first derivative. Differentiate once, then use the assumption on the result.

A constant factor comes outside the derivative, so (k+1) can be moved out before the assumption is used.

(d^(k+1)y)/(dx^(k+1))=(d^(k))/(dx^(k))(dy/dx)

(d^(k))/(dx^(k))(c g(x))=c (d^(k))/(dx^(k))g(x)

Worked example 15 marks

Prove by mathematical induction that dⁿ/dxⁿ(xⁿ)=n! for n∈Z⁺.

  1. 1

    for n=1: d/dx(x)=1=1!, so true for n=1 (A1) [1]

  2. 2

    assume true for n=k: (d^(k))/(dx^(k))(x^(k))=k! (M1) [1]

  3. 3

    for n=k+1: (d^(k+1))/(dx^(k+1))(x^(k+1))=(d^(k))/(dx^(k))((k+1)x^(k)) (M1) [1]

  4. 4

    =(k+1)× k!=(k+1)! (A1) [1]

  5. 5

    true for n=1, and if true for n=k then true for n=k+1, so true for all n∈Z⁺ (R1) [1]

Recap

  • Continuous means no break in the graph. Differentiable means smooth, with one tangent. A corner or a jump is not differentiable.
  • A series or sequence converges to a finite value or diverges. A geometric series converges when |r|<1.
  • f'(x)=lim_h→0(f(x+h)-f(x))/h is the gradient of the tangent, found from chords. It is used for polynomials only.
  • Write f(x+h), subtract f(x), divide by h, cancel h, then let h→0.
  • Expand (x+h)² and (x+h)³ in full, with every term.
  • f⁽ⁿ⁾(x) and dⁿy/dxⁿ both mean the nth derivative.
  • For an induction proof on a derivative, write (d^(k+1)y)/(dx^(k+1)) as (d^(k))/(dx^(k)) of the first derivative.

End-of-chapter exercise

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

  1. The graph of y=|x| is continuous and has a sharp corner at the origin. State whether y=|x| is differentiable at x=0.1 mark
    Answer
    1. No (A1).

    Trap: A graph with no break is continuous, but that is not enough. A corner has no single tangent, so it is not differentiable.

  2. Do not use a calculator. Find the value of lim_h→0(h²+5h)/h.2 marks
    Answer
    1. (h²+5h)/h=h+5 for h≠0 (M1).
    2. lim_h→0(h+5)=5 (A1).

    Trap: Putting h=0 first gives 0/0, which has no value. Cancel h first.

  3. Do not use a calculator. The function y is given by y=x⁵-2x³. Find d²y/dx².2 marks
    Answer
    1. dy/dx=5x⁴-6x² (A1).
    2. d²y/dx²=20x³-12x (A1).

    Trap: d²y/dx² means differentiate twice. It is not dy/dx squared.

  4. Do not use a calculator. A geometric series has first term 8 and common ratio -1/2. Determine whether the series converges. If it does, find its sum to infinity.3 marks
    Answer
    1. |-1/2|=1/2<1, so the series converges (R1).
    2. S_∞=8/(1-(-1/2)) (M1).
    3. =8/(3/2)=16/3 (A1).

    Trap: The ratio is negative, so 1-r=3/2, not 1/2. Writing 1-1/2 gives 16, which is wrong.

  5. Do not use a calculator. The function f is defined by f(x)=x⁴-6x²+7x. Find f⁽³⁾(2).4 marks
    Answer
    1. f'(x)=4x³-12x+7 (M1).
    2. f''(x)=12x²-12 (A1).
    3. f⁽³⁾(x)=24x (A1).
    4. f⁽³⁾(2)=48 (A1).

    Trap: Differentiate three times first, then substitute x=2. Substituting into f first gives f(2), a different quantity.

  6. Do not use a calculator. The function f is defined by f(x)=x⁴-4x³. Find f''(x) and solve f''(x)=0.4 marks
    Answer
    1. f'(x)=4x³-12x² (A1).
    2. f''(x)=12x²-24x=12x(x-2) (A1).
    3. 12x(x-2)=0 (M1).
    4. x=0 or x=2 (A1).

    Trap: Dividing both sides by x loses the root x=0. Factorise instead.

  7. Do not use a calculator. The function f is defined by f(x)=3x². Use the definition of the derivative to find f'(x).4 marks
    Answer
    1. f(x+h)=3(x+h)²=3x²+6xh+3h² (M1).
    2. f(x+h)-f(x)=6xh+3h² (A1).
    3. (f(x+h)-f(x))/h=6x+3h (M1).
    4. f'(x)=lim_h→0(6x+3h)=6x (A1).

    Trap: Writing (x+h)²=x²+h² drops 2xh. The numerator becomes 3h² and the derivative comes out as 0.

  8. The function f is defined by f(x)=x²-5x+2. Use the definition of the derivative to show that f'(x)=2x-5.5 marks
    Answer
    1. f(x+h)=(x+h)²-5(x+h)+2 (M1).
    2. =x²+2xh+h²-5x-5h+2 (A1).
    3. f(x+h)-f(x)=2xh+h²-5h (A1).
    4. (f(x+h)-f(x))/h=2x+h-5 (M1).
    5. f'(x)=lim_h→0(2x+h-5)=2x-5 (A1) (AG).

    Trap: The bracket in -5(x+h) gives -5x-5h. Forgetting -5h leaves 2x+h and the limit 2x.

  9. Do not use a calculator. The curve y=x⁴ passes through the points P(1,1) and Q(1+h,(1+h)⁴), where h≠0. (a) Show that the gradient of the chord PQ is h³+4h²+6h+4. [4] (b) Hence state the gradient of the tangent to the curve at P. [1] (c) Calculate the gradient of PQ when h=0.1. Comment on your answer with reference to part (b). [2]7 marks
    Answer
    1. (a)
    2. (1+h)⁴=1+4h+6h²+4h³+h⁴ (M1)(A1).
    3. gradient =((1+h)⁴-1)/((1+h)-1)=(4h+6h²+4h³+h⁴)/h (M1).
    4. =h³+4h²+6h+4, dividing by h since h≠0 (A1) (AG).
    5. (b)
    6. lim_h→0(h³+4h²+6h+4)=4 (A1).
    7. (c)
    8. 0.001+0.04+0.6+4=4.641 (A1).
    9. close to 4, and it gets closer to 4 as h→0: the chord gradient converges to the tangent gradient (R1).

    Trap: Writing (1+h)⁴=1+h⁴ drops the middle terms 4h+6h²+4h³, so the chord gradient becomes h³ and the tangent gradient 0.

  10. The function f is defined by f(x)=xe^(2x). (a) Find f'(x) and f''(x), giving each in the form (ax+b)e^(2x). [3] (b) Prove by mathematical induction that f⁽ⁿ⁾(x)=2ⁿ⁻¹(2x+n)e^(2x) for n∈Z⁺. [6]9 marks
    Answer
    1. (a)
    2. product rule: f'(x)=e^(2x)+2xe^(2x) (M1).
    3. f'(x)=(2x+1)e^(2x) (A1).
    4. f''(x)=2e^(2x)+2(2x+1)e^(2x)=(4x+4)e^(2x) (A1).
    5. (b)
    6. n=1: 2⁰(2x+1)e^(2x)=(2x+1)e^(2x)=f'(x), so true (A1).
    7. assume true for n=k: f^((k))(x)=2^(k-1)(2x+k)e^(2x) (M1).
    8. f^((k+1))(x)=d/dx(2^(k-1)(2x+k)e^(2x)), by the product rule (M1).
    9. =2^(k-1)(2e^(2x)+2(2x+k)e^(2x)) (A1).
    10. =2^(k)(2x+k+1)e^(2x)=2^((k+1)-1)(2x+(k+1))e^(2x) (A1).
    11. true for n=1, and if true for n=k then true for n=k+1, so true for all n∈Z⁺ (R1).

    Trap: Differentiating e^(2x) as e^(2x) loses the factor 2, so the power of 2 never grows and the n=k+1 form cannot be reached.

Say this, not that

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

Loses the markGets the mark
A function is differentiable if its graph has no gapsContinuous: no break. Differentiable: also smooth, with one tangent at the point
Put h=0 in (f(x+h)-f(x))/h straight away and get 0/0Simplify and cancel h first, then take the limit as h→0
(x+h)²=x²+h²(x+h)²=x²+2xh+h², a full expansion
d²y/dx²=(dy/dx)²d²y/dx² is the derivative of dy/dx

Frequently asked questions

What is the difference between a function being continuous and differentiable?
A function is continuous at a point when its graph has no break there, so you can draw through the point without lifting the pen. It is differentiable there when its graph is smooth, with one tangent. A corner, a jump or a gap stops it being differentiable. The graph of y=|x| is continuous at x=0 but not differentiable there.
How do I find the derivative of a function from first principles?
Write f(x+h), subtract f(x), divide by h and cancel the common factor h. Then let h→0. The result is the gradient of the tangent, found as the limit of chord gradients. The syllabus asks for this definition for polynomials only.
When does a geometric series converge to a sum to infinity?
A geometric series converges only when |r|<1, and then its sum to infinity is S_∞=u₁/(1-r). The sum to infinity is the limit of the partial sums. If |r|>1 the series diverges, so it has no sum to infinity.
What does f^(3)(x) mean, and how do I find it?
f⁽ⁿ⁾(x) is the nth derivative, the same as dⁿy/dxⁿ. So f⁽³⁾(x) is the third derivative, not f(x) cubed. For f(x)=2x⁴-x³+7x the first derivative is 8x³-3x²+7, and the third derivative is 48x-6.
How do I prove a formula for the nth derivative by induction?
Prove the statement for n=1, assume it is true for n=k, then show it is true for n=k+1. Write the (k+1)th derivative as the kth derivative of the first derivative, and move any constant factor outside before using the assumption. Then it is true for all n∈Z⁺, as the note's induction example shows.
Does d²y/dx² mean dy/dx squared?
No. d²y/dx² is the derivative of dy/dx, so you differentiate twice rather than square. A common error is to substitute into f before differentiating. Differentiate three times first, then substitute, because substituting first gives f(2), a different quantity.

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