A system of linear equations is a collection of linear equations imposed on the same unknowns. The purpose of solving the system is to find all assignments of the unknowns that satisfy every equation at once.
Systems are the first major computational object in linear algebra. They connect equations, matrices, geometry, algorithms, and abstract structure. The standard method is to write the system as an augmented matrix, use elementary row operations, reduce it to echelon form or reduced echelon form, and then read off the solutions. A system is inconsistent exactly when row reduction produces a contradictory row of the form , where .
5.1 General Form
A system of linear equations in unknowns has the form
The unknowns are
The coefficients are the scalars
The right-hand side entries are
The first index of records the equation. The second index records the unknown. Thus is the coefficient of in the second equation.
5.2 Matrix Form
The same system can be written as
where
This notation is compact, but it also carries meaning.
The matrix represents the coefficients. The vector represents the unknowns. The vector represents the required output. Solving means finding every vector that is mapped by to .
5.3 Augmented Matrix
The augmented matrix of the system is
Explicitly,
The vertical bar separates the coefficient columns from the right-hand side column. Row operations are performed on the whole augmented matrix because each row represents one equation.
For example, the system
has augmented matrix
5.4 Solutions of a System
A solution of a system is a vector that satisfies every equation.
For example, consider
The vector
is a solution because
and
A vector that satisfies only one equation is not a solution of the system. A solution must satisfy all equations simultaneously.
The solution set of a system is
This set may be empty, contain exactly one vector, or contain infinitely many vectors.
5.5 Consistency
A system is consistent if it has at least one solution.
A system is inconsistent if it has no solution.
For example,
is inconsistent, because no pair can make both equations true.
In augmented matrix form,
Subtracting the first row from the second gives
The second row represents
or simply
This contradiction proves that the system is inconsistent.
5.6 Equivalent Systems
Two systems are equivalent if they have the same solution set.
Elementary row operations produce equivalent systems. The three operations are:
| Operation | Meaning |
|---|---|
| Row interchange | Swap two equations |
| Row scaling | Multiply one equation by a nonzero scalar |
| Row replacement | Add a multiple of one equation to another |
These operations preserve the set of solutions. They do not change the constraints; they only rewrite them.
For example, from
we may replace the second equation by the sum of both equations:
The system becomes
The new system has the same solution as the old system.
5.7 Echelon Form
A matrix is in row echelon form when its nonzero rows appear above its zero rows, each leading entry is to the right of the leading entry in the row above it, and all entries below a leading entry are zero. These conditions are the usual structural conditions used in row reduction.
For example,
is in echelon form.
Its triangular shape allows the unknowns to be found by back substitution. The last equation determines the last leading unknown. The previous equation then determines the previous leading unknown, and so on.
5.8 Reduced Echelon Form
A matrix is in reduced row echelon form when it is in echelon form, each leading entry is , and each leading is the only nonzero entry in its column. In this form, the solution can be read directly from the augmented matrix.
For example,
is in reduced echelon form.
It corresponds to
The variable is free. If , then
Thus
5.9 Pivots
A pivot is a leading entry used to solve for a leading variable.
In an echelon form, each nonzero row has a pivot. The column containing a pivot is called a pivot column. A variable corresponding to a pivot column is a leading variable. A variable corresponding to a nonpivot column is a free variable.
For example,
has pivot columns , , and . Therefore , , and are leading variables. The variable is free.
Pivots are the algebraic markers of constraint. Free variables are the algebraic markers of freedom.
5.10 Gaussian Elimination
Gaussian elimination is the process of using elementary row operations to put an augmented matrix into echelon form, then solving by back substitution. Row reduction to echelon form followed by back substitution is the standard elimination method for solving systems.
Consider
The augmented matrix is
Replace by , and replace by :
Interchange and :
Replace by :
The last row gives
so
The second row gives
so
and therefore
The first row gives
so
and therefore
The solution is
5.11 Gauss-Jordan Elimination
Gauss-Jordan elimination continues row reduction until the augmented matrix is in reduced row echelon form.
Using the previous echelon matrix,
scale the third row by :
Eliminate the entries above the pivot in column :
Eliminate the entry above the pivot in column :
The solution is read directly:
5.12 Free Variables
Free variables appear when some columns have no pivot.
Consider
The pivot columns are and . The variable is free.
The equations are
Let
Then
and
Thus
The solution set is
A free variable produces infinitely many solutions whenever the system is consistent.
5.13 Homogeneous Systems
A homogeneous system has the form
Every homogeneous system is consistent, because the zero vector always satisfies it:
This solution is called the trivial solution.
A homogeneous system has either exactly one solution or infinitely many solutions. It has exactly one solution when the trivial solution is the only solution. It has infinitely many solutions when there is at least one nonzero solution.
If a homogeneous system has unknowns and its reduced echelon form has nonzero rows, then it has free variables.
5.14 Nonhomogeneous Systems
A nonhomogeneous system has the form
Its solution set, when nonempty, is a translate of the solution set of the associated homogeneous system
Suppose is one particular solution of
Then any other solution satisfies
Therefore
belongs to the null space of . Hence every solution has the form
This structure is one of the central facts of linear systems.
5.15 Three Possible Outcomes
A linear system has exactly one of three possible solution types:
| Outcome | Algebraic condition | Geometric meaning |
|---|---|---|
| No solution | Contradictory row appears | Empty intersection |
| One solution | Pivot in every variable column and no contradiction | Single intersection point |
| Infinitely many solutions | At least one free variable and no contradiction | Affine line, plane, or higher-dimensional set |
There is no fourth case. In particular, a linear system cannot have exactly two distinct solutions.
The reason is linearity. If two distinct solutions exist, their difference gives a nonzero solution of the associated homogeneous system. That nonzero direction can be scaled, giving infinitely many solutions.
5.16 Underdetermined and Overdetermined Systems
A system with fewer equations than unknowns is called underdetermined. Such a system often has free variables, though it may also be inconsistent.
A system with more equations than unknowns is called overdetermined. Such a system often has no solution, though it may be consistent if some equations are redundant or compatible.
For example,
is underdetermined in two unknowns and has infinitely many solutions.
The system
is overdetermined. It may or may not be consistent. The number of equations alone does not determine the solution type. The arrangement of the equations matters.
5.17 Geometry of Systems
Each equation in a system defines a geometric constraint.
In , each nonzero linear equation defines a line. A system of two equations asks where two lines intersect. The possibilities are:
| Geometry | Solution type |
|---|---|
| Intersecting lines | One solution |
| Parallel distinct lines | No solution |
| Same line | Infinitely many solutions |
In , each nonzero linear equation defines a plane. Several planes may intersect in a point, a line, a plane, or not at all.
In , each equation defines a hyperplane. A system describes the intersection of hyperplanes.
5.18 Row Space View
Each row of is the coefficient vector of one equation.
The equation
uses the -th row of . Thus a system can be viewed as a collection of dot product constraints:
This view is useful because it connects systems with geometry. Each row vector is normal to a hyperplane.
5.19 Column Space View
The matrix equation
can also be read by columns.
If
then
Thus asks whether can be written as a linear combination of the columns of .
The system is consistent precisely when lies in the span of the columns of . In later chapters this span is called the column space of .
5.20 Example with Infinitely Many Solutions
Consider
The second equation is twice the first, so it adds no new constraint.
The augmented matrix is
Replace by :
The equation is
Let
Then
The solution set is
This is a plane in .
5.21 Example with No Solution
Consider
The augmented matrix is
Replace by :
The second row says
Therefore the system has no solution.
Geometrically, the two equations describe parallel planes in .
5.22 Example with One Solution
Consider
This system is already triangular.
From the third equation,
From the second equation,
so
From the first equation,
so
The unique solution is
The system has one pivot for each variable.
5.23 Algorithmic Summary
To solve a linear system:
| Step | Action |
|---|---|
| 1 | Write the augmented matrix |
| 2 | Use elementary row operations |
| 3 | Obtain echelon form or reduced echelon form |
| 4 | Check for contradiction |
| 5 | Identify pivot variables and free variables |
| 6 | Write the solution set |
If a contradictory row appears, the system is inconsistent. If no contradiction appears and every variable column has a pivot, the solution is unique. If no contradiction appears and at least one variable column has no pivot, there are infinitely many solutions.
5.24 Summary
A system of linear equations is a set of simultaneous linear constraints. It is represented compactly by
The augmented matrix
contains all coefficients and right-hand side values. Elementary row operations replace the original system by equivalent systems. Row reduction exposes pivots, free variables, contradictions, and solution structure.
The essential classification is:
| Row-reduction result | Solution type |
|---|---|
| Contradictory row | No solution |
| Pivot in every variable column, no contradiction | Unique solution |
| Free variable, no contradiction | Infinitely many solutions |
This classification is the computational foundation for rank, nullity, invertibility, column space, and linear transformations.