TDMA
TDMA
The Tri-Diagonal Matrix Algorithm (TDMA), also known as the Thomas Algorithm, is an efficient
numerical method for solving a system of linear equations where the coefficient matrix is tri-
diagonal. A tri-diagonal matrix has nonzero elements only on the main diagonal, the first lower
diagonal, and the first upper diagonal.
a_i x_{i-1} + b_i x_i + c_i x_{i+1} = d_i, \quad \text{for } i = 1, 2, \dots, n
where:
2. Backward Substitution
x_n = d'_n
Advantages of TDMA
Computationally efficient: O(n) complexity (compared to Gaussian elimination which has O(n³)).
Useful in solving partial differential equations (PDEs) in fluid dynamics, heat conduction, and other
engineering applications.