Three measurements of three unknown readings sound like enough to pin the readings down. But if one measurement repeats another with every coefficient doubled, it adds nothing new when its recorded value is doubled too, and it makes the system impossible when it is not. This lesson practices deciding what a system determines before choosing a method, then describing every solution, treating a coefficient that can make a pivot vanish as its own case, keeping track of row swaps and confirming each answer in the original equations. Throughout, a tuple such as stands for a column vector.
Key terms
Classifying a system before solving
Definition To classify a linear system of equations in unknowns is to decide, before computing any solution, whether it has no solution, exactly one, or infinitely many. Reduce the augmented matrix to an echelon form by row operations, which do not change the solution set. If some row is an inconsistent row with , which reads , the system is inconsistent. Otherwise it is consistent, and it has exactly one solution when every column of is a pivot column and infinitely many when some column of has no pivot, with one free variable for each such column. Each row holds at most one pivot, so a system with fewer equations than unknowns never has exactly one solution. For a square matrix, pivots means that is invertible and that is the only solution for every . With fewer than pivots there is no inverse, and each gives either no solution or infinitely many.
In plain words Find out what the equations can determine before choosing how to solve them. An echelon form answers that question, and the answer tells you whether to look for one point, a whole family of points or a contradiction.
Example Consider the system
with coefficient matrix and augmented matrix
The operation turns the second row into a row of zeros, and swapping and gives the echelon form
There is no inconsistent row, the pivots sit in the and columns, and the column has none. The system is consistent with one free variable, so it has infinitely many solutions. The square matrix has only two pivots, so it has no inverse, and the answer has to be a family rather than a single point.
Redundant equation
Definition An equation of a linear system is redundant if it is a linear combination of the other equations, meaning that its row of , right-hand side included, is a linear combination of the other rows. Every solution of the other equations then satisfies it, so deleting it leaves the solution set unchanged, and every echelon form of has a zero row. For a fixed coefficient matrix , a right-hand side is inconsistent when has no solution, that is, when is not a linear combination of the columns of . This happens exactly when some combination of the equations cancels every coefficient on the left but leaves a nonzero number on the right, so that it reads with . Elimination then produces a row with .
In plain words A redundant equation repeats information the other equations already carry, so three equations may hold only two independent facts. When the left sides repeat each other but the recorded values do not repeat in the same way, the equations contradict each other, and no choice of the unknowns satisfies them all.
Example In the system above, the second equation is twice the first on both sides, so it is redundant, and the system has the same solutions as the pair and . Redundancy need not be a multiple of a single equation. In the system , , , the third equation is the sum of the first two. Now return to the first system, keep its matrix and change only the second right side from to , so that . Twice the first left side is still the second left side, and subtracting twice the first equation from the second gives
No choice of , and makes true, so this right-hand side is inconsistent. The vector is not a combination of the columns of , and no solution exists.
Complete solution family
Definition Let be a consistent system. Its complete solution family is the set of all its solutions, written with real parameters , one for each free variable, as
where is a particular solution and each solves the homogeneous system . Setting the free variables equal to the parameters and solving for the pivot variables by back-substitution produces such a family. A proposed family is complete when two statements hold. Every choice of the parameters gives a solution, and every solution comes from some choice of the parameters. When there are no free variables, the family is the single point .
In plain words Report every set of values the equations allow, not just one that works. The particular solution is one point that fits, and the homogeneous directions are the changes to the unknowns that the equations cannot detect.
Example For the first system, with , the free variable is , so set . The equation gives , and the first equation gives . So
The particular solution gives , and the direction gives , so every value of gives a solution. Conversely, take any solution and call its third coordinate . The third equation forces , and then the first forces , so the solution lies in the family. The values give , and , three points on one line that sends to the same output .
Exceptional coefficient
Definition Suppose some coefficients of a linear system are given expressions in a real parameter , so that each value of gives its own system. A value of is exceptional when an expression in that elimination would divide by, usually a pivot, equals zero there. Case analysis splits the work in two. Where the divisor is nonzero, divide and obtain a formula valid for all those values. At each exceptional value, substitute it into the equations as they stood before the division and classify that system on its own, since the formula says nothing there. At an exceptional value the coefficient matrix can lose a pivot, and then the right-hand side decides between no solution and infinitely many.
In plain words A formula with in a denominator was derived only for , so it says nothing about what happens at . Branch before you divide, and settle each excluded value with the equations themselves.
Example Take the system and . The operation divides by nothing and gives . If , division is allowed, and
At this gives , and indeed and . At the equation reads , so there is no solution, and the original equations agree, since cannot equal both and . If the second right side were instead of , the same value would make the two equations identical, and every pair with real would be a solution. The exceptional value stays the same, but the verdict there depends on the right-hand side.
Tracking a row swap
Definition When elimination exchanges rows of a square matrix , the final row order is recorded in a permutation matrix , the identity matrix with its rows in that order, and the factorization reads , where is lower triangular with ones on its diagonal and is upper triangular. If a swap happens after some multipliers are already stored, those stored multipliers in move with their rows. Partial pivoting chooses each pivot as an entry of largest absolute value in the current column, among the current row and the rows below it. For an invertible , suitable row exchanges always make every pivot nonzero, so has no zero on its diagonal. Then is solved by applying the same permutation to the right-hand side and solving in two steps, forward substitution for and then back-substitution for . A swap reorders equations, not unknowns, so comes out in the original variable order.
In plain words A row swap moves an equation together with its right side. The permutation is part of the record, and it has to act on exactly as it acted on the rows of .
Example Let
The first column holds , and , so partial pivoting swaps and , giving the original rows in the order . The new second row already has in the first column, so its multiplier is . The third row has multiplier , and leaves a third row with entries , , . In the second column the candidates are and , so no swap is needed. The multiplier is , and leaves entries , , . Hence with
The same swap gives . Forward substitution in gives , and , so . Back-substitution in gives , so , then , so , and finally , so . The solution is in the original order .
Checking the original equations
Definition Checking the original equations means substituting a proposed answer into every equation of the system as it was first given, before any row operation, swap, deletion or division. For a solution family, the parameter stays a letter, so one computation covers every parameter value. For a formula that depends on a coefficient parameter, the check is done symbolically under the same nonzero condition, and each exceptional value is checked on its own. When a factorization is used, comparing the product with checks the stored factors, which is a different question from whether the computed solves . A passing check shows that the proposed points are solutions. It does not show that none are missing, which needs the converse argument of a complete solution family.
In plain words Reduced, reordered and triangular systems are working copies, and a slip made while producing them stays invisible from inside them. The original equations are the question that was actually asked, so they get the last word.
Example For and above, the vector gives , and , so all three original equations hold. The factors pass their own check as well. The first two rows of are the first two rows of , which are rows and of . The third row of is times the first row of plus times its second row plus its third row. Its entries are , , , exactly the third row of , so . To see why the original check matters, suppose the permutation is forgotten and is solved instead. That gives and then the candidate , which satisfies exactly. Yet the first original equation gives , not , so the candidate is wrong.
Check yourself
- Classify the system below and find every solution. One of its equations is redundant. Does that mean it has infinitely many solutions?
Show the answer
The second equation is twice the first, right side included, so it is redundant. The operations and , followed by a swap of and , give
There is no inconsistent row, and both columns of the coefficient matrix are pivot columns, so the solution is unique despite the redundant equation. Back-substitution gives and then . The original equations check, since , and . A redundant equation only means that one equation carries no new information. For a consistent system, uniqueness depends on whether every unknown gets a pivot.
- Factor the coefficient matrix of the system below as using partial pivoting, then solve the system and check the original equations. If a swap is needed after elimination has started, what happens to the multipliers already stored in ?
Show the answer
In the first column the candidates are , and , so the pivot stays in the first row. The multipliers are for the second row and for the third, and the operations and leave a second row with entries , , and a third row with entries , , . In the second column the candidates are now and , so rows and swap, and their stored multipliers swap with them. The new second row carries and the new third row carries . The new third row already has in the second column, so its second multiplier is . The final row order is , and
The right side becomes . Forward substitution gives , then , so , and , so . Back-substitution gives , then , so , and , so . The original equations give , and , so the solution is . If the multipliers stayed behind during the swap, the second row of would have entries , , , while the second row of is , , . Solving with that wrong gives , which fails the last two original equations, for instance rather than .
- For which real numbers does the system below have no solution, exactly one solution or infinitely many? Give the solution when it is unique. A student cancels a common factor and reports and for every . What does that miss?
Show the answer
The operation divides by nothing, so it is valid for every . It gives
If and , dividing by is allowed, and the solution is unique,
It checks in the original equations, because
At the reduced equation reads , so there is no solution. Indeed the original equations become and , and the second says . At the reduced equation reads , the second equation is twice the first, and every pair with real is a solution. The student’s formula gives at , which is only the point of that family, so it misses infinitely many solutions there. Canceling was valid only under the condition .