MTH 492 · Numerical Methods
Our notes
2 min readThe problem
y″ = f(x, y, y′) with y(a) = α, y(b) = β, where f is non-linear in y or y′. Finite differences give a non-linear system of equations. Two routes: Newton's method on the discrete system, or quasi-linearisation on the ODE itself (they lead to the same equations).
Quasi-linearisation (Bellman and Kalaba)
Start with a guess y⁽⁰⁾(x) that meets the boundary conditions. Expand f about the current guess, keeping only the linear terms:
y⁽ᵏ⁺¹⁾″ = f(x, y⁽ᵏ⁾, y⁽ᵏ⁾′) + f_y (y⁽ᵏ⁺¹⁾ − y⁽ᵏ⁾) + f_{y′} (y⁽ᵏ⁺¹⁾′ − y⁽ᵏ⁾′)
Each step is a linear BVP, solved by finite differences (and the Thomas algorithm) or by linear shooting. Convergence is quadratic (like Newton): the number of correct digits roughly doubles each iteration, once close.
Worked example
y″ = (3/2)y², y(0) = 4, y(1) = 1. Exact solution y = 4/(1 + x)².
Here f = 1.5y², f_y = 3y, so each step solves
y⁽ᵏ⁺¹⁾″ = 3y⁽ᵏ⁾ y⁽ᵏ⁺¹⁾ − 1.5 (y⁽ᵏ⁾)²
Start: y⁽⁰⁾ = 4 − 3x (the straight line between the boundary values). With h = 0.25, the difference equation at node i is
yᵢ₋₁ − (2 + 3h²yᵢ⁽ᵏ⁾)yᵢ + yᵢ₊₁ = −1.5h²(yᵢ⁽ᵏ⁾)².
| Iteration | y(0.25) | y(0.5) | y(0.75) |
|---|---|---|---|
| 1 | 2.61855 | 1.84254 | 1.34428 |
| 2 | 2.58684 | 1.80095 | 1.31896 |
| 3 | 2.58675 | 1.80079 | 1.31886 |
| 4 | 2.58675 | 1.80079 | 1.31886 |
| Exact | 2.56000 | 1.77778 | 1.30612 |
The changes shrink as 0.04, 0.00016, then below 10⁻⁵: quadratic convergence. The remaining gap from the exact values is the grid error (h = 0.25 is coarse); with h = 0.05 the value at x = 0.5 is 1.77877, much closer to 1.77778.
Check iteration 1 at node 2: the guess there is y = 2.5, so the coefficient is 2 + 3(0.0625)(2.5) = 2.46875 and the right side −1.5(0.0625)(6.25) = −0.5859; 2.61855 − 2.46875(1.84254) + 1.34428 = −0.5859. ✓
Newton on the discrete system
Write Fᵢ(y) = yᵢ₋₁ − 2yᵢ + yᵢ₊₁ − h² f(xᵢ, yᵢ, ...) = 0 and solve J Δy = −F with the (tridiagonal) Jacobian J. For this f it gives exactly the same iterates.
Exams usually ask
- Derive the quasi-linearised equation for a given non-linear ODE.
- Carry out one iteration on a coarse grid.
Common mistake
Forgetting the f(y⁽ᵏ⁾) term and keeping only f_y y⁽ᵏ⁺¹⁾. The linearisation is f(old) + f_y (new − old).
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Boundary value problem
(opens en.wikipedia.org in a new tab)
Wikipedia, Boundary value problem, CC BY-SA 4.0 · licence
-
Newton's method
(opens en.wikipedia.org in a new tab)
Wikipedia, Newton's method, CC BY-SA 4.0 · licence
Watch
-
Best pick Shooting Method for Boundary Value Problems | Lecture 57 | Numerical Methods for Engineers
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Boundary Value Problem (Boundary value problems for differential equations)
5 min · ≈ 23 MB · about ₦13
(opens youtube.com in a new tab)
-
Using Spectral Methods and the Quasilinearization Method to solve Non-Linear ODEs. (Presentation)
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
Nonlinear Boundary Value Problems
28 min · ≈ 126 MB · about ₦71
(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.