Step-by-Step Matrix Inverse Calculator
Using Gauss-Jordan Elimination
Calculate the inverse of any square matrix with detailed step-by-step row operations. Perfect for students learning linear algebra.
How Gauss-Jordan Elimination Works - Step by Step:
- Step 0: Start with augmented matrix [A | I] where I is the identity matrix
- For each column (from left to right):
- Pivot Selection: Find a non-zero element in the current column below or at the current row
- Row Swap: If needed, swap the current row with the pivot row
- Scale Pivot: Multiply the pivot row to make the pivot element equal to 1
- Eliminate Others: For all other rows, subtract an appropriate multiple of the pivot row to make their elements in the current column equal to 0
- Repeat: Move to the next column and repeat until the left side becomes the identity matrix
- Result: The right side of the augmented matrix becomes the inverse A⁻¹
Note: If any column on the left becomes all zeros during elimination, the matrix is not invertible (singular).
Step-by-Step Solution
Each step below shows the matrix after one row operation with explanation:
About This Calculator
This calculator uses exact fraction arithmetic to avoid rounding errors. You can enter:
- Integers: 3, -5, 12
- Decimals: 2.5, -0.75, 3.14159
- Fractions: 1/2, -3/4, 5/3
The algorithm shows every single row operation, making it an excellent learning tool for understanding Gauss-Jordan elimination.