How to use this calculator
Solve a banded linear system without expanding its three diagonals into a dense matrix.
- Enter Main diagonal, Lower diagonal, Upper diagonal, Right-hand-side vector. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Tridiagonal linear system solver explained
Use Main diagonal with Lower diagonal to reproduce the sample calculation, then review the stated limits before carrying the result into another scenario.
How the calculation works
Thomas forward elimination and back substitution
Eliminate each lower-diagonal entry using the preceding main pivot, modifying only the next diagonal and right side. Back substitution then recovers the solution from the last equation upward. This uses linear storage rather than a dense inverse.
Set up the calculation
d— Main diagonal- Main diagonal. Use comma-separated values in the stated order.
l— Lower diagonal- Lower diagonal. Use comma-separated values in the stated order.
u— Upper diagonal- Upper diagonal. Use comma-separated values in the stated order.
b— Right-hand-side vector- Right-hand-side vector. Use comma-separated values in the stated order.
Limits of this model
No pivoting; rejects zero or weak elimination pivots. A solvable system may still require a pivoted method if Thomas elimination fails.
Check this example
Main diagonal = 2, 2, 2; Lower diagonal = -1, -1; Upper diagonal = -1, -1; Right-hand-side vector = 1, 0, 1.
- First solution component: 1
- Full solution vector: 1, 1, 1
Displayed values are rounded only after calculation.
Frequently asked questions
How long are off-diagonal lists?
One entry fewer than the main diagonal.
Is the right side the same size as the main diagonal?
Yes.
Can it solve every nonsingular tridiagonal system?
Not with this no-pivot implementation.
How do I use the Tridiagonal linear system solver calculator?
Enter Main diagonal, Lower diagonal, Upper diagonal, Right-hand-side vector. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Tridiagonal linear system solver?
Main diagonal = 2, 2, 2; Lower diagonal = -1, -1; Upper diagonal = -1, -1; Right-hand-side vector = 1, 0, 1. First solution component: 1 Full solution vector: 1, 1, 1 Displayed values are rounded only after calculation.
Read our calculation methodology.