5.12 Continuity, differentiability and first principles

5.12 Continuity, differentiability and first principles

IB Maths: Analysis and Approaches HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Continuous: no break, f(x)→f(a)f(x)\to f(a). Differentiable: a single tangent exists.
  • Differentiable implies continuous, but not the other way round: ∣x∣|x| is continuous at 0 but not differentiable.
  • A limit converges to one finite value from both sides; otherwise it diverges. f(a)f(a) need not exist.
  • f′(x)=lim⁡h→0f(x+h)−f(x)hf'(x)=\lim_{h\to0}\dfrac{f(x+h)-f(x)}{h}: expand, subtract, divide by hh, then let h→0h\to0.
  • f(n)(x)f^{(n)}(x) and dnydxn\dfrac{\mathrm{d}^{n}y}{\mathrm{d}x^{n}} denote the nnth derivative.
−3−2−1123−1−0.50.511.522.53xy(0, 0)y = |x|
y = |x| has no break at the origin but a sharp corner.

Continuity and differentiability

A continuous graph has no break. A differentiable one has a single tangent at the point, with no corner.

A function is continuous at x=ax=a if f(a)f(a) is defined and f(x)→f(a)f(x)\to f(a) from both sides: you can draw through without lifting your pen. It is differentiable at x=ax=a if there is a single tangent there, so f′(a)f'(a) exists.

  • y=x2y=x^{2} is continuous and differentiable everywhere.
  • y=∣x∣y=|x| is continuous at 0 but has a corner: gradient −1-1 on the left, +1+1 on the right.
  • y=1xy=\frac{1}{x} is not continuous at 0.

You need only this informal understanding.

y=x2y=x^{2}

No break at x=0x=0:
Yes
Single tangent at x=0x=0:
Yes

y=∣x∣y=|x|

No break at x=0x=0:
Yes
Single tangent at x=0x=0:
No

y=1xy=\frac{1}{x}

No break at x=0x=0:
No
Single tangent at x=0x=0:
No

Is y=∣x−3∣y=|x-3| differentiable at x=3x=3?

Limits: converging and diverging

A limit exists when f(x)f(x) approaches one finite value from both sides. The value of f(a)f(a) itself does not matter.

lim⁡x→af(x)=L\lim_{x\to a}f(x)=L means f(x)f(x) gets as close as we like to the single finite value LL from both sides. The limit converges. For example

lim⁡x→3x2−9x−3=lim⁡x→3(x+3)=6.\lim_{x\to3}\frac{x^{2}-9}{x-3}=\lim_{x\to3}(x+3)=6.

A limit diverges if f(x)f(x) grows without bound (1(x−3)2→∞\frac{1}{(x-3)^{2}}\to\infty), approaches different values on each side, or keeps oscillating. As x→∞x\to\infty, 1x→0\frac{1}{x}\to0 converges but x2x^{2} diverges.

123456246810xyy = (x² − 9)/(x − 3)
The line y = x + 3 with a hole at (3, 6): the limit at x = 3 is 6.

Find lim⁡x→2x2−4x−2\lim_{x\to2}\dfrac{x^{2}-4}{x-2}.

Differentiating from first principles

Use the definition: expand f(x+h)f(x+h), subtract f(x)f(x), divide by hh, then let h→0h\to0.

The derivative is the limit of the chord gradient:

f′(x)=lim⁡h→0f(x+h)−f(x)h.f'(x)=\lim_{h\to0}\frac{f(x+h)-f(x)}{h}.

The fraction is the difference quotient. At IB this is used for first principles with polynomials only.

For f(x)=2x3−5xf(x)=2x^{3}-5x: f(x+h)−f(x)=6x2h+6xh2+2h3−5hf(x+h)-f(x)=6x^{2}h+6xh^{2}+2h^{3}-5h. Dividing by hh gives 6x2+6xh+2h2−56x^{2}+6xh+2h^{2}-5, so f′(x)=6x2−5f'(x)=6x^{2}-5.

  1. 1

    Expand

    write f(x+h)f(x+h) and expand fully

  2. 2

    Subtract

    subtract f(x)f(x); terms without hh cancel

  3. 3

    Divide

    divide every term by hh

  4. 4

    Take the limit

    let h→0h\to0

First principles method.

For f(x)=x2+3xf(x)=x^{2}+3x, f(x+h)−f(x)h=2x+h+3\dfrac{f(x+h)-f(x)}{h}=2x+h+3. What is f′(x)f'(x)?

Rates of change as limits

The difference quotient is an average rate over a short interval. Its limit as h→0h\to0 is the instantaneous rate.

The difference quotient is the average rate of change over [x,x+h][x,x+h]. The derivative is the instantaneous rate of change, the value it converges to as h→0h\to0.

For a ball with s(t)=20t−5t2s(t)=20t-5t^{2}, the average velocity over [2,2+h][2,2+h] is −5h-5h: −0.5-0.5 for h=0.1h=0.1 and 0.50.5 for h=−0.1h=-0.1. Both approach 0, so the velocity at t=2t=2 is 0: the ball is momentarily at rest at the top.

0.511.522.533.545101520xy(2, 20)s = 20t − 5t²
At t = 2 the tangent is horizontal, so the velocity is 0.

For s=20t−5t2s=20t-5t^{2}, the average velocity over [2,2+h][2,2+h] is −5h-5h. What is it when h=0.5h=0.5?

Higher derivatives

Differentiating repeatedly gives higher derivatives. The nnth derivative is f(n)(x)f^{(n)}(x).

The higher derivatives come from repeated differentiation. The nnth derivative is dnydxn\dfrac{\mathrm{d}^{n}y}{\mathrm{d}x^{n}} or f(n)(x)f^{(n)}(x), so f′′′(x)=f(3)(x)f'''(x)=f^{(3)}(x).

Some functions give a pattern. For f(x)=xe2xf(x)=xe^{2x}: f′=(2x+1)e2xf'=(2x+1)e^{2x}, f′′=(4x+4)e2xf''=(4x+4)e^{2x}, f′′′=(8x+12)e2xf'''=(8x+12)e^{2x}, suggesting f(n)(x)=2n−1(2x+n)e2xf^{(n)}(x)=2^{n-1}(2x+n)e^{2x}, which can be proved by induction.

For a polynomial of degree mm, f(m)f^{(m)} is constant and every higher derivative is 0.

  • f′(x)f'(x)(2x+1)e2x(2x+1)e^{2x}
  • f′′(x)f''(x)(4x+4)e2x(4x+4)e^{2x}
  • f′′′(x)f'''(x)(8x+12)e2x(8x+12)e^{2x}

If f(x)=x4f(x)=x^{4}, what is f(5)(x)f^{(5)}(x)?

Try an exam question

Use differentiation from first principles to show that the derivative of f(x)=x2+3xf(x)=x^{2}+3x is 2x+32x+3.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

For h≠0h \neq 0, find f(x+h)−f(x)h\dfrac{f(x+h) - f(x)}{h} in simplified form.

1 mark, marked against the mark scheme

Revision notes