MATH 133 Linear Algebra and Geometry • McGill University, Montreal

Corrected exercises: subspaces, span and linear independence (MATH 133)

This is the corrected exercise set for the chapter on subspaces, span and linear independence of MATH 133, Linear Algebra and Geometry, at McGill University in Montreal, sections 5.1 and the start of 5.2 of Nicholson. Everything stays in Rn\mathbb{R}^n, as the course requires: a subspace is a plane or a line through the origin, a null space or an image, never a space of polynomials or functions. Every computation reduces by hand to small whole numbers, since no calculator is allowed at the exam.

The thread running through the whole set: yes needs letters, no needs numbers. A subspace, a spanning set or an independent family is PROVED with arbitrary vectors, written with letters, because the claim is about all of them. A failure is SHOWN with one explicit witness written with numbers: a vector that leaves the set, a right-hand side that makes the system inconsistent, a dependency relation whose coefficients you can check. 'It does not look closed' earns nothing, and neither does a yes checked on two examples.

The traps named explicitly in the solutions: stopping at the zero test, proving closure with particular vectors, calling the solution set of a non-homogeneous system a subspace, deciding span membership by looking for multiples, confusing the trivial solution with a dependency, applying the two-vector multiple test to three vectors, dividing by a pivot that contains kk, and forgetting that k2=4k^2 = 4 has two roots.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 133 chapter →

Course recap

  • • U⊆RnU \subseteq \mathbb{R}^n is a subspace when 0∈U0 \in U, u+v∈Uu + v \in U and cu∈Ucu \in U for ALL u,v∈Uu, v \in U and all real cc.
  • • null(A)={x:Ax=0}\text{null}(A) = \{x : Ax = 0\} and im(A)={Ax}\text{im}(A) = \{Ax\} are subspaces; the solutions of Ax=bAx = b with b≠0b \neq 0 are not.
  • • span{v1,…,vk}\text{span}\{v_1, \dots, v_k\} is the set of all combinations a1v1+⋯+akvka_1v_1 + \cdots + a_kv_k; it is always a subspace.
  • • b∈span{v1,…,vk}b \in \text{span}\{v_1, \dots, v_k\} exactly when the system (v1  ⋯  vk∣b)(v_1 \; \cdots \; v_k \mid b) is consistent.
  • • {v1,…,vk}\{v_1, \dots, v_k\} is independent when c1v1+⋯+ckvk=0c_1v_1 + \cdots + c_kv_k = 0 forces every ci=0c_i = 0; dependent when a relation with coefficients not all zero exists.
  • • A family containing 00 is dependent; more than nn vectors of Rn\mathbb{R}^n are dependent; a sub-family of an independent family is independent.

Part A: the basics (/50)

Exercise 1: The three-point test, and the one number that settles a no

A subset UU of Rn\mathbb{R}^n is a subspace when three things hold: 0∈U0 \in U, UU is closed under addition, and UU is closed under scalar multiplication. A YES must be proved for arbitrary vectors of UU, written with letters. A NO needs one explicit counterexample, written with numbers.

Test each set below. The figure shows U3U_3 and U4U_4.

xyxyU₃: x ≥ 0 and y ≥ 0U₄: xy = 0, both axes
  • a) U1={(x,y,z):x−2y+3z=0}U_1 = \{(x, y, z) : x - 2y + 3z = 0\} in R3\mathbb{R}^3.
  • b) U2={(x,y):y=2x+1}U_2 = \{(x, y) : y = 2x + 1\} in R2\mathbb{R}^2.
  • c) U3={(x,y):x≥0 and y≥0}U_3 = \{(x, y) : x \ge 0 \text{ and } y \ge 0\}. Say which of the three conditions hold and which one fails.
  • d) U4={(x,y):xy=0}U_4 = \{(x, y) : xy = 0\}. Same question.
  • e) What do c) and d) show about the three conditions? Why is checking 0∈U0 \in U never enough on its own?
Show the solution

Answers

  • a) Subspace: the three conditions hold for all vectors of U1U_1.
  • b) Not a subspace: (0,0)∉U2(0, 0) \notin U_2 since 0≠2(0)+10 \neq 2(0) + 1.
  • c) Not a subspace: 0∈U30 \in U_3 and addition works, but (−1)(1,2)=(−1,−2)∉U3(-1)(1, 2) = (-1, -2) \notin U_3.
  • d) Not a subspace: 0∈U40 \in U_4 and scalars work, but (1,0)+(0,1)=(1,1)∉U4(1, 0) + (0, 1) = (1, 1) \notin U_4.
  • e) Neither closure condition implies the other, so each must be checked; 0∈U0 \in U only filters.

a) Zero: 0−2(0)+3(0)=00 - 2(0) + 3(0) = 0, so (0,0,0)∈U1(0, 0, 0) \in U_1. Addition: take ANY u=(x1,y1,z1)u = (x_1, y_1, z_1) and v=(x2,y2,z2)v = (x_2, y_2, z_2) in U1U_1, so x1−2y1+3z1=0x_1 - 2y_1 + 3z_1 = 0 and x2−2y2+3z2=0x_2 - 2y_2 + 3z_2 = 0. Then u+v=(x1+x2,y1+y2,z1+z2)u + v = (x_1 + x_2, y_1 + y_2, z_1 + z_2) and (x1+x2)−2(y1+y2)+3(z1+z2)=(x1−2y1+3z1)+(x2−2y2+3z2)=0+0=0(x_1 + x_2) - 2(y_1 + y_2) + 3(z_1 + z_2) = (x_1 - 2y_1 + 3z_1) + (x_2 - 2y_2 + 3z_2) = 0 + 0 = 0, so u+v∈U1u + v \in U_1. Scalars: for any real cc, cx1−2cy1+3cz1=c(x1−2y1+3z1)=c⋅0=0cx_1 - 2cy_1 + 3cz_1 = c(x_1 - 2y_1 + 3z_1) = c \cdot 0 = 0, so cu∈U1cu \in U_1. Hence U1U_1 is a subspace: a plane through the origin. Checking that (2,1,0)(2, 1, 0) and (1,2,1)(1, 2, 1) add up correctly proves nothing; the marks are for the letters.

b) Zero first, because it is the cheapest test: (0,0)(0, 0) would need 0=2(0)+1=10 = 2(0) + 1 = 1, which is false. So (0,0)∉U2(0, 0) \notin U_2 and U2U_2 is not a subspace. That single line is a complete answer. If you want a second witness, (0,1)(0, 1) and (1,3)(1, 3) are in U2U_2 but their sum (1,4)(1, 4) is not, since 2(1)+1=3≠42(1) + 1 = 3 \neq 4. Geometrically U2U_2 is a line that misses the origin: a line is a subspace of R2\mathbb{R}^2 only when it passes through 00.

c) Zero: (0,0)(0, 0) satisfies both inequalities, so 0∈U30 \in U_3. Addition: if x1,y1,x2,y2≥0x_1, y_1, x_2, y_2 \ge 0 then x1+x2≥0x_1 + x_2 \ge 0 and y1+y2≥0y_1 + y_2 \ge 0, so U3U_3 IS closed under addition, proved with letters. Scalars fail, and the failure needs numbers: u=(1,2)∈U3u = (1, 2) \in U_3, but (−1)u=(−1,−2)(-1)u = (-1, -2) has negative coordinates, so it is not in U3U_3. The trap is to write that U3U_3 is not closed because negative numbers exist: name the vector and the scalar, or the mark is not given.

d) Zero: 0⋅0=00 \cdot 0 = 0, so (0,0)∈U4(0, 0) \in U_4. Scalars: if xy=0xy = 0 then (cx)(cy)=c2xy=0(cx)(cy) = c^2 xy = 0, so U4U_4 is closed under scalar multiplication. Addition fails: (1,0)(1, 0) and (0,1)(0, 1) are in U4U_4 (each has a zero coordinate), but (1,0)+(0,1)=(1,1)(1, 0) + (0, 1) = (1, 1) and 1⋅1=1≠01 \cdot 1 = 1 \neq 0. On the figure, U4U_4 is the union of the two axes: each axis is a subspace, and the sum of a vector from one with a vector from the other lands off both.

