MATH 133 Linear Algebra and Geometry • McGill University, Montreal

Corrected exercises: homogeneous systems, linear combinations and the rank theorem (MATH 133)

This is the corrected exercise set for the second chapter of MATH 133, Linear Algebra and Geometry, at McGill University: homogeneous systems, linear combinations and the rank theorem, sections 1.3 and 2.2 of Nicholson. Every number is chosen to reduce by hand, as on the exam, and every solution names each row operation, because in this course the marks go to the method.

The thread running through the whole set: count the COLUMNS, never the equations. The product AxAx is a combination of the columns of AA, so whether Ax=bAx = b can be solved is a question about the columns, and how many parameters the answer has is n−rn - r, the number of columns without a pivot. A system with three equations can have three basic solutions, a square system can have two, and a tall one can have a whole line of them.

The traps named in the solutions: turning the one-way theorem on homogeneous systems into a two-way one, subtracting the number of equations instead of the rank, forgetting that the rank theorem needs a consistent system, a product AxAx with the wrong number of entries, adding two solutions of Ax=bAx = b and expecting a third, and rejecting a basic solution because it was scaled.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 133 chapter →

Course recap

  • • Ax=0Ax = 0 always has the trivial solution x=0x = 0. If it has more unknowns than equations, it also has a nontrivial one. The converse is false.
  • • Basic solutions: one per free variable (set it to 11, the other parameters to 00). Every solution of Ax=0Ax = 0 is a linear combination of them. A nonzero multiple of a basic solution is still accepted.
  • • Rank rr = number of pivots. Rank theorem: a CONSISTENT system in nn unknowns has solutions with exactly n−rn - r parameters. The number of equations only bounds rr.
  • • Definition: Ax=x1a1+x2a2+⋯+xnanAx = x_1a_1 + x_2a_2 + \cdots + x_na_n, where aja_j are the columns. xx has one entry per column, AxAx one entry per row. Aej=ajAe_j = a_j.
  • • Ax=bAx = b is consistent if and only if bb is a linear combination of the columns of AA.
  • • Every solution of Ax=bAx = b is p+hp + h: one particular solution pp plus a solution hh of the associated homogeneous system Ax=0Ax = 0.
  • • Linearity: A(x+y)=Ax+AyA(x + y) = Ax + Ay and A(cx)=c(Ax)A(cx) = c(Ax). Hence A0=0A0 = 0, and A(p+q)=2bA(p + q) = 2b when Ap=Aq=bAp = Aq = b.

Part A: the basics (/50)

Exercise 1: Trivial or not: what you can decide before reducing

A homogeneous system Ax=0Ax = 0 always has the trivial solution x=0x = 0. The only real question is whether it has OTHERS, and one theorem answers part of that question with no computation at all: if the system has more unknowns than equations, it has a nontrivial solution. The theorem is a one-way street. It never says anything about a system with as many equations as unknowns, or with more.

The four coefficient matrices are A1=(1−123210−1)A_1 = \begin{pmatrix} 1 & -1 & 2 & 3 \\ 2 & 1 & 0 & -1 \end{pmatrix}, A2=(12−1251370)A_2 = \begin{pmatrix} 1 & 2 & -1 \\ 2 & 5 & 1 \\ 3 & 7 & 0 \end{pmatrix}, A3=(1−1221112−1303)A_3 = \begin{pmatrix} 1 & -1 & 2 \\ 2 & 1 & 1 \\ 1 & 2 & -1 \\ 3 & 0 & 3 \end{pmatrix} and A4=(110011101)A_4 = \begin{pmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \\ 1 & 0 & 1 \end{pmatrix}.

The figure draws two homogeneous systems of three equations in two unknowns. System P is (1) x−2y=0x - 2y = 0, (2) 3x+y=03x + y = 0, (3) x+y=0x + y = 0. System Q is (1) x−2y=0x - 2y = 0, (2) 2x−4y=02x - 4y = 0, (3) −3x+6y=0-3x + 6y = 0. Every equation is a line through the origin.

(1)(2)(3)(1), (2), (3)system Psystem Q
  • a) For each of A1,A2,A3,A4A_1, A_2, A_3, A_4, say whether the theorem GUARANTEES a nontrivial solution of Ax=0Ax = 0, or whether it is silent. Do not reduce anything yet.
  • b) Find a nontrivial solution of A1x=0A_1x = 0 with integer entries.
  • c) Reduce A2A_2, A3A_3 and A4A_4, and decide for each whether Ax=0Ax = 0 has a nontrivial solution. Give one when it exists.
  • d) Systems P and Q both have more equations than unknowns. Which one has nontrivial solutions? Read the answer on the figure and confirm it with the rank.
  • e) State the theorem precisely, then its converse, and use this exercise to show that the converse is false.
Show the solution

Answers

  • a) A1A_1: guaranteed (44 unknowns, 22 equations). A2A_2, A3A_3, A4A_4: the theorem is silent.
  • b) x=(−2,4,3,0)x = (-2, 4, 3, 0), or any nonzero multiple
  • c) A2A_2: rank 22, x=t(7,−3,1)x = t(7, -3, 1). A3A_3: rank 22, x=t(−1,1,1)x = t(-1, 1, 1). A4A_4: rank 33, trivial solution only.
  • d) Q has a whole line of solutions (rank 11); P has only the origin (rank 22).
  • e) More unknowns than equations implies a nontrivial solution; the converse fails (A2A_2 is square, A3A_3 is taller than wide).

a) The theorem needs exactly one thing: the number of unknowns nn strictly larger than the number of equations mm. A1A_1 is 2×42 \times 4, so n=4>2=mn = 4 > 2 = m and a nontrivial solution is GUARANTEED before any row operation. A2A_2 and A4A_4 are 3×33 \times 3, and A3A_3 is 4×34 \times 3: for all three the hypothesis fails, and the correct answer is not no, it is the theorem is silent. A student who writes that A3A_3 has only the trivial solution because it has more equations than unknowns has turned a one-way statement into a two-way one, and part c) shows what that costs.

b) R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0,3,−4,−7)(0, 3, -4, -7), so the system reads x1−x2+2x3+3x4=0x_1 - x_2 + 2x_3 + 3x_4 = 0 and 3x2−4x3−7x4=03x_2 - 4x_3 - 7x_4 = 0. Two pivots, in columns 11 and 22, so x3x_3 and x4x_4 are free. Choosing x3=3x_3 = 3 and x4=0x_4 = 0 avoids fractions: x2=4x_2 = 4, then x1=x2−2x3=4−6=−2x_1 = x_2 - 2x_3 = 4 - 6 = -2. The solution (−2,4,3,0)(-2, 4, 3, 0) checks in both rows: −2−4+6+0=0-2 - 4 + 6 + 0 = 0 and −4+4+0−0=0-4 + 4 + 0 - 0 = 0. The choice x3=0x_3 = 0, x4=3x_4 = 3 gives another one, (−2,7,0,3)(-2, 7, 0, 3), and there are infinitely many.

c) For A2A_2: R2→R2−2R1R_2 \to R_2 - 2R_1 and R3→R3−3R1R_3 \to R_3 - 3R_1 give two copies of (0,1,3)(0, 1, 3), then R3→R3−R2R_3 \to R_3 - R_2 kills the third row and R1→R1−2R2R_1 \to R_1 - 2R_2 gives (1,0,−7)(1, 0, -7). Rank 22, x3=tx_3 = t free, x=t(7,−3,1)x = t(7, -3, 1): a SQUARE system with nontrivial solutions. For A3A_3: R2−2R1R_2 - 2R_1, R3−R1R_3 - R_1 and R4−3R1R_4 - 3R_1 all give (0,3,−3)(0, 3, -3), so after R2→13R2R_2 \to \frac{1}{3}R_2 and clearing, only two pivots survive: x=t(−1,1,1)x = t(-1, 1, 1). Four equations, and still a whole line of solutions. For A4A_4: R3→R3−R1R_3 \to R_3 - R_1 gives (0,−1,1)(0, -1, 1), then R3→R3+R2R_3 \to R_3 + R_2 gives (0,0,2)(0, 0, 2): three pivots for three unknowns, no free variable, only x=0x = 0.

d) In P the three lines are distinct and meet only at the origin: the only common point is the trivial solution, and the rank is 22 (the first two rows already give two pivots). In Q the three equations are multiples of x−2y=0x - 2y = 0, so they draw the SAME line three times; every point of it, such as (2,1)(2, 1), solves all three. The rank is 11 and one variable is free. The figure is the whole lesson: adding equations can only remove solutions if the new equations carry new information, that is if they add a pivot.

