TOPICS
Search

Tridiagonal Matrix


A tridiagonal matrix is a square matrix whose nonzero entries can occur only on the main diagonal, the subdiagonal, and the superdiagonal,

 [a_(11) a_(12) 0 0 ... 0 0; a_(21) a_(22) a_(23) ... ... 0 0; 0 a_(32) a_(33) ... ... a_(n-2,n-1) 0; | ... ... ... ... a_(n-1,n-1) a_(n-1,n); 0 0 ... ... ... a_(n,n-1) a_(nn)].
(1)

Every tridiagonal matrix is both an upper and a lower Hessenberg matrix. If its diagonal entries are a_k, its superdiagonal entries are b_k, and its subdiagonal entries are c_k, then the determinants D_k of its leading k×k principal submatrices satisfy the continuant recurrence

D_0=1
(2)
D_1=a_1
(3)
D_k=a_kD_(k-1)-b_(k-1)c_(k-1)D_(k-2) for k>=2.
(4)

In particular, the determinant of the full matrix is D_n and can be computed in linear time.

For a tridiagonal Toeplitz matrix with constant diagonal a, superdiagonal b, and subdiagonal c, the characteristic polynomial is

 chi_n(x)=det(xI-A)=q^nU_n((x-a)/(2q)),
(5)

where q^2=bc!=0 and U_n is a Chebyshev polynomial of the second kind. Substitution into the continuant recurrence for xI-A gives the defining recurrence of U_n. Either square root gives the same polynomial. When bc=0, the matrix is triangular and chi_n(x)=(x-a)^n.

Computing the determinant of such a matrix requires only O(7n) (as opposed to O(n^3/3)) arithmetic operations (Acton 1990, p. 332). Here O denotes big-O notation. Efficient solution of the matrix equation Ax=y for x, where A is a tridiagonal matrix, can be performed in the Wolfram Language using LinearSolve on A, represented as a SparseArray.


See also

Companion Matrix, Continuant, Diagonal Matrix, Hessenberg Matrix, Jacobi Matrix, Jacobi Method, Real-Rooted Polynomial, Subdiagonal, Superdiagonal

Explore with Wolfram|Alpha

References

Acton, F. S. Numerical Methods That Work, 2nd printing. Washington, DC: Math. Assoc. Amer., pp. 331-334, 1990.Meurant, G. Hessenberg and Tridiagonal Matrices: Theory and Examples. Philadelphia, PA: SIAM, 2025. https://doi.org/10.1137/1.9781611978452.Noschese, S.; Pasquini, L.; and Reichel, L. "Tridiagonal Toeplitz Matrices: Properties and Novel Applications." Numer. Linear Algebra Appl. 20, 302-326, 2013. https://doi.org/10.1002/nla.1811.Press, W. H.; Flannery, B. P.; Teukolsky, S. A.; and Vetterling, W. T. "Tridiagonal and Band Diagonal Systems of Equations." §2.4 in Numerical Recipes in FORTRAN: The Art of Scientific Computing, 2nd ed. Cambridge, England: Cambridge University Press, pp. 42-47, 1992.

Referenced on Wolfram|Alpha

Tridiagonal Matrix

Cite this as:

Weisstein, Eric W. "Tridiagonal Matrix." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/TridiagonalMatrix.html

Subject classifications