e) U3U_3 passes zero and addition and fails scalars; U4U_4 passes zero and scalars and fails addition. So neither closure condition is a consequence of the other, and a proof that checks only one of them is incomplete. The zero test is a FILTER: failing it ends the question, as in b), but passing it decides nothing, as both U3U_3 and U4U_4 show. In fact, for a non-empty set, closure under scalars already forces 0=0⋅u∈U0 = 0 \cdot u \in U; that is why the zero test is a quick first check rather than a separate hurdle.

Exercise 2: Conditions in disguise: intersections, squares, absolute values and a parameter

The same test, on sets whose description hides the answer. A set cut out by HOMOGENEOUS linear equations (every term has exactly one unknown to the first power, and the right side is 00) is always a subspace. A square, a product, an absolute value or a non-zero constant almost always breaks it, and then one explicit counterexample closes the question.

  • a) W={(x,y,z):x+y+z=0 and 2x−z=0}W = \{(x, y, z) : x + y + z = 0 \text{ and } 2x - z = 0\}. Prove WW is a subspace and describe it geometrically.
  • b) P={(x,y,z):z=x2}P = \{(x, y, z) : z = x^2\}.
  • c) A={(x,y,z):∣x∣=∣y∣}A = \{(x, y, z) : |x| = |y|\}.
  • d) For which real kk is {(x,y,z):x+2y−z=k2−4}\{(x, y, z) : x + 2y - z = k^2 - 4\} a subspace?
  • e) Show that {(x,y,z):x+y+z=kz}\{(x, y, z) : x + y + z = kz\} is a subspace for EVERY real kk.
Show the solution

Answers

  • a) Subspace; W={t(1,−3,2):t∈R}W = \{t(1, -3, 2) : t \in \mathbb{R}\}, a line through the origin.
  • b) Not a subspace: (1,0,1)∈P(1, 0, 1) \in P but 2(1,0,1)=(2,0,2)∉P2(1, 0, 1) = (2, 0, 2) \notin P.
  • c) Not a subspace: (1,1,0)+(1,−1,0)=(2,0,0)∉A(1, 1, 0) + (1, -1, 0) = (2, 0, 0) \notin A.
  • d) k=2k = 2 or k=−2k = -2, both of them.
  • e) It is x+y+(1−k)z=0x + y + (1 - k)z = 0, homogeneous for every kk.

a) Zero: 0+0+0=00 + 0 + 0 = 0 and 2(0)−0=02(0) - 0 = 0. Addition: if u=(x1,y1,z1)u = (x_1, y_1, z_1) and v=(x2,y2,z2)v = (x_2, y_2, z_2) satisfy both equations, then (x1+x2)+(y1+y2)+(z1+z2)=0+0=0(x_1 + x_2) + (y_1 + y_2) + (z_1 + z_2) = 0 + 0 = 0 and 2(x1+x2)−(z1+z2)=(2x1−z1)+(2x2−z2)=02(x_1 + x_2) - (z_1 + z_2) = (2x_1 - z_1) + (2x_2 - z_2) = 0. Scalars: cx1+cy1+cz1=c⋅0=0cx_1 + cy_1 + cz_1 = c \cdot 0 = 0 and 2cx1−cz1=c⋅0=02cx_1 - cz_1 = c \cdot 0 = 0. So WW is a subspace; it is the intersection of two planes through the origin. To describe it, solve: the second equation gives z=2xz = 2x, then y=−x−z=−3xy = -x - z = -3x. With x=tx = t: W={t(1,−3,2)}W = \{t(1, -3, 2)\}, a line through the origin. Check: 1−3+2=01 - 3 + 2 = 0 and 2(1)−2=02(1) - 2 = 0.

b) Zero passes: 0=020 = 0^2. That is exactly why this set is dangerous: it looks fine at the origin. Scalars fail: (1,0,1)∈P(1, 0, 1) \in P since 1=121 = 1^2, but 2(1,0,1)=(2,0,2)2(1, 0, 1) = (2, 0, 2) and 22=4≠22^2 = 4 \neq 2. The square is the culprit: multiplying xx by cc multiplies x2x^2 by c2c^2, not by cc. PP is a parabolic surface, curved, and no curved set is a subspace.

c) Zero passes and scalars pass: ∣cx∣=∣c∣∣x∣=∣c∣∣y∣=∣cy∣|cx| = |c||x| = |c||y| = |cy|. Addition fails, and the witness must be chosen so that the signs disagree: (1,1,0)(1, 1, 0) and (1,−1,0)(1, -1, 0) are both in AA, but their sum is (2,0,0)(2, 0, 0) and ∣2∣≠∣0∣|2| \neq |0|. Geometrically AA is the union of the two planes y=xy = x and y=−xy = -x, the same phenomenon as the two axes in exercise 1, one dimension higher.

d) The set is a plane with normal (1,2,−1)(1, 2, -1). It contains 00 exactly when 0+0−0=k2−40 + 0 - 0 = k^2 - 4, that is k2=4k^2 = 4. If k2≠4k^2 \neq 4, the origin is missing and the answer is no. If k2=4k^2 = 4, the equation is x+2y−z=0x + 2y - z = 0, homogeneous, and the proof of exercise 1 a) applies word for word, so the set is a subspace. Answer: k=2k = 2 or k=−2k = -2. Writing only k=2k = 2 loses a mark on almost every paper: k2=4k^2 = 4 has two roots.

e) The trap is to see kk on the right-hand side and conclude that the right side is a non-zero constant. It is not a constant, it multiplies an unknown. Move it across: x+y+z−kz=0x + y + z - kz = 0, that is x+y+(1−k)z=0x + y + (1 - k)z = 0, a homogeneous linear equation for every kk. Zero, addition and scalars then follow exactly as in exercise 1 a), with 33 replaced by 1−k1 - k. For k=1k = 1 the equation becomes x+y=0x + y = 0, still a plane through the origin (it contains the whole zz-axis). So the set is a subspace for every real kk.

Exercise 3: Null space, image, and why the solutions of Ax = b are not a subspace

For an m×nm \times n matrix AA, the null space is null(A)={x∈Rn:Ax=0}\text{null}(A) = \{x \in \mathbb{R}^n : Ax = 0\} and the image is im(A)={Ax:x∈Rn}\text{im}(A) = \{Ax : x \in \mathbb{R}^n\}. Both are subspaces, and the proofs are the three-point test with matrix algebra in place of coordinates.

Take A=(11−1121)A = \begin{pmatrix} 1 & 1 & -1 \\ 1 & 2 & 1 \end{pmatrix} and b=(23)b = \begin{pmatrix} 2 \\ 3 \end{pmatrix} for d) and e). The figure shows the same phenomenon one dimension lower: the line x−2y=0x - 2y = 0 against the line x−2y=4x - 2y = 4.

-2-112345678-3-2-1123x − 2y = 0x − 2y = 4
  • a) Prove that null(A)\text{null}(A) is a subspace of Rn\mathbb{R}^n for any m×nm \times n matrix AA.
  • b) Prove that im(A)\text{im}(A) is a subspace of Rm\mathbb{R}^m.
  • c) Writing A=(c1  c2  ⋯  cn)A = (c_1 \; c_2 \; \cdots \; c_n) by columns, show that im(A)\text{im}(A) is the span of the columns, and translate: b∈im(A)b \in \text{im}(A) exactly when what?
  • d) For the given AA, find null(A)\text{null}(A) in parametric form and describe it geometrically.
  • e) Solve Ax=bAx = b for the given bb. Show with a numerical witness that the solution set is not a subspace, and describe how it sits relative to null(A)\text{null}(A).
