ENG 303 · Engineering Mathematics V (Numerical Methods and Computer Application)
Our notes
2 min readNewton-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
-
Best pick Kaw, Numerical Methods with Applications: Newton-Raphson method
Textbook chapter (PDF, about 0.3 MB) with worked examples and a short quiz at the end.
(opens nm.mathforcollege.com in a new tab)
Kaw, Numerical Methods with Applications, Kaw, Numerical Methods with Applications: Newton-Raphson method, CC BY-NC-ND 4.0 · licence
-
NOUN MTH 213: Numerical Analysis I
NOUN course book (PDF, about 1.4 MB). Interpolation, linear systems (direct and iterative), eigenvalues, non-linear equations.
(opens nou.edu.ng in a new tab)
-
Kaw, Numerical Methods with Applications: Secant method
Textbook chapter (PDF, about 0.3 MB) with worked examples and a short quiz at the end.
(opens nm.mathforcollege.com in a new tab)
Kaw, Numerical Methods with Applications, Kaw, Numerical Methods with Applications: Secant method, CC BY-NC-ND 4.0 · licence
-
Fixed-point iteration
(opens en.wikipedia.org in a new tab)
Wikipedia, Fixed-point iteration, CC BY-SA 4.0 · licence
-
Kaw, Numerical Methods with Applications (the whole free textbook)
Every chapter as a separate PDF (0.2 to 1.5 MB each), with videos and quizzes for each method.
(opens nm.mathforcollege.com in a new tab)
Kaw, Numerical Methods with Applications, Kaw, Numerical Methods with Applications (the whole free textbook), CC BY-NC-ND 4.0 · licence
Watch
-
Newton Raphson Method: Derivation
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
Newton-Raphson Method: Example
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
Secant Method | Lecture 15 | Numerical Methods for Engineers
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
Newton's Method
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
FIXED POINT ITERATION METHOD FOR SOLVING ALGEBRAIC AND TRANSCENDENTAL EQUATIONS.
27 min · ≈ 122 MB · about ₦69
(opens youtube.com in a new tab)
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.