IB Diploma Mathematics AA · Calculus
Limits and the derivative
1The idea of a limit
A limit describes the value a function approaches as $x$ gets closer and closer to a number, even if it never reaches it.
$$\lim_{x \to a} f(x) = L$$
means that $f(x)$ can be made as close to $L$ as you like by taking $x$ close enough to $a$.
$\frac{x^2 - 1}{x - 1}$ is undefined at $x = 1$, but for every other $x$ it equals $x + 1$. So $\lim_{x \to 1} \frac{x^2 - 1}{x - 1} = 2$.
Limits also describe what happens for very large $x$. For example, $\lim_{x \to \infty} \frac{1}{x} = 0$, which is why $y = 0$ is a horizontal asymptote.
Check yourself
What is the limit of (x² − 9)/(x − 3) as x → 3?
Show the answer
6
Factorise: (x − 3)(x + 3)/(x − 3) = x + 3, which approaches 6.
2Gradient of a curve
The gradient of a straight line is the same everywhere. The gradient of a curve changes from point to point.
The gradient of a curve at a point is the gradient of the tangent there: the straight line that just touches the curve at that point.
Chords approaching a tangent: the gradient tends to 2
To find it, draw a chord (secant) from $P$ to a nearby point $Q$ on the curve. As $Q$ slides towards $P$, the chord's gradient approaches the tangent's gradient.
Chords getting closer
- On $y = x^2$, take $P(1, 1)$.
- $Q(2, 4)$: chord gradient $\frac{4 - 1}{2 - 1} = 3$.
- $Q(1.1, 1.21)$: gradient $\frac{0.21}{0.1} = 2.1$.
- $Q(1.01, 1.0201)$: gradient $2.01$.
- The gradients approach $2$. The tangent at $P$ has gradient $2$.
Check yourself
What happens to the gradient of the chord PQ as Q moves towards P?
Show the answer
It approaches the gradient of the tangent at P
This limit defines the derivative.
3Differentiation from first principles
The derivative $f'(x)$, also written $\frac{dy}{dx}$, gives the gradient of $y = f(x)$ at any point:
$$f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}$$
This is the chord gradient between $x$ and $x + h$, as $h$ shrinks to zero.
First principles for x²
- $f(x) = x^2$, so $f(x + h) = x^2 + 2xh + h^2$.
- $\frac{f(x + h) - f(x)}{h} = \frac{2xh + h^2}{h} = 2x + h$.
- As $h \to 0$: $f'(x) = 2x$.
- At $x = 1$ the gradient is 2, which matches the chords above.
Check yourself
In the first principles formula, what does h represent?
Show the answer
A small horizontal step that shrinks to zero
It is the gap between x and the nearby point x + h.
4What the derivative tells you
The derivative is a rate of change: how fast $y$ changes as $x$ changes.
- $f'(x) > 0$: the function is increasing.
- $f'(x) < 0$: the function is decreasing.
- $f'(x) = 0$: the tangent is horizontal.
Units: if $s$ is distance in metres and $t$ is time in seconds, $\frac{ds}{dt}$ is in metres per second, a speed.
Increasing or decreasing?
- $f(x) = x^2 - 6x$, so $f'(x) = 2x - 6$.
- $f'(x) > 0$ when $x > 3$: increasing.
- $f'(x) < 0$ when $x < 3$: decreasing.
Check yourself
If f′(x) < 0 on an interval, the function is:
Show the answer
Decreasing there
A negative gradient slopes downward.
5Common mistakes with limits and derivatives
Students often lose marks on the same few points.
- Substituting too early: in first principles, simplify $\frac{f(x+h) - f(x)}{h}$ and cancel $h$ before letting $h \to 0$.
- Confusing $f(x)$ and $f'(x)$: $f(2)$ is a $y$-value on the curve; $f'(2)$ is the gradient there.
- Forgetting units: if $s$ is in metres and $t$ in seconds, $\frac{ds}{dt}$ is in metres per second.
- Writing $\frac{dy}{dx}$ as a fraction to cancel: it is a single symbol meaning "rate of change of $y$ with respect to $x$".
First principles for $f(x) = 3x^2$
- $f(x+h) = 3(x+h)^2 = 3x^2 + 6xh + 3h^2$.
- $f(x+h) - f(x) = 6xh + 3h^2$.
- Divide by $h$: $6x + 3h$.
- Let $h \to 0$: $f'(x) = 6x$.
Check yourself
If $f(x) = 3x^2$, what is $f'(2)$?
Show the answer
12
$f'(x) = 6x$, so $6 \times 2 = 12$.
6Rates of change in context
The derivative is a rate of change, so it appears whenever one quantity changes with another.
- Velocity is the rate of change of displacement with time.
- Marginal cost is the rate of change of total cost with quantity produced.
- The rate at which a population grows is $\frac{dP}{dt}$.
A positive derivative means the quantity is increasing; a negative one means it is decreasing; zero means it is momentarily not changing.
A tank filling
- The volume of water is $V = 2t^2 + 5t$ litres after $t$ minutes.
- $\frac{dV}{dt} = 4t + 5$.
- At $t = 3$: $\frac{dV}{dt} = 17$ litres per minute.
- Interpretation: three minutes in, the volume is increasing at 17 litres per minute.
Check yourself
If $V = 2t^2 + 5t$, what is $\frac{dV}{dt}$ at $t = 1$?
Show the answer
9 litres per minute
$4(1) + 5 = 9$.
Now test yourself
This lesson has a 8-question quiz and 5 exam-style questions with mark schemes in Impera. Free, with your progress saved.
Practise in Impera