Show the solution

Answers

  • a) A0=0A0 = 0, A(x+y)=Ax+Ay=0A(x + y) = Ax + Ay = 0, A(cx)=cAx=0A(cx) = cAx = 0.
  • b) 0=A00 = A0, Ax+Ay=A(x+y)Ax + Ay = A(x + y), c(Ax)=A(cx)c(Ax) = A(cx).
  • c) Ax=x1c1+⋯+xncnAx = x_1c_1 + \cdots + x_nc_n, so b∈im(A)b \in \text{im}(A) iff Ax=bAx = b is consistent.
  • d) null(A)={t(3,−2,1)}\text{null}(A) = \{t(3, -2, 1)\}, a line through the origin.
  • e) x=(1,1,0)+t(3,−2,1)x = (1, 1, 0) + t(3, -2, 1); 00 is not a solution; the line is null(A)\text{null}(A) shifted by (1,1,0)(1, 1, 0).

a) Zero: A0=0A0 = 0, so 0∈null(A)0 \in \text{null}(A). Addition: if Ax=0Ax = 0 and Ay=0Ay = 0, then A(x+y)=Ax+Ay=0+0=0A(x + y) = Ax + Ay = 0 + 0 = 0, by distributivity of the matrix product. Scalars: A(cx)=c(Ax)=c0=0A(cx) = c(Ax) = c0 = 0. Each line cites the property of matrix multiplication it uses, and that citation is what the marker looks for. Note that the proof never looks at an entry of AA: it works for every matrix at once, which is what a proof with letters buys.

b) Here the elements are OUTPUTS, so each must be written as AA times something. Zero: 0=A0∈im(A)0 = A0 \in \text{im}(A). Addition: two elements of the image are AxAx and AyAy for some x,y∈Rnx, y \in \mathbb{R}^n, and Ax+Ay=A(x+y)Ax + Ay = A(x + y) is again AA times a vector, so it is in the image. Scalars: c(Ax)=A(cx)∈im(A)c(Ax) = A(cx) \in \text{im}(A). The common slip is to write 'let b∈im(A)b \in \text{im}(A), then Ab∈…Ab \in \dots': bb lives in Rm\mathbb{R}^m and AbAb usually does not even exist.

c) For x=(x1,…,xn)x = (x_1, \dots, x_n), the product AxAx is the linear combination x1c1+x2c2+⋯+xncnx_1c_1 + x_2c_2 + \cdots + x_nc_n of the columns. So the set of all AxAx is the set of all combinations of the columns: im(A)=span{c1,…,cn}\text{im}(A) = \text{span}\{c_1, \dots, c_n\}. Translation: b∈im(A)b \in \text{im}(A) exactly when the system Ax=bAx = b is consistent. Every span question in this chapter is therefore a system, and exercise 4 uses it.

d) Row reduce the coefficient matrix: R2→R2−R1R_2 \to R_2 - R_1 gives (11−1012)\begin{pmatrix} 1 & 1 & -1 \\ 0 & 1 & 2 \end{pmatrix}, then R1→R1−R2R_1 \to R_1 - R_2 gives (10−3012)\begin{pmatrix} 1 & 0 & -3 \\ 0 & 1 & 2 \end{pmatrix}. The variable z=tz = t is free, y=−2ty = -2t, x=3tx = 3t. So null(A)={t(3,−2,1):t∈R}\text{null}(A) = \{t(3, -2, 1) : t \in \mathbb{R}\}. Check: 3−2−1=03 - 2 - 1 = 0 and 3−4+1=03 - 4 + 1 = 0. Geometrically, it is the line through the origin where the two planes x+y−z=0x + y - z = 0 and x+2y+z=0x + 2y + z = 0 meet.

e) Same row operations on (A∣b)(A \mid b): R2→R2−R1R_2 \to R_2 - R_1 gives (0  1  2∣1)(0 \; 1 \; 2 \mid 1), then R1→R1−R2R_1 \to R_1 - R_2 gives (1  0  −3∣1)(1 \; 0 \; -3 \mid 1). So x=1+3tx = 1 + 3t, y=1−2ty = 1 - 2t, z=tz = t, that is x=(1,1,0)+t(3,−2,1)x = (1, 1, 0) + t(3, -2, 1). Not a subspace: A0=0≠bA0 = 0 \neq b, so 00 is not a solution. That witness is enough; another is that (1,1,0)(1, 1, 0) is a solution but 2(1,1,0)=(2,2,0)2(1, 1, 0) = (2, 2, 0) gives A(2,2,0)=(4,6)≠bA(2, 2, 0) = (4, 6) \neq b. The solution set is the line null(A)\text{null}(A) translated by the particular solution (1,1,0)(1, 1, 0): parallel to it, not through the origin, exactly like x−2y=4x - 2y = 4 beside x−2y=0x - 2y = 0 on the figure. Indeed the difference of two solutions is in the null space: A(p−q)=b−b=0A(p - q) = b - b = 0.

-2-112345678-3-2-1123x − 2y = 0x − 2y = 4p = (4, 0)(6, 1)(2, 1)

Exercise 4: Is b in the span? One system per question

Let v1=(1,2,−1)v_1 = (1, 2, -1) and v2=(2,5,0)v_2 = (2, 5, 0) in R3\mathbb{R}^3. A vector bb is in span{v1,v2}\text{span}\{v_1, v_2\} exactly when there are scalars a1,a2a_1, a_2 with a1v1+a2v2=ba_1v_1 + a_2v_2 = b, that is when the system with augmented matrix (v1  v2∣b)(v_1 \; v_2 \mid b) is consistent. Guessing coefficients is allowed; a no must come from an inconsistent row.

The figure is a sketch of the situation: a vector either lies in the plane spanned by v1v_1 and v2v_2 or sticks out of it.

Ov₁v₂bspan{v₁, v₂}
  • a) Is b=(0,1,2)b = (0, 1, 2) in span{v1,v2}\text{span}\{v_1, v_2\}? If so, write it as a combination.
  • b) Is b′=(4,9,−3)b' = (4, 9, -3) in span{v1,v2}\text{span}\{v_1, v_2\}?
  • c) Find the condition on (x,y,z)(x, y, z) for being in span{v1,v2}\text{span}\{v_1, v_2\}, by row reducing (v1  v2∣(x,y,z))(v_1 \; v_2 \mid (x, y, z)).
  • d) Describe the span geometrically and check your equation on v1v_1 and v2v_2.
  • e) Let v3=(1,3,1)v_3 = (1, 3, 1) and v4=(0,0,1)v_4 = (0, 0, 1). What is span{v1,v2,v3}\text{span}\{v_1, v_2, v_3\}? What is span{v1,v2,v4}\text{span}\{v_1, v_2, v_4\}?
Show the solution

Answers

  • a) Yes: (0,1,2)=−2v1+v2(0, 1, 2) = -2v_1 + v_2.
  • b) No: the reduced system has the row 0=−10 = -1.
  • c) 5x−2y+z=05x - 2y + z = 0.
  • d) The plane 5x−2y+z=05x - 2y + z = 0 through the origin; 5−4−1=05 - 4 - 1 = 0 and 10−10+0=010 - 10 + 0 = 0.
  • e) v3=−v1+v2v_3 = -v_1 + v_2, so the same plane; with v4v_4, all of R3\mathbb{R}^3.

