Chapter 3: Linear systems and row reduction
3.1Linear systems
The Fundamental Theorems (Section 2.7) are statements about the equation : whether it has a solution for every , and whether solutions are unique. They do not tell us how to settle either question for a particular matrix, let alone how to find the solutions. This chapter develops the tool that does, Gauss–Jordan elimination, and then uses it to finish the proofs of the theorems. This section sets up the problem. A linear system can be read as a list of equations, as one matrix equation, or as a question about linear combinations of columns, and its solution set always has the same shape: it is empty, or it is one solution plus the kernel of .
3.1.1Linear systems
Definition 3.1.1 (Linear system). Let be a field. A linear equation in the unknowns over is an equation
where the coefficients and the right-hand side are fixed elements of . A linear system (or system of linear equations) of equations in unknowns is a list of linear equations in the same unknowns,
with all and in . A solution of the system is a vector
The word “linear” refers to the unknowns: each term is a scalar times a single unknown, and nothing else involves the unknowns. The coefficients can be any scalars. An equation such as also counts, since adding to both sides turns it into without changing its solutions.
Example 3.1.2 (A system with a line of solutions). Over , consider the system of three equations in three unknowns
The vector is a solution, since , , and . So is . The vector satisfies the first equation but not the second, so it is not a solution. We will find the whole solution set in Example 3.1.13: it is a line in . We call it the running system and return to it several times.
3.1.2Three faces of one problem
A linear system is determined by its coefficients and its right-hand sides ; what we call the unknowns plays no role. Collecting the coefficients into a matrix and the right-hand sides into a vector turns the equations into a single equation, and that equation can be read in two further ways.
Definition 3.1.4 (Coefficient matrix; matrix and vector forms). The coefficient matrix of the system in Definition 3.1.1 is the matrix whose entry is , the coefficient of in the th equation. Write
in the unknown , and its vector form is the equation
in the unknown scalars . We refer to the system itself as “the system ”.
For the running system (Example 3.1.2),
The missing in the third equation is a coefficient .
- (i) is a solution of the linear system with coefficient matrix and right-hand sides .
- (ii).
- (iii)
.
Uses. Definition 2.3.8 (Matrix–vector product), Definition 1.2.4 (The space )
By Definition 2.3.8,
For (i) (iii), recall that vectors in are added and scaled entry by entry, and that two vectors in are equal exactly when their entries are (Definition 1.2.4). The th entry of is , so the th entry of is
Hence (iii) holds if and only if, for each , the left side of the th equation equals . That is, (iii) holds if and only if is a solution. □
Example 3.1.6 (Two pictures of one system). The system , over has matrix form and vector form
Read as equations, it asks for the points of that lie on two lines; the lines cross at (Figure 3.1.1, left). Read as a vector equation, it asks how to reach by scaling and and adding; the answer is one of each, since
Realize that the two pictures live in different spaces. The row picture is drawn in , the space where the unknown lives, and has one line (in , one plane) per equation. The column picture is drawn in , the space where the right-hand side lives, and has one vector per unknown.
Exercise 3.1.7. Write the system
over in matrix form and in vector form. Is a solution? Is ?
Uses. Proposition 3.1.5 (Three faces of a linear system), Definition 3.1.4 (Coefficient matrix; matrix and vector forms)
The matrix and vector forms are
For , the left sides are , , and , so is a solution. For , the first two equations hold ( and ), but , so is not a solution.
What each face is good for
Intuition (Three ways to read ). The equations are what we manipulate. Adding a multiple of one equation to another, swapping two equations, or scaling one by a nonzero scalar does not change the solution set, and elimination is built from exactly these moves (Section 3.1.3). Geometrically, the solution set of a system is the intersection of the solution sets of its equations, which is the row picture.
The matrix equation brings in the linear map , (Definition 2.3.15). Solving the system means finding every with , that is, the preimage of under . Consistency asks whether , and the solution set of is . Everything we know about kernels and images applies, and so does linearity:
The vector equation asks whether is a linear combination of the columns of , and if so in how many ways. Read backwards, it says that every question about a span or about linear independence of a list in is a question about a linear system. So a procedure that solves linear systems also answers, by computation, the questions of Chapter 1.
The first two readings are related by the following proposition, which is little more than a translation of definitions.
Proposition 3.1.8 (Systems and the map ). Let have columns , and let .
- (a)The system is consistent if and only if , if and only if
. - (b)The solution set of the homogeneous system is .
Uses. Proposition 3.1.5 (Three faces of a linear system), Definition 2.3.15 (The linear map of a matrix), Definition 2.6.6 (Image), Definition 2.6.5 (Kernel), Definition 1.3.10 (Span)
(a) By Definition 2.6.6 and Definition 2.3.15, means that for some . By Definition 1.3.10,
(b) By Proposition 3.1.5, solves if and only if , that is, if and only if (Definition 2.6.5). □
Combining Proposition 3.1.8 with the Fundamental Theorems gives a dictionary between the three faces (Table 3.1.1). Each row says the same thing about in three ways. Most of the questions we ask about a matrix in the next two chapters are entries of this table, and Gauss–Jordan elimination will answer each of them by inspecting a single matrix.
| The system | The map | The columns of |
|---|---|---|
| is consistent | is in their span | |
| with has a solution | they are linearly dependent | |
| is consistent for every | is surjective | they span |
| has at most one solution for every | is injective | they are linearly independent |
| has exactly one solution for every | is bijective | they form a basis of |
The third reading turns questions about vectors into linear systems. This move is used so often that it deserves a name.
Technique 3.1.9 (Undetermined coefficients). To decide whether an object with prescribed properties exists, and to find all such objects, write the unknown object in terms of unknown scalars, the undetermined coefficients, and translate each requirement into an equation in those scalars. When the requirements are linear in the scalars, the result is a linear system, and the question becomes whether that system is consistent and what its solution set is.
Reach for it whenever you are asked whether a vector is a linear combination of given vectors, whether a list is linearly independent, or whether a polynomial or a linear map with given properties exists. Membership of in is the system
Used in 15 places and 9 practice exercises
Exercise 3.1.11, Exercise 3.1.29, Exercise 3.1.37, Exercise 3.1.38, Exercise 3.1.39, Exercise 3.1.40, Exercise 3.1.41, Theorem 3.4.24, Exercise 3.4.43, Exercise 3.6.12, Problem 3.9, Problem 3.11, Problem 3.13, Exercise 6.3.49, Exercise 6.6.48; 9 practice exercises.
Example 3.1.10 (Membership and independence over and over ). Let , , and . Is a linear combination of ? Writing
Adding the three equations shows that every solution satisfies .
Over we may divide by , so every solution has . Subtracting each of the three equations from this one gives , , and . Conversely, satisfies all three equations. So
Over we have and , so every solution would satisfy . The system is inconsistent, and
The only step that distinguished the two fields was a division by . Elimination divides by nonzero scalars all the time, and which scalars are nonzero depends on the field.
Exercise 3.1.11. Set up a linear system whose solutions are exactly the triples with
in , and solve it.
Uses. Technique 3.1.9 (Undetermined coefficients), Definition 1.2.13 (Polynomials)
Techniques. Undetermined coefficients (Technique 3.1.9)
Expanding,
The second equation gives , and then the first gives ; the third gives . Conversely, satisfies all three equations. So the system has exactly one solution, and
3.1.3Augmented matrices and elimination
The augmented matrix of the running system (Example 3.1.2) is
Row of the augmented matrix records equation , so operations on equations become operations on rows, and we can skip writing the unknowns.
Example 3.1.13 (Elimination on the running system). We solve the running system by eliminating unknowns. Subtract times the first equation from the second, and times the first from the third:
Now subtract the second equation from the third, and times the second from the first:
The last row is the equation , which every vector satisfies. The other two rows say and . Whatever value we give , these determine and . So the solution set is
the line through in the direction of . The solutions and from Example 3.1.2 are the points with and .
If the third right-hand side were instead of , the same operations would end with the row , which is the equation . No vector satisfies it, so that system is inconsistent.
These moves never change the solution set. Each new equation is a combination of the old ones, so every solution of the old system also solves the new one. And each move can be undone by a move of the same kind: subtracting times the first equation from the second is undone by adding times the first equation back, which is possible because the first equation is still there. (In each step of the example, the equations we subtracted were themselves left unchanged in that step.) So the old equations are combinations of the new ones as well, and every solution of the new system solves the old one. The two systems are equivalent. Section 3.2 makes this precise by writing each move as left multiplication by an invertible matrix, and Exercise 3.1.35 shows what goes wrong when a move cannot be undone.
3.1.4Homogeneous systems and the shape of the solution set
Example 3.1.15 (The running system, made homogeneous). The associated homogeneous system of the running system is , , . The row operations of Example 3.1.13 never mix the last column into the others, and a last column of zeros stays zero, so they end with and . The solution set is
a line through the origin, parallel to the solution line of the running system.
Uses. Proposition 3.1.8 (Systems and the map ), Proposition 2.6.8 (Kernels and images are subspaces)
Concretely: sums and scalar multiples of solutions of a homogeneous system are again solutions. A system with has no such luck. Its solution set never contains , since , so it is never a subspace. The running system shows what it is instead: the line of solutions in Example 3.1.13 is the line of Example 3.1.15, moved over so that it passes through one solution. To say this in general we need a name for a moved-over subset.
Notation 3.1.17 (Translates). Let be a vector space, , and . The translate of by is
Technique 3.1.18 (Particular plus homogeneous). To find every solution of a linear equation , find one solution , called a particular solution, and all solutions of the homogeneous equation . Every solution is for exactly one such . This splits the problem in two: existence of a solution depends on , while the shape of the solution set, and in particular uniqueness, depends on alone.
Reach for it whenever you need all solutions of a linear problem, such as a linear system, a linear recurrence, or a linear differential equation, and whenever you need to show that a solution is unique: a solution, if one exists, is unique exactly when the homogeneous equation has only the trivial solution. The canonical example is Proposition 3.1.19.
Used in 22 places and 8 practice exercises
Corollary 2.6.31, Exercise 2.6.33, Exercise 2.6.34, Proposition 3.1.19, Exercise 3.1.21, Corollary 3.1.22, Corollary 3.1.23, Exercise 3.1.29, Exercise 3.1.30, Exercise 3.1.31, Exercise 3.1.37, Exercise 3.1.38, Exercise 3.1.46, Exercise 3.1.47, Theorem 3.4.9, Exercise 3.6.12, Problem 3.1, Problem 3.5, Problem 3.9, Problem 3.16, Theorem 4.7.8, Corollary 7.1.30; 8 practice exercises.
Proposition 3.1.19 (Solution sets are translates of the kernel). Let be a linear map, let , and let
and the map , , is a bijection. In particular, the solution set of a linear system is either empty or equal to , where is any one solution.
Uses. Definition 2.1.1 (Linear map), Definition 2.6.5 (Kernel), Notation 3.1.17 (Translates), Proposition 1.2.34 (Negatives and the scalar ), Proposition 3.1.5 (Three faces of a linear system)
Techniques. Double containment (Technique 1.3.14), Particular plus homogeneous (Technique 3.1.18)
Suppose , so that . We prove the two containments.
. Let . Since is linear,
so .
. Let , and put
so , and
Hence , which says exactly that maps onto . This map is also injective: if , adding to both sides gives . So it is a bijection.
For the last statement, let and . By Proposition 3.1.5, the solution set of the system is . If it is nonempty, we apply what we proved to and any solution . □
So the solution set of a consistent system is slid over to pass through any one solution, and which solution we slide it to does not matter. For the running system, Example 3.1.13 and Example 3.1.15 give
The proof used nothing about and beyond the linearity of , so the proposition applies to linear equations far from .
Example 3.1.20 (A linear equation in ). Let be differentiation, , which is linear (Section 2.1). Which polynomials satisfy ? One solution is . The kernel of consists of the constant polynomials: if
Over the step from to fails when divides . For instance
Uses. Proposition 3.1.19 (Solution sets are translates of the kernel), Corollary 3.1.16 (Homogeneous solution sets are subspaces)
Techniques. Particular plus homogeneous (Technique 3.1.18)
Consequences
Proposition 3.1.19 separates the two questions every system raises. Whether has a solution depends on . How many solutions it has, once it has one, depends only on .
Corollary 3.1.22 (Uniqueness depends only on ). Let .
- (a)A consistent system has exactly one solution if and only if .
- (b)If has exactly one solution for some , then has at most one solution for every .
Uses. Proposition 3.1.19 (Solution sets are translates of the kernel), Proposition 2.1.4 (Linear maps preserve and negatives)
Techniques. Particular plus homogeneous (Technique 3.1.18)
(a) Let be the solution set and . By Proposition 3.1.19, is a bijection from onto , so has exactly one element if and only if does. Since (Proposition 2.1.4), has exactly one element if and only if .
(b) By (a), applied to the system with exactly one solution, . Let . If is inconsistent, it has no solutions. Otherwise it has exactly one solution, by (a) again. □
Part (a) recovers the implication “if , then has at most one solution for every ” of Theorem 2.7.2, now seen from the shape of the solution set. Part (b) cannot be improved to “exactly one solution for every ”: see Exercise 3.1.34.
Over , two solutions of a system determine a line, and the whole line consists of solutions. In general:
Uses. Proposition 3.1.19 (Solution sets are translates of the kernel), Corollary 3.1.16 (Homogeneous solution sets are subspaces)
Techniques. Particular plus homogeneous (Technique 3.1.18)
Uses. Corollary 3.1.23 (Lines through solutions), Proposition 1.2.35 (Zero products)
For a finite field the third option is impossible, and the right replacement is a count.
Uses. Proposition 3.1.19 (Solution sets are translates of the kernel), Proposition 3.1.8 (Systems and the map )
3.1.5Pictures in and
Over we can draw what the results of this section say.
The row picture
An equation with describes a line in . An equation with reads ; its solution set is all of if and empty otherwise. The solution set of a system is the intersection of the solution sets of its equations, so two equations in two unknowns, each with a nonzero coefficient, describe the intersection of two lines. There are three possibilities (Figure 3.1.2): the lines cross in one point, they are parallel and distinct, or they coincide.
An equation in with some nonzero coefficient describes a plane in , and a system describes an intersection of planes. Two planes meet in a line, are parallel and distinct, or coincide. Three planes have more options. They can meet in a single point; pass through a common line, as the planes of the running system do (Example 3.1.13); coincide; or have no point in common. The last case occurs when two of the planes are parallel and distinct, but also in a less obvious way. Changing the right-hand side of the running system from to moves the third plane off the common line of the first two, but keeps it parallel to that line. The result is three planes, no two of them parallel, that meet in pairs along three parallel lines and have no point in common (Figure 3.1.3). Elimination detected this as the equation .
The column picture
The columns , , of the running system all satisfy , and this condition is preserved by sums and scalar multiples, so every combination of the columns satisfies it too. Hence can only be consistent if . The right-hand side passes this test and fails it, which explains the inconsistency without any elimination. Conversely, every with is reached, since
So is the plane in . The row picture lives in the space of unknowns and the column picture in the space of right-hand sides, and the two describe the same system from opposite ends.
Many right-hand sides
Proposition 3.1.19 adds the last piece. For a fixed , the nonempty solution sets of , as varies, are all translates of the single subspace , so they are parallel to each other (Figure 3.1.4).
Remark 3.1.27 (What a solution set can look like). The subspaces of are , the lines through , and ; the subspaces of are , the lines and planes through , and . (This follows from the theory of dimension in Section 4.1.) So by Proposition 3.1.19, the solution set of a real linear system in two or three unknowns is empty, a point, a line, a plane, or the whole space. It is never a circle or a pair of points.
In any vector space, a translate of a subspace is called an affine subspace (Definition 4.7.1). In this language, Proposition 3.1.19 says that the solution set of a consistent system is an affine subspace, and that it is a translate of . Section 4.7 studies affine subspaces in their own right.
Exercises
Exercise 3.1.28. Which of the following are linear systems in the unknowns over ? For each one that is, write its coefficient matrix and its augmented matrix.
- (a) and .
- (b) and .
- (c)
. - (d) and .
Uses. Definition 3.1.1 (Linear system), Definition 3.1.4 (Coefficient matrix; matrix and vector forms), Definition 3.1.12 (Augmented matrix), Corollary 3.1.23 (Lines through solutions)
Adding the same expression to both sides of an equation does not change its solutions, so we may move terms freely.
(a) Linear. Rearranged, the system is , , so
(b) Not linear: the term is a product of two unknowns. In fact its solution set, the points with and or , is not the solution set of any linear system: it contains and but not , which lies on the line through them, contrary to Corollary 3.1.23.
(c) Linear: one equation
(d) Linear. Rearranged, the system is , , so
Exercise 3.1.29. Let , , and in .
- (a)Write as a linear combination of in every possible way.
- (b)Show that is not a linear combination of .
Uses. Technique 3.1.9 (Undetermined coefficients), Proposition 3.1.5 (Three faces of a linear system), Proposition 3.1.19 (Solution sets are translates of the kernel)
Techniques. Particular plus homogeneous (Technique 3.1.18), Undetermined coefficients (Technique 3.1.9)
(a) We want all with
Subtracting times row from row and times row from row gives rows and . Subtracting times the new row from the new row gives the zero row, and scaling row by gives . Finally, subtracting times this row from row gives . So the system is equivalent to , , and its solutions are
and these are all the ways. This matches Proposition 3.1.19: is one solution, and the homogeneous solutions are the multiples of , reflecting .
(b) The same row operations applied to give the rows , , , and then the last row becomes . So every solution would satisfy , and there is none. Here is a second argument, from the column picture. Each column satisfies : , , and . This condition is preserved by sums and scalar multiples, so every linear combination of the columns satisfies it. But gives .
Exercise 3.1.30. List all solutions of the system
over , and check that their number agrees with Corollary 3.1.25. How many solutions does the same system have over ?
Uses. Corollary 3.1.25 (Counting solutions over a finite field), Corollary 3.1.24 (No, one, or infinitely many solutions)
Techniques. Particular plus homogeneous (Technique 3.1.18)
Over , the second equation says . Substituting into the first, . Conversely, for each the vector satisfies both equations:
The homogeneous system , gives and in the same way, so its solutions are , , : three, as Corollary 3.1.25 predicts.
Over , the same steps give and
Exercise 3.1.31. Let be a prime, , and .
- (a)Show that the equation has exactly solutions in .
- (b)Deduce that a set with elements has exactly subsets with an even number of elements.
Solution (solve for the last unknown).
Uses. Definition 3.1.1 (Linear system)
Techniques. Particular plus homogeneous (Technique 3.1.18)
(a) If is a solution, then
(b) Encode as with if and otherwise; this is a bijection between subsets and vectors. The sum computed in is the remainder of on division by (Lemma 1.1.21), so is even exactly when in . By (a) with and , there are such vectors.
Solution (translates).
Uses. Corollary 3.1.25 (Counting solutions over a finite field)
Techniques. Particular plus homogeneous (Technique 3.1.18)
(a) Every solves exactly one of the equations with , namely the one with . So the solution sets partition . Each equation is consistent, since is a solution, so by Corollary 3.1.25 every has as many elements as . Hence , and
(b) As in the first approach, the even subsets correspond to over , which has elements. In this language the argument says something familiar: toggling whether (that is, adding ) is a bijection between even and odd subsets.
Exercise 3.1.32. Consider the system , .
- (a)Over , for which does it have no solution, exactly one solution, or infinitely many? Find the solution when it is unique.
- (b)Over , find the number of solutions for each .
Uses. Proposition 1.1.17 (No zero divisors), Corollary 3.1.24 (No, one, or infinitely many solutions)
The algebra below is valid over any field, so we do it once. Suppose is a solution. Subtracting the equations gives
Case . Both equations read , so the solution set is , one solution for each .
Case . Then , so by Proposition 1.1.17, and either equation becomes . If , this says , so there is no solution. If , then . Conversely, this pair is a solution, since in both equations. So there is exactly one solution.
(a) Over : infinitely many solutions for , none for , and exactly one, , otherwise.
(b) Over : for there are exactly solutions, , , ; for there are none; for there is exactly one, .
Exercise 3.1.33. Let . Prove or disprove each statement.
- (a)If and are consistent, then so are and for every .
- (b)If and are inconsistent, then so is .
Uses. Proposition 3.1.8 (Systems and the map ), Definition 2.3.15 (The linear map of a matrix), Proposition 2.6.8 (Kernels and images are subspaces)
(a) True. Let and . Since is linear,
(b) False. Over any field, let , , and . For every , has second entry , so both systems are inconsistent. But , and is consistent.
Exercise 3.1.34. Find the error in the following argument, and show by an example that its conclusion is false.
Claim. If has only the trivial solution, then has exactly one solution for every .
Proof. Let . By Proposition 3.1.19, the solution set of is
Uses. Proposition 3.1.19 (Solution sets are translates of the kernel), Corollary 3.1.22 (Uniqueness depends only on )
Proposition 3.1.19 describes the solution set given a solution . The argument uses without showing that the system is consistent, so it only proves that has at most one solution, which is Corollary 3.1.22.
The claim itself is false. Let . Then , so only for . But would need and , so it has no solution.
Uses. Definition 3.1.1 (Linear system)
The original system has the unique solution : adding the equations gives , so , and then . The student’s answer contains , which is not a solution, since .
Every solution of the old system satisfies both new equations, because each new equation is a combination of the old ones. So no solution is lost, and the student’s set does contain . The problem is the other direction. The two new equations, and , are negatives of each other and together say only . The equation cannot be recovered from them, so solutions are gained: all with .
The error is performing two replacements simultaneously when the second one uses the equation that the first one replaces. Replacing an equation by is reversible only while is still present: then
Exercise 3.1.36. Call the planes
Claim. Three planes in , no two of them parallel, always have a common point.
Proof. The first two planes are not parallel, so they meet in a line . The third plane is parallel to neither of the first two, so it is not parallel to . Hence it meets in a single point, which lies on all three planes.
Uses. Definition 3.1.1 (Linear system)
The unjustified step is “the third plane is parallel to neither of the first two, so it is not parallel to ”. Being parallel to a line is much weaker than being parallel to a plane: a plane is parallel to when it contains lines in the direction of , and many non-parallel planes do. If the third plane is parallel to and does not contain it, it misses entirely.
Counterexample: the planes , , and . Their coefficient vectors , , are pairwise not proportional, so no two of the planes are parallel. The first two meet in the -axis , and the third contains the lines and , both parallel to . A common point would satisfy , , and , which gives . So there is none. This is the configuration of Figure 3.1.3.
- (a)Find all polynomials with , , and .
- (b)Find all with the same three values, and explain the form of the answer using Proposition 3.1.19.
Uses. Technique 3.1.9 (Undetermined coefficients), Proposition 3.1.19 (Solution sets are translates of the kernel)
Techniques. Undetermined coefficients (Technique 3.1.9), Particular plus homogeneous (Technique 3.1.18)
(a) Write . The conditions are the linear system
With , the first and third equations become and ; adding and subtracting gives and . Conversely satisfies , , . So is the only such polynomial.
(b) Write
The kernel consists of the cubics vanishing at the three points. Section 3.4 shows that through points with distinct first coordinates there is always exactly one polynomial of degree at most .
Exercise 3.1.38. Four one-way roads form a loop through the intersections , , , , carrying cars per hour as shown. In addition, cars per hour enter at , leave at , enter at , and leave at . At each intersection, the number of cars arriving per hour equals the number leaving.
(a) Write down the linear system for and find all its solutions.
(b) Explain why any one of the four equations follows from the other three.
(c) Since the roads are one-way, for all . What is the smallest possible flow on each road? Can all four minima occur at once?
Uses. Proposition 3.1.19 (Solution sets are translates of the kernel), Definition 3.1.14 (Homogeneous system)
Techniques. Undetermined coefficients (Technique 3.1.9), Particular plus homogeneous (Technique 3.1.18)
(a) Balancing arrivals and departures at each intersection:
Suppose is a solution and put . Then gives , gives , and gives . Conversely, for every the vector satisfies , , by construction, and also , since . So the solution set is
In the language of Proposition 3.1.19, the homogeneous solutions are traffic circling the loop, which changes no balance.
(b) Write each balance as “arrivals minus departures ”. Each road variable appears once with a plus sign, at the intersection where the road ends, and once with a minus sign, where it starts. The external terms are . So the sum of the four equations is , and any one of them is the negative of the sum of the other three. (So the system is really three equations in four unknowns, and the computation in (a) shows that its homogeneous solutions form the line .)
(c) The flows are nonnegative exactly when , as then , , and are positive too. So the smallest possible flows are , , , , and all four occur together at , when no traffic uses the road from to .
Exercise 3.1.39. A chemical equation is balanced when each element occurs equally often on both sides. Unknown coefficients make balancing a homogeneous linear system.
- (a)Find all balancings
, and the one with the smallest positive integer coefficients. - (b)Show that every balancing
is a linear combination of and . What does this say chemically?
Uses. Technique 3.1.9 (Undetermined coefficients), Corollary 3.1.16 (Homogeneous solution sets are subspaces)
Techniques. Undetermined coefficients (Technique 3.1.9)
(a) Counting atoms of each element on both sides gives the homogeneous system
Suppose is a solution. Then , and the nitrogen equation gives . The oxygen equation becomes
Conversely, satisfies all four equations: , , , and . Since the solution set is a subspace (Corollary 3.1.16), all multiples are solutions too. So the balancings are the multiples of , and the smallest positive integer one is
A balancing with positive integer entries is with a positive integer. Its fourth entry is an integer and , so and . Hence gives the smallest one.
(b) The system is (hydrogen) and (oxygen). So any solution has and , and
Conversely, and both satisfy the two equations, so all their combinations do. Chemically, every balanced version of this equation is a mixture of the two independent reactions and . The solution set is a plane rather than a line, so balancing alone cannot determine the proportions.
Exercise 3.1.40. A grid of lights is controlled by pressing lights: pressing a light toggles it and the lights directly next to it horizontally and vertically (not diagonally). Number the lights (top left), (top right), (bottom left), (bottom right).
- (a)Explain why a set of presses can be recorded as and a pattern of lit lights as , and why pressing according to switches off the pattern exactly when for a matrix . Find .
- (b)Show that over . Deduce that every pattern can be switched off, by exactly one set of presses.
- (c)Which lights should be pressed to switch off a single lit corner?
Uses. Proposition 3.1.5 (Three faces of a linear system), Definition 2.4.1 (Matrix product)
Techniques. Undetermined coefficients (Technique 3.1.9)
(a) The final state of a light depends only on how many times it is toggled, and only on that number’s parity. So the order of presses is irrelevant, pressing a light twice is the same as not pressing it, and a strategy is the vector with exactly when light is pressed (an odd number of times). Let if pressing light toggles light , and otherwise. Starting from the pattern , light ends in state
(b) is symmetric, so entry of is
Now let be any pattern. If , then . Conversely, satisfies . So has exactly one solution, : every pattern can be switched off, in exactly one way.
(c) For light alone, and
- (a)Find a homogeneous linear system in over whose solution set is .
- (b)Find a linear system in over whose solution set is the line through and .
Uses. Technique 3.1.9 (Undetermined coefficients), Corollary 3.1.16 (Homogeneous solution sets are subspaces), Proposition 1.4.14 (The span is the smallest subspace containing a list), Proposition 3.1.19 (Solution sets are translates of the kernel)
Techniques. Undetermined coefficients (Technique 3.1.9), Double containment (Technique 1.3.14)
(a) An equation
is
: both spanning vectors are solutions, since and , and is a subspace (Corollary 3.1.16), so contains their span (Proposition 1.4.14).
: if , then , so
(b) The line is
Any solution has and , so
a point of the line. Conversely,
Exercise 3.1.42. For a field , let
(a) , (b) , (c) .
Uses. Corollary 3.1.23 (Lines through solutions)
In all three cases and lie in , since and . If were the solution set of a linear system, then by Corollary 3.1.23 it would contain
(a) False. , since .
(b) True. In , and , so for every , and every point of satisfies the equation. So , which is the solution set of the linear equation .
(c) False. In , equals , , for . So , since . (In fact
Exercise 3.1.43. Let , and suppose that for each the system has a solution .
- (a)Show that is consistent for every , and give an explicit solution in terms of the .
- (b)Let be the matrix with columns . Show that , and conclude that has a right inverse.
Uses. Definition 2.3.15 (The linear map of a matrix), Definition 2.3.8 (Matrix–vector product), Definition 2.4.1 (Matrix product), Definition 2.5.2 (Right inverse), Definition 1.6.8 (Standard bases)
(a) Let
So
(b) The th column of is (Definition 2.4.1), which is the th column of . So . The solution in (a) is , by Definition 2.3.8, so
- (a)Suppose that some linear system over a field has exactly two solutions. Show that has exactly two elements.
- (b)More generally, suppose is finite and a linear system over has more than one solution. Show that it has at least solutions.
Uses. Corollary 3.1.23 (Lines through solutions), Proposition 1.2.35 (Zero products)
(b) Let be solutions, and define , where is the solution set, by
(a) If has exactly two elements, then is finite, since is injective, and by the argument in (b). Every field has at least two elements, and , so .
Exercise 3.1.45. Let be a vector space.
- (a)Let be subspaces of and . Show that if , then and .
- (b)Deduce that if two systems and in the same unknowns have the same nonempty solution set, then .
- (c)Give an example of (b) with , both in .
Uses. Notation 3.1.17 (Translates), Definition 1.4.1 (Subspace), Proposition 3.1.19 (Solution sets are translates of the kernel)
Techniques. Double containment (Technique 1.3.14)
(a) Since , we have
: let . Then
: the same argument with the roles of and exchanged, using .
(b) Let be the common solution set and . By Proposition 3.1.19,
(c) Take , , and , . The first system says , . The second says and , which also forces , and satisfies it. Both solution sets are , and both kernels are .
Exercise 3.1.46. Let . Find all real solutions of the cyclic system
The answer depends on . What are the solutions over ?
Uses. Proposition 3.1.19 (Solution sets are translates of the kernel), Proposition 3.1.8 (Systems and the map )
Techniques. Particular plus homogeneous (Technique 3.1.18)
Over , is a solution. By Proposition 3.1.19, we need the solutions of the homogeneous system (), . In such a solution, for , so by induction for . The last equation then reads . Conversely, a vector with satisfies the first equations, and it satisfies the last one exactly when .
If is odd, this says , so and the kernel is . The unique solution is .
If is even, it says , so the kernel is spanned by , and the solutions are
Over , the right-hand sides are and , so the system says for all (and ). The solutions are and , for every . Over the parity of mattered only through , which is exactly the step that fails in characteristic .
Exercise 3.1.47. A metal plate is modelled by a finite set of interior grid points. The boundary is the set of points of that are adjacent (at distance , horizontally or vertically) to some point of . The temperatures at the boundary points are fixed real numbers, and in equilibrium the temperature at each interior point is the average of the temperatures at its four neighbors. This is a linear system with one unknown for each :
where means that and are adjacent. Show that this system has at most one solution.
Uses. Corollary 3.1.22 (Uniqueness depends only on ), Proposition 3.1.8 (Systems and the map )
Techniques. Particular plus homogeneous (Technique 3.1.18)
By Corollary 3.1.22, it suffices to show that the homogeneous system, the one with every , has only the trivial solution. Let be a solution of the homogeneous system, and set for . Every neighbor of a point of lies in or in , so the equations say
the sum running over all four neighbors of .
Suppose, for contradiction, that (the maximum exists because is finite and, being the index set of the unknowns, nonempty). Then every with is at most . We first show: if and , then all four neighbors of have value . Indeed,
Pick with , and consider the points for . Since is finite, some lies outside ; let be the smallest such index, so and . By the claim and induction,
The vector also solves the homogeneous system, so the same argument gives for all . Hence for all : the homogeneous system has only the trivial solution, and the original system has at most one solution.
The system has as many equations as unknowns. For such square systems, Section 3.5 shows that “at most one solution for every right-hand side” implies “exactly one”, so the equilibrium temperatures always exist and are unique.
Exercise 3.1.48. Call a subset line-closed if for all and . By Corollary 3.1.23, solution sets of linear systems are line-closed.
- (a)Suppose in . Show that every nonempty line-closed set is a translate of a subspace of .
- (b)Show that
is line-closed but is not a translate of any subspace.
Uses. Definition 1.4.1 (Subspace), Theorem 1.4.3 (Subspace criterion), Notation 3.1.17 (Translates), Definition 1.1.28 (Characteristic)
(a) Fix and put , so that . We check that is a subspace.
, as .
Scalar multiples. Let and . By line-closedness with , the point lies in , so .
Sums. Let . Since , the scalar exists, and lies in . Then , and by the previous step . But
So is closed under addition, and is a subspace by Theorem 1.4.3. Hence is a translate of a subspace.
(b) Over , is or , and is then or . So every subset of is line-closed, in particular
Suppose for a subspace . Then has exactly three elements, since is injective. One of them is ; call the other two , both nonzero. Since is a subspace, . But , since otherwise in characteristic ; and and , since and are nonzero. So has a fourth element, a contradiction.
Part (b) shows that line-closedness is too weak a condition in characteristic . The right notion uses combinations of more than two points; see Section 4.7.
Uses. Corollary 3.1.16 (Homogeneous solution sets are subspaces), Proposition 3.1.5 (Three faces of a linear system)
Let
Parity. Let have integer entries, and let . Row says . Since modulo , this gives , that is, . So every has the same parity as , and all entries of have the same parity.
Descent. Let be the set of nonzero vectors with integer entries, all entries , and at least one entry equal to . Suppose is nonempty, and choose whose largest entry is as small as possible. Since has a zero entry, all its entries are even by the parity step, so has integer entries. It lies in (a subspace), is nonzero, has nonnegative entries and a zero entry, so . But its largest entry is half that of , which is positive, so it is smaller. This contradicts the choice of , so is empty.
Conclusion. Let and . Then , its entries are nonnegative integers, and at least one is . As is empty, , so .
The same holds for rational masses (multiply by a common denominator) and in fact for real masses, but the real case needs more: one shows that the kernel of over is spanned by vectors with rational entries, which follows from Gauss–Jordan elimination never leaving the field of the entries (Section 3.4).
More practice
The practice bank has 25 exercises on this section’s topics.