Practise › Questions › The Newton-Raphson method
The Newton-Raphson method questions
The Newton-Raphson method uses the tangent at xn to calculate xn+1 = xn − f(xn)/f'(xn). Near a simple root, with a suitable starting value and sufficiently smooth derivatives, convergence is usually quadratic. A step is undefined when f'(xn) = 0, and poor starting values can lead to another root or to divergence.
15 original questions · 57 marks · the newton-raphson method notes · Numerical methods
These are original InkMaths questions. Write a complete answer before opening the worked solution and marking guidance.
Write down the Newton-Raphson iteration formula for solving f(x) = 0.
Worked solution and marking guidance
xn+1 = xn − f(xn)/f′(xn). B1 for the formula, B1 for the tangent interpretation. Geometrically it slides down the tangent at the current point to where that tangent crosses the axis, then starts again from there. The minus sign is part of the formula, not an optional extra.The tangent to the curve y = f(x) at the point (xn, f(xn)) has equation y − f(xn) = f′(xn)(x − xn). Show that this tangent meets the x-axis at x = xn − f(xn)/f′(xn).
Worked solution and marking guidance
On the x-axis y = 0, so the equation of the tangent becomes −f(xn) = f′(xn)(x − xn). M1 for setting y = 0 in the equation of the tangent. Dividing by f′(xn) gives x − xn = −f(xn)/f′(xn), so x = xn − f(xn)/f′(xn), which is the printed result. A1 for the rearrangement. That crossing is what the method takes as the next estimate, so one Newton-Raphson step is one tangent drawn and followed to the axis, and the formula is a record of that construction rather than a rule to be memorised on its own. The division requires f′(xn) to be non-zero, which is the case a horizontal tangent excludes.f(x) = x2 − 5. Taking x0 = 2, apply the Newton-Raphson method once, and give x1 as an exact fraction.
Worked solution and marking guidance
f′(x) = 2x, so the iteration reads xn+1 = xn − (xn2 − 5)/(2xn). With x0 = 2: f(2) = −1 and f′(2) = 4, so x1 = 2 − (−1)/4 = 9/4. M1 for the substitution into the formula, A1 for 9/4. Two minus signs meet in that step, so the estimate moves up towards √5 = 2.2360… rather than down.State what one step of the Newton-Raphson method does geometrically, and state what happens to that step when f′(xn) is small but not zero.
Worked solution and marking guidance
The step takes the tangent to y = f(x) at the point (xn, f(xn)) and reads xn+1 off where that tangent meets the x-axis. B1 for the tangent at the current point, B1 for the crossing of the x-axis. A small gradient makes a shallow tangent, which meets the axis a long way from xn, so the next iterate can land far from the root asked for and later steps may settle on a different root instead. B1 for the long step and what it can lead to. Where f′(xn) is exactly zero the tangent is horizontal and no next iterate exists at all.f(x) = x3 + x − 5. Using the Newton-Raphson method with x0 = 1.5, find x1 and x2, giving x2 to 5 decimal places.
Worked solution and marking guidance
f(1.5) = −0.125 and f′(1.5) = 3(1.5)2 + 1 = 7.75, so x1 = 1.5 + 0.125/7.75 = 1.516129…. Then f(x1) = 0.00117…, f′(x1) = 7.8959…, and x2 = 1.51598 to 5 decimal places. M1 for f and f′ at 1.5, A1 for the first iterate, M1 for the second iteration, A1 for 1.51598. The root is 1.5159802…, so x1 was right to 3 decimal places and x2 is right to 7. Near a simple root, and once the iterates are sufficiently close under the usual smoothness conditions, Newton-Raphson normally has quadratic convergence. Keep unrounded intermediate values: rounding x1 to 1.5161 before the second step corrupts the fifth decimal place of x2.f(x) = ln x + x − 3. Show that f(x) = 0 has a root in the interval (2, 3), and use the Newton-Raphson method with x0 = 2 to find x1 and x2, giving x2 to 4 decimal places.
Worked solution and marking guidance
f(2) = ln 2 − 1 = −0.30685 < 0 and f(3) = ln 3 = 1.09861 > 0, and f is continuous for x > 0, so a root of f(x) = 0 lies in (2, 3). B1 for the two values with the sign change and the continuity. f′(x) = 1/x + 1, so f′(2) = 1.5 and x1 = 2 + 0.30685/1.5 = 2.20457. Then f(x1) = −0.004900 and f′(x1) = 1.45360, so x2 = 2.2079 to 4 decimal places. M1 for f and f′ at x0 = 2, A1 for x1, A1 for 2.2079. The answer lies inside (2, 3), which is where the sign change put the root, so the iteration has converged to the root the first part located. Locating the root before iterating is what supplies the starting value here, and testing the ends of the rounding interval settles the last figure: f(2.20785) = −0.000131 and f(2.20795) = 0.000014.f(x) = x3 − 2x + 2. Find the iterates x1 and x2 given by the Newton-Raphson method from x0 = 0, and state what they show about the method from this starting value.
Worked solution and marking guidance
f′(x) = 3x2 − 2. At x0 = 0, f(0) = 2 and f′(0) = −2, so x1 = 0 − 2/(−2) = 1. At x1 = 1, f(1) = 1 and f′(1) = 1, so x2 = 1 − 1/1 = 0. M1 for both steps. The iterates repeat 0, 1, 0, 1, … without end, so the sequence never approaches the only root of f(x) = 0, which is at x = −1.769 to 3 decimal places: the method does not converge from x0 = 0. A1 for the repeating pair and that conclusion. Neither f′(0) nor f′(1) is zero, so both steps are defined and the arithmetic is correct throughout; a starting value can be unusable without any tangent being horizontal. f(−2) = −2 and f(−1) = 3, so a sign change locates the root in (−2, −1) and a start there reaches it.f(x) = ex − 3x. Given that f(x) = 0 has a root between x = 1.5 and x = 2, use the Newton-Raphson method with x0 = 1.5 to find x1 and x2, giving x2 to 5 decimal places.
Worked solution and marking guidance
f′(x) = ex − 3. At x0 = 1.5: f(1.5) = 4.4817 − 4.5 = −0.018311 and f′(1.5) = 1.481689, so x1 = 1.5 + 0.018311/1.481689 = 1.512358. Then f(x1) = 0.00034… and f′(x1) = 1.5374…, so x2 = 1.51213 to 5 decimal places. M1 for f and f′ at 1.5, A1 for x1, M1 for the second iteration, A1 for 1.51213. The value lies between 1.5 and 2, which is where the root was located, so the iteration has converged to the one asked for. Keep x1 unrounded on the calculator: entering 1.5124 for the second step moves the fifth decimal place of x2.f(x) = x3 − 6x2 + 9x − 1. Explain why no Newton-Raphson iterate can be found from x0 = 3, and find x1 from x0 = 3.2, giving your answer to 4 decimal places.
Worked solution and marking guidance
f′(x) = 3x2 − 12x + 9 = 3(x − 1)(x − 3), so f′(3) = 0, while f(3) = 27 − 54 + 27 − 1 = −1 is not zero. The tangent at x = 3 is horizontal, so it never meets the x-axis and the formula divides by zero: no first iterate exists there. B1 for f′(3) = 0, B1 for f(3) not being zero and the tangent being horizontal. From x0 = 3.2: f(3.2) = −0.872 and f′(3.2) = 1.32, so x1 = 3.2 + 0.872/1.32 = 3.8606 to 4 decimal places. M1 for the iteration, A1 for 3.8606. The derivative is still small at 3.2, so the step is long: it travels 0.66 and passes the root at 3.5321, which later steps come back to.A parachutist falls from rest, and the distance fallen after t seconds is modelled by s = 50t + 250(e−0.2t − 1) metres. Given that the time taken to fall 100 m lies between 5 and 6 seconds, use the Newton-Raphson method with t0 = 5 to find that time to 3 significant figures.
Worked solution and marking guidance
Setting s = 100 gives 50t + 250(e−0.2t − 1) = 100, and t cannot be made the subject because it appears both inside and outside the exponential. So take f(t) = 50t + 250(e−0.2t − 1) − 100 and find a root. B1 for forming the equation. f′(t) = 50 − 50e−0.2t, and at t0 = 5: f(5) = −8.0301 and f′(5) = 31.6060, so t1 = 5 + 8.0301/31.6060 = 5.25407, and a second step gives t2 = 5.25048. M1 for f′, M1 for the iteration, A1 for 5.25 seconds. The value lies between 5 and 6, as the question said it would. Give the time in seconds to the 3 significant figures asked for: 5.25048 s claims a precision the model does not carry.f(x) = x3 − 2x − 5, and the root of f(x) = 0 is α = 2.094551 correct to 6 decimal places. Using the Newton-Raphson method with x0 = 2, find x1 and x2, giving x2 to 6 decimal places, and compare how close x0, x1 and x2 each lie to α.
Worked solution and marking guidance
f′(x) = 3x2 − 2. At x0 = 2: f(2) = −1 and f′(2) = 10, so x1 = 2 + 1/10 = 2.1 exactly. Then f(2.1) = 0.061 and f′(2.1) = 11.23, so x2 = 2.1 − 0.061/11.23 = 2.094568 to 6 decimal places. M1 for f and f′ at 2, A1 for x1 = 2.1, M1 for the second iteration, A1 for 2.094568. The distances from α are 0.0946, 0.0054 and 0.0000166, each one of the order of the square of the one before it, which is the quadratic convergence expected near a simple root from a suitable starting value. B1 for the comparison. Two steps have bought about four more correct decimal places than the starting value had.f(x) = x3 − 3x + 1. Explain why the Newton-Raphson method cannot be applied with x0 = 1. Taking x0 = 0.9 instead, find x1 and comment on the result, given that f(x) = 0 has roots near −1.879, 0.347 and 1.532.
Worked solution and marking guidance
f′(x) = 3x2 − 3, so f′(1) = 0 while f(1) = −1. The Newton-Raphson formula would divide by zero, so no next iterate is defined from x0 = 1. The tangent there is horizontal. For x0 = 0.9, f(0.9) = −0.971 and f′(0.9) = −0.57, giving x1 = 0.9 − (−0.971)/(−0.57) = −0.8035… ≈ −0.804. The small derivative produces a large step. Continuing from this value converges to the root near 1.532, not the nearer root near 0.347. B1 for f′(1) = 0, B1 for the division being undefined, B1 for the horizontal tangent, M1 for the iteration from 0.9, A1 for the value of x1, B1 for the comment on the root reached. A sign-change interval or sketch should be used to identify the intended root before iteration.f(x) = ln x, so that f(x) = 0 has the single root x = 1. Show that the Newton-Raphson method gives xn+1 = xn(1 − ln xn), and explain why the method breaks down when it is started at x0 = 3.
Worked solution and marking guidance
f′(x) = 1/x, so xn+1 = xn − ln xn/(1/xn) = xn − xn ln xn = xn(1 − ln xn). M1 for the substitution into the formula, A1 for the printed form. From x0 = 3: x1 = 3(1 − ln 3) = 3(1 − 1.09861) = −0.29584. ln x is defined only for x > 0, so f(x1) cannot be evaluated and no x2 exists: the method breaks down at the second step rather than the first. B1 for the negative first iterate with that reason. The gradient at x = 3 is only 1/3, so the tangent there is shallow and meets the axis 3.29584 to the left of x0, on the far side of the vertical asymptote of y = ln x at x = 0. From x0 = 1.5 the same iteration gives 0.89180, 0.99392 and 0.99998, converging to the root at x = 1, so what fails here is the starting value and not the method.Show that applying the Newton-Raphson method to f(x) = x2 − a, for a constant a > 0, gives the iteration xn+1 = ½(xn + a/xn). Taking a = 10 and x0 = 3, find x1, x2 and x3, giving x3 to 6 decimal places, and show that xn+1 − √a = (xn − √a)2/(2xn).
Worked solution and marking guidance
With f(x) = x2 − a and f′(x) = 2x, the formula gives xn+1 = xn − (xn2 − a)/(2xn) = (xn2 + a)/(2xn), which is ½(xn + a/xn). M1 for the substitution, A1 for the printed form. With a = 10 from x0 = 3: x1 = ½(3 + 10/3) = 3.166667, x2 = 3.162281 and x3 = 3.162278 to 6 decimal places, against √10 = 3.1622776…. M1 for a correct iterate, A1 for x3. For the identity, subtract √a from the iteration and put the result over the common denominator: xn+1 − √a = (xn2 + a − 2xn√a)/(2xn), and the numerator is the square (xn − √a)2, which is the printed result. M1 for the common denominator, A1 for recognising the square. The right-hand side is positive for every positive xn, so every iterate after the first sits above √a, and the error at each step is the previous error squared and then divided by about 2√a.A spherical tank of radius 2 m holds liquid to a depth of h m, and the volume held is V = πh2(6 − h)/3 cubic metres for 0 ≤ h ≤ 4. Find the depth at which the tank holds 10 m3, to 3 significant figures, using the Newton-Raphson method from h0 = 1.5, and explain why the equation has two further roots the model cannot use.
Worked solution and marking guidance
Setting V = 10 gives πh2(6 − h)/3 = 10, so take f(h) = πh2(6 − h)/3 − 10 and find a root. B1 for forming the equation. Differentiating, f′(h) = π(12h − 3h2)/3 = π(4h − h2). M1 for f′. At h0 = 1.5: f(1.5) = 0.60288 and f′(1.5) = 11.7810, so h1 = 1.5 − 0.60288/11.7810 = 1.44883, and a second step gives h2 = 1.44846. M1 for the iteration, A1 for h1, A1 for the depth 1.45 m. The cubic has two more roots, near h = −1.155 and h = 5.707, and neither describes the tank: a depth is not negative, and it cannot exceed the diameter of 4 m. B1 for rejecting both, with a reason. Reading the model before iterating is what fixes the starting value: 1.5 sits inside 0 ≤ h ≤ 4 and the other roots are outside it.
All questions, worked solutions and marking guidance are original InkMaths material. They are not copied from awarding-body papers or mark schemes. The codes show how InkMaths allocates the stated total; an awarding body may credit a valid alternative method differently.
The same practice on paper: the printable workbook for this topic, questions and a worked answer book.
Practise the newton-raphson method one question at a time
In the player, mark your own response after viewing the worked solution. Your score sets when the question is offered again.