Numerical Matrix Inverse, Orders 2–6

Invert a small square matrix and inspect its condition estimate and residual.

Inverse matrix
1 0 0 0 1 0 0 0 1
Determinant
1
Infinity-norm condition estimate
1
Infinity-norm residual of A·inverse(A)−I
0

Calculation and assumptions

AX=I; κ∞≈norm∞(A) norm∞(X); r∞=norm∞(AX−I).

Orders 2–6 only; entries must be finite with magnitude at most 1e12. Gauss–Jordan elimination uses scaled partial pivoting. Singular or numerically unresolved pivots fail; condition estimates above 1e12 and residuals above 1e−6 are rejected. Residual uses unrounded values; displayed inverse is rounded. No exact rational arithmetic, symbolic inverse or guarantee for ill-conditioned matrices.

Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

Frequently asked questions

How is the result calculated?

AX=I; κ∞≈norm∞(A) norm∞(X); r∞=norm∞(AX−I).

What assumptions apply?

Orders 2–6 only; entries must be finite with magnitude at most 1e12. Gauss–Jordan elimination uses scaled partial pivoting. Singular or numerically unresolved pivots fail; condition estimates above 1e12 and residuals above 1e−6 are rejected. Residual uses unrounded values; displayed inverse is rounded. No exact rational arithmetic, symbolic inverse or guarantee for ill-conditioned matrices.

How precise are the results?

Results show up to ten significant digits. Display precision does not improve the accuracy of the measurements or model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.

How we verified this calculator

The calculator is checked against 3 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Matrix
spaces between columns; semicolons or new lines between rows = 4 7; 2 6
Inverse matrix: 0.6 -0.7 -0.2 0.4
Determinant: 10
Infinity-norm condition estimate: 14.3
2
Matrix
spaces between columns; semicolons or new lines between rows = 2 0 0; 0 4 0; 0 0 8
Inverse matrix: 0.5 0 0 0 0.25 0 0 0 0.125
Determinant: 64
Infinity-norm condition estimate: 4
3
Matrix
spaces between columns; semicolons or new lines between rows = 1 2 0; 0 1 0; 2 0 1
Inverse matrix: 1 -2 0 0 1 0 -2 4 1
Determinant: 1
Infinity-norm condition estimate: 21

How we test our calculators →

Also try:

Back to category →