Matrix operations explained: determinant, inverse, row echelon form and rank
Matrices encode linear transformations, systems of equations, networks and data tables. Four operations come up constantly: the determinant (does the matrix collapse space, and by how much does it scale area or volume?), the inverse (how do you undo the transformation?), the reduced row echelon form (what does the matrix look like after Gaussian elimination?) and the rank (how many independent rows or columns it has).
The calculator performs each operation with exact fractions and lists every row operation, so you can follow along or find exactly where your hand calculation went wrong.
Key formulas
det [[a, b], [c, d]] = ad − bcdet A = (−1)^(swaps) · Π pivotsA⁻¹ = (1/(ad − bc)) · [[d, −b], [−c, a]][A | I] → [I | A⁻¹]rank A + nullity A = number of columnsWorked examples
Find the inverse of [[4, 7], [2, 6]].
- det = 4·6 − 7·2 = 10.
- Swap a and d, negate b and c: [[6, −7], [−2, 4]].
- Divide by 10.
det [[1, 2, 3], [4, 5, 6], [7, 8, 10]].
- R2 ← R2 − 4R1, R3 ← R3 − 7R1 gives rows (0, −3, −6) and (0, −6, −11).
- R3 ← R3 − 2R2 gives (0, 0, 1).
- det = 1 · (−3) · 1 = −3.
Rank of [[1, 2, −1, 3], [2, 4, 1, 0], [−1, −2, 3, 4]].
- Column 2 is twice column 1, so it never gets its own pivot.
- Row reduction leaves pivots in columns 1, 3 and 4.
Compute AB for A = [[1, 2], [3, 4]] and B = [[5, 6], [7, 8]].
- Entry (row i, column j) = row i of A · column j of B.
- Row 1: 1·5 + 2·7 = 19 and 1·6 + 2·8 = 22.
- Row 2: 3·5 + 4·7 = 43 and 3·6 + 4·8 = 50.
- Check with determinants: det A = −2, det B = −2, and det(AB) = 19·50 − 22·43 = 4 = (−2)(−2).
Solve 4x + 7y = 1 and 2x + 6y = 2 using A⁻¹.
- A = [[4, 7], [2, 6]] has det = 4·6 − 7·2 = 10, so A⁻¹ = (1/10)[[6, −7], [−2, 4]] = [[3/5, −7/10], [−1/5, 2/5]].
- x = 3/5·1 − 7/10·2 = 3/5 − 7/5 = −4/5.
- y = −1/5·1 + 2/5·2 = 3/5.
What the determinant tells you
- det A = 0 ⇔ A is singular: no inverse, and Ax = b has either no solution or infinitely many.
- |det A| is the factor by which A scales area (2D) or volume (3D).
- A negative determinant means the transformation flips orientation (like a mirror).
- det(AB) = det A · det B and det(Aᵀ) = det A.
Why not compute the inverse to solve equations?
To solve Ax = b, Gaussian elimination on [A|b] is faster and more accurate than computing A⁻¹ and then multiplying. Inverses are still valuable for theory, for small matrices, and when the same A is used with many different right-hand sides.
Useful determinant rules
- Swapping two rows changes the sign of the determinant.
- Multiplying one row by k multiplies the determinant by k.
- Adding a multiple of one row to another leaves the determinant unchanged — the basis of elimination.
- det(AB) = det(A)·det(B) and det(Aᵀ) = det(A).
- For a triangular matrix the determinant is the product of the diagonal entries.
Common mistakes to avoid
- Multiplying matrices element by element instead of row-by-column.
- Assuming AB = BA — matrix multiplication is not commutative.
- Scaling a row during a determinant calculation without adjusting the result.
- Trying to invert a non-square or singular matrix.
Frequently asked questions
What size matrices are supported?
What is RREF used for?
Can I enter fractions?
1/3 or -2/5. Results stay exact.Is AB the same as BA?
What does a negative determinant mean?
Related tools and guides
Educational content. Results are computed in your browser with standard double-precision arithmetic; double-check anything with legal, financial, medical, or safety consequences. Spotted an error? Tell us and we will correct it.