e) Theorem (Nicholson, Section 1.3): if a homogeneous system has more variables than equations, it has a nontrivial solution. Converse: if a homogeneous system has a nontrivial solution, then it has more variables than equations. The converse is FALSE, and this exercise gives two counterexamples: A2A_2 has 33 equations and 33 unknowns, A3A_3 has 44 equations and 33 unknowns, and both have nontrivial solutions. What decides in every case is the rank: a nontrivial solution exists exactly when the rank is smaller than the number of unknowns, so that at least one column has no pivot.

Exercise 2: Basic solutions: one for each parameter, and exactly that many

When Gaussian elimination is run on a homogeneous system, each free variable produces one BASIC SOLUTION: set that parameter to 11, the other parameters to 00, and read off the leading variables. Every solution of the system is then a linear combination of the basic solutions, and their number is fixed by the reduced form.

Consider the homogeneous system Ax=0Ax = 0 with A=(1−21022−4323−1214−4)A = \begin{pmatrix} 1 & -2 & 1 & 0 & 2 \\ 2 & -4 & 3 & 2 & 3 \\ -1 & 2 & 1 & 4 & -4 \end{pmatrix}, in the unknowns x1,…,x5x_1, \ldots, x_5.

  • a) Reduce AA to reduced row echelon form, naming every row operation.
  • b) Give the rank, the leading and the free variables, and the basic solutions. Write the general solution as a linear combination of them.
  • c) The system has three equations. Explain why it nevertheless has three basic solutions and not two.
  • d) A classmate proposes (4,1,−2,1,0)(4, 1, -2, 1, 0) and (−6,0,2,0,2)(-6, 0, 2, 0, 2) as basic solutions. Are they solutions? Would you accept each one as a basic solution?
  • e) Find a nonzero solution with x1=0x_1 = 0 and x3=0x_3 = 0.
Show the solution

Answers

  • a) (1−20−230012−100000)\begin{pmatrix} 1 & -2 & 0 & -2 & 3 \\ 0 & 0 & 1 & 2 & -1 \\ 0 & 0 & 0 & 0 & 0 \end{pmatrix}
  • b) Rank 22; leading x1,x3x_1, x_3; free x2,x4,x5x_2, x_4, x_5; x=s(2,1,0,0,0)+t(2,0,−2,1,0)+u(−3,0,1,0,1)x = s(2, 1, 0, 0, 0) + t(2, 0, -2, 1, 0) + u(-3, 0, 1, 0, 1)
  • c) n−r=5−2=3n - r = 5 - 2 = 3: the third row is a combination of the first two and carries no pivot.
  • d) Both are solutions. The first is a SUM of two basic solutions, not a basic solution; the second is 22 times a basic solution, acceptable.
  • e) (0,2,0,1,2)(0, 2, 0, 1, 2), or any nonzero multiple

a) R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0,0,1,2,−1)(0, 0, 1, 2, -1) and R3→R3+R1R_3 \to R_3 + R_1 gives (0,0,2,4,−2)(0, 0, 2, 4, -2). Then R3→R3−2R2R_3 \to R_3 - 2R_2 turns the third row into zeros. Finally R1→R1−R2R_1 \to R_1 - R_2 clears the entry above the second pivot: (1,−2,0,−2,3)(1, -2, 0, -2, 3). The reduced form is (1−20−230012−100000)\begin{pmatrix} 1 & -2 & 0 & -2 & 3 \\ 0 & 0 & 1 & 2 & -1 \\ 0 & 0 & 0 & 0 & 0 \end{pmatrix}. No right-hand column is written, and none is needed: for a homogeneous system it stays zero through every operation.

b) Two pivots, in columns 11 and 33: the rank is 22, the leading variables are x1x_1 and x3x_3, and the free ones are x2=sx_2 = s, x4=tx_4 = t, x5=ux_5 = u. The two rows read x1=2s+2t−3ux_1 = 2s + 2t - 3u and x3=−2t+ux_3 = -2t + u. Setting one parameter to 11 and the others to 00 in turn gives the three basic solutions X1=(2,1,0,0,0)X_1 = (2, 1, 0, 0, 0), X2=(2,0,−2,1,0)X_2 = (2, 0, -2, 1, 0) and X3=(−3,0,1,0,1)X_3 = (-3, 0, 1, 0, 1), and the general solution is x=sX1+tX2+uX3x = sX_1 + tX_2 + uX_3. Check one before moving on: AX2A X_2 gives 2−0−2+0+0=02 - 0 - 2 + 0 + 0 = 0, 4−0−6+2+0=04 - 0 - 6 + 2 + 0 = 0 and −2+0−2+4+0=0-2 + 0 - 2 + 4 + 0 = 0.

c) The count is n−rn - r, the number of columns without a pivot, and has nothing to do with the number of equations. Here 5−2=35 - 2 = 3. The trap is to compute 5−3=25 - 3 = 2 with the three equations. The reduction itself shows why that is wrong: it proved R3+R1=2(R2−2R1)R_3 + R_1 = 2(R_2 - 2R_1), that is R3=2R2−5R1R_3 = 2R_2 - 5R_1, and indeed 2(2,−4,3,2,3)−5(1,−2,1,0,2)=(−1,2,1,4,−4)2(2, -4, 3, 2, 3) - 5(1, -2, 1, 0, 2) = (-1, 2, 1, 4, -4). The third equation is a consequence of the first two, so it contributed a zero row, not a pivot. An equation that adds no pivot removes no parameter, and a marker who sees 5−35 - 3 on the page knows the student counted rows.

d) Both are solutions: (4,1,−2,1,0)=X1+X2(4, 1, -2, 1, 0) = X_1 + X_2 and (−6,0,2,0,2)=2X3(-6, 0, 2, 0, 2) = 2X_3, and any linear combination of solutions of Ax=0Ax = 0 is again a solution. But they are not on the same footing. A nonzero multiple of a basic solution is still accepted as a basic solution, and Nicholson does exactly this to clear fractions, so 2X32X_3 is fine. The sum X1+X2X_1 + X_2 is not a basic solution: it has two parameters switched on at once, and a list that contains it together with X1X_1 or X2X_2 would no longer describe each parameter once. What never changes, whatever scaling is used, is the NUMBER of basic solutions: three.

e) Impose x1=2s+2t−3u=0x_1 = 2s + 2t - 3u = 0 and x3=−2t+u=0x_3 = -2t + u = 0. The second gives u=2tu = 2t, then the first gives 2s+2t−6t=02s + 2t - 6t = 0, so s=2ts = 2t. With t=1t = 1: s=2s = 2, u=2u = 2, and x=2X1+X2+2X3=(0,2,0,1,2)x = 2X_1 + X_2 + 2X_3 = (0, 2, 0, 1, 2). It checks in all three rows: 0−4+0+0+4=00 - 4 + 0 + 0 + 4 = 0, 0−8+0+2+6=00 - 8 + 0 + 2 + 6 = 0 and 0+4+0+4−8=00 + 4 + 0 + 4 - 8 = 0. Writing the general solution as a combination first is what made this a two-line computation.

Exercise 3: The rank theorem, three times, and the count that misleads

The rank of a matrix is the number of pivots, that is the number of leading 11s in its reduced row echelon form. The rank theorem says: if a system in nn unknowns is CONSISTENT and its coefficient matrix has rank rr, then its solutions involve exactly n−rn - r parameters. For a homogeneous system, which is always consistent, n−rn - r is also the number of basic solutions.

The figure shows two echelon forms. A 11 in blue is a pivot, a star is any number, a grey 00 is a zero. Neither matrix is square.

1****001**00000x1x2x3x4x51**01*000000000x1x2x33 equations, 5 unknowns5 equations, 3 unknowns
  • a) Left: the echelon form of a homogeneous system of 33 equations in 55 unknowns. Give the rank, the number of parameters, and explain why 5−3=25 - 3 = 2 is wrong.
  • b) Right: the echelon form of the coefficient matrix of a CONSISTENT system of 55 equations in 33 unknowns. How many parameters? What happened to three of the five equations?
  • c) Reduce B=(120−1241136101212)B = \begin{pmatrix} 1 & 2 & 0 & -1 \\ 2 & 4 & 1 & 1 \\ 3 & 6 & 1 & 0 \\ 1 & 2 & 1 & 2 \end{pmatrix}. Give the rank, the number of parameters of Bx=0Bx = 0, and its basic solutions.
  • d) Yes or no, with a one-line justification each. (i) A homogeneous system of 33 equations in 55 unknowns with exactly one basic solution. (ii) A consistent system of 66 equations in 44 unknowns whose solutions involve 33 parameters. (iii) A system of 22 equations in 44 unknowns with exactly one solution.
  • e) A student writes: the system x+y+z=1x + y + z = 1, x+y+z=3x + y + z = 3 has rank 11 and 33 unknowns, so its solutions involve 22 parameters. Correct this.
