Instructions:
Use this calculator to find the inverse of a matrix that you provide, showing step by step.
First, click on one of the buttons below to specify the dimension of the matrix.
Then, click on the first cell and type the value, and move around the matrix by pressing "TAB" or by clicking on the corresponding cells, to
define ALL the matrix values.
More about this Invertible Matrix Calculator with steps
The concept of inverse of matrix will appear in so many contexts in Algebra. First, for matrices, the idea is to be able to operate them
in a similar manner as we would do with numbers. And in fact there are reasonable operations of sum, subtraction
and multiplication of matrices.
But how about the "division" of matrices? When we have a number, 3, for example, I can define the (multiplicative) inverse of that number,
which I could
write as 3−1, or more commonly written as 31.
One crucial property of this inverse is that when multiplied to the original number, it gives you 1, this is 3⋅31=1.
For matrices, the role of the "1" is played by the identity matrix I, and given a matrix A, we will say that A−1 is the inverse of
A if AA−1=I=A−1A.
So in other words, the inverse of a given matrix A is a matrix that has the property that multiplying that matrix by the original, leads to the
identity matrix I.
How do you calculate inverse matrix?
There are many, many different ways to compute the inverse of a given matrix A. One of the most commonly used methods is the
adjoint formula, which is based on the calculator of a whole bunch of determinants
of sub-matrices obtained by removing one row and one column of A.
Observe that this inverse calculator also gives you the option to compute the inverse using the Gaussian reduction method to
calculate the reduced row echelon form of an augmented matrix.
There is also the pivoting method to convert the initial A matrix into the identity using elementary matrices, while keeping track of the multiplication
of those elementary matrices, that turns out to be the inverse.
E1E2⋯EkA=I⇒E1E2⋯Ek=A−1
There is also invertibility methods based on some decompositions as well, and ultimately, matrices with a specific useful structures can be
processed faster in terms of finding their inverse using specialized methods, only applicable to certain structures.
What is the formula for the inverse matrix?
Using the adjoint formula, we find that the formula for the inverse of a matrix A is:
A−1=det(A)1adj(A)
At first sight this looks simple! But it is not so much when the size of the matrix is large. Indeed, the above formula is telling you
that in order to find the inverse you need to compute the determinant of the matrix, and also you need to compute the adjoint matrix.
Unlike what appearances may suggest, this could be very labor intensive with the size of the matrix is large (like n>4). So, it is good we have a
compact formula, but that does not necessarily means that it won't be labor intensive.
How Can you invert a 2x2 matrix?
First, you have to make sure that det(A)=0. Assume that we have a 2x2 matrix, we will use the adjoint formula. Let
A=[acbd]
so using the adjoint formula we would get
A−1=det(A)1adj(A)=det(A)1CT
For the general 2x2 matrix A its determinant is
det(A)=ad−bc
Also, the cofactor matrix is
C=(−1)1+1d(−1)2+1b(−1)1+2c(−1)2+2a=d−b−ca
So now, we need to transpose the matrix C:
CT=[d−b−ca]T=[d−c−ba]
So finally, we have the formula for the inverse:
A−1=det(A)1CT=ad−bc1[d−c−ba]
Easy enough, huh? You want to try for 3x3?
How do I find the inverse of a 3x3 matrix?
There are several steps to finding the inverse of a 3x3 matrix. The first requirement, as with all matrices, is to compute the determinant
and make sure that det(A)=0. Then, we need to recall the generic
adjoint formula
A−1=det(A)1adj(A)=det(A)1CT
where C is the matrix of cofactors. If you were to write this explicitly, you would get something like this: for A a generic 3x3 matrix:
Ready to memorize that? Of course not. Not that you have to, really. This is just a teaser of how complicated it gets when you try to get a general formula
for a simple 3x3 matrix. It gets really messy, and rather useless for n>3.
So, it is much more practical to apply a set of steps for finding the inverse:
What are the steps to follow to compute the inverse of a matrix?
Step 1: Compute the determinant of the given matrix A. Notice that this could be calculation consuming for large matrices, so make use to
calculate the determinant by the row/column with the most zeroes.
Step 2: Compute the cofactor matrix associated to the matrix A. You need to compute it component by component, by computing the determinant of
the sub-matrix obtained by removing row i and column j, multiplied by the sign (−1)i+j. Again here, when computing the sub-determinants
make sure you choose the row/column with the most zeros.
Step 3: Once you have the determinant of the original matrix and the cofactor matrix, divide each component of the cofactor matrix by the
determinant, and the result of that is finally, the inverse matrix.
How are the inverse of a matrix and matrix multiplication related?
Matrix multiplication plays a clear role in the inverse of a matrix A. Indeed, for a given matrix A, its inverse which we
call A−1, is another matrix such that we applying matrix multiplication with the original matrix A, we arrive to the
identity matrix.
So as you can see, the inverse of a matrix very definition is constructed using matrix multiplication. Furthermore, the term is not
frequently used, but the inverse is sometimes called the "multiplicative inverse".
How to use this inverse calculator
Specify the size of the matrix
Type in the numbers that determine the matrix
Select the method you prefer to use to compute the inverse: "Adjoint Formula" or "Reduced Row Echelon Form"
Click on "Calculate Inverse"
Other matrix calculators
There are several matrix calculators that can be of interest for you. You can try our determinant calculator,
which shows all the steps of the calculation of a determinant of a matrix.
It is important to notice that lots if not most of matrix operations are easy to conduct but small matrices (like 2x2),
but things can become VERY cumbersome when going for larger matrices (3x3 and up), especially if you need all the steps shown,
at which point these matrix calculators become really handy.
Example: Calculating the inverse of a given matrix
Question: Consider the following matrix:
A=121211141
Find its inverse using the adjoint formula.
Solution: We need to compute the inverse of a 3×3 matrix that has been provided.