Matrix Inverse Calculator
Example Data Table
| Example |
Input Matrix |
Determinant |
Inverse Matrix |
| 2 × 2 basic |
[[4, 7], [2, 6]] |
10 |
[[0.6, -0.7], [-0.2, 0.4]] |
| 3 × 3 row case |
[[2, 1, 1], [1, 3, 2], [1, 0, 0]] |
-1 |
[[0, 0, 1], [-2, 1, 3], [3, -1, -5]] |
| Singular case |
[[1, 2], [2, 4]] |
0 |
No inverse exists |
Formula Used
For a square matrix A, an inverse exists only when det(A) ≠ 0.
The classic formula is A-1 = adj(A) / det(A). This page uses Gauss-Jordan elimination because it handles larger matrices better.
The augmented matrix is written as [A | I]. Row operations convert it into [I | A-1]. Partial pivoting selects the largest available pivot to reduce rounding issues.
How to Use This Calculator
Choose the matrix size first. Enter every matrix coefficient in the grid. Select a decimal precision and pivot tolerance. Keep row operations enabled when you want a learning trail. Press the calculate button. The result appears above the form and below the header. Use the export buttons to save the result.
Understanding Matrix Inverses
A matrix inverse is a central idea in linear algebra. It works like division for square matrices. When a matrix A has an inverse, multiplying A by that inverse gives the identity matrix. The identity matrix keeps vectors unchanged. This makes the inverse useful for solving systems, checking transformations, and reversing operations.
Why Determinants Matter
The determinant tells whether a square matrix can be reversed. A nonzero determinant means the rows and columns contain enough independent information. A zero determinant means some information is duplicated or lost. In that case, the matrix is singular. A singular matrix has no inverse. The calculator checks this before showing the inverse.
How Row Reduction Helps
Gauss-Jordan elimination is a practical method. It joins the input matrix with an identity matrix. Then it uses row swaps, row scaling, and row elimination. The goal is to turn the left side into the identity matrix. When that happens, the right side becomes the inverse. This method is easier to follow than large cofactor expansions.
Accuracy and Pivoting
Real calculations often use decimals. Small pivots can create rounding problems. Partial pivoting reduces that risk. It chooses the row with the largest pivot value in the active column. The tolerance setting decides when a pivot is treated as zero. A strict tolerance is useful for exact data. A larger tolerance can help with noisy measurements.
When Inverses Are Sensitive
Some matrices are almost singular. They may still have an inverse, but tiny input changes can move the result a lot. These matrices are called ill-conditioned. The determinant may be very small. The identity check may also show larger rounding error. In applied work, this warning matters. It can affect engineering estimates, financial models, and fitted equations.
Practical Uses
Inverse matrices appear in engineering, economics, graphics, statistics, and data science. They help solve linear systems quickly. They also help analyze coordinate changes and network models. Always review the determinant and identity check. A tiny error is normal with decimal arithmetic. A large error means the matrix may be unstable or poorly conditioned.
FAQs
1. What is a matrix inverse?
A matrix inverse reverses the action of a square matrix. When A is multiplied by A-1, the result is the identity matrix.
2. Which matrices can be inverted?
Only square matrices with a nonzero determinant can be inverted. If the determinant is zero, the matrix is singular.
3. What method does this calculator use?
It uses Gauss-Jordan elimination with partial pivoting. The process transforms an augmented matrix from [A | I] into [I | A-1].
4. What does pivot tolerance mean?
Pivot tolerance sets the smallest pivot accepted as nonzero. It helps detect singular or nearly singular matrices during row reduction.
5. Why is the identity check useful?
The identity check multiplies the input matrix by its computed inverse. A result near the identity matrix confirms a reliable calculation.
6. Can decimals be used?
Yes. Decimal and negative values are accepted. The precision option controls how many decimal places appear in the final result.
7. What happens for a singular matrix?
The calculator reports that no inverse exists. It also shows determinant and rank details to explain the singular result.
8. Can I download the calculation?
Yes. Use the CSV button for spreadsheet data. Use the PDF button for a printable summary of the matrix inverse result.