Show the solution

Answers

  • a) Rank 22, so 5−2=35 - 2 = 3 parameters and 33 basic solutions.
  • b) Rank 22, so 3−2=13 - 2 = 1 parameter: infinitely many solutions. Three rows reduced to 0=00 = 0.
  • c) Rank 22, 4−2=24 - 2 = 2 parameters, basic solutions (−2,1,0,0)(-2, 1, 0, 0) and (1,0,−3,1)(1, 0, -3, 1).
  • d) (i) No, at least 5−3=25 - 3 = 2. (ii) Yes, if the rank is 11. (iii) No, if consistent at least 22 parameters.
  • e) The system is inconsistent (0=20 = 2): no solution at all, and the theorem does not apply.

a) Count the blue pivots: two, in columns 11 and 33. The rank is 22, so the solutions involve 5−2=35 - 2 = 3 parameters, x2x_2, x4x_4 and x5x_5, and the system has 33 basic solutions. The subtraction 5−35 - 3 uses the number of EQUATIONS, and it silently assumes that every equation contributed a pivot. The third row of the figure is entirely zero: that equation was a consequence of the other two, it produced no pivot, and it removed no parameter. The rank theorem subtracts pivots, and the number of pivots can be anything from 00 up to the smaller of mm and nn.

b) Two pivots again, in columns 11 and 22, so the rank is 22 and the solutions involve 3−2=13 - 2 = 1 parameter, x3x_3: a whole line of solutions, although there are more equations than unknowns. The three zero rows are three equations that, after elimination, read 0=00 = 0 (they must, since the system is consistent: a nonzero number on the right would have made it inconsistent). They were combinations of the first two and added nothing. A tall system is not overdetermined because of its shape; it is overdetermined only if its rows carry more information than its columns can absorb.

c) R2→R2−2R1R_2 \to R_2 - 2R_1, R3→R3−3R1R_3 \to R_3 - 3R_1 and R4→R4−R1R_4 \to R_4 - R_1 give three copies of (0,0,1,3)(0, 0, 1, 3). Then R3→R3−R2R_3 \to R_3 - R_2 and R4→R4−R2R_4 \to R_4 - R_2 leave two zero rows. The reduced form has rows (1,2,0,−1)(1, 2, 0, -1) and (0,0,1,3)(0, 0, 1, 3): rank 22. A SQUARE 4×44 \times 4 matrix, and yet 4−2=24 - 2 = 2 parameters. With x2=sx_2 = s and x4=tx_4 = t: x1=−2s+tx_1 = -2s + t and x3=−3tx_3 = -3t. The basic solutions are (−2,1,0,0)(-2, 1, 0, 0) and (1,0,−3,1)(1, 0, -3, 1). Check the second in the last row of BB: 1+0−3+2=01 + 0 - 3 + 2 = 0. Square does not mean one solution; only rank equal to nn does.

d) (i) NO. The rank is at most 33, the number of rows, so there are at least 5−3=25 - 3 = 2 basic solutions, never one. This is where the count of equations is legitimately used: as a BOUND on the rank, never as its value. (ii) YES, provided the rank is 11: for instance six equations that are all multiples of x1+x2+x3+x4=1x_1 + x_2 + x_3 + x_4 = 1. Then 4−1=34 - 1 = 3 parameters. (iii) NO. If such a system is consistent, its rank is at most 22, so at least 4−2=24 - 2 = 2 parameters: infinitely many solutions. If it is inconsistent, it has none. Exactly one is impossible either way.

e) R2→R2−R1R_2 \to R_2 - R_1 gives 0x+0y+0z=20x + 0y + 0z = 2, that is 0=20 = 2: the system has NO solution. The two equations describe two parallel planes that never meet. The rank theorem starts with the word consistent, and here that hypothesis fails, so n−r=2n - r = 2 counts nothing. The correct habit is to settle consistency first, by looking for a row of the form 0=c0 = c with c≠0c \neq 0, and only then to count parameters. Two parameters for an empty set is the kind of line that costs the whole question.

Exercise 4: Ax is a combination of the columns

If AA has columns a1,a2,…,ana_1, a_2, \ldots, a_n and x=(x1,x2,…,xn)x = (x_1, x_2, \ldots, x_n), the product is DEFINED as Ax=x1a1+x2a2+⋯+xnanAx = x_1a_1 + x_2a_2 + \cdots + x_na_n. It is only defined when xx has as many entries as AA has columns, and the result has as many entries as AA has rows. The familiar row-by-column rule, entry ii of AxAx equals row ii of AA times xx, is a consequence of the definition and a way to compute it.

The figure builds AxAx for A=(3−112)A = \begin{pmatrix} 3 & -1 \\ 1 & 2 \end{pmatrix} and x=(1,2)x = (1, 2): one step along the first column a1a_1, then two steps along the second column a2a_2.

-2-11234-1123456a1a2+ a2+ a2Ax
  • a) Compute AxAx from the definition and check it on the figure.
  • b) With A=(1023−1104−2)A = \begin{pmatrix} 1 & 0 & 2 \\ 3 & -1 & 1 \\ 0 & 4 & -2 \end{pmatrix} and x=(1,−2,3)x = (1, -2, 3), compute AxAx as a combination of the columns, then again with the row-by-column rule.
  • c) Let C=(12−1034)C = \begin{pmatrix} 1 & 2 & -1 \\ 0 & 3 & 4 \end{pmatrix}. Which of (1,1)(1, 1), (1,0,2)(1, 0, 2) and (1,0,2,1)(1, 0, 2, 1) can multiply CC? Compute the product that exists and give its size.
  • d) Write the system 2x1−x2+3x3=42x_1 - x_2 + 3x_3 = 4, x1+5x3=−1x_1 + 5x_3 = -1 as a vector equation in the columns, then in the form Ax=bAx = b.
  • e) With the matrix AA of b), write 3a1−a33a_1 - a_3 as a product AxAx and compute it. What is Ae2Ae_2, where e2=(0,1,0)e_2 = (0, 1, 0)?
Show the solution

Answers

  • a) Ax=1(3,1)+2(−1,2)=(1,5)Ax = 1(3, 1) + 2(-1, 2) = (1, 5)
  • b) Ax=(7,8,−14)Ax = (7, 8, -14) both ways
  • c) Only (1,0,2)(1, 0, 2); C(1,0,2)=(−1,8)C(1, 0, 2) = (-1, 8), a vector with 22 entries.
  • d) x1(2,1)+x2(−1,0)+x3(3,5)=(4,−1)x_1(2, 1) + x_2(-1, 0) + x_3(3, 5) = (4, -1), that is (2−13105)(x1x2x3)=(4−1)\begin{pmatrix} 2 & -1 & 3 \\ 1 & 0 & 5 \end{pmatrix}\begin{pmatrix} x_1 \\ x_2 \\ x_3 \end{pmatrix} = \begin{pmatrix} 4 \\ -1 \end{pmatrix}
  • e) 3a1−a3=A(3,0,−1)=(1,8,2)3a_1 - a_3 = A(3, 0, -1) = (1, 8, 2); Ae2=a2=(0,−1,4)Ae_2 = a_2 = (0, -1, 4).

a) Ax=1⋅(31)+2⋅(−12)=(15)Ax = 1 \cdot \begin{pmatrix} 3 \\ 1 \end{pmatrix} + 2 \cdot \begin{pmatrix} -1 \\ 2 \end{pmatrix} = \begin{pmatrix} 1 \\ 5 \end{pmatrix}. On the figure the first arrow ends at (3,1)(3, 1), the first grey copy of a2a_2 takes it to (2,3)(2, 3), the second to (1,5)(1, 5), and the orange arrow from the origin lands exactly there. The picture is the definition: the entries of xx are not coordinates in the usual sense, they are the numbers of steps taken along each COLUMN.

b) By the columns: 1⋅(130)−2⋅(0−14)+3⋅(21−2)=(78−14)1 \cdot \begin{pmatrix} 1 \\ 3 \\ 0 \end{pmatrix} - 2 \cdot \begin{pmatrix} 0 \\ -1 \\ 4 \end{pmatrix} + 3 \cdot \begin{pmatrix} 2 \\ 1 \\ -2 \end{pmatrix} = \begin{pmatrix} 7 \\ 8 \\ -14 \end{pmatrix}. By the rows: 1+0+6=71 + 0 + 6 = 7, then 3+2+3=83 + 2 + 3 = 8, then 0−8−6=−140 - 8 - 6 = -14. Same vector, as it must be. The column reading is the one that answers questions (what can AxAx reach?); the row reading is the fast way to compute one product. A standard slip in the column version is to multiply the columns by the entries of xx in the wrong order: x1x_1 goes with column 11, whatever the rows look like.

