Systems of linear equations
Row-reducing the augmented matrix solves any linear system systematically, and the rank tells you whether solutions exist.
Basic, Standard, Advanced: University Year 1 · 1st semester
Math problem generator
Gaussian elimination
The three elementary row operations do not change the solutions:
- swap two rows;
- multiply a row by a nonzero number;
- add a multiple of one row to another.
Reduce the augmented matrix until each pivot is with zeros above and below it (reduced row echelon form); then read off the solution.
Rank and solvability
The number of nonzero rows in an echelon form is the rank. With unknowns:
- : exactly one solution
- : infinitely many solutions ( free parameters)
- : no solution
A homogeneous system always has ; for square it has a nontrivial solution exactly when .
Parametric solutions and solution spaces
When there are infinitely many solutions, set each free variable (a column without a pivot) equal to a parameter such as and express the others in terms of it. If the reduced form is and , then with :
The solution space of has dimension .
Worked examples
Solve the system of equations.
Hint
Form the augmented matrix and row-reduce until the left part is the identity (Gaussian elimination).
Answer
Solution
The augmented matrix is
Row-reducing,
Hence
This system has infinitely many solutions. Setting ( any real number), express and in terms of .
- (1)
- (2)
Hint
Row-reduce to reduced echelon form, then set and solve for and .
Answer
- (1)
- (2)
Solution
Reducing the augmented matrix,
This means
Setting ,
Find the constants and for which the system has infinitely many solutions.
Hint
The third equation must be a combination ( times the first plus times the second), right-hand side included.
Answer
Solution
Comparing the and coefficients, the third equation matches (first) (second).
For infinitely many solutions, the whole third equation must be this combination:
(If differs, the rank is 3 and the solution is unique; if matches but differs, there is no solution.)
Practice problems
Use elementary row operations to bring the matrix to reduced row echelon form.
Hint
Column by column, make the pivot 1 and clear the other entries in its column.
Answer
Solution
Clearing columns 1, 2 and 3 in turn,
(This encodes the solution .)
Find the values of the constant for which has a solution other than .
Hint
A homogeneous system has a nontrivial solution exactly when the determinant of its coefficient matrix is .
Answer
Solution
Setting the determinant of the coefficient matrix to zero,
Solving,
Find the constants and for which the system has infinitely many solutions.
Hint
The third equation must be a combination ( times the first plus times the second), right-hand side included.
Answer
Solution
Comparing the and coefficients, the third equation matches (first) (second).
For infinitely many solutions, the whole third equation must be this combination:
(If differs, the rank is 3 and the solution is unique; if matches but differs, there is no solution.)