Topic 9 · Lesson 3 of 4
Newton–Raphson and the trapezium rule
The Newton–Raphson method
Simple iteration can be slow. Newton–Raphson is usually much faster, and the idea is to follow tangents. Start at . The tangent to at is a good straight-line copy of the curve nearby, and it is easy to find where a straight line crosses the axis. Take that crossing as the next estimate , and repeat, as the diagram shows.
The tangent at has gradient and passes through . It meets the -axis after a horizontal distance of (rise divided by gradient), so
This formula is in the formula booklet.
How to use Newton–Raphson
- Step 1: Write with everything on one side () and find .
- Step 2: Substitute into the formula to get ; repeat.
- Step 3: Stop when successive values agree to the required accuracy, and if asked, confirm with a sign change.
When Newton–Raphson fails. If is at or near a stationary point, is zero or tiny: the tangent is nearly flat, the formula divides by almost nothing, and the next estimate is thrown a long way off, possibly towards a different root. If exactly, the method cannot continue at all. A poor starting value can also lead to a different root from the one you wanted.
Worked example
Newton–Raphsonexam standard
Use Newton–Raphson with to find a root of to 4 decimal places.
Show solutionHide solution
- , .
- .
- .
- Two steps after the values agree to 4 decimal places: the root is 2.0946. Simple iteration takes more steps than this to reach the same accuracy.
Worked example
Newton–Raphson with trigonometrytop grade
The equation has a root between 1.5 and 2.5.
a) Use Newton–Raphson with to find and to 4 decimal places. b) Explain why would be a poor starting value.
Show solutionHide solution
- Rearrange to (radians), so .
- and , so .
- , , so .
- b) when , at . Near there the tangent is almost horizontal, so is huge and would be thrown far away from .
The trapezium rule
To estimate an integral you can't do exactly, split the area into vertical strips of equal width and treat each strip as a trapezium, with straight tops joining points on the curve. A trapezium with parallel sides and and width has area . Adding of them, every inside height is counted twice and the two ends once:
This is in the formula booklet. Note that strips need heights ("ordinates").
Over or under? Look at the shape, as in the diagram for . If the curve is convex (bending upwards), the straight tops lie above it and the rule gives an overestimate. If it is concave, it gives an underestimate. More strips give a better estimate.
Try it: change the number of strips and watch the trapezium rule close in on the exact value, and see why a convex curve gives an over-estimate.
Try it: simulation
Integration and area
Loading the simulation…
Worked example
Trapezium rule with boundstop grade
a) Use the trapezium rule with 4 strips to estimate . b) State, with a reason, whether this is an over- or underestimate. c) Use rectangles to find a lower bound, and so give an interval containing the true value.
Show solutionHide solution
- a) . Heights at : , , , , .
- Estimate: .
- b) is convex (its second derivative, , is positive), so the trapezia lie above the curve: an overestimate.
- c) The curve is increasing, so rectangles using the left height of each strip lie under the curve: .
- So . (The exact value is , inside the interval and close to the trapezium estimate.)
Numerical methods in context
In modelling, numerical methods answer questions that algebra can't. For example, if a population is modelled by and you need the time when , solve with Newton–Raphson, then check with a sign change. Always interpret the answer (a time in years, rounded sensibly) and remember that the model's error is usually much bigger than the numerical error.
Practise this topic
Both are part of Premium.