c) CC has 33 columns, so xx must have 33 entries: only (1,0,2)(1, 0, 2) works. (1,1)(1, 1) has too few entries and (1,0,2,1)(1, 0, 2, 1) too many, and for both the product is simply UNDEFINED, not zero. C(1,0,2)=1⋅(10)+0⋅(23)+2⋅(−14)=(−18)C(1, 0, 2) = 1 \cdot \begin{pmatrix} 1 \\ 0 \end{pmatrix} + 0 \cdot \begin{pmatrix} 2 \\ 3 \end{pmatrix} + 2 \cdot \begin{pmatrix} -1 \\ 4 \end{pmatrix} = \begin{pmatrix} -1 \\ 8 \end{pmatrix}, a vector with 22 entries, one per ROW of CC. The trap is to expect a result of the same size as xx: a 2×32 \times 3 matrix takes vectors with 33 entries and returns vectors with 22.

d) Each unknown multiplies the column of its coefficients: x1(21)+x2(−10)+x3(35)=(4−1)x_1 \begin{pmatrix} 2 \\ 1 \end{pmatrix} + x_2 \begin{pmatrix} -1 \\ 0 \end{pmatrix} + x_3 \begin{pmatrix} 3 \\ 5 \end{pmatrix} = \begin{pmatrix} 4 \\ -1 \end{pmatrix}. The missing x2x_2 in the second equation is a 00 in the second column, and forgetting it shifts every later entry. In matrix form, A=(2−13105)A = \begin{pmatrix} 2 & -1 & 3 \\ 1 & 0 & 5 \end{pmatrix}, x=(x1,x2,x3)x = (x_1, x_2, x_3) and b=(4,−1)b = (4, -1). The three forms, system, vector equation and Ax=bAx = b, carry exactly the same information, and solving any of them means row reducing (A∣b)(A \mid b).

e) The coefficients of the combination are the entries of xx, one per column, including a 00 for the column that does not appear: 3a1+0a2−a3=A(3,0,−1)=(182)3a_1 + 0a_2 - a_3 = A(3, 0, -1) = \begin{pmatrix} 1 \\ 8 \\ 2 \end{pmatrix}. Row check: 3+0−2=13 + 0 - 2 = 1, 9+0−1=89 + 0 - 1 = 8, 0+0+2=20 + 0 + 2 = 2. And Ae2=0a1+1a2+0a3=a2=(0,−1,4)Ae_2 = 0a_1 + 1a_2 + 0a_3 = a_2 = (0, -1, 4): multiplying by eje_j picks out column jj. That remark is small and it is used constantly, for instance to show in the next exercise that every column of AA is a right-hand side for which Ax=bAx = b is consistent.

Exercise 5: Is b a combination of the columns? Consistency seen from b

Since AxAx is a combination of the columns of AA, the system Ax=bAx = b is consistent exactly when bb is a linear combination of the columns (Nicholson, Section 2.2). The question is about the right-hand side, and it is answered by row reducing (A∣b)(A \mid b) with bb left as letters: whatever lands in the last column of a zero row must vanish.

The figure draws the columns a1=(2,1)a_1 = (2, 1) and a2=(−4,−2)a_2 = (-4, -2) of A=(2−41−2)A = \begin{pmatrix} 2 & -4 \\ 1 & -2 \end{pmatrix}, together with the points (4,2)(4, 2) and (4,3)(4, 3).

-5-4-3-2-112345-3-2-11234a1a2(4, 3)(4, 2)every x1 a1 + x2 a2
  • a) Using the figure, decide whether Ax=(4,2)Ax = (4, 2) and Ax=(4,3)Ax = (4, 3) are consistent, then confirm by row reduction. For the consistent one, give two different solutions.
  • b) Find the condition on b=(b1,b2)b = (b_1, b_2) for Ax=bAx = b to be consistent.
  • c) Let M=(12123011−1)M = \begin{pmatrix} 1 & 2 & 1 \\ 2 & 3 & 0 \\ 1 & 1 & -1 \end{pmatrix}. Reduce (M∣b)(M \mid b) with b=(b1,b2,b3)b = (b_1, b_2, b_3) and find the condition for Mx=bMx = b to be consistent.
  • d) Is (1,4,3)(1, 4, 3) a combination of the columns of MM? If so, write the combination explicitly. Same question for (1,1,1)(1, 1, 1).
  • e) Check that each column of MM satisfies the condition of c), and explain why this is not a coincidence.
Show the solution

Answers

  • a) (4,2)(4, 2): consistent, e.g. x=(2,0)x = (2, 0) or x=(0,−1)x = (0, -1). (4,3)(4, 3): inconsistent, a row 0=−20 = -2.
  • b) b1=2b2b_1 = 2b_2
  • c) b1−b2+b3=0b_1 - b_2 + b_3 = 0
  • d) (1,4,3)=5a1−2a2+0a3(1, 4, 3) = 5a_1 - 2a_2 + 0a_3; (1,1,1)(1, 1, 1) is not a combination (1−1+1=1≠01 - 1 + 1 = 1 \neq 0).
  • e) 1−2+1=01 - 2 + 1 = 0, 2−3+1=02 - 3 + 1 = 0, 1−0−1=01 - 0 - 1 = 0: each column is MejMe_j, so it is always reachable.

a) a2=−2a1a_2 = -2a_1: both columns lie on the dashed line y=x/2y = x/2, so EVERY combination x1a1+x2a2x_1a_1 + x_2a_2 stays on that line. The point (4,2)(4, 2) is on it, (4,3)(4, 3) is not. Row reduction confirms. For (4,2)(4, 2): R1↔R2R_1 \leftrightarrow R_2 gives (1,−2∣2)(1, -2 \mid 2) and (2,−4∣4)(2, -4 \mid 4), then R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0,0∣0)(0, 0 \mid 0): consistent, with x2x_2 free, x1=2+2x2x_1 = 2 + 2x_2. So x=(2,0)x = (2, 0) works, and so does x=(0,−1)x = (0, -1), which is −a2=(4,2)-a_2 = (4, 2). For (4,3)(4, 3) the same operations end with (0,0∣4−6)=(0,0∣−2)(0, 0 \mid 4 - 6) = (0, 0 \mid -2), the equation 0=−20 = -2: no solution. Two columns in the plane do not guarantee that the whole plane is reached.

b) Keep bb as letters: R1↔R2R_1 \leftrightarrow R_2 gives (1,−2∣b2)(1, -2 \mid b_2) and (2,−4∣b1)(2, -4 \mid b_1), then R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0,0∣b1−2b2)(0, 0 \mid b_1 - 2b_2). The system is consistent exactly when b1−2b2=0b_1 - 2b_2 = 0, that is b1=2b2b_1 = 2b_2, which is the equation of the dashed line written in the letters of bb. Check with a): 4=2×24 = 2 \times 2 passes, 4≠2×34 \neq 2 \times 3 fails.

c) R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0,−1,−2∣b2−2b1)(0, -1, -2 \mid b_2 - 2b_1) and R3→R3−R1R_3 \to R_3 - R_1 gives (0,−1,−2∣b3−b1)(0, -1, -2 \mid b_3 - b_1). Then R3→R3−R2R_3 \to R_3 - R_2 gives (0,0,0∣(b3−b1)−(b2−2b1))=(0,0,0∣b1−b2+b3)(0, 0, 0 \mid (b_3 - b_1) - (b_2 - 2b_1)) = (0, 0, 0 \mid b_1 - b_2 + b_3). The rank of MM is 22, the third row is zero on the left, so the system is consistent if and only if b1−b2+b3=0b_1 - b_2 + b_3 = 0. The classic slip is a sign in the last subtraction: write the bracket in full before simplifying, the marker gives the mark for that line.

d) For (1,4,3)(1, 4, 3): 1−4+3=01 - 4 + 3 = 0, so it IS a combination. To write one, take the reduced rows with bb substituted: x1+2x2+x3=1x_1 + 2x_2 + x_3 = 1 and −x2−2x3=4−2=2-x_2 - 2x_3 = 4 - 2 = 2. With the free variable x3=0x_3 = 0: x2=−2x_2 = -2, then x1=1+4=5x_1 = 1 + 4 = 5. So (1,4,3)=5a1−2a2(1, 4, 3) = 5a_1 - 2a_2, and indeed 5(1,2,1)−2(2,3,1)=(1,4,3)5(1, 2, 1) - 2(2, 3, 1) = (1, 4, 3). Other values of x3x_3 give other combinations, since MM has a free column. For (1,1,1)(1, 1, 1): 1−1+1=1≠01 - 1 + 1 = 1 \neq 0, so NO choice of xx works. Three columns in R3\mathbb{R}^3 are not enough when the rank is only 22.

