Forward and Central Differences for Estimating Gradients | OCR B (MEI) A Level Further Maths notes
Free preview: Forward and Central Differences for Estimating Gradients
Estimating a Gradient from Values
Year 1 or Year 2: check your own specification for when your board teaches this. This is part of OCR B (MEI)'s Numerical Methods option (paper Y434).
A car's GPS records its position every second. How fast is it going at a given moment? There is no formula to differentiate, only a list of numbers. Let's start with what you know.
- In A Level Maths you met differentiation from first principles: the gradient is the limit of the gradient of a chord, .
- Numerical differentiation simply stops before the limit: pick a small step h and work out a chord gradient.
- Why bother? Often f is only known as a table of values (measurements, or a computer's output), so there is no formula to differentiate.
- The forward difference uses the chord from a to a + h.
- The central difference uses the chord from a โ h to a + h, which is centred on a. Notice the 2h: the two points are 2h apart.

What the picture shows
- Both pictures show near a = 1 with h = 0.1. The chord joins the points at a โ h = 0.9 and a + h = 1.1.
- The rise is .
- Wrong: dividing by h gives 1.0788, about twice the true gradient. The run is not h.
- Right: the two x-values are 2h = 0.2 apart, so the gradient is , close to .
๐ Watch me do it: estimate the gradient of sin x at x = 1 with h = 0.1 (radians)
| What I write | Why I do it |
|---|---|
| Three function values, to 6 d.p. | |
| Forward: | Rise over a run of h. |
| Central: | Rise over a run of 2h. |
| Exact: | Forward is out by 0.043; central by only 0.0009. |
โ๏ธ YOUR TURN 1
Try this first:
Estimate the gradient of at x = 1 using h = 0.1, with (a) the forward difference; (b) the central difference. Compare with the exact value.
Answer:
- (a) .
- (b) .
- Exact: , so . Errors 0.0909 and โ0.0101. Central is about 9 times better.
โ๏ธ YOUR TURN 2
Try this first:
Back to the GPS. A car's distance s metres at time t seconds is: t = 9, 10, 11 gives s = 79.4, 100.0, 123.4. Estimate the car's speed at t = 10 using (a) a forward difference, (b) a central difference, each with h = 1. Which do you trust more?
Answer:
- (a) m sโปยน.
- (b) m sโปยน. Remember the run is 2 seconds.
- Trust the central one: it looks both ways from t = 10, so the bending of the graph cancels. The forward one really measures the average speed between 10 and 11 s.
Why the Central Difference Wins

Following the diagram
- The black dashed line is the tangent at A on : its gradient is the exact we want.
- The pink forward chord AB, to B at a + h, only looks to the right of A. The curve bends, so the chord's gradient is quite different from the tangent's.
- The green central chord CB, from C at a โ h, is balanced either side of A. The bending on the left and on the right roughly cancel, so it is almost parallel to the tangent.
- Note that the central chord does not even pass through A, yet it is the better estimate.
Example: f(x) = sin x at a = 1
| h | forward | error | central | error |
|---|---|---|---|---|
| 0.1 | 0.497364 | โ0.0429 | 0.539402 | โ0.00090 |
| 0.05 | 0.519045 | โ0.0213 | 0.540077 | โ0.00023 |
| 0.025 | 0.529728 | โ0.0106 | 0.540246 | โ0.000056 |
- The exact value is .
- Look: halve h and the forward error halves, but the central error quarters.
Unlock the full note: start 7 days free.
Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.
Log in ยท Subscribe ยท Start free trial
What's inside for this topic
1 teacher note, 80 practice questions, 45 flashcards, 2 quizzes.
Get the full notes, every practice question, flashcards, quizzes and mock papers.
All OCR B (MEI) A Level Further Maths topics ยท A Level Further Maths