A Level Further Mathematics · Chapter 29 · Further Pure Mathematics · Further Pure 1
When a differential equation or an integral has no exact answer, a short repeated calculation can approximate it as closely as you need.
Most differential equations met in science cannot be solved with a formula, and many integrals have no elementary antiderivative. This chapter builds step-by-step methods that replace calculus with arithmetic, and shows how to judge how accurate the answers are.
In this chapter · jump to a section
Start here
Your route through this chapter
By the end of this chapter you will be able to:
- approximate derivatives by forward and central differences
- use Euler's method to solve first-order differential equations step by step
- use the midpoint formula
- judge how the step size affects accuracy
- solve second-order differential equations with central differences
- use Simpson's rule to approximate integrals
- compare the accuracy of numerical methods
Time: three sessions, about 4½ hours, plus the practice ladder and the exam workshop.
You need first: first-order and second-order differential equations, the trapezium rule from A level Mathematics, Taylor series, and careful arithmetic with a calculator.
The big idea
The big idea
A derivative is a limit of gradients of chords. If we stop before the limit, using a small but finite step , we get an approximation. Turning this round, a differential equation tells us the gradient at each point. So we can step forward a small distance in the direction of that gradient, again and again.
The same idea approximates integrals. Instead of the exact area under a curve, we add areas of simple shapes. Simpson's rule fits parabolas to the curve, which is far more accurate than straight lines. In every method, smaller steps give better answers, at the cost of more arithmetic.
Why numerical methods matter
Weather forecasts, spacecraft trajectories and medical scanners all rely on numerical methods. The equations involved are far too complicated to solve exactly. Computers carry out millions of small steps instead. The methods in this chapter are the simplest members of that family. Understanding them shows how the large-scale methods work and why they can be trusted.
Approximate but controlled
A numerical answer is never exact, but that is not a weakness if the error is understood. A good method lets you shrink the error by doing more work. Engineers choose a step size that makes the error smaller than the precision they need. The skill is knowing how the error depends on the step, which this chapter develops.
Three families of method
This chapter covers three families of method. Difference formulae estimate derivatives from function values. Step-by-step methods solve differential equations by moving forward a little at a time. Integration rules estimate areas by fitting simple curves. All three rest on the same idea: replace a limit by a small but finite step.
Section 1
Numerical differentiation
Forward differences
The gradient of a chord from to approximates the derivative:
This is a forward difference. As shrinks, the chord approaches the tangent. The error is roughly proportional to .
Central differences
A better estimate uses points on both sides of :
This is a central difference. Its error is roughly proportional to , so it improves much faster as shrinks.
Common mistake: dividing the central difference by h instead of 2h. The two points and are a distance apart. Dividing by doubles the estimate. Always divide the change in by the change in .
Why the central difference wins
Taylor series explain the difference in accuracy. Expanding and , the terms cancel when they are subtracted. So the leading error term in the central difference involves , not . Halving the step cuts the error to about a quarter instead of a half.
Choosing the step size
A smaller step usually gives a better estimate. But on a calculator, very small steps cause trouble. The two function values become almost equal, and subtracting them loses significant figures. In practice, a moderate step such as or works well for exam questions. The question will normally state the step to use.
Backward differences
A backward difference uses the chord from x minus h to x instead. It has the same order of accuracy as the forward difference. The two errors have opposite signs for a smooth curve. Averaging the forward and backward differences gives exactly the central difference. This is another way to see why the central difference is more accurate.
Reading the error
For a forward difference, the error is roughly half the step times the second derivative. Where the curve bends sharply, the error is larger. Where it is nearly straight, the error is small. This helps you predict which estimates will be poor before you calculate them.
Worked example 1: a forward difference
Estimate for using a forward difference with .
| Working | Reason |
|---|---|
| , | Evaluate the function at both points |
| Divide the change in f by the step | |
| Error | Compare with the exact derivative of twelve |
Differences from tables
Sometimes a function is known only through a table of values, perhaps from an experiment. Differences still work, using neighbouring entries in the table. The step is then fixed by the spacing of the data. At the ends of the table, only a forward or backward difference is possible. In the middle, the central difference is the better choice.
When the derivative is unknown
Numerical differentiation is useful precisely when no formula for the derivative is available. Measured positions of a moving object give an estimate of its velocity this way. The same idea estimates rates of change in economics and biology. The accuracy depends on both the step and the precision of the measurements.
Worked example 2: a central difference
Estimate for using a central difference with .
| Working | Reason |
|---|---|
| , | Evaluate the function on both sides |
| Divide by twice the step | |
| Error , far smaller than before | The central difference is much more accurate |
Check yourself. Use a central difference with to estimate the derivative of at .
Show the answer
The estimate is to five decimal places. The exact derivative is 1, so the error is under 0.002, as expected for a central difference.
Section 2
Euler's method
The method
For with at , Euler's method steps forward using
Each step moves a distance along the -axis in the direction of the gradient at the start of the step.
Common mistake: forgetting to multiply the gradient by h. The change in over a step is approximately the gradient times the change in . Adding on its own treats the step as one whole unit long, and the values run away.
Euler's method for dy/dx = x + y
- Euler estimate
- 2.8828
- Accurate value 2e − 2
- 3.4366
- Error
- 0.5538
Figure 29.1 shows Euler's method for . More, shorter steps follow the curve more closely, while the wrong model overshoots wildly.
Derivation: Euler's method from a Taylor series
Expanding about ,
Since , dropping the terms in and beyond gives
The neglected term shows that each step makes an error of order .
Setting out the working
Euler's method is easiest to follow in a table. Use columns for , , , the gradient and the next value . Fill one row at a time. A clear table lets an examiner award method marks even if an arithmetic slip creeps in.
Why Euler's method drifts
Each step uses the gradient at the start of the step and ignores how it changes. If the curve is bending upwards, every step falls slightly below it. These small errors accumulate over many steps. That is why Euler's method usually drifts steadily away from the true solution, as Figure 29.1 shows.
Keeping enough figures
Carry more figures in your working than the question asks for in the answer. Rounding each value too early adds a fresh error at every step. Keep at least five or six significant figures, or store values in the calculator's memory. Round only the final answer, to the accuracy requested.
Euler's method as a tangent line
Each Euler step follows the tangent to the solution curve through the current point. Over a short distance the tangent is close to the curve. Over a longer distance it drifts away, because the curve bends. This picture explains both why the method works and why its accuracy depends on the step.
Leonhard Euler
Euler described this method in the eighteenth century, long before computers existed. He used it to show that differential equations have solutions even when no formula can be found. His simple idea is still the starting point for every modern method. Most of those methods are refinements of the same basic step.
Steps backwards
Euler's method can also step backwards, using a negative step. This estimates values to the left of the starting point. The formula is unchanged, with h replaced by a negative number. Questions occasionally ask for this, so watch the sign of h when the target lies to the left.
Worked example 3: three steps
Use Euler's method with to estimate , given and .
| Working | Reason |
|---|---|
| First step from the starting point | |
| Second step from the new point | |
| Third step reaches x equal to 0.3 |
Checking each step
After each step, ask whether the change in y has the right sign. If the gradient is negative, y should decrease, and vice versa. This quick check catches sign slips in the gradient. It also catches the error of adding the gradient without multiplying by the step.
Nonlinear equations
Euler's method works just as well for nonlinear equations, such as those with y squared. The arithmetic is a little heavier, but the steps are the same. This is a great strength of numerical methods. Analytical methods often fail for nonlinear equations, while numerical methods carry on regardless.
Equations with x and y
When the gradient depends on both x and y, update both at every step. A common slip is to use the new x with the old y, or the reverse. Writing each row of the table in full prevents this. The gradient must always use the x and y from the same row.
Worked example 4: a different equation
Use Euler's method with to estimate , given and .
| Working | Reason |
|---|---|
| First step from the given point | |
| Second step uses the gradient at 1.2 | |
| Two steps of 0.2 reach x equal to 1.4 |
Check yourself. With , and , use Euler's method to estimate .
Show the answer
The first step gives , and the second gives . The true value is , so such a large step is very inaccurate.
Section 3
The midpoint formula
A better step
Euler's method uses the gradient at the start of a step. A more accurate idea is to use the gradient in the middle. The midpoint formula jumps two steps at once, using the gradient at the middle point:
It needs two starting values, and .
Common mistake: using h instead of 2h in the midpoint formula. The formula jumps from to , a distance of . Multiplying the gradient by covers only half of that jump, so the values fall well short.
The midpoint formula against Euler's method
- Midpoint formula
- 3.3125
- Euler's method
- 2.8828
- Accurate value
- 3.4366
Figure 29.2 compares the midpoint formula with Euler's method. With the same step size the midpoint values stay far closer to the curve, while the wrong model falls short.
Derivation: the midpoint formula
Write the Taylor series for and :
Subtracting the second from the first, the even powers cancel:
Dropping the term and using gives .
Starting the method
The midpoint formula needs before it can begin. Questions either give or ask you to find it with one step of Euler's method. Read the question carefully to see which. After the first step, every later value uses the two values before it.
Why it is more accurate
The midpoint formula is the central difference turned into a step. Its error at each step is of order , compared with for Euler's method. Over a fixed interval, the total error is of order rather than . So halving the step roughly quarters the error, rather than halving it.
A word of caution
The midpoint formula can sometimes develop small oscillations over many steps. The values zigzag around the true solution. This is rarely a problem over the short ranges in exam questions. But it explains why professional software uses other methods for long calculations. For the exam, the formula is reliable and quick.
Laying out the midpoint method
Use a table with columns for r, the x value, the y value and the gradient. Fill in the first two rows from the starting values. Each later row uses the gradient from the row above and the y value from two rows above. Marking these links with arrows can help avoid mixing up the rows.
Comparing the two methods
Euler's method uses one previous value, while the midpoint formula uses two. That extra information is what makes the midpoint formula more accurate. Both need only one new gradient per step, so the work is almost the same. The difference in accuracy is therefore a free gain.
Worked example 5: the midpoint formula
For with and , use one Euler step and then the midpoint formula to estimate .
| Working | Reason |
|---|---|
| One Euler step gives the second starting value | |
| Midpoint formula from the two known values | |
| Apply the formula again one step on |
Why the start matters
The first Euler step is less accurate than the midpoint steps that follow. Its error carries forward through the whole calculation. So a more accurate starting value improves every later value. Questions sometimes supply a starting value found by a better method for exactly this reason.
Gradients that depend on y
When the gradient involves y, it must be evaluated with the latest known value of y. In the midpoint formula that means the middle value, not the oldest one. Writing the gradient as a separate column in the table makes this clear. It also makes the final step a simple addition.
Worked example 6: a given starting value
For with , and , use the midpoint formula to estimate .
| Working | Reason |
|---|---|
| Evaluate the gradient at the middle point | |
| Use the formula with twice the step | |
| Complete the arithmetic to finish |
Check yourself. Starting with one Euler step for , , , use the midpoint formula to estimate .
Show the answer
The Euler step gives . Then the midpoint formula gives , so .
Section 4
Step size and accuracy
How errors shrink
For Euler's method, the error at a fixed point is roughly proportional to . Halving the step roughly halves the error. For the midpoint formula, the error is roughly proportional to , so halving the step quarters it. This pattern is called the order of the method: Euler's is first order, the midpoint formula is second order.
Common mistake: rounding intermediate values too early. Each step builds on the one before. Rounding every value to two or three decimal places adds a new error at every step, which can swamp the method's own error. Keep extra figures until the final answer.
Estimating the error
You can estimate the error without knowing the exact answer. Solve the problem twice, with step and step . For Euler's method, the difference between the two answers roughly equals the error of the second answer. This gives a practical check on accuracy, used in real software to choose the step size automatically.
Percentage errors
When the exact answer is known, compare it with the estimate as a percentage. Divide the absolute error by the exact value and multiply by one hundred. Percentage errors let you compare accuracy fairly across problems of different sizes. Exam questions often ask for this, so set out the calculation clearly.
The cost of accuracy
Halving the step doubles the number of steps. For Euler's method this doubles the work to halve the error. For the midpoint formula, the same extra work quarters the error. So a higher-order method is usually the better investment. This trade-off between effort and accuracy runs through all of numerical analysis.
Order from experiments
You can find the order of a method by experiment. Halve the step several times and record the errors. If each error is about half the previous one, the method is first order. If each is about a quarter, it is second order. This is how numerical analysts test new methods.
Rounding error versus method error
Two kinds of error affect a numerical answer. Method error comes from the approximation itself and shrinks as the step shrinks. Rounding error comes from the arithmetic and grows as the number of steps increases. For hand calculations the method error dominates, so smaller steps help.
Predicting the work needed
Suppose an answer must be correct to three decimal places. Knowing the order of the method tells you roughly how small the step must be. For a first-order method, each extra correct decimal place needs about ten times as many steps. A second-order method needs only about three times as many.
Worked example 7: halving the step
For , , the true value of is . Compare the errors of Euler's method with and .
| Working | Reason |
|---|---|
| : , error | The estimate from worked example 3 |
| : , error | Six steps of the same method |
| Ratio | Halving h roughly halves the error |
Reporting accuracy
When stating a numerical answer, give a sensible number of figures. The accuracy of the method limits how many figures are meaningful. Quoting eight decimal places from Euler's method with a large step is misleading. A short comment on the likely error shows good judgement and often earns a mark.
Improving an estimate
If the order of a method is known, two estimates with different steps can be combined. The combination cancels most of the error. For a first-order method, twice the finer estimate minus the coarser one is usually much better than either. This idea, called extrapolation, appears in exam question 8.
Which method should you use?
In an exam, the question normally names the method, so follow it exactly. Outside exams, choose by accuracy and effort. The midpoint formula gives better accuracy than Euler's method for the same work. Professional software uses still more refined methods, built on the same ideas.
Worked example 8: comparing methods
Using the results of worked examples 3 and 5, compare the percentage errors of Euler's method and the midpoint formula at .
| Working | Reason |
|---|---|
| Euler: | Divide the error by the true value |
| Midpoint: | Repeat for the midpoint estimate 1.388 |
| The midpoint formula is about three times as accurate | Same step size and almost the same work |
Check yourself. For , , Euler's method gives with and with at . Compare the errors.
Show the answer
The true value is , so the errors are 0.468 and 0.277. Their ratio is about 1.7, roughly two, as expected when the step of a first-order method is halved.
Section 5
Second-order differential equations
Approximating the second derivative
Adding the Taylor series for and cancels the odd powers. This gives the central approximation
Together with , it turns a second-order differential equation into a formula for .
Common mistake: using +2y_r in the second difference. The numerator is , with a minus sign in the middle. With a plus sign the expression approximates four times the value of , not its second derivative.
Derivation: the second difference
Adding the series for and ,
Rearranging and dropping the term,
Building the recurrence
Substitute the approximations into the differential equation at . Collect the terms in on one side. Divide to make the subject. The result is a formula giving each new value from the two before it, just like the midpoint formula.
Starting values
A second-order equation needs two conditions, usually and . The first gives directly. The second gives approximately, using . Some questions give instead. Either way, the recurrence then produces every later value.
Equations without a first derivative
When the equation has no term, the recurrence is especially simple. For , it becomes . Many exam questions use this form, so it is worth recognising quickly. The method still works when appears, with a little more algebra.
Second-order equations in physics
Many physical laws are second-order equations, because acceleration is a second derivative. Springs, pendulums and orbits all lead to equations of this kind. Numerical methods let engineers simulate them even with friction or other complications. The central-difference method here is a simple version of methods used in real simulations.
Checking against a known solution
When a second-order equation has a known solution, use it to test the method. For y double dash equals minus y, the solutions are sines and cosines. Comparing the numerical values with these shows how accurate the method is. This builds confidence before applying it to equations with no known solution.
Stability of a method
A method is stable if small errors stay small as the steps go on. Some methods amplify errors until the values become meaningless. Stability depends on both the method and the step size. For the equations in this chapter, sensible step sizes keep every method stable over short ranges.
Worked example 9: simple harmonic motion
For with , and , find .
| Working | Reason |
|---|---|
| Replace the second derivative at x₁ | |
| Make the new value the subject | |
| Close to the exact value sin 0.2 |
Rearranging the recurrence
With a first-derivative term, the new value appears in two places. Collect both terms before dividing. It often helps to multiply through by h squared first to clear the fractions. Then make the new value the subject. Checking the coefficients with simple values, such as all y values equal to one, catches algebra slips.
Initial conditions for second-order equations
A second-order equation needs two pieces of information to fix a solution. Usually these are the value and the gradient at the start. The gradient gives the second starting value through a short Euler step. Without it, the recurrence cannot begin, so always look for both conditions.
Worked example 10: an equation with a first derivative
For with , and , find .
| Working | Reason |
|---|---|
| Use the gradient to start the method | |
| Substitute both approximations at x₁ | |
| , so | Collect the terms and solve |
Check yourself. Compute for , given , and .
Show the answer
The recurrence gives . The curve starts level at 1 and then bends downwards, just as requires for positive .
Section 6
Simpson's rule
The rule
Divide into an even number of strips of width , with ordinates . Simpson's rule is
The odd-numbered ordinates get weight 4, and the even-numbered interior ordinates get weight 2.
Common mistake: swapping the weights 4 and 2. The ordinates in the middle of each pair of strips, , get weight 4. The ordinates where pairs join, , get weight 2. Swapping them gives the wrong answer even for simple curves.
Simpson's rule for ∫₀² 1/(1 + x) dx
- Simpson's rule
- 1.1
- Trapezium rule
- 1.1167
- True value ln 3
- 1.0986
Figure 29.3 shows the parabolas Simpson's rule fits over each pair of strips. The estimate is much closer to the true value than the trapezium rule, while the wrong model's weights miss.
Where the weights come from
Over each pair of strips, Simpson's rule replaces the curve by the parabola through the three ordinates. The area under that parabola is . Adding these pieces, each interior ordinate where pairs meet is counted twice, giving the weight 2. The middle ordinates are counted once, with weight 4.
Laying out the calculation
Make a table of values and ordinates. Add a column for the weights, then a column for weight times ordinate. Add up the last column and multiply by . This layout keeps the weights in the right places and makes checking easy. It also earns method marks if an ordinate is miscalculated.
Simpson's rule and the trapezium rule
The trapezium rule joins ordinates with straight lines. Simpson's rule joins them with parabolas, which follow curved graphs far more closely. For smooth functions, Simpson's rule is usually much more accurate with the same number of ordinates. The extra effort is tiny, since only the weights change.
Ordinates and accuracy
Each ordinate should be calculated to more decimal places than the final answer needs. Errors in the ordinates are multiplied by the weights and added up. Storing values in the calculator avoids copying errors. A tidy table also makes it easy to spot an ordinate that looks out of line with its neighbours.
Why integrals need numerical methods
Many important integrals have no antiderivative in terms of standard functions. The integral of e to the minus x squared, central to statistics, is one example. Numerical rules are the only practical way to evaluate such integrals. Tables of the normal distribution were built using rules like Simpson's.
Simpson's rule by hand
For a hand calculation, four or six strips is usually plenty. More strips add accuracy but also add arithmetic and more chances for slips. Exam questions choose the number of strips to keep the work manageable. Follow the number given, and check that it is even before starting.
Worked example 11: a logarithm
Use Simpson's rule with four strips to estimate .
| Working | Reason |
|---|---|
| ; ordinates | Evaluate the function at five equally spaced points |
| Weight the ordinates one, four, two, four, one | |
| Multiply by h over three |
A famous application
Integrals like this one give accurate estimates of pi. Simpson's rule with only four strips already gives five correct decimal places. Mathematicians before computers used similar methods to compute pi to many places. The speed with which the estimate improves shows how powerful Simpson's rule is.
The number of ordinates
With n strips there are n plus one ordinates. For Simpson's rule n is even, so the number of ordinates is odd. Counting the ordinates is a quick check that the strips pair up correctly. Five ordinates mean four strips, which is the most common case in exams.
Worked example 12: estimating π
Use Simpson's rule with four strips to estimate , whose exact value is .
| Working | Reason |
|---|---|
| Ordinates | Evaluate at intervals of one quarter |
| Weight the ordinates one, four, two, four, one | |
| Very close to pi over four, 0.78540 |
Check yourself. Apply Simpson's rule with two strips to .
Show the answer
With the ordinates are 0, 1 and 8, so the estimate is . This is exactly the true value, because Simpson's rule is exact for cubics.
Section 7
Accuracy of Simpson's rule
Even numbers of strips
Simpson's rule needs the strips in pairs, so must be even. That means an odd number of ordinates. With an odd number of strips the last strip has no partner, and the weights pattern breaks down.
Common mistake: using an odd number of strips in Simpson's rule. Simpson's rule fits a parabola over each pair of strips, so the number of strips must be even. With an odd number, either change the number of strips or treat the last strip separately.
How accurate is Simpson's rule?
The error of Simpson's rule is roughly proportional to . Halving the step cuts the error to about one sixteenth. This is why a handful of strips often gives several correct decimal places. By comparison, the trapezium rule's error is roughly proportional to , so halving its step only quarters the error.
Exact for cubics
Simpson's rule fits parabolas, so it is exact for quadratics. Surprisingly, it is also exact for cubics. The cubic part of the error cancels by symmetry over each pair of strips. This bonus accuracy is one reason Simpson's rule is so popular.
Choosing a method
For integrals, Simpson's rule is usually the best choice at this level. For first-order differential equations, the midpoint formula beats Euler's method for the same work. For second-order equations, central differences give a natural recurrence. In every case, check the answer by halving the step and comparing.
Comparing the trapezium rule
The trapezium rule overestimates the area under a curve that bends upwards. It underestimates under a curve that bends downwards. Simpson's rule removes most of this bias by following the bend. Comparing the two estimates can also show which way the trapezium rule errs.
A sensible workflow
For an integral, start with Simpson's rule and a modest number of strips. Then double the number of strips and compare. If the two answers agree to the accuracy needed, stop. If not, double again. This simple routine gives reliable answers with little wasted effort.
When Simpson's rule struggles
Simpson's rule assumes the curve is smooth across each pair of strips. If the function has a corner or a sharp spike, the parabolas cannot follow it. The error then shrinks much more slowly. Placing strip boundaries at such points, or using more strips nearby, restores the accuracy.
Worked example 13: comparing rules
Estimate with four strips by the trapezium rule and by Simpson's rule, and compare with the exact value .
| Working | Reason |
|---|---|
| Trapezium: , error | Straight lines between the ordinates |
| Simpson: , error | Parabolas through pairs of strips |
| Simpson's error is about two hundred times smaller | Same ordinates, different weights |
Why cubics are a bonus
Simpson's rule was designed to be exact for quadratics, since it fits parabolas. Exactness for cubics comes free from the symmetry of each pair of strips. This is why its error shrinks so quickly as the step decreases. The leading error comes from the fourth-degree part of the curve.
Worked example 14: exact for a cubic
Show that Simpson's rule with two strips gives the exact value of .
| Working | Reason |
|---|---|
| Ordinates with | Evaluate the cubic at 0, 1 and 2 |
| Apply Simpson's rule with two strips | |
| Exact: | The rule is exact for any cubic |
Check yourself. Estimate with Simpson's rule using two strips.
Show the answer
With the ordinates are 0, 1 and 0, so the estimate is . The exact value is 2, so even two strips give an error of under five per cent.
Reference
Results in this chapter
| Result | What it says | When to use it | In the formula booklet? |
|---|---|---|---|
| Forward difference | Quick derivative estimates | No, learn it | |
| Central difference | Accurate derivative estimates | No, learn it | |
| Euler's method | First-order equations | Yes | |
| The midpoint formula | First-order equations | Yes | |
| Second difference | Second-order equations | Yes | |
| Simpson's rule | Integrals, n even | Yes | |
| Error orders , , | Euler, midpoint, Simpson | Judging accuracy | No, learn it |
Reasoning
Proof workshop: Simpson's rule for one pair of strips
The claim
For any quadratic , . Since Simpson's rule fits a quadratic through three ordinates, this justifies the weights.
Strategy
Write a general quadratic as . Integrate it directly from to . Then evaluate the right-hand side using the three values of . Show the two expressions agree for every choice of , and .
Placing the middle ordinate at keeps the algebra short. A shift of the axis does not change any area, so the result holds for every pair of strips. The odd term integrates to zero over a symmetric interval, which simplifies things further.
The proof
Integrating directly,
On the other side, and . So
The two sides agree, which proves the claim.
Checking every step
The terms cancel on both sides: in the integral, and in the ordinates. The cubes give . Nothing depends on the particular values of , or .
A numerical check uses the check-yourself question on , after shifting it. Simpson's rule gave exactly 4 there. For the quadratic on , the rule gives , which is the exact value.
Adding a cubic term changes neither side, since its integral and its ordinates both cancel over a symmetric interval. That is why Simpson's rule is exact for cubics as well as quadratics.
Simpson's rule is therefore a natural improvement on the trapezium rule. Both use the same ordinates, but Simpson's rule chooses weights that make it exact for curves of higher degree.
Your turn
Show that the trapezium rule with two strips, , is not exact for on .
Show a model proof
The exact integral is . The trapezium rule gives , which is larger by . So the trapezium rule overestimates the area under this curve, which bends upwards.
Practice
Practice ladder
Rung 1: Recall and fluency
Q1. Estimate the derivative of at by a forward difference with .
Worked solution to Q1
Use the gradient of the chord from 0 to 0.1. The forward difference is . The exact derivative is , so the error is about 0.0017.
Q2. Apply one step of Euler's method with to , .
Worked solution to Q2
Evaluate the gradient at the starting point, then move a distance h along it. The gradient at the start is . So , an estimate of .
Q3. With Simpson's rule and two strips, estimate .
Worked solution to Q3
Two strips of width one need three ordinates, weighted one, four and one. With the ordinates are , and . So the estimate is , against the exact value .
Rung 2: Application
Q4. Using Euler's method with , estimate for , .
Worked solution to Q4
Each step adds h times the gradient at the start of that step. The first step gives . The second gives , which estimates .
Q5. For , , and , apply the midpoint formula once.
Worked solution to Q5
The midpoint formula jumps from the first value to the third using the gradient at the middle point. The formula gives . This estimates , and the exact value is .
Q6. Approximate by Simpson's rule with four strips.
Worked solution to Q6
The ordinates at intervals of 0.25 are 1, 1.03078, 1.11803, 1.25 and 1.41421. The weighted sum is , and multiplying by gives 1.14778.
Rung 3: Analysis
Q7. Taking , and , find for .
Worked solution to Q7
Replace the second derivative by the second difference at the middle point and rearrange. The recurrence is . Substituting gives .
Q8. For , , compare the errors at of Euler's method with 4 steps and with 8 steps.
Worked solution to Q8
With 4 steps the estimate is , and with 8 steps it is . The errors from are 0.277 and 0.153, a ratio of about 1.8, close to the factor of two expected for a first-order method.
Q9. Explain why Simpson's rule cannot be applied with five strips, and say what to do instead.
Worked solution to Q9
Simpson's rule fits a parabola over each pair of strips, so the number of strips must be even. With five strips, use four or six instead, or apply Simpson's rule to four strips and the trapezium rule to the last one.
Rung 4: Stretch
Q10. Derive the recurrence for , then compute , given , and .
Worked solution to Q10
Use the second difference for the second derivative and the central difference for the first. Substituting gives . Multiplying by 0.2 gives , so and .
Q11. Show that Simpson's rule with two strips is exact for .
Worked solution to Q11
The ordinates at 0, 1 and 2 are 0, 3 and 12, so Simpson's rule gives . The exact value is , so the rule is exact, as expected for a cubic.
Q12. For , , use the midpoint formula with to estimate , starting with one Euler step, and compare with worked example 5.
Worked solution to Q12
Starting with and applying the formula five times gives . The error is now about 0.0011, against 0.0117 with . Halving the step cut the error by a factor of about ten, comfortably more than the factor of four expected for a second-order method.
Exam practice
Exam technique and worked answer workshop
How these questions are marked
M1 marks go to a correct formula used with the right values: the step for Euler's method, for the midpoint formula, the second difference, and Simpson's weights. A1 marks go to correct numerical values, usually to a stated accuracy. B1 marks often go to a correct starting value or ordinate.
Show the substitution for every step, not just the results. Keep extra figures, and round only at the end. When asked to comment on accuracy, mention the step size and the order of the method.
Exam question 1 (5 marks · Paper 3 · about 6 minutes)
The function is given.
(a) Use a central difference with to estimate . (3)
(b) Find the percentage error in your estimate. (2)
Mark scheme for exam question 1
(a) M1
Correct ordinates and A1
A1
(b) Exact value B1
A1
Exam question 2 (6 marks · Paper 3 · about 8 minutes)
The differential equation has when .
(a) Use Euler's method with to estimate when . (4)
(b) Given that the exact solution is , comment on the accuracy of your answer. (2)
Mark scheme for exam question 2
(a) M1
A1
M1
A1
(b) Exact B1
Underestimate by about 4%, reduced by a smaller step A1
Exam question 3 (6 marks · Paper 3 · about 8 minutes)
Consider , with when .
(a) Use Euler's method with to find . (2)
(b) Use the midpoint formula to estimate at . (4)
Mark scheme for exam question 3
(a) M1
A1
(b) M1
A1
M1
A1
Exam question 4 (6 marks · Paper 3 · about 8 minutes)
A solution of satisfies and when .
(a) Show that, with step , . (3)
(b) Using and , find and . (3)
Mark scheme for exam question 4
(a) M1
Multiplies by M1
Correct rearrangement A1
(b) M1
A1
A1
Exam question 5 (6 marks · Paper 3 · about 8 minutes)
(a) Use Simpson's rule with four strips to estimate . (4)
(b) Explain why using eight strips would give a more accurate estimate. (2)
Mark scheme for exam question 5
(a) , ordinates B1
Correct weights M1
Uses M1
A1
(b) Smaller strips, so the parabolas follow the curve more closely B1
Error roughly proportional to , so much smaller B1
Exam question 6 (6 marks · Paper 3 · about 8 minutes)
The table gives values of a function : , , , , .
(a) Use Simpson's rule to estimate . (3)
(b) Use a central difference to estimate , and a forward difference to estimate . (3)
Mark scheme for exam question 6
(a) M1
Correct weights M1
A1
(b) M1
A1
B1
Exam question 7 (6 marks · Paper 3 · about 8 minutes)
(a) Prove that Simpson's rule is exact for any cubic over a single pair of strips . (4)
(b) Hence write down the exact value of the estimate given by Simpson's rule with two strips for . (2)
Mark scheme for exam question 7
(a) Integral of is M1
Correct integral A1
Simpson gives , the odd terms cancelling M1
The two agree A1
(b) Simpson's estimate equals the integral M1
A1
Exam question 8 (7 marks · Paper 3 · about 10 minutes)
Let satisfy , with when .
(a) Use Euler's method with to estimate when . (3)
(b) Repeat with . (2)
(c) Using your answers, estimate the error in the second answer and suggest an improved estimate. (2)
Mark scheme for exam question 8
(a) M1
Correct first step A1
A1
(b) Four steps of 0.05 M1
A1
(c) Error about M1
Improved estimate about A1
Annotated model answer: exam question 3
Euler's method gives . M1 A1. The midpoint formula then uses twice the step and the gradient at the middle point.
So . M1 A1. Then . M1 A1: the formula always jumps from two values back.
Annotated model answer: exam question 8
With : , then . M1 A1 A1.
With , four steps give , , and . M1 A1. For a first-order method the error roughly halves with the step, so the error in the second answer is about the difference, 0.0041. M1. The estimates are falling as the step shrinks, so an improved estimate is . A1: this extrapolation uses the order of the method.
Connections
Synoptic link
First-order differential equations supplies exact solutions for judging the accuracy of Euler's method. Second-order differential equations does the same for the central-difference method. Taylor series, limits and Leibnitz's theorem explains where every formula here comes from and why the errors behave as they do.
The trapezium rule from A level Mathematics is the simpler cousin of Simpson's rule. In Further Mechanics, numerical methods can model motion with resistance that has no neat solution.
Synoptic question 1. Use the Taylor series of to explain why Euler's method for , , gives at , and why this tends to as tends to zero.
Answer to synoptic question 1
Each step multiplies by , so after steps . The true solution multiplies by over each step, so Euler drops the terms from on. With , as , a standard limit.
Recap
Recap and next step
- Forward differences approximate derivatives with error of order ; central differences, with error of order .
- Euler's method steps forward with .
- The midpoint formula is more accurate and needs two starting values.
- Halving the step halves Euler's error and quarters the midpoint error.
- Second-order equations use and .
- Simpson's rule weights the ordinates 1, 4, 2, …, 4, 1 and multiplies by , with an even number of strips.
- Simpson's rule is exact for cubics, and its error is of order .
Next chapter: Inequalities, where algebraic and graphical methods solve inequalities involving rational and modulus functions.
For your exam board
This chapter covers Pearson Edexcel A Level Further Mathematics (9FM0) Further Pure Mathematics 1 section 6: numerical solution of first-order and second-order differential equations, including Euler's method and the midpoint formula, and Simpson's rule. It is assessed on Paper 3A, Further Pure Mathematics 1. Similar content appears in AQA (7367) and OCR (H245) further pure options.