e) Column 11: 1−2+1=01 - 2 + 1 = 0. Column 22: 2−3+1=02 - 3 + 1 = 0. Column 33: 1−0−1=01 - 0 - 1 = 0. It must be so, because aj=Meja_j = Me_j: every column is reached by the vector eje_j, so every column is a right-hand side for which the system is consistent. This is the fastest check of a consistency condition, and it catches most sign errors: a condition that fails on one of the columns of the matrix is wrong, with no further computation.

Part B: problems and reasoning (/50)

Exercise 6: Particular plus homogeneous: the shape of every solution set

If pp is one solution of Ax=bAx = b, then every solution has the form x=p+hx = p + h, where hh solves the ASSOCIATED homogeneous system Ax=0Ax = 0 (Nicholson, Section 2.2). The homogeneous part says how much freedom there is; the particular solution says where that freedom is anchored.

The figure draws the solutions of x+2y=4x + 2y = 4 and of x+2y=0x + 2y = 0 in the plane, with a vector pp to the first line and a vector hh along the second.

-3-2-112345-2-11234phx + 2y = 4x + 2y = 0
  • a) Check that p=(2,1)p = (2, 1) solves x+2y=4x + 2y = 4 and h=(−2,1)h = (-2, 1) solves x+2y=0x + 2y = 0. Write the general solution of x+2y=4x + 2y = 4 and describe the picture.
  • b) Solve Ax=bAx = b with A=(1−1212−250−11−1−3)A = \begin{pmatrix} 1 & -1 & 2 & 1 \\ 2 & -2 & 5 & 0 \\ -1 & 1 & -1 & -3 \end{pmatrix} and b=(3,8,−1)b = (3, 8, -1). Write the solution as x=p+sh1+th2x = p + sh_1 + th_2 and say which piece solves which system.
  • c) A classmate writes the general solution as (−5,1,4,1)+s(1,1,0,0)+t(−5,0,2,1)(-5, 1, 4, 1) + s(1, 1, 0, 0) + t(-5, 0, 2, 1). Same set as yours or not? Justify without reducing again.
  • d) With q=(−5,1,4,1)q = (-5, 1, 4, 1), compute A(p+q)A(p + q). Is p+qp + q a solution? What about 12(p+q)\frac{1}{2}(p + q)?
  • e) Find the condition on bb for Ax=bAx = b to be consistent with this AA, give a right-hand side with no solution, and explain why every consistent bb gives exactly two parameters.
Show the solution

Answers

  • a) (x,y)=(2,1)+t(−2,1)(x, y) = (2, 1) + t(-2, 1): the line x+2y=0x + 2y = 0 shifted by pp.
  • b) x=(−1,0,2,0)+s(1,1,0,0)+t(−5,0,2,1)x = (-1, 0, 2, 0) + s(1, 1, 0, 0) + t(-5, 0, 2, 1); pp solves Ax=bAx = b, h1h_1 and h2h_2 solve Ax=0Ax = 0.
  • c) Same set: q=p+h1+h2q = p + h_1 + h_2 solves Ax=bAx = b, and the homogeneous parts are identical.
  • d) A(p+q)=2b=(6,16,−2)≠bA(p + q) = 2b = (6, 16, -2) \neq b: not a solution. 12(p+q)=(−3,12,3,12)\frac{1}{2}(p + q) = (-3, \frac{1}{2}, 3, \frac{1}{2}) is one.
  • e) 3b1−b2+b3=03b_1 - b_2 + b_3 = 0; e.g. b=(0,0,1)b = (0, 0, 1) has no solution. Rank 22, so 4−2=24 - 2 = 2 parameters.

a) 2+2×1=42 + 2 \times 1 = 4 and −2+2×1=0-2 + 2 \times 1 = 0. With y=ty = t free, x=4−2tx = 4 - 2t, so (x,y)=(4−2t,t)(x, y) = (4 - 2t, t). That is one correct answer, and (2,1)+t(−2,1)(2, 1) + t(-2, 1) is another description of the SAME line (put t→t−1t \to t - 1 in the first to get the second). On the figure the grey dashed line through the origin is the solution set of x+2y=0x + 2y = 0, and the blue line is that same line shifted by pp: parallel, never through the origin. The dashed copy of hh starting at the tip of pp lands at (0,2)(0, 2), another solution of x+2y=4x + 2y = 4.

b) R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0,0,1,−2∣2)(0, 0, 1, -2 \mid 2) and R3→R3+R1R_3 \to R_3 + R_1 gives (0,0,1,−2∣2)(0, 0, 1, -2 \mid 2). Then R3→R3−R2R_3 \to R_3 - R_2 gives a zero row, and R1→R1−2R2R_1 \to R_1 - 2R_2 gives (1,−1,0,5∣−1)(1, -1, 0, 5 \mid -1). The reduced system is x1−x2+5x4=−1x_1 - x_2 + 5x_4 = -1 and x3−2x4=2x_3 - 2x_4 = 2. With x2=sx_2 = s and x4=tx_4 = t: x=(−1,0,2,0)+s(1,1,0,0)+t(−5,0,2,1)x = (-1, 0, 2, 0) + s(1, 1, 0, 0) + t(-5, 0, 2, 1). The constant vector p=(−1,0,2,0)p = (-1, 0, 2, 0) (all parameters at 00) solves Ax=bAx = b: −1+4=3-1 + 4 = 3, −2+10=8-2 + 10 = 8, 1−2=−11 - 2 = -1. The vectors h1h_1 and h2h_2 are the basic solutions of Ax=0Ax = 0, which you can confirm by multiplying: each row gives 00.

c) Same set. Two things must be checked, and both hold. First, the classmate's anchor solves Ax=bAx = b: q=p+h1+h2=(−1+1−5,0+1,2+2,0+1)=(−5,1,4,1)q = p + h_1 + h_2 = (-1 + 1 - 5, 0 + 1, 2 + 2, 0 + 1) = (-5, 1, 4, 1), so Aq=Ap+Ah1+Ah2=b+0+0=bAq = Ap + Ah_1 + Ah_2 = b + 0 + 0 = b. Second, the homogeneous parts are the same two vectors. Then any q+sh1+th2q + sh_1 + th_2 equals p+(s+1)h1+(t+1)h2p + (s + 1)h_1 + (t + 1)h_2, and conversely. Two correct answers to the same system can look different in their particular solution; they can never differ in their NUMBER of parameters.

d) A(p+q)=Ap+Aq=b+b=2b=(6,16,−2)A(p + q) = Ap + Aq = b + b = 2b = (6, 16, -2), which is not bb: the sum of two solutions solves a DIFFERENT system. Summing solutions is only safe when b=0b = 0, which is exactly why the homogeneous system gets its own name. The midpoint behaves: A(12(p+q))=12(b+b)=bA(\frac{1}{2}(p + q)) = \frac{1}{2}(b + b) = b, so 12(p+q)=(−3,12,3,12)\frac{1}{2}(p + q) = (-3, \frac{1}{2}, 3, \frac{1}{2}) is a solution. The rule behind both answers: a combination αp+βq\alpha p + \beta q solves Ax=bAx = b exactly when α+β=1\alpha + \beta = 1.

e) Redo the reduction with letters: R2−2R1R_2 - 2R_1 puts b2−2b1b_2 - 2b_1 in the last column and R3+R1R_3 + R_1 puts b3+b1b_3 + b_1; after R3−R2R_3 - R_2 the zero row carries (b3+b1)−(b2−2b1)=3b1−b2+b3(b_3 + b_1) - (b_2 - 2b_1) = 3b_1 - b_2 + b_3. Consistent if and only if 3b1−b2+b3=03b_1 - b_2 + b_3 = 0. Our bb passes: 9−8−1=09 - 8 - 1 = 0. The vector b=(0,0,1)b = (0, 0, 1) fails, since 0−0+1=10 - 0 + 1 = 1. For every bb that passes, the coefficient matrix is the same AA, with rank 22 and 44 unknowns, so the rank theorem gives 4−2=24 - 2 = 2 parameters whatever the particular solution. The right-hand side decides WHETHER there are solutions, never how many parameters they have.

Exercise 7: Linearity: what A(x + y) = Ax + Ay buys you

Two rules hold for every matrix AA and all vectors of the right size: A(x+y)=Ax+AyA(x + y) = Ax + Ay and A(cx)=c(Ax)A(cx) = c(Ax) for every number cc. Together they say that AA respects linear combinations, and they let you answer questions about AA WITHOUT knowing its entries.

