Matrix inversion
Contents
Matrix inversion
The inverse of an n-by-n square matrix is denoted as
and defined such that
where is the n-by-n identity matrix.
Prerequesite for the inversion is, that is an n-by-n square matrix and that
is regular. Regular means that the row and column vectors are linearly independent and so the determinant is nonzero:
Otherwise the matrix is called singular.
Example:
![]()
Before determining the inverse of a matrix it is always useful to compute the determinant and check whether the matrix is regular or singular. If it is singular it is not possible to determine the inverse because there is no inverse. For 3-by-3 and smaller matrices there are simple formulas to compute the determinant. To compute the determinant of larger matrices the following paragraph describes an example formula for a 4-by-4 matrix.
To determine the inverse of a matrix there are several alternatives. Two of the common procedures are the Gauß-Jordan-Algorithm and the Adjugate Formula that are explained afterwards.
Determinant of a 4-by-4 matrix
This paragraph describes a formula to compute the determinant of a 4-by-4 matrix using minors and cofactors of a matrix.
The minor of an n-by-n square matrix
is the determinant of a smaller square matrix obtained by removing the row
and the column
from
.
The minorsand
for example are defined as
![]()
Multiplying the minor with results in the cofactor
:
To compute the determinant of matrix first one row or column is choosen. The sum of the four corresponding values of the row or column multiplied by the related cofactors results in the determinant:
For the example matrix it is useful to choose the row 3 because it contains three zero values as factors:
Gauß-Jordan-Algorithm
The Gauß-Jordan-Algorithm was developed to solve systems of linear equations. But it can also be used to determine the inverse of an n-by-n square matrix.
The algorithm is based on the formula . First the block matrix
is build. On this matrix the Gauß-Jordan-Algorithm is applied. By using various conversion steps like interchanging of rows and addtition of factorized rows to other rows the block matrix is converted so that the left block equals the identity matrix
. The right block then corresponds to the inverse of
.
Gauß-Jordan-Algorithm
Adjugate Formula
The adjugate formula defines the inverse of an n-by-n square matrix as
where is the so called adjugate matrix of
. The adjugate matrix is the transposed of the cofactor matrix:
And the cofactor matrix is just a matrix where each cell corresponds to the related cofactor:
So to determine the inverse of an n-by-n square matrix you have to compute the n square cofactors, then transpose the resulting cofactor matrix and divide all the values by the determinant.