a) Augmented matrix (120251−102)\begin{pmatrix} 1 & 2 & 0 \\ 2 & 5 & 1 \\ -1 & 0 & 2 \end{pmatrix}. R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0  1∣1)(0 \; 1 \mid 1); R3→R3+R1R_3 \to R_3 + R_1 gives (0  2∣2)(0 \; 2 \mid 2); R3→R3−2R2R_3 \to R_3 - 2R_2 gives (0  0∣0)(0 \; 0 \mid 0). No row 0=c0 = c with c≠0c \neq 0, so the system is consistent. Back substitution: a2=1a_2 = 1, then a1+2a2=0a_1 + 2a_2 = 0 gives a1=−2a_1 = -2. Check, always: −2(1,2,−1)+(2,5,0)=(0,1,2)-2(1, 2, -1) + (2, 5, 0) = (0, 1, 2). The check takes ten seconds and is the only protection against an arithmetic slip that would turn a yes into a wrong combination.

b) Same row operations, new last column: R2→R2−2R1R_2 \to R_2 - 2R_1 gives 9−8=19 - 8 = 1; R3→R3+R1R_3 \to R_3 + R_1 gives −3+4=1-3 + 4 = 1; R3→R3−2R2R_3 \to R_3 - 2R_2 gives 1−2=−11 - 2 = -1. The last row reads 0a1+0a2=−10a_1 + 0a_2 = -1: inconsistent, so b′∉span{v1,v2}b' \notin \text{span}\{v_1, v_2\}. The trap is the argument 'neither v1v_1 nor v2v_2 is a multiple of b′b', so it is not in the span': it is not an argument at all, since (0,1,2)(0, 1, 2) in a) is not a multiple of either and IS in the span.

c) Carry letters in the last column and use the same three operations: R2→R2−2R1R_2 \to R_2 - 2R_1 gives y−2xy - 2x; R3→R3+R1R_3 \to R_3 + R_1 gives z+xz + x; R3→R3−2R2R_3 \to R_3 - 2R_2 gives z+x−2(y−2x)=5x−2y+zz + x - 2(y - 2x) = 5x - 2y + z. The last row is (0  0∣5x−2y+z)(0 \; 0 \mid 5x - 2y + z), so the system is consistent exactly when 5x−2y+z=05x - 2y + z = 0. This one computation answers a) and b) at once: 0−2+2=00 - 2 + 2 = 0 and 20−18−3=−120 - 18 - 3 = -1, the very −1-1 found in b).

d) span{v1,v2}\text{span}\{v_1, v_2\} is the plane through the origin with equation 5x−2y+z=05x - 2y + z = 0. A span is always a subspace, so it had to pass through the origin, and it does. Checks: v1v_1 gives 5−4−1=05 - 4 - 1 = 0 and v2v_2 gives 10−10+0=010 - 10 + 0 = 0. A second check from the previous chapter: the normal (5,−2,1)(5, -2, 1) is exactly v1×v2v_1 \times v_2. Two non-parallel vectors always span a plane; two parallel ones only a line.

e) v3v_3: 5(1)−2(3)+1=05(1) - 2(3) + 1 = 0, so v3v_3 lies in the plane already, and indeed v3=−v1+v2v_3 = -v_1 + v_2 (check: (−1+2,−2+5,1+0)=(1,3,1)(-1 + 2, -2 + 5, 1 + 0) = (1, 3, 1)). Adding it adds nothing: span{v1,v2,v3}\text{span}\{v_1, v_2, v_3\} is still the plane 5x−2y+z=05x - 2y + z = 0. More vectors never guarantee a bigger span. v4v_4: 0−0+1=1≠00 - 0 + 1 = 1 \neq 0, so v4v_4 is off the plane. Row reducing (v1  v2  v4∣(x,y,z))(v_1 \; v_2 \; v_4 \mid (x, y, z)) with the same operations gives the last row (0  0  1∣5x−2y+z)(0 \; 0 \; 1 \mid 5x - 2y + z): there is a pivot in every row, so the system is consistent for every right-hand side, and span{v1,v2,v4}=R3\text{span}\{v_1, v_2, v_4\} = \mathbb{R}^3.

Exercise 5: Independence: the homogeneous system and the relation it hands you

{v1,…,vk}\{v_1, \dots, v_k\} is linearly independent when c1v1+⋯+ckvk=0c_1v_1 + \cdots + c_kv_k = 0 forces c1=⋯=ck=0c_1 = \cdots = c_k = 0. It is dependent when a NON-TRIVIAL relation exists, and the answer to 'dependent' is that relation, written with numbers and checked.

The figure shows u=(1,2)u = (1, 2), v=(3,−1)v = (3, -1) and w=(5,3)w = (5, 3) in R2\mathbb{R}^2 for part d).

-1123456-2-11234uvw
  • a) Is {(1,−1,2),(2,1,1),(0,3,−3)}\{(1, -1, 2), (2, 1, 1), (0, 3, -3)\} independent? If not, give a dependency relation.
  • b) Show that {(1,0,2),(3,1,4)}\{(1, 0, 2), (3, 1, 4)\} is independent.
  • c) Is {(2,−4,6),(−3,6,−9)}\{(2, -4, 6), (-3, 6, -9)\} independent? State the test for a family of two vectors.
  • d) Find a dependency relation among uu, vv, ww. Explain why a relation had to exist before any computation.
  • e) Show that {(1,4,2),(0,0,0),(3,0,1)}\{(1, 4, 2), (0, 0, 0), (3, 0, 1)\} is dependent, and that ANY family containing 00 is.
Show the solution

Answers

  • a) Dependent: 2(1,−1,2)−(2,1,1)+(0,3,−3)=02(1, -1, 2) - (2, 1, 1) + (0, 3, -3) = 0.
  • b) Independent: the second coordinates force c2=0c_2 = 0, then c1=0c_1 = 0.
  • c) Dependent: 3(2,−4,6)+2(−3,6,−9)=03(2, -4, 6) + 2(-3, 6, -9) = 0; two vectors are dependent iff one is a multiple of the other.
  • d) 2u+v−w=02u + v - w = 0; three vectors in R2\mathbb{R}^2 always leave a free variable.
  • e) 0⋅(1,4,2)+1⋅0+0⋅(3,0,1)=00 \cdot (1, 4, 2) + 1 \cdot 0 + 0 \cdot (3, 0, 1) = 0 is non-trivial.

a) Put the vectors as COLUMNS and solve Ac=0Ac = 0: (120−11321−3)\begin{pmatrix} 1 & 2 & 0 \\ -1 & 1 & 3 \\ 2 & 1 & -3 \end{pmatrix}. R2→R2+R1R_2 \to R_2 + R_1 gives (0  3  3)(0 \; 3 \; 3); R3→R3−2R1R_3 \to R_3 - 2R_1 gives (0  −3  −3)(0 \; -3 \; -3); R3→R3+R2R_3 \to R_3 + R_2 gives a zero row. Only two pivots for three unknowns, so c3c_3 is free: c2=−c3c_2 = -c_3 and c1=−2c2=2c3c_1 = -2c_2 = 2c_3. With c3=1c_3 = 1: (c1,c2,c3)=(2,−1,1)(c_1, c_2, c_3) = (2, -1, 1). Relation: 2(1,−1,2)−(2,1,1)+(0,3,−3)=(0,0,0)2(1, -1, 2) - (2, 1, 1) + (0, 3, -3) = (0, 0, 0), checked coordinate by coordinate: 2−2+02 - 2 + 0, −2−1+3-2 - 1 + 3, 4−1−34 - 1 - 3. Stopping at 'there is a free variable, so dependent' earns the decision but not the relation, and most exams ask for both.

b) c1(1,0,2)+c2(3,1,4)=(0,0,0)c_1(1, 0, 2) + c_2(3, 1, 4) = (0, 0, 0) gives three equations: c1+3c2=0c_1 + 3c_2 = 0, c2=0c_2 = 0, 2c1+4c2=02c_1 + 4c_2 = 0. The second forces c2=0c_2 = 0, then the first forces c1=0c_1 = 0. Only the trivial solution, so the family is independent. Note the logic: the trivial solution ALWAYS exists; what matters is that it is the only one. Writing 'c1=c2=0c_1 = c_2 = 0 is a solution, so independent' proves nothing.