A 3×33 \times 3 matrix AA is not given. You only know that u=(0,−1,1)u = (0, -1, 1) and v=(−1,0,1)v = (-1, 0, 1) satisfy Au=(1,0,2)Au = (1, 0, 2) and Av=(0,1,−1)Av = (0, 1, -1), and that w=(−1,−1,1)w = (-1, -1, 1) satisfies Aw=0Aw = 0.

  • a) Compute A(3u−2v)A(3u - 2v) without knowing AA.
  • b) Find one solution of Ax=(2,3,1)Ax = (2, 3, 1).
  • c) Give infinitely many solutions of Ax=(2,3,1)Ax = (2, 3, 1), and explain why the answer to b) is not THE solution.
  • d) Prove the two rules from the definition of AxAx as a combination of the columns, and deduce that A0=0A0 = 0 for every matrix.
  • e) The matrix is revealed: A=(1010112−11)A = \begin{pmatrix} 1 & 0 & 1 \\ 0 & 1 & 1 \\ 2 & -1 & 1 \end{pmatrix}. Check your answers to a) and b) and the fact that Aw=0Aw = 0. Could some matrix BB satisfy Bu=(1,0,2)Bu = (1, 0, 2), Bv=(0,1,−1)Bv = (0, 1, -1) and B(u+v)=(1,1,2)B(u + v) = (1, 1, 2)?
Show the solution

Answers

  • a) A(3u−2v)=3Au−2Av=(3,−2,8)A(3u - 2v) = 3Au - 2Av = (3, -2, 8)
  • b) x=2u+3v=(−3,−2,5)x = 2u + 3v = (-3, -2, 5)
  • c) x=(−3,−2,5)+t(−1,−1,1)x = (-3, -2, 5) + t(-1, -1, 1) for every real tt
  • d) A(x+y)=∑(xj+yj)aj=Ax+AyA(x + y) = \sum (x_j + y_j)a_j = Ax + Ay; A(cx)=∑cxjaj=c(Ax)A(cx) = \sum cx_ja_j = c(Ax); A0=A(0⋅0)=0⋅A0=0A0 = A(0 \cdot 0) = 0 \cdot A0 = 0.
  • e) All three check. No such BB: linearity forces B(u+v)=(1,1,1)B(u + v) = (1, 1, 1).

a) By linearity, A(3u−2v)=3Au−2Av=3(1,0,2)−2(0,1,−1)=(3,−2,8)A(3u - 2v) = 3Au - 2Av = 3(1, 0, 2) - 2(0, 1, -1) = (3, -2, 8). Nothing about the entries of AA was needed, only the two products we were given. The slip to avoid is to apply the coefficients to uu and vv and then stop: 3u−2v=(2,−3,1)3u - 2v = (2, -3, 1) is the INPUT, and the question asks for the output.

b) Look for b=(2,3,1)b = (2, 3, 1) as a combination of the two known outputs: α(1,0,2)+β(0,1,−1)=(α,β,2α−β)\alpha(1, 0, 2) + \beta(0, 1, -1) = (\alpha, \beta, 2\alpha - \beta). The first two entries force α=2\alpha = 2 and β=3\beta = 3, and the third then reads 4−3=14 - 3 = 1, which matches. So b=2Au+3Av=A(2u+3v)b = 2Au + 3Av = A(2u + 3v), and x=2u+3v=(0,−2,2)+(−3,0,3)=(−3,−2,5)x = 2u + 3v = (0, -2, 2) + (-3, 0, 3) = (-3, -2, 5) is a solution. The third entry was a genuine test: with b=(2,3,0)b = (2, 3, 0) the same method fails, and it would tell us nothing about whether some other xx works.

c) Since Aw=0Aw = 0, linearity gives A(x+tw)=Ax+tAw=b+0=bA(x + tw) = Ax + tAw = b + 0 = b for every real tt. So x=(−3,−2,5)+t(−1,−1,1)x = (-3, -2, 5) + t(-1, -1, 1) solves the system for every tt: infinitely many solutions. The vector found in b) is one particular solution, and the associated homogeneous system has the nontrivial solution ww, so the answer is a whole line, never a single vector. Writing the solution is (−3,−2,5)(-3, -2, 5) would lose the marks for the structure of the solution set.

d) Let a1,…,ana_1, \ldots, a_n be the columns of AA. By definition, A(x+y)=(x1+y1)a1+⋯+(xn+yn)anA(x + y) = (x_1 + y_1)a_1 + \cdots + (x_n + y_n)a_n. Distributing each number over its column and regrouping gives (x1a1+⋯+xnan)+(y1a1+⋯+ynan)=Ax+Ay(x_1a_1 + \cdots + x_na_n) + (y_1a_1 + \cdots + y_na_n) = Ax + Ay. Likewise A(cx)=(cx1)a1+⋯+(cxn)an=c(x1a1+⋯+xnan)=c(Ax)A(cx) = (cx_1)a_1 + \cdots + (cx_n)a_n = c(x_1a_1 + \cdots + x_na_n) = c(Ax). Taking c=0c = 0 and any xx: A0=A(0x)=0(Ax)=0A0 = A(0x) = 0(Ax) = 0. That last line is the reason a homogeneous system can never be inconsistent: the zero vector is always a solution.

e) Direct computation with the revealed AA: A(2,−3,1)=(2+1,−3+1,4+3+1)=(3,−2,8)A(2, -3, 1) = (2 + 1, -3 + 1, 4 + 3 + 1) = (3, -2, 8), as in a). A(−3,−2,5)=(−3+5,−2+5,−6+2+5)=(2,3,1)A(-3, -2, 5) = (-3 + 5, -2 + 5, -6 + 2 + 5) = (2, 3, 1), as in b). Aw=(−1+1,−1+1,−2+1+1)=(0,0,0)Aw = (-1 + 1, -1 + 1, -2 + 1 + 1) = (0, 0, 0). For the last question: ANY matrix BB with the first two properties satisfies B(u+v)=Bu+Bv=(1,1,1)B(u + v) = Bu + Bv = (1, 1, 1), by linearity alone. The value (1,1,2)(1, 1, 2) is therefore impossible, whatever the entries of BB. Linearity is not a property of this particular AA; it is a property of every matrix product, and it rules out whole families of claims at once.

Exercise 8: Five statements to correct

Each statement below was written by a student in a first linear algebra course. Each one is false, or true only under a hypothesis it forgets to state. Say what is wrong, give the smallest example that settles it, and write the correct statement.

  • a) A system with more unknowns than equations always has infinitely many solutions.
  • b) The number of parameters in the solution is the number of unknowns minus the number of equations.
  • c) If Ax=0Ax = 0 has only the trivial solution, then Ax=bAx = b has exactly one solution for every bb.
  • d) If pp and qq both solve Ax=bAx = b, then p+qp + q solves it too.
  • e) My basic solution (−1,0,−4,2,0)(-1, 0, -4, 2, 0) must be wrong, because the answer key gives (−12,0,−2,1,0)(-\frac{1}{2}, 0, -2, 1, 0).
Show the solution

Answers

  • a) False: x+y+z=1x + y + z = 1, x+y+z=2x + y + z = 2 has none. True for a CONSISTENT system, and always for a homogeneous one.
  • b) False: x+y=1x + y = 1, 2x+2y=22x + 2y = 2 has 2−1=12 - 1 = 1 parameter, not 00. Parameters =n−r= n - r for a consistent system.
  • c) False for a non-square AA: A=(100100)A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{pmatrix}, b=(0,0,1)b = (0, 0, 1) has no solution. Correct: AT MOST one solution for every bb.
  • d) False: A(p+q)=2bA(p + q) = 2b. True only if b=0b = 0; in general p−qp - q solves Ax=0Ax = 0.
  • e) False: (−1,0,−4,2,0)(-1, 0, -4, 2, 0) is 22 times the key's vector, and a nonzero multiple of a basic solution is accepted. Only their NUMBER is fixed.

a) The theorem about more unknowns than equations is a theorem about HOMOGENEOUS systems. A non-homogeneous one can be inconsistent whatever its shape: x+y+z=1x + y + z = 1 and x+y+z=2x + y + z = 2 have three unknowns, two equations, and no solution at all, since R2−R1R_2 - R_1 reads 0=10 = 1. Correct statement: a CONSISTENT system with more unknowns than equations has infinitely many solutions, because its rank is at most the number of equations, so at least one parameter remains; a homogeneous one is always consistent, so it always has infinitely many.

b) The rank theorem subtracts the number of PIVOTS, not the number of equations. The system x+y=1x + y = 1, 2x+2y=22x + 2y = 2 has two unknowns and two equations, and the recipe would give 00 parameters, a single solution. But R2−2R1R_2 - 2R_1 gives 0=00 = 0, the rank is 11, and the solutions (1−t,t)(1 - t, t) involve 2−1=12 - 1 = 1 parameter. Correct statement: if the system is consistent, the number of parameters is n−rn - r, where rr is the rank of the coefficient matrix. The number of equations is only an upper bound for rr.

