System of Linear Equations Calculator
Solve linear equation systems \(Ax = b\) with augmented matrix Gaussian elimination and Cramer's Rule. Identifies unique, infinite, or no solutions.
Methods for Solving Linear Equation Systems
A system of linear equations with \(m\) equations and \(n\) unknowns can be written compactly in matrix-vector form:
\(A \mathbf{x} = \mathbf{b}\)
The Three Solution Classifications
- Unique Solution: The rank of the coefficient matrix equals the rank of the augmented matrix equals the number of variables: \(\text{Rank}(A) = \text{Rank}([A \mid b]) = n\).
- Infinitely Many Solutions: The system is consistent (\(\text{Rank}(A) = \text{Rank}([A \mid b])\)), but \(\text{Rank} < n\). There are \(n - \text{Rank}\) free variables.
- No Solution (Inconsistent): The row reduction produces a row \([0 \dots 0 \mid c]\) with \(c \ne 0\). Geometrically, the geometric constraints do not intersect at any common point.
Solved Linear System Examples with Complete Working
Solve the 3×3 system:
\(\begin{aligned} 2x + y - z &= 8 \\ -3x - y + 2z &= -11 \\ -2x + y + 2z &= -3 \end{aligned}\)
Step 1: Augmented Matrix Setup:
\([A \mid b] = \left[\begin{array}{ccc|c} 2 & 1 & -1 & 8 \\ -3 & -1 & 2 & -11 \\ -2 & 1 & 2 & -3 \end{array}\right]\)
Step 2: Gauss-Jordan Reduction to RREF:
\(\text{RREF}([A \mid b]) = \left[\begin{array}{ccc|c} 1 & 0 & 0 & 2 \\ 0 & 1 & 0 & 3 \\ 0 & 0 & 1 & -1 \end{array}\right]\)
Step 3: Verification via Cramer's Rule:
\(\det(A) = -1\). Then \(x = \frac{\det(A_1)}{\det(A)} = \frac{-2}{-1} = 2\), \(y = \frac{-3}{-1} = 3\), \(z = \frac{1}{-1} = -1\).
Result: Unique solution \((x, y, z) = (2, 3, -1)\).
Solve the 2×2 system:
\(\begin{aligned} x + 2y &= 4 \\ 2x + 4y &= 10 \end{aligned}\)
Augmented Matrix Operation: \(R_2 \leftarrow R_2 - 2R_1\):
\(\left[\begin{array}{cc|c} 1 & 2 & 4 \\ 0 & 0 & 2 \end{array}\right]\)
Row 2 translates to \(0x + 0y = 2 \implies 0 = 2\), which is a mathematical impossibility.
Conclusion: The system is inconsistent; no solution exists (parallel lines).
Study Gaussian Elimination
Learn how matrix inverses and linear systems are solved using the same elementary row operations.
Read our complete student guide: How to Find the Inverse of a Matrix →