c) (−3,6,−9)=−32(2,−4,6)(-3, 6, -9) = -\frac{3}{2}(2, -4, 6), so the relation 3(2,−4,6)+2(−3,6,−9)=(6−6,−12+12,18−18)=03(2, -4, 6) + 2(-3, 6, -9) = (6 - 6, -12 + 12, 18 - 18) = 0 is non-trivial: dependent. For TWO vectors the test is exactly this: {u,v}\{u, v\} is dependent if and only if one is a scalar multiple of the other. Geometrically they lie on one line through the origin. The test works for two vectors only; exercise 8 shows it failing for three.

d) Look for w=au+bvw = au + bv: a+3b=5a + 3b = 5 and 2a−b=32a - b = 3. From the second, b=2a−3b = 2a - 3; substituting, a+6a−9=5a + 6a - 9 = 5, so a=2a = 2 and b=1b = 1. So w=2u+vw = 2u + v and the relation is 2u+v−w=02u + v - w = 0, checked: (2+3−5,4−1−3)=(0,0)(2 + 3 - 5, 4 - 1 - 3) = (0, 0). Before computing: c1u+c2v+c3w=0c_1u + c_2v + c_3w = 0 is a homogeneous system of 22 equations in 33 unknowns, which has at most 22 pivots, so at least one free variable and a non-trivial solution. Any three vectors of R2\mathbb{R}^2 are dependent, and more generally more than nn vectors of Rn\mathbb{R}^n always are.

e) 0⋅(1,4,2)+1⋅(0,0,0)+0⋅(3,0,1)=(0,0,0)0 \cdot (1, 4, 2) + 1 \cdot (0, 0, 0) + 0 \cdot (3, 0, 1) = (0, 0, 0), and the coefficients (0,1,0)(0, 1, 0) are not all zero: a non-trivial relation, so the family is dependent. The same line works for any family {0,v2,…,vk}\{0, v_2, \dots, v_k\}: put coefficient 11 on the zero vector and 00 everywhere else. The trap is to think the relation needs every coefficient non-zero; 'non-trivial' only means NOT ALL zero.

-1123456-2-11234uvwuu

Part B: problems and reasoning (/50)

Exercise 6: Line, plane or all of space: reading a span

The figure draws, in R2\mathbb{R}^2, the combinations av+bwav + bw of v=(2,1)v = (2, 1) and w=(−1,1)w = (-1, 1) for whole numbers aa and bb: a slanted grid. Letting aa and bb run over all real numbers fills the gaps, and the question of the whole exercise is what a span fills: a line, a plane, or all of space.

Ovwb
  • a) Read on the grid the coefficients of b=(4,5)b = (4, 5) in terms of vv and ww, then confirm them with a system.
  • b) Prove that span{v,w}=R2\text{span}\{v, w\} = \mathbb{R}^2 by solving av+bw=(p,q)av + bw = (p, q) for every (p,q)(p, q).
  • c) In R3\mathbb{R}^3, describe each span as a line, a plane (give its equation) or R3\mathbb{R}^3: S1={(2,−1,3),(−4,2,−6)}S_1 = \{(2, -1, 3), (-4, 2, -6)\}, S2={(1,0,2),(0,1,−1)}S_2 = \{(1, 0, 2), (0, 1, -1)\}, S3=S2∪{(1,1,1)}S_3 = S_2 \cup \{(1, 1, 1)\}.
  • d) Explain why two vectors can never span R3\mathbb{R}^3, and give an explicit vector outside span S2\text{span}\,S_2.
  • e) Show that S4=S2∪{(0,0,1)}S_4 = S_2 \cup \{(0, 0, 1)\} spans R3\mathbb{R}^3 by writing a general (p,q,r)(p, q, r) as a combination.
Show the solution

Answers

  • a) b=3v+2wb = 3v + 2w.
  • b) a=p+q3a = \frac{p + q}{3}, b=2q−p3b = \frac{2q - p}{3} always exist.
  • c) S1S_1: a line; S2S_2: the plane 2x−y−z=02x - y - z = 0; S3S_3: the same plane.
  • d) A 3×23 \times 2 system has at most 22 pivots; (0,0,1)∉span S2(0, 0, 1) \notin \text{span}\,S_2.
  • e) (p,q,r)=p(1,0,2)+q(0,1,−1)+(r−2p+q)(0,0,1)(p, q, r) = p(1, 0, 2) + q(0, 1, -1) + (r - 2p + q)(0, 0, 1).

a) Starting at OO, walk 33 steps along vv to (6,3)(6, 3), then 22 steps along ww to (6−2,3+2)=(4,5)(6 - 2, 3 + 2) = (4, 5). So b=3v+2wb = 3v + 2w on the grid. Confirm: a(2,1)+b(−1,1)=(4,5)a(2, 1) + b(-1, 1) = (4, 5) gives 2a−b=42a - b = 4 and a+b=5a + b = 5; adding, 3a=93a = 9, so a=3a = 3 and b=2b = 2. The grid gives a guess, the system gives the proof: a point between grid lines would have fractional coefficients that no picture reads reliably.

b) Solve 2a−b=p2a - b = p, a+b=qa + b = q for arbitrary (p,q)(p, q). Adding the equations: 3a=p+q3a = p + q, so a=p+q3a = \frac{p + q}{3}, then b=q−a=2q−p3b = q - a = \frac{2q - p}{3}. These exist for EVERY (p,q)(p, q), so every vector of R2\mathbb{R}^2 is a combination of vv and ww: span{v,w}=R2\text{span}\{v, w\} = \mathbb{R}^2. Check with a): p=4p = 4, q=5q = 5 gives a=3a = 3, b=2b = 2. Letters are compulsory here; showing that three particular vectors are reachable proves nothing about the rest.

c) S1S_1: (−4,2,−6)=−2(2,−1,3)(-4, 2, -6) = -2(2, -1, 3), so both vectors lie on one line through the origin and span S1\text{span}\,S_1 is that line, {t(2,−1,3)}\{t(2, -1, 3)\}. Two vectors, but only a line: count what is independent, not what is listed. S2S_2: a combination is x(1,0,2)+y(0,1,−1)=(x,y,2x−y)x(1, 0, 2) + y(0, 1, -1) = (x, y, 2x - y), so the span is the set of (x,y,z)(x, y, z) with z=2x−yz = 2x - y, the plane 2x−y−z=02x - y - z = 0. S3S_3: (1,1,1)=(1,0,2)+(0,1,−1)(1, 1, 1) = (1, 0, 2) + (0, 1, -1), and indeed 2−1−1=02 - 1 - 1 = 0, so the third vector is already in the plane and span S3\text{span}\,S_3 is the same plane.

d) b∈span{u1,u2}b \in \text{span}\{u_1, u_2\} means the 3×23 \times 2 system (u1  u2∣b)(u_1 \; u_2 \mid b) is consistent. The coefficient part has only two columns, so at most two pivots, and its reduced form has a row of zeros. Choosing bb so that this row reads 0=10 = 1 gives an inconsistent system. For S2S_2 the condition is 2x−y−z=02x - y - z = 0, and (0,0,1)(0, 0, 1) gives 0−0−1=−1≠00 - 0 - 1 = -1 \neq 0: it is outside the span. A no in this chapter is always a named vector.

e) Look for a(1,0,2)+b(0,1,−1)+c(0,0,1)=(p,q,r)a(1, 0, 2) + b(0, 1, -1) + c(0, 0, 1) = (p, q, r). The first coordinate gives a=pa = p, the second b=qb = q, the third 2a−b+c=r2a - b + c = r, so c=r−2p+qc = r - 2p + q. These coefficients exist for every (p,q,r)(p, q, r), hence span S4=R3\text{span}\,S_4 = \mathbb{R}^3. Check with (1,1,1)(1, 1, 1): c=1−2+1=0c = 1 - 2 + 1 = 0, which agrees with c), where (1,1,1)(1, 1, 1) needed no third vector at all.