c) Only the trivial solution means rank =n= n, no free column. For a SQUARE matrix that also means a pivot in every row, and then every bb is reached. For a tall matrix it does not: A=(100100)A = \begin{pmatrix} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{pmatrix} has rank 2=n2 = n, so Ax=0Ax = 0 forces x=0x = 0, yet Ax=(x1,x2,0)Ax = (x_1, x_2, 0) can never equal b=(0,0,1)b = (0, 0, 1): no combination of the columns has a nonzero third entry. Correct statement: if Ax=0Ax = 0 has only the trivial solution, then Ax=bAx = b has AT MOST one solution for each bb; it has exactly one precisely when bb is a combination of the columns.

d) Linearity gives A(p+q)=Ap+Aq=b+b=2bA(p + q) = Ap + Aq = b + b = 2b, which equals bb only when b=0b = 0. Smallest example: the one-unknown system x=1x = 1, with p=q=1p = q = 1; then p+q=2p + q = 2 is not a solution. The correct statements are two. The DIFFERENCE p−qp - q solves the associated homogeneous system, since A(p−q)=b−b=0A(p - q) = b - b = 0, and that is exactly why any two solutions differ by a homogeneous solution. And the sum of two solutions of Ax=0Ax = 0 is again a solution of Ax=0Ax = 0: adding is safe for homogeneous systems only.

e) The vector is right and the conclusion is wrong:(−1,0,−4,2,0)=2(−12,0,−2,1,0)(-1, 0, -4, 2, 0) = 2(-\frac{1}{2}, 0, -2, 1, 0). A nonzero multiple of a basic solution is still accepted as a basic solution, and multiplying by 22 to clear the fractions is exactly what Nicholson does. What is NOT allowed is replacing a basic solution by a sum of two of them, or listing a different number of them: the number of basic solutions is n−rn - r and it is the same on every correct copy. Correct statement: the basic solutions are determined up to nonzero multiples; their number is determined exactly.

Exercise 9: Balancing chemical equations: a homogeneous system in the lab

A chemical equation is balanced when every element has the same number of atoms on both sides. Writing an unknown coefficient in front of each species turns this into a HOMOGENEOUS system: one equation per element, one unknown per species. The trivial solution is the empty reaction; the chemistry lives in the nontrivial ones, and the rank says how many genuinely different reactions the species allow.

  • a) Oxidation of ammonia: x1 NH3+x2 O2→x3 NO+x4 H2Ox_1\,\mathrm{NH_3} + x_2\,\mathrm{O_2} \to x_3\,\mathrm{NO} + x_4\,\mathrm{H_2O}. Write the homogeneous system, one equation per element. Before any row operation, explain why a nontrivial solution must exist.
  • b) Reduce the system, give the rank and the basic solution, and write the balanced equation with the smallest positive whole numbers.
  • c) Hydrogen and oxygen can form water or hydrogen peroxide: x1 H2+x2 O2→x3 H2O+x4 H2O2x_1\,\mathrm{H_2} + x_2\,\mathrm{O_2} \to x_3\,\mathrm{H_2O} + x_4\,\mathrm{H_2O_2}. Write the system, give its rank and number of parameters, and find two basic solutions with whole-number entries. Name the reaction each one describes.
  • d) A lab notebook reports 5 H2+3 O2→4 H2O+H2O25\,\mathrm{H_2} + 3\,\mathrm{O_2} \to 4\,\mathrm{H_2O} + \mathrm{H_2O_2}. Check that it is balanced and write it as a combination of the two basic reactions of c).
  • e) The first basic solution minus the second has a negative entry. Which reaction does it describe? A student also adds the equation total number of atoms on the left equals total on the right: does it change the number of parameters?
Show the solution

Answers

  • a) N: x1−x3=0x_1 - x_3 = 0; H: 3x1−2x4=03x_1 - 2x_4 = 0; O: 2x2−x3−x4=02x_2 - x_3 - x_4 = 0. Four unknowns, three equations: nontrivial solution guaranteed.
  • b) Rank 33, one parameter; 4 NH3+5 O2→4 NO+6 H2O4\,\mathrm{NH_3} + 5\,\mathrm{O_2} \to 4\,\mathrm{NO} + 6\,\mathrm{H_2O}
  • c) Rank 22, 22 parameters; (2,1,2,0)(2, 1, 2, 0): 2 H2+O2→2 H2O2\,\mathrm{H_2} + \mathrm{O_2} \to 2\,\mathrm{H_2O} and (1,1,0,1)(1, 1, 0, 1): H2+O2→H2O2\mathrm{H_2} + \mathrm{O_2} \to \mathrm{H_2O_2}
  • d) Balanced (1010 H and 66 O on each side); (5,3,4,1)=2(2,1,2,0)+(1,1,0,1)(5, 3, 4, 1) = 2(2, 1, 2, 0) + (1, 1, 0, 1)
  • e) (1,0,2,−1)(1, 0, 2, -1): H2+H2O2→2 H2O\mathrm{H_2} + \mathrm{H_2O_2} \to 2\,\mathrm{H_2O}. The extra equation is the sum of the two others: no new pivot, still 22 parameters.

a) Count each element on the left minus on the right. Nitrogen: x1−x3=0x_1 - x_3 = 0. Hydrogen: 3x1−2x4=03x_1 - 2x_4 = 0. Oxygen: 2x2−x3−x4=02x_2 - x_3 - x_4 = 0. The coefficient matrix is (10−10300−202−1−1)\begin{pmatrix} 1 & 0 & -1 & 0 \\ 3 & 0 & 0 & -2 \\ 0 & 2 & -1 & -1 \end{pmatrix}. It has 44 unknowns and 33 equations, so the theorem on homogeneous systems guarantees a nontrivial solution with no computation: the reaction CAN be balanced. That is the theorem used the way it should be, as a licence to look for something before looking.

b) R2→R2−3R1R_2 \to R_2 - 3R_1 gives (0,0,3,−2)(0, 0, 3, -2); swap R2↔R3R_2 \leftrightarrow R_3 so that the second pivot sits in column 22. Then R3→13R3R_3 \to \frac{1}{3}R_3 gives (0,0,1,−23)(0, 0, 1, -\frac{2}{3}), R2→R2+R3R_2 \to R_2 + R_3 then R2→12R2R_2 \to \frac{1}{2}R_2 give (0,1,0,−56)(0, 1, 0, -\frac{5}{6}), and R1→R1+R3R_1 \to R_1 + R_3 gives (1,0,0,−23)(1, 0, 0, -\frac{2}{3}). Rank 33, one free variable x4=tx_4 = t, and the basic solution is (23,56,23,1)(\frac{2}{3}, \frac{5}{6}, \frac{2}{3}, 1). Multiplying by 66, the least common denominator, gives (4,5,4,6)(4, 5, 4, 6): 4 NH3+5 O2→4 NO+6 H2O4\,\mathrm{NH_3} + 5\,\mathrm{O_2} \to 4\,\mathrm{NO} + 6\,\mathrm{H_2O}. Check: 44 N, 1212 H and 1010 O on each side. Every multiple of this vector is also a solution; the chemist's convention of smallest whole numbers is what picks one.

c) Hydrogen: 2x1−2x3−2x4=02x_1 - 2x_3 - 2x_4 = 0. Oxygen: 2x2−x3−2x4=02x_2 - x_3 - 2x_4 = 0. Dividing each row by 22 already gives reduced form, with rows (1,0,−1,−1)(1, 0, -1, -1) and (0,1,−12,−1)(0, 1, -\frac{1}{2}, -1): rank 22, 4−2=24 - 2 = 2 parameters, x3=sx_3 = s and x4=tx_4 = t. The basic solutions are (1,12,1,0)(1, \frac{1}{2}, 1, 0), doubled to (2,1,2,0)(2, 1, 2, 0), which is 2 H2+O2→2 H2O2\,\mathrm{H_2} + \mathrm{O_2} \to 2\,\mathrm{H_2O}, and (1,1,0,1)(1, 1, 0, 1), which is H2+O2→H2O2\mathrm{H_2} + \mathrm{O_2} \to \mathrm{H_2O_2}. Two parameters mean that these four species support two basic reactions, and that every balanced equation between them is a combination of those two.

d) Hydrogen: 5×2=105 \times 2 = 10 on the left, 4×2+1×2=104 \times 2 + 1 \times 2 = 10 on the right. Oxygen: 3×2=63 \times 2 = 6 on the left, 4×1+1×2=64 \times 1 + 1 \times 2 = 6 on the right. Balanced. Solving α(2,1,2,0)+β(1,1,0,1)=(5,3,4,1)\alpha(2, 1, 2, 0) + \beta(1, 1, 0, 1) = (5, 3, 4, 1): the fourth entry gives β=1\beta = 1, the third gives α=2\alpha = 2, and the first two check, 4+1=54 + 1 = 5 and 2+1=32 + 1 = 3. The notebook reaction is twice the formation of water plus once the formation of peroxide, nothing new: the rank said so before the check.

