Analyze matrices using stable LU factorization tools. Enter coefficients, solve systems, and inspect triangular factors. Clean visuals, downloads, examples, and guidance support confident practice.
Use this sample when testing the calculator quickly.
| Row | a11 | a12 | a13 | b |
|---|---|---|---|---|
| 1 | 2 | 1 | 1 | 5 |
| 2 | 4 | -6 | 0 | -2 |
| 3 | -2 | 7 | 2 | 9 |
Basic factorization: For a suitable square matrix, the calculator computes A = LU, where L is lower triangular and U is upper triangular.
Pivoted factorization: When partial pivoting is enabled and row swaps are needed, the relation becomes PA = LU, where P is a permutation matrix.
Doolittle formulas:
L(k,k) = 1
U(k,j) = A(k,j) - Σ[L(k,m)U(m,j)] for m = 1 to k-1
L(i,k) = (A(i,k) - Σ[L(i,m)U(m,k)]) / U(k,k) for m = 1 to k-1
Determinant from U: det(A) = sign(P) × ∏U(i,i). The sign changes with each row swap.
Solving a linear system: First solve Ly = Pb using forward substitution, then solve Ux = y using backward substitution.
LU decomposition rewrites a square matrix into a lower triangular matrix and an upper triangular matrix. This factorization simplifies solving linear systems, checking determinants, and understanding matrix structure.
Partial pivoting swaps rows to place a stronger pivot on the diagonal. This reduces division by tiny numbers and usually improves stability, especially for sensitive or poorly scaled matrices.
Yes. Enter the optional vector b. The calculator then solves Ly = Pb and Ux = y, returning the intermediate vector y, the solution vector x, and a residual check.
The calculator accepts square matrices from 2 × 2 through 6 × 6. Every matrix entry must be numeric. Decimals, negative values, and zero values are allowed.
A singular or nearly singular matrix causes a zero or unusable pivot. When that happens, the calculator stops and shows a warning because the decomposition cannot continue reliably.
Once the upper triangular matrix U is built, the determinant comes from multiplying its diagonal values. If row swaps occurred, the sign is adjusted using the permutation matrix.
The graph displays a heatmap of the original matrix A. It gives a quick visual sense of value distribution, sign changes, and large magnitudes across rows and columns.
Type standard numeric values such as 3.5, -2, 0, or 7.125. Avoid commas, symbols, or blank matrix cells. Fill every b entry only when solving a system.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.