Exercise 7: The values of k that break independence, and two proofs

Let a1=(1,2,1)a_1 = (1, 2, 1), a2=(2,k,3)a_2 = (2, k, 3) and a3=(1,0,k)a_3 = (1, 0, k). A parameter inside a row reduction is where most marks are lost: a pivot that contains kk may be zero, and dividing by it silently throws away the interesting cases.

  • a) Row reduce the matrix with columns a1,a2,a3a_1, a_2, a_3 and find every kk for which the family is dependent.
  • b) For each such kk, give an explicit dependency relation and check it.
  • c) For k=2k = 2, find the equation of the plane span{a1,a2,a3}\text{span}\{a_1, a_2, a_3\}.
  • d) Prove: if {v1,v2,v3}\{v_1, v_2, v_3\} is independent, then {v1,v2}\{v_1, v_2\} is independent.
  • e) Prove: if {u,v}\{u, v\} is independent and w∉span{u,v}w \notin \text{span}\{u, v\}, then {u,v,w}\{u, v, w\} is independent.
Show the solution

Answers

  • a) Dependent exactly for k=2k = 2 and k=3k = 3.
  • b) k=2k = 2: −a1+a2−a3=0-a_1 + a_2 - a_3 = 0; k=3k = 3: 3a1−2a2+a3=03a_1 - 2a_2 + a_3 = 0.
  • c) 4x−y−2z=04x - y - 2z = 0.
  • d) A relation c1v1+c2v2=0c_1v_1 + c_2v_2 = 0 extends to c1v1+c2v2+0v3=0c_1v_1 + c_2v_2 + 0v_3 = 0, so c1=c2=0c_1 = c_2 = 0.
  • e) If c≠0c \neq 0 then w∈span{u,v}w \in \text{span}\{u, v\}, contradiction; so c=0c = 0, then a=b=0a = b = 0.

a) (1212k013k)\begin{pmatrix} 1 & 2 & 1 \\ 2 & k & 0 \\ 1 & 3 & k \end{pmatrix}. R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0  k−4  −2)(0 \; k - 4 \; -2); R3→R3−R1R_3 \to R_3 - R_1 gives (0  1  k−1)(0 \; 1 \; k - 1). Now the tempting move is to divide R2R_2 by k−4k - 4, which is illegal when k=4k = 4. Swap instead: R2↔R3R_2 \leftrightarrow R_3 puts the pivot 11 in place, and R3→R3−(k−4)R2R_3 \to R_3 - (k - 4)R_2 gives (0  0  −2−(k−4)(k−1))(0 \; 0 \; -2 - (k - 4)(k - 1)). That entry is −2−(k2−5k+4)=−(k2−5k+6)=−(k−2)(k−3)-2 - (k^2 - 5k + 4) = -(k^2 - 5k + 6) = -(k - 2)(k - 3). Three pivots, hence only the trivial solution and independence, unless this entry is zero: the family is dependent exactly for k=2k = 2 and k=3k = 3. Cross-check with the determinant: 1(k2−0)−2(2k−0)+1(6−k)=k2−5k+61(k^2 - 0) - 2(2k - 0) + 1(6 - k) = k^2 - 5k + 6.

b) k=2k = 2: a2=(2,2,3)a_2 = (2, 2, 3), a3=(1,0,2)a_3 = (1, 0, 2). The second equation of c1a1+c2a2+c3a3=0c_1a_1 + c_2a_2 + c_3a_3 = 0 is 2c1+2c2=02c_1 + 2c_2 = 0, so c1=−c2c_1 = -c_2; the first, c1+2c2+c3=0c_1 + 2c_2 + c_3 = 0, gives c3=−c2c_3 = -c_2. With c2=1c_2 = 1: −a1+a2−a3=(−1+2−1,−2+2−0,−1+3−2)=0-a_1 + a_2 - a_3 = (-1 + 2 - 1, -2 + 2 - 0, -1 + 3 - 2) = 0. k=3k = 3: a2=(2,3,3)a_2 = (2, 3, 3), a3=(1,0,3)a_3 = (1, 0, 3); the second equation 2c1+3c2=02c_1 + 3c_2 = 0 suggests c1=3c_1 = 3, c2=−2c_2 = -2, then the first gives 3−4+c3=03 - 4 + c_3 = 0, c3=1c_3 = 1. Check all three coordinates, including the one not used: 3−4+1=03 - 4 + 1 = 0, 6−6+0=06 - 6 + 0 = 0, 3−6+3=03 - 6 + 3 = 0.

c) For k=2k = 2, a2=a1+a3a_2 = a_1 + a_3, so the span is span{a1,a3}\text{span}\{a_1, a_3\}, a plane since a1a_1 and a3a_3 are not parallel. A combination is s(1,2,1)+t(1,0,2)=(s+t,2s,s+2t)s(1, 2, 1) + t(1, 0, 2) = (s + t, 2s, s + 2t). From y=2sy = 2s, s=y2s = \frac{y}{2}; from x=s+tx = s + t, t=x−y2t = x - \frac{y}{2}; then z=s+2t=2x−y2z = s + 2t = 2x - \frac{y}{2}, that is 4x−y−2z=04x - y - 2z = 0. Check on all three vectors: 4−2−2=04 - 2 - 2 = 0, 8−2−6=08 - 2 - 6 = 0, 4−0−4=04 - 0 - 4 = 0.

d) Suppose c1v1+c2v2=0c_1v_1 + c_2v_2 = 0. Then c1v1+c2v2+0v3=0c_1v_1 + c_2v_2 + 0v_3 = 0 is a relation among v1,v2,v3v_1, v_2, v_3, and independence of the big family forces ALL its coefficients to be zero, in particular c1=c2=0c_1 = c_2 = 0. So {v1,v2}\{v_1, v_2\} is independent. The same argument shows that every sub-family of an independent family is independent. The converse is false: {(1,0),(0,1)}\{(1, 0), (0, 1)\} is independent but {(1,0),(0,1),(1,1)}\{(1, 0), (0, 1), (1, 1)\} is not.

e) Suppose au+bv+cw=0au + bv + cw = 0. Case c≠0c \neq 0: divide by cc to get w=−acu−bcvw = -\frac{a}{c}u - \frac{b}{c}v, which puts ww in span{u,v}\text{span}\{u, v\}, contradicting the hypothesis. So c=0c = 0, and the relation becomes au+bv=0au + bv = 0; independence of {u,v}\{u, v\} gives a=b=0a = b = 0. All three coefficients are zero, so {u,v,w}\{u, v, w\} is independent. The structure is the one to learn: split on the last coefficient, and use each hypothesis exactly once. Part c) is the picture: a3a_3 was in the plane of a1,a2a_1, a_2 at k=2k = 2, and that is why independence failed.

Exercise 8: Five statements to correct

For each statement, say whether it is TRUE or FALSE. A false statement is refuted by an explicit numerical counterexample, and then corrected in one sentence; a true one is proved with letters.

  • a) “The set {(x,y):y=∣x∣}\{(x, y) : y = |x|\} contains the zero vector, so it is a subspace of R2\mathbb{R}^2.”
  • b) “If none of uu, vv, ww is a multiple of another, then {u,v,w}\{u, v, w\} is independent.”
  • c) “The span of two non-zero vectors of R3\mathbb{R}^3 is always a plane.”
  • d) “The union of two subspaces of R3\mathbb{R}^3 is a subspace.”
  • e) “The intersection of two subspaces of Rn\mathbb{R}^n is a subspace.”
Show the solution