e) (2,1,2,0)−(1,1,0,1)=(1,0,2,−1)(2, 1, 2, 0) - (1, 1, 0, 1) = (1, 0, 2, -1). A negative coefficient means the species belongs on the OTHER side: H2+H2O2→2 H2O\mathrm{H_2} + \mathrm{H_2O_2} \to 2\,\mathrm{H_2O}, with no free oxygen at all (44 H and 22 O on each side). It is a genuine reaction, hidden in the system all along. The extra equation counts all atoms: H2\mathrm{H_2} has 22, O2\mathrm{O_2} has 22, H2O\mathrm{H_2O} has 33, H2O2\mathrm{H_2O_2} has 44, so it reads 2x1+2x2−3x3−4x4=02x_1 + 2x_2 - 3x_3 - 4x_4 = 0, which is exactly the hydrogen row plus the oxygen row. It reduces to a zero row, adds no pivot, and leaves 22 parameters: one more equation, no more information.

Exercise 10: Filling an order from four feed mixes

A feed supplier sells four mixes in bags. Per bag, in kilograms of protein, fat and fibre, mix 1 contains (4,1,2)(4, 1, 2), mix 2 contains (2,3,1)(2, 3, 1), mix 3 contains (6,4,3)(6, 4, 3) and mix 4 contains (2,1,2)(2, 1, 2). A farm orders exactly 2020 kg of protein, 1111 kg of fat and 1212 kg of fibre.

Let xjx_j be the number of bags of mix jj. The question can the order be filled is the question of this chapter in disguise: is the order a combination of the four columns?

  • a) Write the problem as Ax=bAx = b. What do the columns of AA represent, and what does it mean in terms of the columns that the order can be filled?
  • b) Reduce (A∣b)(A \mid b). Give the rank, the number of parameters, and the general solution in the form particular plus homogeneous.
  • c) Interpret the homogeneous solution you found in terms of bags.
  • d) Bags are whole and cannot be negative. List every possible order. A bag of mix 1 costs 1818 dollars, mix 2 costs 1515, mix 3 costs 3030 and mix 4 costs 2020: which order is cheapest?
  • e) Next week the farm orders (24,12,14)(24, 12, 14). Without reducing again, give all the ways to fill it, and say why the number of parameters did not change.
Show the solution

Answers

  • a) A=(426213412132)A = \begin{pmatrix} 4 & 2 & 6 & 2 \\ 1 & 3 & 4 & 1 \\ 2 & 1 & 3 & 2 \end{pmatrix}, b=(20,11,12)b = (20, 11, 12); column jj is the content of one bag of mix jj. The order can be filled when bb is a combination of the columns.
  • b) Rank 33, 11 parameter; x=(3,2,0,2)+t(−1,−1,1,0)x = (3, 2, 0, 2) + t(-1, -1, 1, 0)
  • c) Mix 3 == mix 1 ++ mix 2: one bag of mix 3 replaces one bag each of mixes 1 and 2.
  • d) (3,2,0,2)(3, 2, 0, 2), (2,1,1,2)(2, 1, 1, 2), (1,0,2,2)(1, 0, 2, 2); cost 124−3t124 - 3t, cheapest (1,0,2,2)(1, 0, 2, 2) at 118118 dollars.
  • e) (24,12,14)=b+a1(24, 12, 14) = b + a_1, so x=(4,2,0,2)+t(−1,−1,1,0)x = (4, 2, 0, 2) + t(-1, -1, 1, 0); same AA, same rank 33, so still 11 parameter.

a) A=(426213412132)A = \begin{pmatrix} 4 & 2 & 6 & 2 \\ 1 & 3 & 4 & 1 \\ 2 & 1 & 3 & 2 \end{pmatrix}, x=(x1,x2,x3,x4)x = (x_1, x_2, x_3, x_4) and b=(20,11,12)b = (20, 11, 12). Row 11 counts protein, row 22 fat, row 33 fibre; column jj is the content of ONE bag of mix jj. Then Ax=x1a1+x2a2+x3a3+x4a4Ax = x_1a_1 + x_2a_2 + x_3a_3 + x_4a_4 is the total content of the order, bag by bag. The order can be filled, ignoring for now that bags are whole, exactly when bb is a linear combination of the four columns, that is when the system is consistent.

b) R1↔R2R_1 \leftrightarrow R_2 puts the 11 first: (1,3,4,1∣11)(1, 3, 4, 1 \mid 11). R2→R2−4R1R_2 \to R_2 - 4R_1 gives (0,−10,−10,−2∣−24)(0, -10, -10, -2 \mid -24) and R3→R3−2R1R_3 \to R_3 - 2R_1 gives (0,−5,−5,0∣−10)(0, -5, -5, 0 \mid -10). Swap these two and scale: R2→−15R2R_2 \to -\frac{1}{5}R_2 gives (0,1,1,0∣2)(0, 1, 1, 0 \mid 2). Then R3→R3+10R2R_3 \to R_3 + 10R_2 gives (0,0,0,−2∣−4)(0, 0, 0, -2 \mid -4), so R3→−12R3R_3 \to -\frac{1}{2}R_3 gives (0,0,0,1∣2)(0, 0, 0, 1 \mid 2). Finally R1→R1−3R2−R3R_1 \to R_1 - 3R_2 - R_3 gives (1,0,1,0∣3)(1, 0, 1, 0 \mid 3). Three pivots, in columns 11, 22, 44: rank 33, 4−3=14 - 3 = 1 parameter, x3=tx_3 = t. Then x1=3−tx_1 = 3 - t, x2=2−tx_2 = 2 - t, x4=2x_4 = 2: x=(3,2,0,2)+t(−1,−1,1,0)x = (3, 2, 0, 2) + t(-1, -1, 1, 0), with p=(3,2,0,2)p = (3, 2, 0, 2) solving Ax=bAx = b and h=(−1,−1,1,0)h = (-1, -1, 1, 0) solving Ax=0Ax = 0.

c) Ah=0Ah = 0 says −a1−a2+a3=0-a_1 - a_2 + a_3 = 0, that is a3=a1+a2a_3 = a_1 + a_2: one bag of mix 3 contains exactly what one bag of mix 1 and one bag of mix 2 contain together, (4,1,2)+(2,3,1)=(6,4,3)(4, 1, 2) + (2, 3, 1) = (6, 4, 3). Adding hh to an order means swapping a bag of each of mixes 1 and 2 for one bag of mix 3, and the farm receives exactly the same nutrients. That is the whole meaning of a nontrivial homogeneous solution in an application: a change of input that the output cannot see.

d) All four entries of (3−t,2−t,t,2)(3 - t, 2 - t, t, 2) must be whole and nonnegative, so tt is a whole number with t≥0t \ge 0 and 2−t≥02 - t \ge 0: t∈{0,1,2}t \in \{0, 1, 2\}, giving (3,2,0,2)(3, 2, 0, 2), (2,1,1,2)(2, 1, 1, 2) and (1,0,2,2)(1, 0, 2, 2). The cost is 18(3−t)+15(2−t)+30t+20×2=124−3t18(3 - t) + 15(2 - t) + 30t + 20 \times 2 = 124 - 3t dollars, which decreases with tt: mix 3 costs 3030 where the pair it replaces costs 3333. The cheapest order is t=2t = 2, one bag of mix 1, two of mix 3 and two of mix 4, for 118118 dollars. Check it: (4,1,2)+2(6,4,3)+2(2,1,2)=(20,11,12)(4, 1, 2) + 2(6, 4, 3) + 2(2, 1, 2) = (20, 11, 12).

e) (24,12,14)=(20,11,12)+(4,1,2)=b+a1=Ap+Ae1=A(p+e1)(24, 12, 14) = (20, 11, 12) + (4, 1, 2) = b + a_1 = Ap + Ae_1 = A(p + e_1) by linearity. So p+e1=(4,2,0,2)p + e_1 = (4, 2, 0, 2) is a particular solution, and all the solutions are (4,2,0,2)+t(−1,−1,1,0)(4, 2, 0, 2) + t(-1, -1, 1, 0), the SAME homogeneous part as before: whole nonnegative orders for t=0,1,2t = 0, 1, 2. The number of parameters depends only on the coefficient matrix, which did not change: rank 33, four unknowns, one parameter. A new order moves the particular solution, never the homogeneous part, and that is why a supplier can reuse last week's reduction.

See also

Struggling with MATH 133?

I tutor first-year linear algebra at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli