where $h$ is a small step along the $x$-axis
Estimate the gradient of $y = x^2$ at $x = 3$ using $h = 1$, $0.1$, $0.01$ and $0.001$.
For $y = x^2$ at $x = 3$, show algebraically that the chord gradient is always $6 + h$.
Estimate the gradient of $y = x^3$ at $x = 2$ using (a) the chord from $2$ to $2.1$, (b) the chord from $1.9$ to $2.1$. Compare with the exact value.
The displacement of a vehicle is recorded as follows. Estimate its velocity at $t = 3$ s.
| $t$ (s) | $0$ | $1$ | $2$ | $3$ | $4$ | $5$ |
|---|---|---|---|---|---|---|
| $s$ (m) | $0$ | $2$ | $8$ | $18$ | $32$ | $50$ |
Describe how to estimate the gradient of a curve at a point on a printed graph.
- Place a ruler so it just touches the curve at the point, matching its direction โ this is the tangent by eye.
- Draw a long tangent line, extending well past the point.
- Pick two points far apart on the tangent line, and read their coordinates.
- Compute $\dfrac{\text{change in } y}{\text{change in } x}$ using those two points.
Chord gradient
$\dfrac{\mathrm{f}(x+h)-\mathrm{f}(x)}{h}$.
To improve
Reduce $h$.
The limit
As $h \to 0$ you get the derivative exactly.
Error size
Roughly proportional to $h$.
Straddling chord
Centre it on the point โ much more accurate.
Why it is better
The errors either side partly cancel.
At an endpoint
Only a one-sided chord is available.
From a table
Use the readings either side.
From a graph
Draw a long tangent; use two distant points.
Check
Compare with the derivative when a formula exists.
Estimate the gradient of $y = x^2$ at $x = 4$ using the chord to $x = 4.1$.
โถ Show solution
$\dfrac{4.1^2 - 4^2}{0.1} = \dfrac{16.81 - 16}{0.1} = \dfrac{0.81}{0.1} = 8.1$
(The exact value is $8$.)
Repeat Question 1 with $h = 0.01$.
โถ Show solution
$\dfrac{4.01^2 - 16}{0.01} = \dfrac{0.0801}{0.01} = 8.01$
Closer to the exact value of $8$, as expected from the smaller $h$.
Estimate the gradient of $y = x^3$ at $x = 1$ using the chord to $x = 1.1$.
โถ Show solution
$\dfrac{1.1^3 - 1}{0.1} = \dfrac{1.331 - 1}{0.1} = 3.31$
(The exact value is $3x^2 = 3$.)
Repeat Question 3 using the straddling chord from $x = 0.9$ to $x = 1.1$.
โถ Show solution
$\dfrac{1.331 - 0.729}{0.2} = \dfrac{0.602}{0.2} = 3.01$
Error of $0.01$, against $0.31$ for the one-sided chord โ a substantial improvement.
State two ways to improve a chord estimate of a gradient.
โถ Show solution
1. Use a smaller interval $h$.
2. Use a chord that straddles the point (equally spaced either side) rather than a one-sided one.
Show algebraically that the chord gradient of $y = x^2$ at $x = 5$ is $10 + h$.
โถ Show solution
$\dfrac{(5+h)^2 - 25}{h} = \dfrac{25 + 10h + h^2 - 25}{h}$
$= \dfrac{10h + h^2}{h} = 10 + h$
As $h \to 0$ this tends to $10$, which matches $2x$ at $x = 5$.
Using the table below, estimate the rate of change at $t = 2$.
| $t$ | $0$ | $1$ | $2$ | $3$ | $4$ |
|---|---|---|---|---|---|
| $y$ | $5$ | $8$ | $17$ | $32$ | $53$ |
โถ Show solution
Use the straddling chord from $t=1$ to $t=3$:
$\dfrac{32 - 8}{3 - 1} = \dfrac{24}{2} = 12$
Using the same table, estimate the rate of change at $t = 0$, and say why this estimate is less reliable.
โถ Show solution
Only a one-sided chord is available, from $t=0$ to $t=1$:
$\dfrac{8-5}{1} = 3$
It is less reliable because there is no data to the left of $t=0$, so no straddling chord can be formed and the errors cannot cancel. The estimate is biased towards the behaviour just after $t=0$.
Explain why a very small $h$, such as $10^{-12}$, can actually give a worse answer on a calculator.
โถ Show solution
The chord gradient divides a tiny difference by a tiny number. With $h$ extremely small, $\mathrm{f}(x+h)$ and $\mathrm{f}(x)$ agree to almost all the digits the calculator holds.
Subtracting them leaves only the last few digits, most of which are rounding error, and dividing by $10^{-12}$ then magnifies that error enormously.
So there is a sweet spot: small enough that the chord is close to the tangent, but large enough that the subtraction retains meaningful digits.
Consider $\mathrm{f}(x) = x^2 + 3x$ at the point where $x = 2$.
(a) Estimate the gradient using $h = 0.5$, $h = 0.1$ and $h = 0.01$. (b) Show algebraically that the chord gradient is $7 + h$. (c) State the exact gradient and verify it by differentiation. (d) Use the straddling chord with $h = 0.5$ either side, and comment.
โถ Show solution
(a) $\mathrm{f}(2) = 4 + 6 = 10$.
$h = 0.5$: $\mathrm{f}(2.5) = 6.25 + 7.5 = 13.75$, so $\dfrac{13.75-10}{0.5} = 7.5$
$h = 0.1$: $\mathrm{f}(2.1) = 4.41 + 6.3 = 10.71$, so $\dfrac{0.71}{0.1} = 7.1$
$h = 0.01$: $\mathrm{f}(2.01) = 4.0401 + 6.03 = 10.0701$, so $\dfrac{0.0701}{0.01} = 7.01$
(b) $\dfrac{\mathrm{f}(2+h) - \mathrm{f}(2)}{h} = \dfrac{\left[(2+h)^2 + 3(2+h)\right] - 10}{h}$
$= \dfrac{4 + 4h + h^2 + 6 + 3h - 10}{h} = \dfrac{7h + h^2}{h} = 7 + h$ โ
This confirms every estimate in (a): $7.5$, $7.1$ and $7.01$ are exactly $7 + h$.
(c) As $h \to 0$, the chord gradient tends to $\mathbf{7}$.
By differentiation: $\mathrm{f}'(x) = 2x + 3$, and $\mathrm{f}'(2) = 4 + 3 = 7$ โ
(d) Straddling chord from $x = 1.5$ to $x = 2.5$:
$\mathrm{f}(1.5) = 2.25 + 4.5 = 6.75$ and $\mathrm{f}(2.5) = 13.75$
$\dfrac{13.75 - 6.75}{1} = 7$ โ exactly right.
Comment: the straddling chord is perfect here, and not by luck. For any quadratic, a chord centred on the point gives the tangent gradient exactly: the $h^2$ errors on the two sides are equal and opposite, so they cancel completely.
For a cubic or higher the cancellation is only partial, as Worked Example 3 showed โ but it is still a large improvement over a one-sided chord of the same width.