Inversion of matrices
using Gauss-Jordan elimination
Introduction
Square matrices
are invertible if and only if their determinant is not zero.
The inverse of a matrix is a matrix that when multiplied with the original matrix produces the identity matrix.
Inverse calculation
Let
be a square matrix. The inverse of A is calculated using the following steps:
- Create an augmented matrix
- Transform the matrix into a reduced row echelon form
- Extract the inverse matrix from the augmented matrix
- Check the result
Augmented matrix
The augmented matrix is created by appending the identity matrix to the right of the original matrix.
Reduced row echelon form
The augmented matrix is transformed into a reduced row echelon form using the Gauss-Jordan elimination method.
The inverse matrix is extracted from the augmented matrix.
The result is checked by multiplying the original matrix with the inverse matrix.
Notes
- The inverse matrix is calculated only if the original matrix is invertible.
- The inverse matrix is calculated only for square matrices.
Example
Let
be a square matrix. Let's calculate the inverse of A.
Augmented matrix
The augmented matrix is created by appending the identity matrix to the right of the original matrix.
Reduced row echelon form
Getting reduced row echelon form using Gauss-Jordan elimination method step-by-step:
To extract the inverse matrix from reduced row echelon form, we need to transform the matrix into a diagonal form.
Now inverse matrix can be extracted from the augmented matrix.
The result is checked by multiplying the original matrix with the inverse matrix.
