Newton–Raphson and the Secant Method Compared | OCR B (MEI) A Level Further Maths notes

Free preview: Newton–Raphson and the Secant Method Compared

Newton–Raphson: Sliding Down the Tangent

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).

You met Newton–Raphson in A Level Maths ("The Newton-Raphson Method and When Iterations Fail"). Let's rebuild it quickly, then compare it with a cousin that needs no derivative.

  • Bracketing methods (last note) are safe but slow: bisection needed 10 steps for 3 decimal places.
  • The methods here are open methods: they do not keep the root trapped, but they are usually far faster.
  • Running example again: f(x)=x3−2x−5, root α=2.0945515….

The idea: slide down the tangent

  • At the estimate xn, draw the tangent to y=f(x). It has gradient f′(xn).
  • Tangent: y−f(xn)=f′(xn)(x−xn). Put y=0 to see where it meets the x-axis:
  • −f(xn)=f′(xn)(x−xn), so x−xn=−f(xn)f′(xn).

xn+1=xn−f(xn)f′(xn)

💡 In plain words

  • Near the root, the curve is almost a straight line: its tangent.
  • So solve the easy straight-line problem instead, and repeat from the new point.

The recipe

  1. Write f(x) = 0 with everything on one side, and differentiate.
  2. Write the iteration formula and choose x0 near the root (ideally inside a sign-change interval).
  3. Iterate, writing each value down. Why: the working must be shown.
  4. Stop when two estimates agree to the accuracy needed, then confirm with a sign change.

👀 Watch me do it: Newton–Raphson for x3−2x−5=0 from x0=3

What I writeWhy I do it
f′(x)=3x2−2Differentiate.
x1=3−1625=2.36f(3)=27−6−5=16, f′(3)=25.
x2=2.1272Repeat from 2.36, using the full calculator value.
x3=2.0951Already within 0.0006 of the root.

The curve y = x cubed minus 2x minus 5 with tangents drawn at x0 = 3, x1 = 2.36 and x2 = 2.1272, each meeting the x-axis at the next estimate

Following the diagram

  • Start at x0=3: f(3)=16, f′(3)=25.
  • x1=3−1625=2.36. The pink tangent meets the axis there.
  • From 2.36 the green tangent gives x2=2.1272, then the orange one x3=2.0951.
  • Notice each jump is much smaller than the last: the estimates rush in towards the root.

✏️ YOUR TURN 1

Try this first:

Use Newton–Raphson with x0=3 to find 7, by solving x2−7=0. Do three steps.

Answer:

  • xn+1=xn−xn2−72xn.
  • x1=3−26=2.6667, x2=2.6458333, x3=2.6457513.
  • True 7=2.6457513…: three steps give 7 decimal places.

📝 Here's the trap

  • Right: xn+1=xn−f(xn)f′(xn). Wrong: a plus sign, or f′(xn)f(xn) upside down. Picture the tangent: you move by height ÷ gradient.
  • Right: radians for any trig function. Wrong: leaving the calculator in degrees, which gives the wrong derivative.

✏️ YOUR TURN 2

Try this first:

Use Newton–Raphson with x0=0.5 to solve xex−1=0. Write down the iteration formula and iterate until two estimates agree to 5 decimal places.

Answer:

  • Product rule: f′(x)=ex+xex=ex(x+1). So xn+1=xn−xnexn−1exn(xn+1).
  • f(0.5)=−0.175639, f′(0.5)=2.473082, so x1=0.5+0.071020=0.571020.
  • x2=0.567156, x3=0.567143, x4=0.567143.
  • The root is 0.56714 (5 d.p.). To prove it: f(0.567135)<0 and f(0.567145)>0.

The Secant Method: No Derivative Needed

  • Sometimes f′(x) is awkward, or f is only known from a table or a computer program.
  • The secant method replaces the tangent by the chord (secant line) through the last two estimates (xn−1,f(xn−1)) and (xn,f(xn)).
  • So replace f′(xn) in Newton–Raphson by the chord's gradient f(xn)−f(xn−1)xn−xn−1:

xn+1=xn−f(xn)xn−xn−1f(xn)−f(xn−1)=xn−1f(xn)−xnf(xn−1)f(xn)−f(xn−1)

  • The second form is the false position formula with a and b replaced by the last two estimates. Check by putting everything over one denominator: the xnf(xn) terms cancel.
  • The difference from false position: secant always uses the two most recent points, whether or not they bracket the root.
  • It needs two starting values.

👀 Watch me do it: the secant method for x3−2x−5 from x0=3, x1=2.5

What I writeWhy I do it
f(3)=16, f(2.5)=5.625Values at the two starting points.
x2=2.5−5.625×2.5−35.625−16First form of the formula.
=2.5−0.2711=2.2289The fraction is −0.5−10.375=0.04819.
Drop x0. Use x1=2.5, x2=2.2289.Always the newest two.
x3=2.1197Same formula with the new pair.

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

All notes in Numerical Solution of Equations

  1. Bisection and False Position: Trapping a Root in an Interval
  2. Newton–Raphson and the Secant Method Compared
  3. Fixed-Point Iteration: Rearrangements and the Convergence Condition
  4. Order of Convergence and Speeding Up Iterations by Relaxation

What's inside for this topic

4 teacher notes, 134 practice questions, 51 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp · Try one live lesson

Previous note: Bisection and False Position: Trapping a Root in an Interval Next note: Fixed-Point Iteration: Rearrangements and the Convergence Condition

All OCR B (MEI) A Level Further Maths topics · A Level Further Maths