Answers

  • a) False: (1,1)(1, 1) is in the set but (−1)(1,1)=(−1,−1)(-1)(1, 1) = (-1, -1) is not.
  • b) False: (1,0,0)+(0,1,0)−(1,1,0)=0(1, 0, 0) + (0, 1, 0) - (1, 1, 0) = 0.
  • c) False: (1,−1,2)(1, -1, 2) and (−3,3,−6)(-3, 3, -6) span only a line.
  • d) False: (1,0,0)+(0,0,1)=(1,0,1)(1, 0, 0) + (0, 0, 1) = (1, 0, 1) leaves both planes z=0z = 0 and x=0x = 0.
  • e) True: the three conditions hold in each subspace, hence in both.

a) FALSE. Containing 00 is necessary, not sufficient. (1,1)(1, 1) is in the set since 1=∣1∣1 = |1|, but (−1)(1,1)=(−1,−1)(-1)(1, 1) = (-1, -1) is not, since ∣−1∣=1≠−1|-1| = 1 \neq -1. The graph of y=∣x∣y = |x| is a V with its tip at the origin: it passes the zero test and fails scalar multiplication. Correct sentence: a set containing 00 still has to be closed under addition and scalar multiplication, and this one is not.

b) FALSE. Pairwise non-parallel is the test for TWO vectors, and it does not extend. u=(1,0,0)u = (1, 0, 0), v=(0,1,0)v = (0, 1, 0), w=(1,1,0)w = (1, 1, 0): no one is a multiple of another, yet u+v−w=0u + v - w = 0 is a non-trivial relation. The three vectors lie in one plane, the plane z=0z = 0, and three vectors in a plane through the origin are always dependent. Correct sentence: three vectors are dependent exactly when one of them is a combination of the other two, which is a system to solve, not a glance at multiples.

c) FALSE. Take (1,−1,2)(1, -1, 2) and (−3,3,−6)=−3(1,−1,2)(-3, 3, -6) = -3(1, -1, 2): both non-zero, and their span is the line {t(1,−1,2)}\{t(1, -1, 2)\}. Correct sentence: the span of two vectors of R3\mathbb{R}^3 is a plane exactly when they are independent, a line when they are parallel and not both zero, and {0}\{0\} when both are zero.

d) FALSE. The planes {z=0}\{z = 0\} and {x=0}\{x = 0\} are subspaces. (1,0,0)(1, 0, 0) is in the first, (0,0,1)(0, 0, 1) is in the second, and their sum (1,0,1)(1, 0, 1) has z=1z = 1 and x=1x = 1, so it is in neither. The union fails closure under addition, exactly like the two axes of exercise 1. Correct sentence: the union of two subspaces is a subspace only when one of them contains the other.

e) TRUE, and a true statement is proved with letters. Let UU and VV be subspaces. Zero: 0∈U0 \in U and 0∈V0 \in V, so 0∈U∩V0 \in U \cap V. Addition: if x,y∈U∩Vx, y \in U \cap V, then x+y∈Ux + y \in U because UU is a subspace and x+y∈Vx + y \in V because VV is, so x+y∈U∩Vx + y \in U \cap V. Scalars: likewise cxcx lies in both. Exercise 2 a) was an instance: the line WW is the intersection of two planes through the origin.

Exercise 9: Three protein powders: a span, a dependency and a recipe that cannot exist

A sports nutrition lab records each powder by the grams of (protein, carbohydrate, fat) in one scoop: P1=(10,20,10)P_1 = (10, 20, 10), P2=(20,10,10)P_2 = (20, 10, 10), P3=(10,50,20)P_3 = (10, 50, 20). A recipe of xx, yy, zz scoops delivers xP1+yP2+zP3xP_1 + yP_2 + zP_3. Algebra allows any real x,y,zx, y, z; a kitchen only allows x,y,z≥0x, y, z \ge 0.

  • a) Show that {P1,P2,P3}\{P_1, P_2, P_3\} is dependent by writing P3P_3 as a combination of P1P_1 and P2P_2. Is that combination a real recipe?
  • b) Find every triple (x,y,z)(x, y, z) with xP1+yP2+zP3=TxP_1 + yP_2 + zP_3 = T for the target T=(50,70,40)T = (50, 70, 40).
  • c) Which of those triples are real recipes? Give the two extreme ones.
  • d) Find the condition on a target (p,q,r)(p, q, r) for being in span{P1,P2,P3}\text{span}\{P_1, P_2, P_3\}, and decide whether T2=(40,20,30)T_2 = (40, 20, 30) is reachable.
  • e) Show that T3=(10,80,30)T_3 = (10, 80, 30) is in the span, yet no real recipe produces it. What does this say about the set of real mixtures?
Show the solution

Answers

  • a) P3=3P1−P2P_3 = 3P_1 - P_2; not a recipe, it needs −1-1 scoop of P2P_2.
  • b) (x,y,z)=(3−3t,1+t,t)(x, y, z) = (3 - 3t, 1 + t, t), t∈Rt \in \mathbb{R}.
  • c) 0≤t≤10 \le t \le 1; extremes (3,1,0)(3, 1, 0) and (0,2,1)(0, 2, 1).
  • d) p+q=3rp + q = 3r; T2T_2: 40+20=60≠9040 + 20 = 60 \neq 90, unreachable.
  • e) Needs t≥2t \ge 2 and t≤53t \le \frac{5}{3}: impossible. Real mixtures are not a subspace.

a) Divide every vector by 1010 to keep the numbers small: P1∼(1,2,1)P_1 \sim (1, 2, 1), P2∼(2,1,1)P_2 \sim (2, 1, 1), P3∼(1,5,2)P_3 \sim (1, 5, 2). Solve a(1,2,1)+b(2,1,1)=(1,5,2)a(1, 2, 1) + b(2, 1, 1) = (1, 5, 2): a+2b=1a + 2b = 1 and 2a+b=52a + b = 5 give a=3a = 3, b=−1b = -1, and the third coordinate checks, 3−1=23 - 1 = 2. So P3=3P1−P2P_3 = 3P_1 - P_2, that is 3P1−P2−P3=03P_1 - P_2 - P_3 = 0: dependent. As a recipe it is meaningless, since it asks for minus one scoop of P2P_2. A dependency is an algebraic fact about the vectors, not a statement that one powder can be cooked from the others.

b) Augmented matrix (divided by 1010) (121521571124)\begin{pmatrix} 1 & 2 & 1 & 5 \\ 2 & 1 & 5 & 7 \\ 1 & 1 & 2 & 4 \end{pmatrix}. R2→R2−2R1R_2 \to R_2 - 2R_1 gives (0  −3  3∣−3)(0 \; -3 \; 3 \mid -3); R3→R3−R1R_3 \to R_3 - R_1 gives (0  −1  1∣−1)(0 \; -1 \; 1 \mid -1); R2→−13R2R_2 \to -\frac{1}{3}R_2 gives (0  1  −1∣1)(0 \; 1 \; -1 \mid 1); R3→R3+R2R_3 \to R_3 + R_2 gives a zero row. So z=tz = t is free, y=1+ty = 1 + t, and x=5−2y−z=3−3tx = 5 - 2y - z = 3 - 3t. Infinitely many solutions, which is exactly what the dependency in a) predicts: any relation among P1,P2,P3P_1, P_2, P_3 can be added to a solution. Check t=0t = 0: 3P1+P2=(30+20,60+10,30+10)=(50,70,40)3P_1 + P_2 = (30 + 20, 60 + 10, 30 + 10) = (50, 70, 40).

c) Real recipes need 3−3t≥03 - 3t \ge 0, 1+t≥01 + t \ge 0 and t≥0t \ge 0, that is 0≤t≤10 \le t \le 1. The extremes: t=0t = 0 gives (3,1,0)(3, 1, 0), three scoops of P1P_1 and one of P2P_2; t=1t = 1 gives (0,2,1)(0, 2, 1), and indeed 2P2+P3=(40+10,20+50,20+20)=(50,70,40)2P_2 + P_3 = (40 + 10, 20 + 50, 20 + 20) = (50, 70, 40). Every tt in between is a blend of these two recipes.

