UNIHIVE

Study Hub UNIPORT ENG 303

ENG 303 · Engineering Mathematics V (Numerical Methods and Computer Application)

Newton-Raphson, secant and fixed-point iteration

Deriving Newton's method, its quadratic convergence, the secant method, fixed-point iteration, and when each fails.

Our notes

2 min read

Newton-Raphson

From the tangent line at xₙ: xₙ₊₁ = xₙ − f(xₙ) / f′(xₙ).
Worked example 1 (square root of 2). f(x) = x² − 2, f′(x) = 2x, so xₙ₊₁ = (xₙ + 2/xₙ)/2. From x₀ = 1:
x₁ = 1.5; x₂ = (1.5 + 1.333333)/2 = 1.416667; x₃ = (1.416667 + 1.411765)/2 = 1.414216; x₄ = 1.414214 (true √2 = 1.4142136).
Worked example 2. f(x) = x³ − x − 2, f′(x) = 3x² − 1, x₀ = 1.5:

  • f(1.5) = −0.125, f′(1.5) = 5.75, x₁ = 1.5 + 0.125/5.75 = 1.521739.
  • f(1.521739) = 0.002137, f′ = 5.947070, x₂ = 1.521739 − 0.000359 = 1.521380, already correct to 6 figures (root 1.5213797).

Compare: bisection needed 14 steps for 4 decimals.

Convergence

Near a simple root, Newton's method is quadratic: the number of correct digits roughly doubles each step.
It can fail when f′(xₙ) ≈ 0 (the tangent is nearly flat and throws the next guess far away), when the start is far from the root, or when it cycles. At a double root convergence becomes only linear.

Secant method

Replaces f′ with a slope through the last two points (no derivative needed):
xₙ₊₁ = xₙ − f(xₙ)(xₙ − xₙ₋₁) / [f(xₙ) − f(xₙ₋₁)].
From x₀ = 1, x₁ = 2 for x³ − x − 2: x₂ = 2 − 4 × 1 / (4 − (−2)) = 1.3333, then it continues from x₁ and x₂ (unlike false position, it does not keep a bracket). Convergence is superlinear (order about 1.618).

Fixed-point iteration

Rewrite f(x) = 0 as x = g(x) and iterate xₙ₊₁ = g(xₙ). It converges near the root if |g′(x)| < 1 there.
For x³ − x − 2 = 0: g(x) = (x + 2)^(1/3) has |g′| ≈ 0.14 near the root (converges); g(x) = x³ − 2 has |g′| ≈ 6.9 (diverges).

Algorithm (any language)

Set x = x₀; repeat: compute fx and dfx; if |dfx| is tiny, stop with a warning; x_new = x − fx/dfx; if |x_new − x| < tol, stop; x = x_new; limit the number of iterations.

Exams usually ask: derive Newton's formula; apply Newton or secant for a few steps; state the order of convergence; show when fixed-point iteration converges; explain failures of Newton's method.

Common mistake: forgetting to differentiate correctly, or using degrees in trigonometric functions. Calculators and code must be in radians for f(x) = cos x − x and similar.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All ENG 303 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.