AxoPrep

Mathematics: Analysis and Approaches

AHL 5.12 Continuity, differentiability and first principles

A function is continuous when its graph has no breaks and differentiable when it also has no corners; the derivative itself is defined as a limit, called first principles. Study guide, 1 practice questions with markschemes and 0 flashcards. Free.

Informal understanding of continuity · Differentiability at a point · Convergence and divergence of limits · Derivative from first principles · Higher-order derivatives

Practise all 1 questions

Study guide

Continuity: no lifting the pen

Informally, a function is continuous at \(x = a\) if you can draw its graph through that point without lifting your pen. More precisely, three things must hold:

  1. \(f(a)\) exists,
  2. \(\lim_{x \to a} f(x)\) exists (the values approach the same number from both sides),
  3. the two are equal.

Typical failures: a hole (the limit exists but \(f(a)\) is missing or different), a jump (left and right limits differ), or a vertical asymptote.

Limits that converge or diverge

A limit converges if it approaches a finite value and diverges otherwise. Examples: \(\lim_{x \to \infty} \frac{1}{x} = 0\) converges; \(\lim_{x \to 0^+} \frac{1}{x}\) grows without bound, so it diverges. One-sided limits (\(x \to a^-\) and \(x \to a^+\)) are useful for piecewise functions.

Differentiability: no corners

A function is differentiable at \(a\) if the tangent gradient exists there, meaning the chord gradients approach the same value from both sides. Differentiability needs continuity, but continuity is not enough: \(f(x) = |x|\) is continuous at 0 but has a sharp corner there (gradient \(-1\) on the left, \(+1\) on the right), so it is not differentiable at 0.

Worked example: piecewise function

\(f(x) = x^2\) for \(x \le 1\) and \(f(x) = ax + b\) for \(x > 1\). Find \(a\) and \(b\) so that \(f\) is differentiable everywhere.

First principles

The formal definition of the derivative is

\[f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}.\]

It is the chord gradient with the second point a distance \(h\) away, with \(h\) shrunk to zero.

Example. For \(f(x) = x^3\):
\[\frac{(x + h)^3 - x^3}{h} = \frac{3x^2h + 3xh^2 + h^3}{h} = 3x^2 + 3xh + h^2 \to 3x^2.\]

Example. For \(f(x) = \frac{1}{x}\):
\[\frac{\frac{1}{x + h} - \frac{1}{x}}{h} = \frac{x - (x + h)}{h\,x(x + h)} = \frac{-1}{x(x + h)} \to -\frac{1}{x^2}.\]

The essential step is always to simplify until the \(h\) in the denominator cancels before letting \(h \to 0\).

Higher derivatives

Differentiating again gives the second derivative \(f''(x)\) or \(\frac{d^2y}{dx^2}\), and so on: \(f^{(n)}(x)\) or \(\frac{d^n y}{dx^n}\). For \(y = x^4\), \(y' = 4x^3\), \(y'' = 12x^2\), \(y''' = 24x\), \(y^{(4)} = 24\), and every higher derivative is 0.

Common mistakes

Exam tips

Cheat sheet

Key definitions

Continuous function

A function whose limit at each point equals its value there, so its graph has no breaks.

Differentiable

Having a derivative at a point: the limit of chord gradients exists and is the same from both sides.

One-sided limit

A limit taken as \(x\) approaches \(a\) from only the left (\(a^-\)) or only the right (\(a^+\)).

Convergent limit

A limit that approaches a finite value.

Divergent limit

A limit that does not approach a finite value.

First principles

Finding a derivative directly from \(f'(x) = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h}\).

Second derivative

The derivative of the derivative, written \(f''(x)\) or \(\frac{d^2y}{dx^2}\).

Practice questions

HLPaper 1Challenging

Question 1

Let \(f(x) = \frac{1}{x}\), \(x \ne 0\).

(a) [5]

Use differentiation from first principles to show that \(f'(x) = -\frac{1}{x^2}\).

Markscheme
  • 1 Uses \(f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\) with \(\frac{1}{x + h} - \frac{1}{x}\)
  • 1 Common denominator: \(\frac{x - (x + h)}{x(x + h)} = \frac{-h}{x(x + h)}\)
  • 1 Divides by \(h\): \(\frac{-1}{x(x + h)}\)
  • 1 Takes limit as \(h \to 0\)
  • 1 Obtains \(-\frac{1}{x^2}\)