Tridiagonal Matrix — Definition, Formula & Examples
A tridiagonal matrix is a square matrix where the only nonzero entries lie on the main diagonal, the diagonal immediately above it (superdiagonal), and the diagonal immediately below it (subdiagonal). All other entries are zero.
An matrix is tridiagonal if whenever . Equivalently, the matrix has bandwidth 1, meaning nonzero entries are confined to positions , , and .
Key Formula
Where:
- = Entries on the main diagonal
- = Entries on the subdiagonal (below main diagonal)
- = Entries on the superdiagonal (above main diagonal)
How It Works
To identify a tridiagonal matrix, check that every entry more than one position away from the main diagonal is zero. When solving a tridiagonal system , you can use the Thomas algorithm, a simplified form of Gaussian elimination that runs in time instead of the usual . This efficiency comes from the sparse structure: each row has at most three nonzero entries, so elimination and back-substitution each require only a single pass through the rows.
Worked Example
Problem: Determine whether the following 4×4 matrix is tridiagonal and, if so, find its determinant.
Matrix: Consider the matrix
Check structure: Every entry with is zero. The nonzero entries sit only on the main diagonal ('s), the superdiagonal ('s), and the subdiagonal ('s). So the matrix is tridiagonal.
Compute determinant: For this particular tridiagonal matrix, the determinant satisfies the recurrence with and . So and .
Answer: The matrix is tridiagonal, and its determinant is .
Why It Matters
Tridiagonal systems arise naturally when discretizing differential equations using finite differences, a core technique in numerical analysis and scientific computing. In courses on numerical methods or computational physics, recognizing tridiagonal structure lets you solve large systems thousands of times faster than general-purpose methods allow.
Common Mistakes
Mistake: Confusing tridiagonal with diagonal. Students sometimes assume a tridiagonal matrix has nonzero entries only on the main diagonal.
Correction: A diagonal matrix has entries only on the main diagonal. A tridiagonal matrix also allows nonzero entries on the two adjacent diagonals (superdiagonal and subdiagonal).
