Tridiagonal System of Equations
Work in progress. This note is still being written and incomplete.
A linear system whose coefficient matrix has non-zero entries only on the main diagonal and the 2 adjacent diagonals.
Its matrix form is
The missing entries are zero. The first subdiagonal entry a1 and the last superdiagonal entry cn are not used.
Crout Factorization
Crout factorization writes the coefficient matrix as
Here, L is lower triangular and U has unit diagonal. For a tridiagonal matrix,
The factor entries are computed by
The subdiagonal entries of L are the original entries ai. The factorization requires every pivot ℓi to be non-zero.
Triangular Solves
After A=LU, solve Ax=d by solving Ly=d and then Ux=y.
Back substitution uses
The factorization, forward substitution, and back substitution each require O(n) operations. The factors and working vectors require O(n) storage.
Applications
Tridiagonal systems occur when a discretized equation couples each unknown only to its immediate neighbours.
- Finite-difference discretization of 1-dimensional boundary-value problems.
- Cubic spline interpolation.
- One-dimensional diffusion and heat equations.
- Electrical ladder networks.
Worked Example
Solve the tridiagonal system using Crout factorization.
Solution Reveal Hide
The entries are
a2=a3=a4=−1,b1=b2=b3=b4=2,c1=c2=c3=−1,d=(1,0,0,1)TCrout factorization gives
ℓ1ℓ2ℓ3ℓ4=2,=2−(−1)(−21)=23,=2−(−1)(−32)=34,=2−(−1)(−43)=45.u1u2u3=−21,=−32,=−43,Forward substitution gives
y1y2y3y4=21,=3/20−(−1)(1/2)=31,=4/30−(−1)(1/3)=41,=5/41−(−1)(1/4)=1.Back substitution gives
x4x3x2x1=1,=41−(−43)(1)=1,=31−(−32)(1)=1,=21−(−21)(1)=1.Therefore,
x=(1,1,1,1)T Wolfram Mathematica notebook
The summary notebook defines every function used in this module, with
documentation and no examples, as a starting point for your own
problems.
Written by November 4, 2026 · 1 min read ·
Available offline