Linear Algebra · Solutions
Systems of Linear Equations
Work this sheet on paper and show every step: write each row operation you perform in the form , say which entry is the pivot, and name every result you use (“by the existence and uniqueness criterion”, “by the rank theorem”, “by the structure theorem for solution sets”). No calculator is needed anywhere — every number is a small integer or a simple fraction, and a check in the original equations is expected wherever a solution is found. Full worked solutions are on a separate page; each question also has its own reveal, so you can check one answer without seeing the rest.
- 1.Sketch
For each pair of equations below, sketch both lines in the same -plane, marking the intercepts you used to draw them. Classify the solution set as a single point, a whole line, or empty, and justify the classification algebraically — the picture alone does not settle it.
- (a) and .
- (b) and .
- (c) and .
- (d)Using only the geometry of lines in the plane, explain why no system of two linear equations in two unknowns can have exactly two solutions.
Solution
(a) Two lines that cross once. The line passes through and and rises steeply (slope ); the line passes through and and falls (slope ). The slopes differ, so the lines are not parallel and must cross exactly once. To find where, add the two equations: , so , and then . The solution set is the single point .
Check in both equations: and . The sketch shows a steep rising line and a falling line meeting at , with the four intercepts labelled.
(b) The same line twice. Multiplying through by gives , which is exactly the second equation. So the two equations carry identical information and describe one line, through and with slope . Draw a single line and label it with both equations. The solution set is the whole line: solving for , it is .
Check at : the point gives and .
(c) Parallel and distinct. Rewriting, and : the same slope , different intercepts. The first line crosses the axes at and ; the second at and , so it lies strictly above the first everywhere. Algebraically: any solution of the first equation satisfies , and the second demands , so , which is false. The solution set is empty. The sketch shows two parallel lines that never meet.
(d) Suppose two lines had two distinct common points and . Through two distinct points there passes exactly one line, so both lines are that line — they coincide, and then every point of the line is common to both, giving infinitely many solutions. So as soon as a pair of lines shares two points it shares all of them. The only possible counts are zero (parallel and distinct), one (crossing) and infinitely many (coincident): exactly the three pictures in (a), (b) and (c).
- 2.Computation
Consider the system
- (a)Write the augmented matrix. Perform and then , writing the matrix after each step, and read off the solution. Check it in the original equations.
- (b)For each of the two operations, write down the row operation that undoes it. Explain why the existence of these inverse operations is what guarantees that the solution you read off is a solution of the original system, and not merely of the reduced one.
- (c)A student instead performs . Write the resulting system, exhibit a pair that solves it but does not solve the original, and say which requirement in the definition of the row operations has been violated.
Solution
(a) Reduce and read off. The augmented matrix is
replaces the first row by :
replaces the second row by ; the first row is the source and does not change:
Row says , and row then gives . Check in the original system: and . Both hold.
(b) Inverses and why they matter. The inverse of is ; the inverse of is .
The proof that row operations preserve the solution set has two halves. The direct half shows that any solution of the old system still satisfies the new equations (a scaled equation or a sum of true equations is still true). That half only says the original solutions survive; it does not say the reduced system has no extra solutions. The reverse inclusion comes from applying the same direct argument to the inverse operations, which carry the reduced system back to the original: any solution of the reduced system therefore satisfies the original equations. So , read off the reduced system, is a solution of the original because and exist and are themselves row operations.
(c) Multiplying a row by zero. After the matrix is , the system , . The second equation has been erased, so the solution set is the whole line , . The point satisfies , but in the original second equation .
The violated requirement is that scaling (R2) uses a nonzero scalar. The operation has no inverse — nothing recovers from — so the reverse inclusion in (b) is unavailable, and the new system acquires solutions the original never had.
- 3.Computation
Consider the system
Write every row operation in the form and state the pivot you are working with at each stage.
- (a)Write the augmented matrix and run the forward phase of Gaussian elimination to reach an echelon form.
- (b)List the pivot columns, the basic variables and the free variables. Is the system consistent, and how many solutions does it have? Cite the criterion you are using.
- (c)Run the backward phase to reach the reduced echelon form and write the general solution. Verify it against all three original equations for one nonzero value of the parameter.
Solution
(a) Forward phase. The augmented matrix is
Column : the pivot is the in position . gives and gives :
Column : the pivot is the in position . gives :
Column of the remaining submatrix is zero, so the next pivot is the in position , and there are no rows below it. This is an echelon form: the leading entries move strictly right down the rows.
(b) Reading the staircase. The pivot positions are , and , so the pivot columns are , and . The basic variables are and the free variable is .
No row has the form with , so by the existence and uniqueness criterion the system is consistent; and since there is a free variable, the same criterion says it has infinitely many solutions.
(c) Backward phase and the general solution. Start with the rightmost pivot, in column ; it is already . Clear above it with , giving ; row already has a in column . Next the pivot in column : gives . The reduced echelon form is
Set . The rows say , and , so the general solution is
Check at , the point : ; ; . All three original equations hold.
- 4.Computation
Let . Reducing to takes three operations, in this order: , then , then .
- (a)Write the elementary matrices of the three operations, and for each write its inverse as a matrix together with the row operation that inverse represents.
- (b)Compute and verify by multiplication that . What is in terms of ?
- (c)Write itself as a product of elementary matrices and check the product. Then compute and explain why it is not equal to .
Solution
(a) The three elementary matrices. Apply each operation to .
gives ; its inverse operation is , so .
gives ; the inverse of scaling by is scaling by , the same operation, so .
gives ; its inverse operation is , so .
(b) The product of the operations. Multiply right to left, since acts first:
Verification:
Since is square and , . Sanity check with the inverse formula: , so , which is .
(c) as a product, and the wrong order. From we get , using the rule that the inverse of a product reverses the order. So
Check: the first two factors multiply to , and then .
Now the other order: , and
Matrix multiplication is not commutative, and the product records the operations in the reverse of the order they were performed: the last operation acts on the result of the earlier ones, so it sits furthest left. is the matrix of a different procedure — first, then , then — and indeed , nowhere near .
- 5.Computation
Let and in , and let be the matrix whose columns are and .
- (a)Decide whether and lie in . Where a vector is in the span, give the weights; where it is not, show why no weights can exist.
- (b)Row-reduce augmented with a general right-hand side to find a single linear equation in that describes the span. Verify it on and on , and say what geometric object the span is.
- (c)State the question about in (a) in each of its three equivalent forms — as a system of scalar equations, as a vector equation, and as a matrix equation — and name the theorem that makes the three forms equivalent.
Solution
(a) Solve for weights. is in the span exactly when has a solution, that is, when
The second equation forces ; the first then gives , so and . The third must be checked, not assumed: , which holds. So and is in the span.
For the first two coordinates are the same, so any weights would again have to be , and then the third coordinate reads . No weights exist and is not in the span.
(b) The span as one equation. Reduce with a symbolic right-hand side:
The pivot in column is the . makes the last row . The system is consistent exactly when that entry is ; multiplying by ,
Check: gives , in the span; gives , not in the span — matching (a). The two spanning vectors are not multiples of one another (), so the span is a plane through the origin in , and is its equation. Sanity check that the generators satisfy it: gives and gives .
(c) The three views. As scalar equations: , , . As a vector equation: . As a matrix equation: with
The theorem that the three views agree says these have exactly the same solution set, and in particular that is consistent if and only if lies in the span of the columns of . Here all three are inconsistent, which is what (a) found.
- 6.Computation
The system below contains real parameters and :
- (a)Reduce the augmented matrix to echelon form, keeping and symbolic, and determine for which pairs the system has no solution, exactly one solution, and infinitely many solutions. Name the criterion you use.
- (b)In the case , , write the solution set in parametric form and check one of its points in the original equations.
- (c)Take and leave the right-hand side unspecified. Explain, naming the theorem, why there must exist right-hand sides for which the system is inconsistent; state and the possible values of ; and find the condition on for consistency.
Solution
(a) Symbolic elimination. The augmented matrix and its reduction:
The pivot in column is the in row . gives the last row :
Everything is decided by the last row, , via the existence and uniqueness criterion.
If : three pivots in three columns, no impossible row, so exactly one solution for every . If and : the last row reads , an impossible row, so no solution. If and : the last row is , there are two pivots and is free, so infinitely many solutions.
Sanity check of the unique case at , : , then , then . In the original equations: , , . All hold.
(b) The free case. With the echelon form is rows , , . Set . Row gives ; row gives . So
a line in . Check at , the point : , , . All hold.
(c) Why some right-hand sides must fail. With the coefficient matrix reduces to rows , , : two pivots, so , and the third row has no pivot. The solvability theorem says is consistent for every if and only if has a pivot in every row; that fails, so some makes the system inconsistent. Appending a column adds at most one pivot, so is (consistent) or (inconsistent).
To find the condition, repeat the reduction with a general right-hand side: leaves , leaves , and leaves in the last row. The system is consistent exactly when
Sanity checks: from part (b) gives , consistent as found; gives , so is an explicit inconsistent instance.
- 7.Proof
Let be an matrix. Quote by name each proposition or theorem you use.
- (a)Suppose is consistent. Prove that it has exactly one solution if and only if .
- (b)Now suppose is square () and has only the trivial solution. Prove that is consistent for every .
- (c)Show by explicit examples that (b) fails without the hypothesis : give a non-square for which has only the trivial solution but is inconsistent for some , and a non-square for which is consistent for every but . In each case point to the step of your proof in (b) that breaks.
Solution
(a) Uniqueness is a statement about the null space. Let be a solution of , which exists by hypothesis.
() Suppose is the only solution, and let . Then , so is a solution. By uniqueness , hence . So .
() Suppose and let be solutions. Then , so and . There is exactly one solution.
(Both directions are the structure theorem for solution sets in the special case where the null space is trivial: the solution set is a single point exactly when is.)
(b) Counting pivots in a square matrix. By the proposition on when nontrivial solutions exist, has only the trivial solution if and only if every column of is a pivot column. So has pivot positions.
Distinct pivot positions lie in distinct rows, so these pivots occupy distinct rows. But has exactly rows, so every row of contains a pivot position.
By the solvability theorem, a pivot in every row is equivalent to being consistent for every .
(c) Two counterexamples. Tall: take , which is . The equation reads , , so only the trivial solution. But reads , , which is inconsistent. The step that breaks is " pivots fill all rows": here pivot cannot fill rows, and the second row has none.
Wide: take , which is . It has a pivot in every row, so by the solvability theorem is consistent for every (indeed works). But column has no pivot, so is free and . Here the hypothesis of (b) itself fails — the null space is not trivial — which shows the converse direction "pivot in every row pivot in every column" is false when there are more columns than rows. The two conditions coincide only when .
- 8.Computation
Let be the coefficient matrix of the system
- (a)Reduce the augmented matrix to reduced echelon form and write the solution set in parametric vector form .
- (b)Give a spanning set for , and verify directly that every row of sends each spanning vector to .
- (c)Verify that is a solution, write as an explicit combination of and , and explain, quoting the structure theorem, why describes exactly the same set as your answer to (a).
Solution
(a) Reduce to RREF. Forward phase:
Column of the remaining block is zero, so the next pivot is the in position . gives . Backward phase: gives , and gives :
Pivot columns and ; free variables and . The rows say and , so
Check in the original system: ; ; . All hold.
(b) The null space. By the structure theorem the parameter vectors span the null space: . Direct verification against the rows , , of :
For : ; ; .
For : ; ; .
Both are in the null space, as claimed.
(c) A different particular solution. Check : ; ; . So is a solution. Then
since . That is, is the point of the family in (a) with .
The structure theorem says the solution set is for any one solution — the theorem's proof never used which solution was chosen. Taking gives the description . Concretely the two descriptions are reparametrisations of one another: , and as runs over so does . The particular solution is a choice; the set, and the null space directions, are not.
- 9.Critique
A student is asked whether , , are linearly independent, and submits the following.
Step 1. No vector in the list is a scalar multiple of another: is not a multiple of , because the first coordinates would need the factor while the third coordinates would need the factor , and the other two pairs fail the same way. So no vector is a linear combination of the others, and the list is linearly independent.
Step 2. This agrees with the corollary that a list of vectors in is dependent when : here , so the corollary does not apply, and the list is independent.
Step 3. Confirmation by row reduction: the matrix with these columns reduces to , and every column has a nonzero entry, so every column is a pivot column.
- (a)Each step contains an error. Identify all three, and for each say precisely which definition, proposition or corollary is being misstated or misapplied.
- (b)Determine whether the list is independent. If it is dependent, give an explicit dependence relation and express one vector as a combination of the others.
Solution
(a) The three errors.
Step 1 tests pairs, but dependence is about combinations. The characterisation of dependence says a list is dependent if and only if some is a linear combination of the others — all of them together, not one at a time. For two vectors that reduces to "one is a multiple of the other", but for three it does not: may be a combination of and without being a multiple of either. The pairwise checks are correct as far as they go; the sentence "so no vector is a linear combination of the others" is a non sequitur.
Step 2 uses a one-way corollary backwards. The corollary " implies dependent" is an implication, not an equivalence. When it says nothing at all: lists with can be independent or dependent. (Any list containing is dependent, whatever is; so is in .) "The corollary does not apply" is not evidence of independence.
Step 3 confuses a nonzero column with a pivot column. The reduced matrix is correct, but a pivot column is a column containing a pivot position — the leading entry of some row — not a column with a nonzero entry in it. The leading entries are the in row (column ) and the in row (column ); the entries and in column are not leading entries of their rows. So the pivot columns are and only, and the proposition on independence in terms of pivots (independent if and only if every column is a pivot column) says the columns are dependent, the opposite of the student's conclusion.
(b) The correct determination. Row-reduce the matrix with the vectors as columns:
Two pivots for three columns, so column is free and the list is linearly dependent. To find a relation, solve with the free variable : row gives , so ; row gives , so . Hence
Check: . This is exactly the situation Step 1 could not see — is a combination of the other two while being a multiple of neither.
- 10.Proof
Let be an matrix and . In each part give a complete argument from the definitions of pivot position, rank and nullity, and from named results.
- (a)Prove that equals either or , and say which case is consistency.
- (b)Prove: if is consistent for every and has only the trivial solution, then is square.
- (c)Prove that . Then, for and , give one matrix for which equality holds and one whose nullity is , verifying the rank of each.
Solution
(a) Appending a column adds at most one pivot. Run the forward phase of Gaussian elimination on . The algorithm works through the columns from left to right, and every choice it makes while processing the first columns — which column is next, which rows to swap, which multiples to subtract — depends only on entries in those columns. So when the algorithm reaches column , the left block has been carried to an echelon form of and the matrix reads for some .
Every pivot of is a leading entry of its row in too, because appending an entry to the right of a row does not change where its first nonzero entry is. That accounts for pivot positions of . The remaining rows are zero to the left of the bar. If any of them has a nonzero entry in the last column, the algorithm swaps one such row to the top of the remaining block and clears the rest of the column below it, creating exactly one further pivot position, in column ; if none does, no pivot is created. Since pivots move strictly rightward down the rows, a single column can contain at most one pivot position, so the last column contributes or pivots and never more. Hence
(The counts are independent of the route taken, by the uniqueness of the reduced echelon form.) The extra pivot exists exactly when the last column is a pivot column, which by the existence and uniqueness criterion is exactly when the system is inconsistent. So is the consistent case.
(b) Full row rank and full column rank force . By the solvability theorem, consistent for every means has a pivot position in every row; distinct pivots lie in distinct rows, so the number of pivots is exactly , i.e. .
By the proposition on nontrivial solutions, having only the trivial solution means every column of is a pivot column; distinct pivots lie in distinct columns, so the number of pivots is exactly , i.e. .
The rank is a single well-defined number (uniqueness of the reduced echelon form), so and is square.
(c) A lower bound on the nullity. By the rank bounds, . By the rank theorem, , and therefore
In words: a wide matrix cannot impose more independent constraints than it has rows, so at least degrees of freedom always survive.
Examples with , . Equality: is already in reduced echelon form with pivots in columns and , so and . Nullity : the zero matrix has no nonzero entry, hence no pivot, so (by the rank bounds, the zero matrix is the only matrix of rank ) and : every vector of is in the null space. The intermediate value is also attainable, for instance by , whose second row is twice the first, leaving a single pivot.
- 11.Computation
Let
Record every multiplier as you eliminate, with its sign.
- (a)Find the factorization of , and verify by multiplying out rows and of the product.
- (b)Using the factorization — not fresh elimination — solve first for and then for . Show the forward and back substitutions and check each answer in .
- (c)Let . Prove that has no factorization with unit lower triangular and upper triangular, then find a permutation matrix and an factorization of .
Solution
(a) Eliminate and record. Column : the pivot is . The multiplier for row is , and gives . The multiplier for row is , and gives :
Column : the pivot is . The multiplier for row is , and gives . No interchange was needed, so by the theorem on multipliers
Verification: row of is ; row is . Both match (row of is row of , which is row of ).
(b) Two right-hand sides, one factorization. First, . Forward substitution on , top down: ; gives ; gives . Back substitution on , bottom up: gives ; gives ; gives . So . Check in : , , .
Second, . Forward: ; ; . Back: gives ; gives ; gives . So . Check in : , , .
The elimination was paid for once; each further right-hand side costs only two triangular sweeps.
(c) A matrix that needs a permutation. Suppose with unit lower triangular and upper triangular, and compare rows of the product. Row of is , so row of equals row of , namely . Row of is ; matching forces and then . Row of is , whose first two entries are ; matching forces and , a contradiction. So no such factorization exists. (Elimination shows the same thing: after clearing column the entry is while the entry is , so a swap is unavoidable.)
Swap rows and in advance with , so that
Now eliminate: , gives ; , gives ; the entry is already , so . Hence
Check: row of is and row is , the second and third rows of .
- 12.Computation
Four one-way intersections , , , are joined by five internal roads carrying, in cars per hour, from to , from to , from to , from to , and directly from to . External traffic per hour: takes in and releases ; takes in and releases ; takes in and releases ; takes in and releases . At every intersection, flow in equals flow out.
- (a)Write the four conservation equations as a linear system, show that one of them is a consequence of the other three, and find the rank of the coefficient matrix.
- (b)Solve the system and write all flows in parametric vector form. Interpret each null-space direction as a circulation in the network.
- (c)The road from to is closed, so , and no road may carry negative traffic. Find the set of all admissible flows and the smallest possible value of .
- (d)Suppose instead that released cars per hour, everything else unchanged. Show that the system is inconsistent and say in one sentence what the impossible row means physically.
Solution
(a) The model. In equals out at each intersection:
: , i.e. .
: , i.e. .
: , i.e. .
: , i.e. .
Adding the , and equations gives , that is — exactly the equation. So is redundant: every internal road appears once as an inflow and once as an outflow, so summing all four left-hand sides gives , and the four right-hand sides also sum to because total external inflow () equals total external outflow ().
For the rank, reduce the augmented matrix (rows in the order ):
Then gives and gives :
Pivots in columns , so the coefficient matrix has rank ; by the rank theorem the nullity is .
(b) All flows. Free variables and . Row : , so . Row : , so . Row : . In parametric vector form
Check the particular solution at every intersection: : ; : ; : ; : . All balance.
The direction adds one car per hour to each of : a circulation around the outer loop, which changes no external flow. The direction reroutes one car per hour from the path onto the direct road : the same car arrives at either way, so again nothing external changes. These are the two independent ways to move traffic around without anyone noticing at the boundary.
(c) Closing . Setting forces , leaving the one-parameter family . Nonnegativity requires (road ) and (road ; the condition is then automatic). So the admissible flows are exactly
The smallest occurs at : , with , , . Check at : ; at : ; at : ; at : . All balance, and no road is negative.
(d) Unbalanced totals. The equation becomes , i.e. ; the other three rows are unchanged. Repeating the reduction, the last step now gives , an impossible row, so by the existence and uniqueness criterion the system is inconsistent. (Equivalently, now has left side equal to that of but right side .) Physically: the network would have to release cars per hour while only enter, and a steady flow cannot create ten cars an hour out of nothing.