Inverse Matrix Calculator
Our free linear algebra calculator solves inverse matrix problems. Get worked examples, visual aids, and downloadable results.
Reviewed for accuracy by Manoj Kumar, Mathematics Educator
Inverse Matrix Calculator
Calculator
Adjust values & calculateEnter your values below. Every result is computed in your browser โ no data is sent to any server.
Formula: A^(-1) = (1/det(A)) * adj(A)
Worked example โ Inverse: [[0.6, -0.7], [-0.2, 0.4]] with determinant = 10
Formula
A^(-1) = (1/det(A)) * adj(A)
Where A^(-1) is the inverse matrix, det(A) is the determinant of A, and adj(A) is the adjugate (transpose of the cofactor matrix). The inverse exists only when det(A) is not zero.
Worked Examples
Example 1: 2x2 Matrix Inverse
Problem:Find the inverse of the matrix [[4, 7], [2, 6]].
Solution:Determinant = 4(6) - 7(2) = 24 - 14 = 10 Adjugate = [[6, -7], [-2, 4]] Inverse = (1/10) * [[6, -7], [-2, 4]] = [[0.6, -0.7], [-0.2, 0.4]] Verification: [[4,7],[2,6]] * [[0.6,-0.7],[-0.2,0.4]] = [[1,0],[0,1]]
Result:Inverse: [[0.6, -0.7], [-0.2, 0.4]] with determinant = 10
Example 2: 3x3 Matrix Inverse
Problem:Find the inverse of [[2, 1, 0], [1, 3, 0], [0, 0, 1]].
Solution:Determinant = 2(3*1 - 0*0) - 1(1*1 - 0*0) + 0 = 6 - 1 = 5 Cofactor matrix computed for all 9 entries Adjugate = [[3, -1, 0], [-1, 2, 0], [0, 0, 5]] Inverse = (1/5) * [[3, -1, 0], [-1, 2, 0], [0, 0, 5]] = [[0.6, -0.2, 0], [-0.2, 0.4, 0], [0, 0, 1]]
Result:Inverse: [[0.6, -0.2, 0], [-0.2, 0.4, 0], [0, 0, 1]] with determinant = 5
Frequently Asked Questions
What is the inverse of a matrix and when does it exist?
The inverse of a matrix A is another matrix, denoted A-inverse, such that when multiplied together they produce the identity matrix. A matrix inverse exists if and only if the determinant of the matrix is non-zero, meaning the matrix is non-singular. Square matrices that have an inverse are called invertible or non-singular matrices. For a 2x2 matrix, the inverse is computed by swapping the diagonal elements, negating the off-diagonal elements, and dividing by the determinant. For larger matrices, methods like cofactor expansion, Gauss-Jordan elimination, or LU decomposition are typically used to find the inverse efficiently.
How is the inverse of a 3x3 matrix calculated?
For a 3x3 matrix, the inverse is found using the matrix of cofactors (adjugate) divided by the determinant. First, compute the determinant using cofactor expansion along the first row. Then calculate each of the nine cofactors by finding the determinant of the 2x2 submatrix obtained by removing that element row and column, applying the checkerboard sign pattern. The transpose of this cofactor matrix gives the adjugate. Finally, divide each element of the adjugate by the determinant. This method is known as the classical adjoint method and is exact, though computationally expensive for matrices larger than 3x3.
What does it mean when a matrix is singular?
A singular matrix is one whose determinant equals zero, which means it has no inverse. Geometrically, a singular matrix collapses at least one dimension, mapping some nonzero vectors to the zero vector. This means the linear transformation represented by the matrix is not bijective and cannot be reversed. Common causes include having a row or column of all zeros, having two identical rows or columns, or having one row that is a scalar multiple or linear combination of other rows. In practical applications, near-singular matrices with very small determinants can cause numerical instability and should be handled with care.
What is the condition number and why is it important?
The condition number of a matrix measures how sensitive the solution of a linear system is to changes in the input data. It is calculated as the product of the matrix norm and the norm of its inverse. A condition number close to 1 indicates a well-conditioned matrix where small input changes produce small output changes. A large condition number (such as 1000 or more) indicates an ill-conditioned matrix where tiny perturbations in input can cause massive changes in the solution. Engineers and scientists use the condition number to assess the reliability of numerical computations and to determine whether their linear system solutions can be trusted.
What are common applications of matrix inversion?
Matrix inversion is fundamental in solving systems of linear equations, where x = A-inverse times b gives the solution directly. In computer graphics, inverse matrices are used for coordinate transformations, camera projections, and undoing rotations or scaling operations. In statistics, the inverse of the covariance matrix appears in multivariate normal distributions and in the least squares regression formula. Control systems engineering uses matrix inversions for state-space analysis and controller design. Cryptography systems like the Hill cipher use modular matrix inversion for encoding and decoding messages. Economics uses input-output analysis relying on Leontief inverse matrices.
What is the relationship between determinant and inverse?
The determinant and inverse are intimately connected. A matrix has an inverse if and only if its determinant is non-zero. The inverse is computed as the adjugate matrix divided by the determinant, so the determinant appears as a scaling factor in every element of the inverse. When the determinant is very small but non-zero, the inverse elements become very large, indicating numerical instability. The determinant of the inverse equals the reciprocal of the original determinant, and the determinant of the product of two matrices equals the product of their determinants. These properties make the determinant a quick screening tool for invertibility.
How does matrix size affect inverse computation difficulty?
The computational complexity of matrix inversion grows rapidly with matrix size. For a 2x2 matrix, inversion requires just a few arithmetic operations using a direct formula. A 3x3 matrix requires computing nine cofactors and a determinant, involving dozens of operations. For an n-by-n matrix, naive cofactor expansion has factorial time complexity, making it impractical beyond small sizes. In practice, algorithms like Gaussian elimination with partial pivoting achieve cubic time complexity, meaning doubling the matrix size increases computation time by roughly eight times. For very large matrices, iterative methods or specialized decompositions like LU or QR are preferred.
What is the adjugate matrix and how is it used?
The adjugate (also called the classical adjoint) of a matrix is the transpose of its cofactor matrix. Each cofactor is the determinant of the submatrix formed by deleting one row and one column, multiplied by a sign factor of negative one raised to the sum of the row and column indices. The adjugate is central to the formula for matrix inversion: A-inverse equals the adjugate of A divided by the determinant of A. Beyond inversion, the adjugate has theoretical importance in abstract algebra, appears in Cramer rule for solving linear systems, and has applications in deriving formulas for matrix derivatives and matrix calculus.
Can you verify a matrix inverse is correct?
Yes, verifying a matrix inverse is straightforward. Multiply the original matrix A by its computed inverse and check whether the result is the identity matrix (ones on the diagonal, zeros elsewhere). Due to floating-point arithmetic, the result may not be exactly the identity but should be very close, with off-diagonal elements near zero and diagonal elements near one. You can also verify by multiplying in the other order, since A times A-inverse should equal A-inverse times A, both producing the identity. Another check is to confirm that the determinant of the inverse equals the reciprocal of the original determinant.
References
Reviewed for accuracy by Manoj Kumar, Mathematics Educator ยท Editorial policy
Related Calculators
๐งฎInverse Function Calculator
Calculate inverse function with inputs, formulas, and instant results.
๐งฎInverse Variation Calculator
Calculate inverse variation with inputs, formulas, and instant results.
๐งฎMatrix Exponential Calculator
Calculate matrix exponential with inputs, formulas, and instant results.
๐งฎInverse Modulo Calculator
Calculate inverse modulo with inputs, formulas, and instant results.
๐งฎMultiplicative Inverse Calculator
Calculate multiplicative inverse with inputs, formulas, and instant results.
๐งฎMultiplicative Inverse Modulo Calculator
Calculate multiplicative inverse modulo with inputs, formulas, and instant results.
๐งฎInverse Of4x4matrix Calculator
Calculate inverse of4x4matrix with inputs, formulas, and instant results.
๐งฎMatrix Addition and Subtraction Calculator
Calculate matrix addition and subtraction with inputs, formulas, and instant results.