d) Row reduce with a general right-hand side (p,q,r)(p, q, r) (divided by 1010): R2→R2−2R1R_2 \to R_2 - 2R_1 gives q−2pq - 2p; R3→R3−R1R_3 \to R_3 - R_1 gives r−pr - p; after R2→−13R2R_2 \to -\frac{1}{3}R_2 and R3→R3+R2R_3 \to R_3 + R_2, the last entry is (r−p)−q−2p3(r - p) - \frac{q - 2p}{3}. Consistency requires 3r−3p−q+2p=03r - 3p - q + 2p = 0, that is p+q=3rp + q = 3r. The lab reading: every powder has protein plus carbohydrate equal to three times its fat (30=3×1030 = 3 \times 10, 30=3×1030 = 3 \times 10, 60=3×2060 = 3 \times 20), and every mixture inherits it. So the span is a plane. T2T_2: 40+20=6040 + 20 = 60 but 3×30=903 \times 30 = 90, so T2T_2 is out of reach whatever the recipe, even with negative scoops.

e) T3T_3: 10+80=90=3×3010 + 80 = 90 = 3 \times 30, so T3T_3 is in the span. Solve as in b) with right-hand side (1,8,3)(1, 8, 3): the same operations give y−z=−2y - z = -2, so z=tz = t, y=t−2y = t - 2, x=1−2y−z=5−3tx = 1 - 2y - z = 5 - 3t. A real recipe needs t−2≥0t - 2 \ge 0 and 5−3t≥05 - 3t \ge 0, that is t≥2t \ge 2 and t≤53t \le \frac{5}{3}, impossible. So T3T_3 is a combination of the powders but not a mixture of them. The set of real mixtures, combinations with non-negative coefficients, is NOT a subspace: it is not closed under multiplication by −1-1, exactly like the quadrant of exercise 1. Span answers 'is it a combination'; the kitchen asks a stricter question.

Exercise 10: From u, v, w to u + v, v + w, u + w: an exam proof

This is one of the most frequent proofs on a final exam in first-year linear algebra. The vectors are not given: only a hypothesis about them. Every step must therefore be written with letters, and the only numbers allowed are the coefficients of the relation you are testing.

Throughout, {u,v,w}\{u, v, w\} is an independent family in Rn\mathbb{R}^n.

  • a) Prove that {u+v,  v+w,  u+w}\{u + v, \; v + w, \; u + w\} is independent.
  • b) Prove that {u−v,  v−w,  w−u}\{u - v, \; v - w, \; w - u\} is dependent, whatever u,v,wu, v, w are.
  • c) For which real kk is {u+kv,  v+kw,  w+ku}\{u + kv, \; v + kw, \; w + ku\} dependent?
  • d) Check a) and b) numerically with u=(1,0,0)u = (1, 0, 0), v=(0,1,0)v = (0, 1, 0), w=(0,0,1)w = (0, 0, 1).
  • e) A student writes: “u+vu + v, v+wv + w, u+wu + w are independent because none of them is a multiple of another.” Explain why this is not a proof.
Show the solution

Answers

  • a) (a+c)u+(a+b)v+(b+c)w=0(a + c)u + (a + b)v + (b + c)w = 0 forces a=b=c=0a = b = c = 0.
  • b) (u−v)+(v−w)+(w−u)=0(u - v) + (v - w) + (w - u) = 0.
  • c) Only k=−1k = -1, since the condition is 1+k3=01 + k^3 = 0.
  • d) (1,1,0),(0,1,1),(1,0,1)(1, 1, 0), (0, 1, 1), (1, 0, 1) independent; (1,−1,0)+(0,1,−1)+(−1,0,1)=0(1, -1, 0) + (0, 1, -1) + (-1, 0, 1) = 0.
  • e) The multiple test only works for two vectors; b) is a counterexample.

a) Suppose a(u+v)+b(v+w)+c(u+w)=0a(u + v) + b(v + w) + c(u + w) = 0. Regroup by uu, vv, ww: (a+c)u+(a+b)v+(b+c)w=0(a + c)u + (a + b)v + (b + c)w = 0. Since {u,v,w}\{u, v, w\} is independent, every coefficient is zero: a+c=0a + c = 0, a+b=0a + b = 0, b+c=0b + c = 0. Adding the three equations gives 2(a+b+c)=02(a + b + c) = 0, so a+b+c=0a + b + c = 0; subtracting each equation in turn gives b=0b = 0, c=0c = 0, a=0a = 0. Only the trivial relation, so the family is independent. The two marks that are most often lost: the regrouping step, and the sentence 'since {u,v,w}\{u, v, w\} is independent', which is the ONLY place the hypothesis is used.

b) (u−v)+(v−w)+(w−u)=0(u - v) + (v - w) + (w - u) = 0 for any vectors at all, and the coefficients (1,1,1)(1, 1, 1) are not all zero. So the family is dependent, with no hypothesis needed. Geometrically, the three vectors are the sides of the triangle with vertices uu, vv, ww, travelled round the loop: going round a closed loop brings you back to where you started.

c) Suppose a(u+kv)+b(v+kw)+c(w+ku)=0a(u + kv) + b(v + kw) + c(w + ku) = 0, that is (a+kc)u+(ka+b)v+(kb+c)w=0(a + kc)u + (ka + b)v + (kb + c)w = 0. Independence gives a+kc=0a + kc = 0, ka+b=0ka + b = 0, kb+c=0kb + c = 0. From the second, b=−kab = -ka; from the third, c=−kb=k2ac = -kb = k^2a; the first becomes a+k3a=(1+k3)a=0a + k^3a = (1 + k^3)a = 0. If 1+k3≠01 + k^3 \neq 0, then a=0a = 0, hence b=0b = 0 and c=0c = 0: independent. If k3=−1k^3 = -1, that is k=−1k = -1 (the only real cube root of −1-1), take a=1a = 1, b=1b = 1, c=1c = 1: dependent. So the family is dependent only for k=−1k = -1, which is b), and k=1k = 1 gives back a).

d) u+v=(1,1,0)u + v = (1, 1, 0), v+w=(0,1,1)v + w = (0, 1, 1), u+w=(1,0,1)u + w = (1, 0, 1). With these as columns, (101110011)\begin{pmatrix} 1 & 0 & 1 \\ 1 & 1 & 0 \\ 0 & 1 & 1 \end{pmatrix}: R2→R2−R1R_2 \to R_2 - 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, so the homogeneous system has only the trivial solution: independent, as a) predicts (the determinant, 1⋅1⋅2=2≠01 \cdot 1 \cdot 2 = 2 \neq 0, agrees). For b): (1,−1,0)+(0,1,−1)+(−1,0,1)=(0,0,0)(1, -1, 0) + (0, 1, -1) + (-1, 0, 1) = (0, 0, 0). A numerical check is not a proof of a) for all u,v,wu, v, w, but it catches a wrong sign in the algebra in thirty seconds.

e) 'None is a multiple of another' is the test for TWO vectors. For three it proves nothing: in b), u−vu - v, v−wv - w and w−uw - u are pairwise non-parallel (with u,v,wu, v, w the standard vectors, (1,−1,0)(1, -1, 0), (0,1,−1)(0, 1, -1), (−1,0,1)(-1, 0, 1) are not multiples of each other), yet they are dependent. Independence of three vectors is a statement about the homogeneous system, and the only acceptable proof is the one in a): write a general relation, use the hypothesis, conclude that every coefficient is zero.

See also

Looking for a tutor in Montreal?

Get in touch for a first session. We work on problems set at the real level of Montreal assessments.

Site by Studio Squalli