Secant Method Explained with Worked Examples

The secant method replaces the derivative in Newton's method by the slope of the line through the last two points: .

Write 2x or 2*x to multiply, ^ for powers, and ; between simultaneous equations. You can also type factor, expand, derivative of, integrate … from a to b, limit … as x->0 or 15% of 80.

Try an example

Before you start

This page is easier if you are comfortable with:

  • bisection
  • the gradient of a chord
  • solving f(x) = 0

What Secant method means

For with , : , , so . Next, , , , converging to . Each step uses only function values, which helps when the derivative is expensive or unavailable (derivatives from first principles give the slope idea).

The order of convergence is (the golden ratio, Binet's formula): faster than bisection (the bisection error bound) but slower than Newton's method (Newton's quadratic convergence) per step, though it needs only one new evaluation per step. The method can fail if the two points give the same function value (division by zero) and does not keep a bracket.

It is the root-finding analogue of linear interpolation (Lagrange interpolation) and a close relative of regula falsi. Compare also Newton–Raphson and fixed-point iteration.

What is it used for?

The secant method uses straight-line extrapolation through the last two points to find a root without derivatives.

How to use secant method

  1. Choose two starting values .
  2. Compute and .
  3. Apply the formula to get .
  4. Repeat, always using the two latest points, until the change is small.

Graph

f(x) = x² − 2 with the secant through (1, −1) and (2, 2) meeting zero at 4/3x2 = 4/30.811.21.41.61.822.2-1.5-1-0.500.511.522.5f(x) = x² − 2 with the secant through (1, −1) and (2, 2) meeting zero at 4/3xyf(x) = x² − 2secant lineGraph with x from 0.8 to 2.2 and y from -1.5 to 2.5. Shows the curve f(x) = x² − 2; the curve secant line; point x2 = 4/3 at (1.3333, 0).

The line crosses zero at 1.333, closer to the root 1.414 than either start.

Worked examples

These examples are worked by hand, step by step, so you can compare your own working.

Example 1: first step

Find for , , .

Worked example
Answer
1.33331.3333
  1. Formula

Example 2: second step

Find from , .

Worked example
Answer
1.41.4
  1. f(4/3)

Example 3: third step

Find from , .

Worked example
Answer
1.41461.4146
  1. f(1.4)

Special cases

A few situations come up again and again. Knowing them saves time and helps you spot answers that cannot be right.

x₂ for x² − 2

x₀ = 1, x₁ = 2: x₂ = 2 − 2(2 − 1)/(2 − (−1)) = 4/3

Use the chord through (1, −1) and (2, 2).

x₃

≈ 1.4

Next iterate.

True root

√2 ≈ 1.4142

Converging.

Formula

xₙ₊₁ = xₙ − f(xₙ)(xₙ − xₙ₋₁)/(f(xₙ) − f(xₙ₋₁))

No derivative needed.

Word problems

The secant method replaces the derivative in Newton’s method by the gradient of the chord: xₙ₊₁ = xₙ − f(xₙ)(xₙ − xₙ₋₁)/(f(xₙ) − f(xₙ₋₁)). Its order of convergence is about 1.618.

First step

Solve x² − 2 = 0 with x₀ = 1, x₁ = 2. Find x₂.

  1. f(1)−1
  2. f(2)2
  3. x₂2 − 2 × 1 ÷ 3
  4. Check: 1.3333 ✓4/3.

Second step

Find x₃ from x₁ = 2, x₂ = 4/3.

  1. f(4/3)−2/9
  2. Substitutex₃ = 4/3 − f₂(x₂ − x₁)/(f₂ − f₁)
  3. Check: 1.4 ✓1.4.

Error Higher

Find the error of x₃ = 1.4 against √2 to 4 decimal places.

  1. √2 − 1.40.0142
  2. Check: ✓0.0142.

Another function Higher

f(x) = x − cos x, x₀ = 0, x₁ = 1. Find x₂ to 4 decimal places.

  1. f(0)−1
  2. f(1)0.4597
  3. x₂1 − 0.4597 × 1 ÷ 1.4597
  4. Check: ✓0.6851.

Common mistakes

Using the tangent

f′(xₙ) in the denominator ✗

a chord gradient ✓

Secant avoids derivatives.

Mixing the order of points

f(xₙ₋₁) − f(xₙ) ✗

f(xₙ) − f(xₙ₋₁) ✓

Keep the same order top and bottom.

Needing a sign change

bracketing required ✗

not required ✓

Secant need not bracket.

Dividing by zero

f(xₙ) = f(xₙ₋₁) ✗

choose different starting points ✓

A flat chord has no root.

Exam tips

  1. Two starting values.
  2. Chord gradient.
  3. No derivative.
  4. Order ≈ 1.618.
  5. Check f(xₙ) ≈ 0.

Practice questions

Try each one on paper, then open the answer. Use the solver above to see the full working.

1. f = x² − 4, x₀ = 1, x₁ = 3: f(x₀) Foundation

-3

2. same: f(x₁) Foundation

5

3. same: x₂ = x₁ − f₁(x₁ − x₀)/(f₁ − f₀) Foundation

1.75

4. f = x² − 2: f(1.4) to 2 d.p. Higher

-0.04

5. Golden ratio (1 + √5)/2 to 4 d.p. Higher

1.618

6. √2 − 1.4142 error to 4 d.p. Higher

0

Practice generator

Unlimited fresh questions with instant marking. Choose a level, work it out on paper, then type your answer.

Solve: …

Key terms

Secant method
Root-finding using chords.
Chord
A line joining two curve points.
Iterate
A successive approximation.
Order of convergence
Rate of error reduction.
Golden ratio
(1 + √5)/2 ≈ 1.618.
Newton’s method
Uses the tangent.

Frequently asked questions

What is the secant method?

Newton’s method with the derivative replaced by a chord gradient.

What is its order?

About 1.618.

Does it need a bracket?

No.

Why use it?

It avoids computing f′.

Which page covers Newton’s method?

Newton’s method.

Which page covers bisection?

bisection.

More in Numerical methods and optimisation and the formula sheets.