Two unknown numbers add to , and the first exceeds the second by . Each condition alone allows infinitely many pairs, but together they allow only one. Replace the second condition by a different one and there may be no pair at all, or a whole line of them. This lesson sets up the language for such questions, reads every system in two ways, as crossing lines or planes and as a combination of matrix columns, and explains why a linear system always has no solution, exactly one, or infinitely many.
Key terms
Linear system
Definition A linear equation in the unknowns is an equation that can be written as
where the coefficients and the constant are fixed real numbers. A linear system is a finite collection of linear equations in the same unknowns . A solution of the system is a list of real numbers that makes every one of the equations true when each is substituted for . The set of all solutions is the solution set. On this page an inline tuple such as also stands for the column vector with the same entries.
In plain words Each equation is one requirement, and in it every unknown is only multiplied by a fixed number and added. A solution has to meet all of the requirements at the same time. Meeting some of them is not enough.
Example Consider the system
The pair is a solution, because and . The pair is not, even though , since rather than . An equation such as or is not linear, because it multiplies an unknown by an unknown, by in the first and by itself in the second.
Matrix form of a system
Definition The system of linear equations in unknowns
is the single matrix equation . Here is the coefficient matrix, is the column of unknowns in , and is the right-hand side in . Entry of is the left side of equation , so a vector solves the system exactly when . The matrix is a map from to , and solving the system means finding every input that this map sends to .
In plain words Collect the numbers that multiply the unknowns into one matrix, the unknowns into one column and the constants into another column. One matrix equation then carries all equations at once.
Example The system , becomes
Multiplying out the left side gives the column with entries and , which recovers the two equations. The coefficient matrix is because there are two equations and two unknowns.
Augmented matrix
Definition The augmented matrix of the system is the matrix obtained by placing after the last column of . Row lists the coefficients of equation in the fixed order , followed by its constant . An unknown that is missing from an equation gets the coefficient . The vertical bar only separates the coefficients from the constants, so the last column is not the column of any unknown.
In plain words The augmented matrix is the system with the variable names, plus signs and equal signs erased. Nothing is lost, as long as everyone agrees on the order of the unknowns.
Example The system , has augmented matrix
The system , in the unknowns has augmented matrix
with a zero wherever an unknown is missing. Reading the rows back gives and , and the triple satisfies both.
Row picture
Definition In the row picture each of the equations is read as a set in , the space of the unknowns, namely the set of all points that satisfy that one equation. If the coefficients of the equation are not all zero, this set is a line when , a plane when and a hyperplane in general. The solution set of the system is the intersection of these sets. An equation whose coefficients are all zero reads , which every point satisfies when and no point satisfies when .
In plain words Draw each requirement as the set of points that meet it. The solutions are the points that lie on every one of these sets.
Example For and , the first line passes through and , and the second passes through and . The lines cross at . A drawing suggests the point, and algebra confirms it. The second equation gives , so the first becomes . Then and , and no other point is possible. With three unknowns the equation is a plane in , and a solution of several such equations is a point that lies on all of their planes.
Column picture
Definition Let have columns in . Since , the system is the vector equation
In the column picture the unknowns are weights, and a solution is a choice of weights that combines the columns into the target . This picture lives in the output space , while the row picture lives in the input space .
In plain words The row picture asks which points meet every constraint. The column picture asks how much of each column you need to reach the target.
Example For the system , , the columns of are and , and the target is . The weights and reach it,
In the row picture was the point being searched for. In the column picture is the given target, and the numbers and are the weights that reach it.
Consistent and inconsistent systems
Definition A linear system is consistent if it has at least one solution and inconsistent if it has none. In the column picture, is consistent exactly when lies in , the span of the columns of . Every linear system has no solution, exactly one solution, or infinitely many solutions. Indeed, if are two solutions, then for every real
so every point of the line through and is a solution. Since , different values of give different points, so two solutions already force infinitely many.
In plain words Consistent means the requirements can all be met, by one point or by many. Consistent does not mean unique. Inconsistent means the requirements contradict each other. Two lines in the plane can cross once, be parallel and never meet, or coincide, and the same three outcomes, none, one or infinitely many solutions, are the only ones possible for any linear system.
Example In the system , the second equation is twice the first, so the two lines coincide. Every pair with real is a solution, for instance , and . Now change the second constant to . Any solution would have , which cannot equal , so the lines are parallel and the system is inconsistent. In the column picture both columns equal , and their span is a line through the origin. The target lies on that line, and the target does not.
Check yourself
- Write the system , as a matrix equation and as an augmented matrix. Is a solution?
Show the answer
The matrix form is
and the augmented matrix is
The pair is a solution, since and . In the column picture the same check reads .
- Describe all solutions of , . What happens if the second constant is changed to ?
Show the answer
The second equation is times the first, constant included, so the two lines coincide. Let . The first equation gives , so the solutions are the pairs for every real . Each of them also satisfies the second equation, since . Conversely, every solution satisfies the first equation, so it has this form.
With the constant , any solution would satisfy , which is not . The lines are then parallel and the system is inconsistent.
- A student claims that three equations in three unknowns always have exactly one solution. Test the claim on the system , , .
Show the answer
The claim is false. The second equation is twice the first, so it adds no new requirement, and the third gives . Let . Then , and the first equation gives . Every triple satisfies all three equations, because , twice that sum is , and . Conversely, every solution has and , so it has this form.
The system is consistent with infinitely many solutions, a line in . Counting equations does not tell how many independent requirements they impose.