A tridiagonal matrix is a square matrix whose nonzero entries can occur only on the main diagonal, the subdiagonal, and the superdiagonal,
|
(1)
|
Every tridiagonal matrix is both an upper and a lower Hessenberg matrix. If its diagonal entries are , its superdiagonal
entries are
, and its subdiagonal
entries are
, then the determinants
of its leading
principal submatrices satisfy the continuant
recurrence
|
(2)
| |||
|
(3)
| |||
|
(4)
|
In particular, the determinant of the full matrix is
and can be computed in linear time.
For a tridiagonal Toeplitz matrix with constant diagonal , superdiagonal
, and subdiagonal
, the characteristic
polynomial is
|
(5)
|
where
and
is a Chebyshev polynomial of the
second kind. Substitution into the continuant recurrence for
gives the defining recurrence of
. Either square root gives the same polynomial. When
, the matrix is triangular and
.
Computing the determinant of such a matrix requires only
(as opposed to
) arithmetic operations
(Acton 1990, p. 332). Here
denotes big-O notation.
Efficient solution of the matrix equation
for
, where
is a tridiagonal matrix, can be performed in the Wolfram
Language using LinearSolve
on
, represented as a SparseArray.