BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Problem Set 4: independence, bases and the four subspaces

Six problems of our own on Lectures 9 and 10: testing vectors for independence, the span of a set of vectors and a basis chosen from it, extending a basis, when three vectors are a basis of R³, why the right number of independent vectors is a basis, the four fundamental subspaces of a matrix with their dimensions and bases, the left nullspace from Gauss–Jordan, counting dimensions, and which subspaces row operations keep.

You need this first

Full reading path (15 pages)
  1. Vectors (8.01)
  2. Vectors and the dot product (18.02)
  3. Determinants and the cross product (18.02)
  4. Planes through three points, and matrices (18.02)
  5. Equations of planes and square systems (18.02)
  6. The geometry of linear equations (18.06)
  7. Elimination with matrices (18.06)
  8. Matrix multiplication and inverse matrices (18.06)
  9. Factorization into A = LU (18.06)
  10. Transposes, permutations and vector spaces (18.06)
  11. Column space and nullspace (18.06)
  12. Solving Ax = 0: pivot variables and special solutions (18.06)
  13. Solving Ax = b: the complete solution (18.06)
  14. Independence, basis and dimension (18.06)
  15. The four fundamental subspaces (18.06)
On this page · 8 sections
  1. How to answer
  2. What you need from the lessons
  3. Problem 1
  4. Problem 2
  5. Problem 3
  6. Problem 4
  7. Problem 5
  8. Problem 6

This set practises two lessons: independence, basis and dimension (Lecture 9) and the four fundamental subspaces (Lecture 10). Problems 1 to 3 belong to Lecture 9, Problems 4 to 6 to Lecture 10. Spaces of matrices, which close Lecture 10 and open Lecture 11, and the question of which subspaces are perpendicular to which, belong to Problem Set 5.

MIT's 18.06 problem sets assign exercises from a textbook that is not openly licensed, so this set is made of our own problems on the same lectures, in MIT's lecture order. No MIT or textbook problem is used: every matrix and every number below is ours, and so are the hints and the solutions. The formulas come from the lessons and from the lecture transcripts they cite. The transcripts have no printed page numbers, so "p." means the page of the transcript PDF.

How to answer#

Work each problem on paper first. Then type or choose your result in the answer box and press Check.

A number box wants a decimal number, not a fraction: write 0.50.5, not 1/21/2. Every number box accepts any value within 0.010.01 of the exact one; the answers here are whole numbers. A matrix, a vector or a subspace cannot be typed: a box asks for one of its entries or components, or for a dimension, or you choose from a list. Entries of a matrix are numbered by row, then column, starting from 1, and the components of a vector yy are y1,y2,…y_1, y_2, \dots.

A formula box takes plain typing, for example (k + 2)/(k - 3), and accepts every correct way of writing the answer.

Some parts ask you to show something. They have no answer box: write your argument, then open the solution and mark yourself. MIT gives no points for these problems: the points here (100 in all) and their split between the parts are ours. If you are stuck, open the hints one at a time. Each part ends with its full solution. Try before you open it: an answer given after its solution was opened earns no points. Your score is kept in this browser only.

What you need from the lessons#

Independence (Lecture 9). Vectors v1,…,vnv_1, \dots, v_n are independent when the only combination that gives the zero vector is the one with all coefficients zero:

Independence
c1v1+c2v2+⋯+cnvn=0   only when   c1=c2=⋯=cn=0c_1v_1 + c_2v_2 + \cdots + c_nv_n = 0 \;\text{ only when }\; c_1 = c_2 = \cdots = c_n = 0
In words

c one v one plus c two v two plus and so on plus c sub n v n equals 0 only when c one equals c two equals and so on equals c sub n equals 0

A set that contains the zero vector is dependent (p. 5). Put the vectors in the columns of a matrix AA; then a combination is AcAc, and

Independence and the nullspace
independent  ⟺  N(A)={0}  ⟺  r=n (no free variables)\text{independent} \iff N(A) = \{0\} \iff r = n \text{ (no free variables)}
In words

independent is equivalent to capital N ( capital A ) equals 0 is equivalent to r equals n (no free variables)

An m×nm \times n matrix with n>mn > m has a free variable, so more than mm vectors in Rm\mathrm{R}^m are always dependent (pp. 2, 6).

Span, basis, dimension (Lecture 9). Vectors span a space when the space consists of all their combinations (p. 9). A basis is a set of vectors that is independent and spans the space (p. 10). nn vectors are a basis of Rn\mathrm{R}^n exactly when the n×nn \times n matrix with these columns is invertible (p. 14). Every basis of a space has the same number of vectors, the dimension of the space (p. 16), and when the dimension is known, that many independent vectors are automatically a basis (p. 21). For a matrix of rank rr with nn columns:

Rank and dimension
dim C(A)=r,dim N(A)=n−r\text{dim}\, C(A) = r, \qquad \text{dim}\, N(A) = n - r
In words

dim capital C ( capital A ) equals r, dim capital N ( capital A ) equals n minus r

with the pivot columns of AA as a basis of C(A)C(A) and the special solutions as a basis of N(A)N(A) (pp. 19, 23).

The four subspaces (Lecture 10). For an m×nm \times n matrix AA of rank rr, the row space C(AT)C(A^T) and the nullspace N(A)N(A) lie in Rn\mathrm{R}^n; the column space C(A)C(A) and the left nullspace N(AT)N(A^T) lie in Rm\mathrm{R}^m (p. 5). Their dimensions are

The four dimensions
dim C(A)=r,dim C(AT)=r,dim N(A)=n−r,dim N(AT)=m−r\text{dim}\, C(A) = r, \quad \text{dim}\, C(A^T) = r, \quad \text{dim}\, N(A) = n - r, \quad \text{dim}\, N(A^T) = m - r
In words

dim capital C ( capital A ) equals r, dim capital C ( capital A ^ capital T ) equals r, dim capital N ( capital A ) equals n minus r, dim capital N ( capital A ^ capital T ) equals m minus r

Row operations keep the row space, so the first rr rows of the reduced form RR are a basis of the row space (pp. 12–15). The left nullspace holds the yy with ATy=0A^Ty = 0, that is yTA=0Ty^TA = 0^T: the combinations of the rows that give the zero row (p. 16). Gauss–Jordan on [A    I][A\;\;I] records the row operations in a matrix EE:

Gauss–Jordan on a rectangular matrix
(AI)→(RE),EA=R\begin{pmatrix} A & I \end{pmatrix} \to \begin{pmatrix} R & E \end{pmatrix}, \qquad EA = R
In words

capital A capital I goes to capital R E, E capital A equals capital R

and the rows of EE that produce the zero rows of RR are a basis of N(AT)N(A^T) (pp. 20–21).

Problem 1#

Problem

Independent or dependent?

16 points

(a)6 points

Decide for each set of vectors whether it is independent.

  • Set 1: (1,2)(1, 2) and (3,−1)(3, -1) in R2\mathrm{R}^2.
  • Set 2: (1,2,0)(1, 2, 0), (0,0,0)(0, 0, 0) and (3,−1,1)(3, -1, 1) in R3\mathrm{R}^3.
  • Set 3: (1,0,1)(1, 0, 1), (2,1,0)(2, 1, 0), (0,1,1)(0, 1, 1) and (1,1,1)(1, 1, 1) in R3\mathrm{R}^3.
  • Set 4: (1,2,3)(1, 2, 3), (2,1,0)(2, 1, 0) and (0,3,6)(0, 3, 6) in R3\mathrm{R}^3.
  • Set 5: (1,1,0,0)(1, 1, 0, 0), (0,1,1,0)(0, 1, 1, 0) and (0,0,1,1)(0, 0, 1, 1) in R4\mathrm{R}^4.
Hint

Two of the sets can be decided without any arithmetic: look for the zero vector, and count the vectors against the number of components.

Hint

For the others, try to write one vector as a combination of the others, or put the vectors in the columns of a matrix and count its pivots.

Solution

The idea. Look first for the quick reasons (a zero vector, too many vectors); otherwise find a combination that gives zero, or show by the pivots that none exists.

The quick ones

Set 2 contains the zero vector: 0⋅(1,2,0)+1⋅(0,0,0)+0⋅(3,−1,1)=00 \cdot (1, 2, 0) + 1 \cdot (0, 0, 0) + 0 \cdot (3, -1, 1) = 0 is a combination with a coefficient that is not zero, so the set is dependent (Lecture 9 transcript, p. 5). Set 3 has four vectors in R3\mathrm{R}^3: as the columns of a 3×43 \times 4 matrix they leave at least one free variable, so they are dependent (pp. 2, 6).

The other three

Set 1: (3,−1)(3, -1) is not a multiple of (1,2)(1, 2) (the first components would need the factor 3, the second the factor −12-\frac12), so the two are independent. Set 4: twice the first vector minus the second is (2−2,4−1,6−0)=(0,3,6)(2 - 2, 4 - 1, 6 - 0) = (0, 3, 6), the third vector: a combination with coefficients 2, -1 and -1 gives zero, and the set is dependent. Set 5: in c1(1,1,0,0)+c2(0,1,1,0)+c3(0,0,1,1)=0c_1(1, 1, 0, 0) + c_2(0, 1, 1, 0) + c_3(0, 0, 1, 1) = 0 the first component gives c1=0c_1 = 0, the last c3=0c_3 = 0, and then the second gives c2=0c_2 = 0: independent.

Check

Set 4 hides its dependence well: no vector is a multiple of another and none is zero. The matrix with these columns has rank 2, not 3, which is the test of the lecture (pp. 7–8).

(b)6 points

Take the four vectors of R3\mathrm{R}^3

Four vectors of R³
v1=(102),v2=(011),v3=(110),v4=(14−3)v_1 = \begin{pmatrix} 1 \\ 0 \\ 2 \end{pmatrix}, \quad v_2 = \begin{pmatrix} 0 \\ 1 \\ 1 \end{pmatrix}, \quad v_3 = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}, \quad v_4 = \begin{pmatrix} 1 \\ 4 \\ -3 \end{pmatrix}
In words

v one equals 1; 0; 2, v two equals 0; 1; 1, v three equals 1; 1; 0, v four equals 1; 4; minus 3

Source: 18.06 Lecture 9 transcript (Prof. Strang), pp. 6–8 (the vectors are our own)

There is exactly one choice of numbers c1,c2,c3c_1, c_2, c_3 with c1v1+c2v2+c3v3+v4=0c_1v_1 + c_2v_2 + c_3v_3 + v_4 = 0. Find it, and give c1c_1 and c3c_3.

Hint

Put the four vectors in the columns of a 3×43 \times 4 matrix and eliminate. The numbers you want are a vector in its nullspace whose last component is 1.

Hint

After elimination, solve from the bottom row up, with the last unknown set to 1.

Solution

The idea. A combination of the columns that gives zero is a vector in the nullspace of the matrix with these columns (Lecture 9 transcript, pp. 7–8). Four columns in R3\mathrm{R}^3 leave at least one free variable (p. 6).

Eliminate

Subtract 2 times row 1 from row 3; then subtract row 2 from the new row 3:

Elimination on the four columns
(10110114210−3)→(1011011401−2−5)→(1011011400−3−9)\begin{pmatrix} 1 & 0 & 1 & 1 \\ 0 & 1 & 1 & 4 \\ 2 & 1 & 0 & -3 \end{pmatrix} \to \begin{pmatrix} 1 & 0 & 1 & 1 \\ 0 & 1 & 1 & 4 \\ 0 & 1 & -2 & -5 \end{pmatrix} \to \begin{pmatrix} 1 & 0 & 1 & 1 \\ 0 & 1 & 1 & 4 \\ 0 & 0 & -3 & -9 \end{pmatrix}
In words

1 0 1 1; 0 1 1 4; 2 1 0 minus 3 goes to 1 0 1 1; 0 1 1 4; 0 1 minus 2 minus 5 goes to 1 0 1 1; 0 1 1 4; 0 0 minus 3 minus 9

Source: 18.06 Lecture 9 transcript (Prof. Strang), pp. 7–8 (the test; the numbers are our own)

The pivots 1,1,−31, 1, -3 are in columns 1, 2 and 3, so v1,v2,v3v_1, v_2, v_3 are independent and column 4 is the one free column. The nullspace is a line, and setting its last component to 1 picks one vector of it.

Back substitution

With the coefficient of v4v_4 equal to 1, the last row says −3c3−9=0-3c_3 - 9 = 0, so c3=−3c_3 = -3. The second row says c2+c3+4=0c_2 + c_3 + 4 = 0, so c2=−1c_2 = -1. The first row says c1+c3+1=0c_1 + c_3 + 1 = 0, so c1=2c_1 = 2.

Check

2(1,0,2)−(0,1,1)−3(1,1,0)+(1,4,−3)=(2−0−3+1,0−1−3+4,4−1−0−3)=(0,0,0)2(1, 0, 2) - (0, 1, 1) - 3(1, 1, 0) + (1, 4, -3) = (2 - 0 - 3 + 1, 0 - 1 - 3 + 4, 4 - 1 - 0 - 3) = (0, 0, 0). So v4=−2v1+v2+3v3v_4 = -2v_1 + v_2 + 3v_3: the fourth vector adds nothing to the span of the first three.

(c)4 points

Let v1,…,vkv_1, \dots, v_k be independent, and let ww be a vector that is not a combination of v1,…,vkv_1, \dots, v_k. Show that v1,…,vk,wv_1, \dots, v_k, w are independent.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

Start from a combination c1v1+⋯+ckvk+dw=0c_1v_1 + \cdots + c_kv_k + dw = 0. What would d≠0d \neq 0 say about ww?

Solution

The idea. A nonzero coefficient of ww would let us solve for ww; once it is zero, the independence of the vv's does the rest.

The coefficient of w

Suppose c1v1+⋯+ckvk+dw=0c_1v_1 + \cdots + c_kv_k + dw = 0. If d≠0d \neq 0, divide by dd:

Solving for w
w=−c1d v1−⋯−ckd vkw = -\frac{c_1}{d}\,v_1 - \cdots - \frac{c_k}{d}\,v_k
In words

w equals minus c one over d, times v one minus and so on minus c sub k over d, times v sub k

Source: 18.06 Lecture 9 transcript (Prof. Strang), p. 3 (the definition; the argument is our own solution)

That writes ww as a combination of the vv's, which it is not. So d=0d = 0.

The other coefficients

With d=0d = 0 the combination is c1v1+⋯+ckvk=0c_1v_1 + \cdots + c_kv_k = 0, and the vv's are independent, so every ci=0c_i = 0. Only the zero combination of v1,…,vk,wv_1, \dots, v_k, w gives zero: they are independent.

Check

This is the step behind Strang's search for a third vector of a basis of R3\mathrm{R}^3: any vector not in the plane of the first two may be added (Lecture 9 transcript, p. 13). The condition is needed: in part (b), v4v_4 is a combination of the independent v1,v2,v3v_1, v_2, v_3, and the four together are dependent.

Problem 2#

Problem

A span, a basis of it, and a basis of R⁴

18 points

Take the four vectors of R4\mathrm{R}^4

Four vectors
w1=(1021),w2=(2130),w3=(01−1−2),w4=(1111)w_1 = \begin{pmatrix} 1 \\ 0 \\ 2 \\ 1 \end{pmatrix}, \quad w_2 = \begin{pmatrix} 2 \\ 1 \\ 3 \\ 0 \end{pmatrix}, \quad w_3 = \begin{pmatrix} 0 \\ 1 \\ -1 \\ -2 \end{pmatrix}, \quad w_4 = \begin{pmatrix} 1 \\ 1 \\ 1 \\ 1 \end{pmatrix}
In words

w one equals 1; 0; 2; 1, w two equals 2; 1; 3; 0, w three equals 0; 1; minus 1; minus 2, w four equals 1; 1; 1; 1

Source: 18.06 Lecture 9 transcript (Prof. Strang), p. 9 (span; the vectors are our own)

and let SS be the space they span.

(a)4 points

Find the dimension of SS.

Hint

Is one of the vectors a combination of two others? Compare w3w_3 with w2w_2 and w1w_1.

Hint

After removing one vector, test the remaining three for independence by elimination.

Solution

The idea. The dimension is the number of vectors in a basis, so remove the vectors that add nothing and check that the rest are independent.

One vector adds nothing

w2−2w1=(2−2,1−0,3−4,0−2)=(0,1,−1,−2)=w3w_2 - 2w_1 = (2 - 2, 1 - 0, 3 - 4, 0 - 2) = (0, 1, -1, -2) = w_3. So every combination of all four is already a combination of w1,w2,w4w_1, w_2, w_4, and these three span SS.

The other three are independent

Put w1,w2,w4w_1, w_2, w_4 in the columns of a 4×34 \times 3 matrix and eliminate: subtract 2 times row 1 from row 3 and row 1 from row 4, then add the new row 2 to row 3 and 2 times row 2 to row 4:

Three pivots
(121011231101)→(1210110−1−10−20)→(121011000002)\begin{pmatrix} 1 & 2 & 1 \\ 0 & 1 & 1 \\ 2 & 3 & 1 \\ 1 & 0 & 1 \end{pmatrix} \to \begin{pmatrix} 1 & 2 & 1 \\ 0 & 1 & 1 \\ 0 & -1 & -1 \\ 0 & -2 & 0 \end{pmatrix} \to \begin{pmatrix} 1 & 2 & 1 \\ 0 & 1 & 1 \\ 0 & 0 & 0 \\ 0 & 0 & 2 \end{pmatrix}
In words

1 2 1; 0 1 1; 2 3 1; 1 0 1 goes to 1 2 1; 0 1 1; 0 minus 1 minus 1; 0 minus 2 0 goes to 1 2 1; 0 1 1; 0 0 0; 0 0 2

Source: 18.06 Lecture 9 transcript (Prof. Strang), pp. 7–8 (the test; the numbers are our own)

Exchanging the last two rows gives three pivots: rank 3, no free variable, so w1,w2,w4w_1, w_2, w_4 are independent. They are a basis of SS, and dim S=3\text{dim}\, S = 3.

Check

Four vectors of R4\mathrm{R}^4 could have spanned all of R4\mathrm{R}^4, but the dependence w3=w2−2w1w_3 = w_2 - 2w_1 costs one dimension. The dimension is at most 4 (the vectors lie in R4\mathrm{R}^4) and at least 2 (w1w_1 and w2w_2 are not multiples of each other).

(b)4 points

Which of these sets of vectors is a basis of SS?

Hint

A basis of SS needs exactly dim S\text{dim}\, S vectors, and they must be independent. Use the dependence you found in part (a).

Solution

The idea. With the dimension known, the right number of vectors that span is a basis, and so is the right number of independent vectors (Lecture 9 transcript, p. 21).

Test each set

All four are dependent, since w3=w2−2w1w_3 = w_2 - 2w_1, and four is one too many. w1,w2,w3w_1, w_2, w_3 are dependent by the same equation. Two vectors are too few for a space of dimension 3. That leaves w2,w3,w4w_2, w_3, w_4: since w1=12(w2−w3)w_1 = \frac12(w_2 - w_3), every combination of w1,w2,w4w_1, w_2, w_4 is a combination of w2,w3,w4w_2, w_3, w_4, so these three span SS. Three vectors that span a space of dimension 3 are a basis.

Check

First, 12(w2−w3)=12(2−0,1−1,3+1,0+2)=(1,0,2,1)=w1\frac12(w_2 - w_3) = \frac12(2 - 0, 1 - 1, 3 + 1, 0 + 2) = (1, 0, 2, 1) = w_1. Then directly: in c2w2+c3w3+c4w4=0c_2w_2 + c_3w_3 + c_4w_4 = 0, the first component gives 2c2+c4=02c_2 + c_4 = 0 and the fourth −2c3+c4=0-2c_3 + c_4 = 0, so c4=−2c2c_4 = -2c_2 and c3=−c2c_3 = -c_2; the second, c2+c3+c4=0c_2 + c_3 + c_4 = 0, becomes c2−c2−2c2=−2c2=0c_2 - c_2 - 2c_2 = -2c_2 = 0. So all three coefficients are zero: independent.

(c)5 points

The vector z=(3,0,6,5)z = (3, 0, 6, 5) is in SS, and w1,w3,w4w_1, w_3, w_4 are also a basis of SS. Write z=c1w1+c3w3+c4w4z = c_1w_1 + c_3w_3 + c_4w_4 and give c1c_1 and c4c_4.

Hint

Write out the four components. The first two equations are short; use the other two to finish and to check.

Solution

The idea. In a basis every vector of the space has exactly one set of coefficients, so four equations in three unknowns have one solution here.

Solve

The four components
c1+c4=3,c3+c4=0,2c1−c3+c4=6,c1−2c3+c4=5c_1 + c_4 = 3, \qquad c_3 + c_4 = 0, \qquad 2c_1 - c_3 + c_4 = 6, \qquad c_1 - 2c_3 + c_4 = 5
In words

c one plus c four equals 3, c three plus c four equals 0, 2 c one minus c three plus c four equals 6, c one minus 2 c three plus c four equals 5

Source: 18.06 Lecture 9 transcript (Prof. Strang), p. 10 (a basis; the numbers are our own)

From the first two, c1=3−c4c_1 = 3 - c_4 and c3=−c4c_3 = -c_4. The third becomes 6−2c4+c4+c4=66 - 2c_4 + c_4 + c_4 = 6, which holds for every c4c_4. The fourth becomes 3−c4+2c4+c4=3+2c4=53 - c_4 + 2c_4 + c_4 = 3 + 2c_4 = 5, so c4=1c_4 = 1, and then c1=2c_1 = 2 and c3=−1c_3 = -1.

Check

2(1,0,2,1)−(0,1,−1,−2)+(1,1,1,1)=(2−0+1,0−1+1,4+1+1,2+2+1)=(3,0,6,5)2(1, 0, 2, 1) - (0, 1, -1, -2) + (1, 1, 1, 1) = (2 - 0 + 1, 0 - 1 + 1, 4 + 1 + 1, 2 + 2 + 1) = (3, 0, 6, 5). The coefficients are unique, because w1,w3,w4w_1, w_3, w_4 are independent: in c1w1+c3w3+c4w4=0c_1w_1 + c_3w_3 + c_4w_4 = 0 the first two components give c1=c3=−c4c_1 = c_3 = -c_4, and the fourth, c1−2c3+c4=0c_1 - 2c_3 + c_4 = 0, becomes −c4+2c4+c4=2c4=0-c_4 + 2c_4 + c_4 = 2c_4 = 0. If two sets of coefficients gave zz, their difference would be such a combination, so it is the zero combination.

(d)5 points

Which one of these vectors, added to the basis w1,w3,w4w_1, w_3, w_4 of SS from part (c), gives a basis of R4\mathrm{R}^4?

Hint

A vector that is already in SS would make the four dependent. By Problem 1(c), a vector outside SS keeps them independent.

Hint

Look for one equation, a combination of the components x1,x2,x3,x4x_1, x_2, x_3, x_4 equal to zero, that all of w1,…,w4w_1, \dots, w_4 satisfy. Try one with x4x_4 left out.

Solution

The idea. Describe SS by one equation; then a vector lies outside SS exactly when it breaks that equation.

An equation for S

Every ww satisfies 2x1−x2−x3=02x_1 - x_2 - x_3 = 0: for w1w_1, 2−0−2=02 - 0 - 2 = 0; for w2w_2, 4−1−3=04 - 1 - 3 = 0; for w3w_3, 0−1+1=00 - 1 + 1 = 0; for w4w_4, 2−1−1=02 - 1 - 1 = 0. So all their combinations satisfy it too, and SS lies inside the space HH of solutions of this one equation. HH is the nullspace of the 1×41 \times 4 matrix (2−1−10)\begin{pmatrix} 2 & -1 & -1 & 0 \end{pmatrix}, of rank 1, so dim H=4−1=3\text{dim}\, H = 4 - 1 = 3. The basis w1,w3,w4w_1, w_3, w_4 of SS is three independent vectors in HH, so it is a basis of HH as well (Lecture 9 transcript, p. 21): S=HS = H.

Test the candidates

The equation at the four candidates
(1,0,0,0):2,(1,1,1,0):2−1−1=0,(0,0,0,1):0,(1,2,0,0):2−2=0(1, 0, 0, 0): 2, \qquad (1, 1, 1, 0): 2 - 1 - 1 = 0, \qquad (0, 0, 0, 1): 0, \qquad (1, 2, 0, 0): 2 - 2 = 0
In words

(1, 0, 0, 0): 2, (1, 1, 1, 0): 2 minus 1 minus 1 equals 0, (0, 0, 0, 1): 0, (1, 2, 0, 0): 2 minus 2 equals 0

Source: 18.06 Lecture 9 transcript (Prof. Strang), p. 21 (the dimension argument; the numbers are our own)

Only (1,0,0,0)(1, 0, 0, 0) breaks the equation, so only it lies outside SS. By Problem 1(c), w1,w3,w4,(1,0,0,0)w_1, w_3, w_4, (1, 0, 0, 0) are independent, and four independent vectors in R4\mathrm{R}^4 are a basis.

Check

The other three really are in SS; for example w1+w3+w4=(1+0+1,0+1+1,2−1+1,1−2+1)=(2,2,2,0)w_1 + w_3 + w_4 = (1 + 0 + 1, 0 + 1 + 1, 2 - 1 + 1, 1 - 2 + 1) = (2, 2, 2, 0), so (1,1,1,0)=12(w1+w3+w4)(1, 1, 1, 0) = \frac12(w_1 + w_3 + w_4). The lecture's own test, that the 4×44 \times 4 matrix with the four vectors as columns must be invertible, gives the same answer by elimination (Lecture 9 transcript, p. 14).

Problem 3#

Problem

When are three vectors a basis of R³?

16 points

For a number aa, take

Three vectors with a parameter
v1=(110),v2=(1a1),v3=(02a)v_1 = \begin{pmatrix} 1 \\ 1 \\ 0 \end{pmatrix}, \qquad v_2 = \begin{pmatrix} 1 \\ a \\ 1 \end{pmatrix}, \qquad v_3 = \begin{pmatrix} 0 \\ 2 \\ a \end{pmatrix}
In words

v one equals 1; 1; 0, v two equals 1; a; 1, v three equals 0; 2; a

Source: 18.06 Lecture 9 transcript (Prof. Strang), pp. 13–14 (a basis of R³; the vectors are our own)

and let AA be the 3×33 \times 3 matrix with columns v1,v2,v3v_1, v_2, v_3.

(a)5 points

Eliminate on AA in the usual way, with no row exchanges and without rescaling any row: subtract a multiple of row 1 from row 2, then a multiple of the new row 2 from row 3. For a≠1a \neq 1, find the third pivot as a formula in aa.

Hint

Write AA out row by row first: its rows are made of the first, second and third components of the three vectors.

Hint

After the first step the second pivot is a−1a - 1. The multiplier for row 3 is the entry to be removed divided by that pivot.

Solution

The idea. Elimination on the matrix whose columns are the vectors decides independence: three pivots, three independent columns (Lecture 9 transcript, pp. 7–8).

The matrix

The rows of AA hold the first, second and third components of v1,v2,v3v_1, v_2, v_3:

The matrix and the first step
A=(1101a201a)→(1100a−1201a)A = \begin{pmatrix} 1 & 1 & 0 \\ 1 & a & 2 \\ 0 & 1 & a \end{pmatrix} \to \begin{pmatrix} 1 & 1 & 0 \\ 0 & a - 1 & 2 \\ 0 & 1 & a \end{pmatrix}
In words

capital A equals 1 1 0; 1 a 2; 0 1 a goes to 1 1 0; 0 a minus 1 2; 0 1 a

Source: 18.06 Lecture 9 transcript (Prof. Strang), pp. 7–8 (the test; the numbers are our own)

The second step

For a≠1a \neq 1 the second pivot a−1a - 1 is not zero. Subtract 1a−1\frac{1}{a - 1} times row 2 from row 3: the 1 below the pivot disappears, and the last entry becomes

The third pivot
a−1a−1⋅2=a−2a−1=a2−a−2a−1a - \frac{1}{a - 1} \cdot 2 = a - \frac{2}{a - 1} = \frac{a^2 - a - 2}{a - 1}
In words

a minus 1 over the quantity a minus 1, times 2 equals a minus 2 over the quantity a minus 1, equals the quantity a squared minus a minus 2, all over the quantity a minus 1

Source: 18.06 Lecture 9 transcript (Prof. Strang), pp. 7–8 (the test; the numbers are our own)

Check

At a=3a = 3: 3−22=23 - \frac22 = 2. Directly, the matrix after the first step has rows (0,2,2)(0, 2, 2) and (0,1,3)(0, 1, 3); half of the first taken from the second leaves (0,0,2)(0, 0, 2).

(b)3 points

Part (a) left out a=1a = 1. What is true of v1,v2,v3v_1, v_2, v_3 for a=1a = 1?

Hint

Do the first elimination step with a=1a = 1 and look at the rows that are left.

Solution

The idea. A zero in a pivot position is not yet a missing pivot: a row exchange may bring a nonzero entry up, as in elimination on a square matrix.

Elimination at a=1a = 1

After the first step the rows are (1,1,0)(1, 1, 0), (0,0,2)(0, 0, 2) and (0,1,1)(0, 1, 1). The zero in the second pivot position is fixed by exchanging rows 2 and 3, and the pivots are 1,1,21, 1, 2. Three pivots: the vectors (1,1,0)(1, 1, 0), (1,1,1)(1, 1, 1), (0,2,1)(0, 2, 1) are independent, and the matrix with these columns is invertible, so they are a basis of R3\mathrm{R}^3 (Lecture 9 transcript, p. 14).

Check

At a=1a = 1, v1=(1,1,0)v_1 = (1, 1, 0) and v2=(1,1,1)v_2 = (1, 1, 1) differ in the third component, so they are not equal. Three independent vectors in R3\mathrm{R}^3 span all of it, not just a plane (Lecture 9 transcript, p. 21).

(c)4 points

For two values of aa the vectors v1,v2,v3v_1, v_2, v_3 are not a basis of R3\mathrm{R}^3. Find both.

Hint

Write the third pivot of part (a) as one fraction and factor its top. Part (b) has settled a=1a = 1.

Solution

The idea. Three vectors in R3\mathrm{R}^3 are a basis exactly when the matrix with these columns is invertible, that is when it has three pivots (Lecture 9 transcript, p. 14).

Where the pivot vanishes

The third pivot a2−a−2a−1=(a−2)(a+1)a−1\frac{a^2 - a - 2}{a - 1} = \frac{(a - 2)(a + 1)}{a - 1} is zero for a=2a = 2 and a=−1a = -1. For those two values the rank is 2 and the vectors are dependent. For every other a≠1a \neq 1 there are three pivots, and a=1a = 1 gives a basis by part (b). So the only two failures are a=2a = 2 and a=−1a = -1.

Check

For a=2a = 2: −2v1+2v2=(−2+2,−2+4,0+2)=(0,2,2)=v3-2v_1 + 2v_2 = (-2 + 2, -2 + 4, 0 + 2) = (0, 2, 2) = v_3. For a=−1a = -1: v1−v2=(1−1,1+1,0−1)=(0,2,−1)=v3v_1 - v_2 = (1 - 1, 1 + 1, 0 - 1) = (0, 2, -1) = v_3. Both are dependences, as they must be.

(d)4 points

Show that in a space of dimension nn, any nn independent vectors span the space, and any nn vectors that span the space are independent. So in either case they are a basis.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

For the first claim, suppose they do not span: then some vector of the space is not a combination of them. Use Problem 1(c).

Hint

For the second, suppose they are dependent: then one of them is a combination of the others and can be removed without changing the span.

Solution

The idea. Both claims come from the fact that every basis has exactly nn vectors (Lecture 9 transcript, p. 16): a set that is too small cannot span, a set that is too large cannot be independent. Quoting the fact that n+1n + 1 vectors in a space of dimension nn are dependent, as the lecture does (p. 21), earns the full 4 points; the first step below also proves it.

Independent and n of them

Let u1,…,unu_1, \dots, u_n be independent. If they did not span the space, some vector ww of the space would not be a combination of them, and by Problem 1(c) the n+1n + 1 vectors u1,…,un,wu_1, \dots, u_n, w would be independent. That is impossible: write each of these n+1n + 1 vectors in a basis of nn vectors, and put the nn coefficients of each into a column. The n×(n+1)n \times (n + 1) matrix of coefficients has more columns than rows, so a nonzero vector lies in its nullspace (Lecture 9 transcript, p. 2), and the same combination of the n+1n + 1 vectors gives zero. So u1,…,unu_1, \dots, u_n span, and they are a basis. Strang gives the short form of this argument for the column space of his example (Lecture 9 transcript, p. 21).

Spanning and n of them

Let u1,…,unu_1, \dots, u_n span the space. If they were dependent, one of them would be a combination of the others, and removing it would leave n−1n - 1 vectors with the same span. Keep removing vectors in this way until the rest are independent: that gives a basis with fewer than nn vectors, again impossible. So u1,…,unu_1, \dots, u_n are independent, and they are a basis.

Check

In R3\mathrm{R}^3: by part (c) the three vectors with a=2a = 2 are dependent, and indeed they do not span R3\mathrm{R}^3 (v3v_3 adds nothing to the plane of v1v_1 and v2v_2). Both halves fail together, as the argument says they must.

Problem 4#

Problem

The four subspaces of one matrix

22 points

Take the 3×43 \times 4 matrix

The matrix
A=(12−1137−25−1033)A = \begin{pmatrix} 1 & 2 & -1 & 1 \\ 3 & 7 & -2 & 5 \\ -1 & 0 & 3 & 3 \end{pmatrix}
In words

capital A equals 1 2 minus 1 1; 3 7 minus 2 5; minus 1 0 3 3

Source: 18.06 Lecture 10 transcript (Prof. Strang), pp. 11–12 (a matrix to reduce; the numbers are our own)

(a)6 points

Find the dimensions of the four fundamental subspaces of AA.

Hint

Eliminate to find the rank rr. Here m=3m = 3 and n=4n = 4.

Solution

The idea. The rank gives all four dimensions: rr, rr, n−rn - r and m−rm - r (Lecture 10 transcript, pp. 7–10).

The rank

Subtract 3 times row 1 from row 2 and add row 1 to row 3: the new rows 2 and 3 are (0,1,1,2)(0, 1, 1, 2) and (0,2,2,4)(0, 2, 2, 4). The second is twice the first, so subtracting 2 times row 2 from row 3 leaves a zero row:

Elimination
A→(12−1101120224)→U=(12−1101120000)A \to \begin{pmatrix} 1 & 2 & -1 & 1 \\ 0 & 1 & 1 & 2 \\ 0 & 2 & 2 & 4 \end{pmatrix} \to U = \begin{pmatrix} 1 & 2 & -1 & 1 \\ 0 & 1 & 1 & 2 \\ 0 & 0 & 0 & 0 \end{pmatrix}
In words

capital A goes to 1 2 minus 1 1; 0 1 1 2; 0 2 2 4 goes to capital U equals 1 2 minus 1 1; 0 1 1 2; 0 0 0 0

Source: 18.06 Lecture 10 transcript (Prof. Strang), pp. 11–12 (the method; the numbers are our own)

Two pivots, in columns 1 and 2: r=2r = 2.

The four dimensions

dim C(A)=dim C(AT)=r=2\text{dim}\, C(A) = \text{dim}\, C(A^T) = r = 2, dim N(A)=n−r=4−2=2\text{dim}\, N(A) = n - r = 4 - 2 = 2 (two free variables, x3x_3 and x4x_4) and dim N(AT)=m−r=3−2=1\text{dim}\, N(A^T) = m - r = 3 - 2 = 1.

Check

In R4\mathrm{R}^4: 2+2=4=n2 + 2 = 4 = n. In R3\mathrm{R}^3: 2+1=3=m2 + 1 = 3 = m (Lecture 10 transcript, p. 21).

(b)5 points

Continue to the reduced form RR and use it for a basis of the row space. The row space contains exactly one vector of the form (1,1,s,t)(1, 1, s, t): give ss and tt. Then decide whether column 1 of AA lies in the column space of RR.

Hint

Clear the entry above the second pivot. The nonzero rows of RR are a basis of the row space, and their first two components are a 1 and a 0, or a 0 and a 1.

Hint

A combination of the two rows of RR with first components 1,11, 1 needs one of each row.

Solution

The idea. Row operations keep the row space, so the nonzero rows of RR are a basis of the row space of AA; they do not keep the column space (Lecture 10 transcript, pp. 12–15).

The reduced form

Subtract 2 times row 2 of UU from row 1:

The reduced form
R=(10−3−301120000)R = \begin{pmatrix} 1 & 0 & -3 & -3 \\ 0 & 1 & 1 & 2 \\ 0 & 0 & 0 & 0 \end{pmatrix}
In words

capital R equals 1 0 minus 3 minus 3; 0 1 1 2; 0 0 0 0

Source: 18.06 Lecture 10 transcript (Prof. Strang), pp. 11–13 (the method; the numbers are our own)

So (1,0,−3,−3)(1, 0, -3, -3) and (0,1,1,2)(0, 1, 1, 2) are a basis of C(AT)C(A^T).

The vector (1, 1, s, t)

A vector of the row space is c(1,0,−3,−3)+d(0,1,1,2)=(c,d,−3c+d,−3c+2d)c(1, 0, -3, -3) + d(0, 1, 1, 2) = (c, d, -3c + d, -3c + 2d). First components 1,11, 1 force c=d=1c = d = 1, so the vector is (1,1,−2,−1)(1, 1, -2, -1): s=−2s = -2 and t=−1t = -1.

The column space changed

Every column of RR has third component 00, and so does every combination of them. Column 1 of AA is (1,3,−1)(1, 3, -1), with third component −1-1: it is in C(A)C(A) but not in C(R)C(R). As in the lecture's example, elimination changed the column space (Lecture 10 transcript, p. 12).

Check

(1,1,−2,−1)(1, 1, -2, -1) should also be a combination of the rows of AA itself. Row 2 of AA minus 2 times row 1 is (3−2,7−4,−2+2,5−2)=(1,3,0,3)(3 - 2, 7 - 4, -2 + 2, 5 - 2) = (1, 3, 0, 3), and (1,3,0,3)−2(0,1,1,2)=(1,1,−2,−1)(1, 3, 0, 3) - 2(0, 1, 1, 2) = (1, 1, -2, -1), where (0,1,1,2)(0, 1, 1, 2) is row 2 minus 3 times row 1. Both steps use only rows of AA.

(c)4 points

Which of these is a basis of the column space C(A)C(A)?

Hint

The pivot columns tell you which columns to take, but take them from the right matrix.

Solution

The idea. The pivot columns of the original AA are a basis of C(A)C(A) (Lecture 10 transcript, p. 7).

The pivot columns

The pivots of RR are in columns 1 and 2, so columns 1 and 2 of AA, (1,3,−1)(1, 3, -1) and (2,7,0)(2, 7, 0), are independent and span C(A)C(A): a basis, two vectors for dimension 2.

Why not the others

Columns of RR lie in C(R)C(R), which by part (b) is a different plane: they all end in 00, while C(A)C(A) contains (1,3,−1)(1, 3, -1). The rows of RR have four components and lie in R4\mathrm{R}^4, not in R3\mathrm{R}^3 where C(A)C(A) lives.

Check

Column 4 of RR is (−3,2,0)(-3, 2, 0), which says column 4 of AA is −3-3 times column 1 plus 2 times column 2: −3(1,3,−1)+2(2,7,0)=(1,5,3)-3(1, 3, -1) + 2(2, 7, 0) = (1, 5, 3), which is column 4 of AA. So the pivot columns of AA do produce the other columns.

(d)7 points

Run Gauss–Jordan on [A    I][A\;\;I], doing to II the same row operations as in parts (a) and (b), to reach [R    E][R\;\;E]. The row of EE that produces the zero row of RR is a basis of N(AT)N(A^T). Scale it so that its third component is y3=1y_3 = 1; then give its first two components y1y_1 and y2y_2, and say where N(AT)N(A^T) lies.

Hint

Only the operations that change row 3 matter for the last row of EE. Follow row 3 of II through them, one at a time.

Hint

One of those operations uses row 2 after row 2 has itself been changed: use the changed row 2 of II at that moment.

Solution

The idea. EE records every row operation, EA=REA = R, and the last row of EAEA is the zero row: so the last row of EE is a combination of the rows of AA that gives zero (Lecture 10 transcript, pp. 17–21).

Follow the identity

On II: row 2 minus 3 times row 1 gives (−3,1,0)(-3, 1, 0); row 3 plus row 1 gives (1,0,1)(1, 0, 1); then row 3 minus 2 times the new row 2 gives (1,0,1)−2(−3,1,0)=(7,−2,1)(1, 0, 1) - 2(-3, 1, 0) = (7, -2, 1). Finally row 1 minus 2 times row 2 gives (7,−2,0)(7, -2, 0). So

The matrix E
E=(7−20−3107−21),EA=RE = \begin{pmatrix} 7 & -2 & 0 \\ -3 & 1 & 0 \\ 7 & -2 & 1 \end{pmatrix}, \qquad EA = R
In words

E equals 7 minus 2 0; minus 3 1 0; 7 minus 2 1, E capital A equals capital R

Source: 18.06 Lecture 10 transcript (Prof. Strang), pp. 17–20 (the method; the numbers are our own)

and y=(7,−2,1)y = (7, -2, 1): y1=7y_1 = 7 and y2=−2y_2 = -2.

Where it lies

yy has m=3m = 3 components, one for each row of AA, so N(AT)N(A^T) lies in R3\mathrm{R}^3. Its dimension is m−r=1m - r = 1 (part (a)): it is the line of all multiples of (7,−2,1)(7, -2, 1).

Check

yTA=7(1,2,−1,1)−2(3,7,−2,5)+(−1,0,3,3)=(7−6−1,14−14+0,−7+4+3,7−10+3)=(0,0,0,0)y^TA = 7(1, 2, -1, 1) - 2(3, 7, -2, 5) + (-1, 0, 3, 3) = (7 - 6 - 1, 14 - 14 + 0, -7 + 4 + 3, 7 - 10 + 3) = (0, 0, 0, 0). The first row of EE also checks: 7(1,2,−1,1)−2(3,7,−2,5)=(1,0,−3,−3)7(1, 2, -1, 1) - 2(3, 7, -2, 5) = (1, 0, -3, -3), row 1 of RR.

Problem 5#

Problem

Counting dimensions

14 points

(a)4 points

A 6×96 \times 9 matrix AA has rank 4. Find the dimensions of its nullspace and of its left nullspace.

Hint

Decide first which of the numbers 6 and 9 is mm and which is nn.

Solution

The idea. m×nm \times n means mm rows and nn columns: here m=6m = 6 and n=9n = 9.

Count

dim N(A)=n−r=9−4=5\text{dim}\, N(A) = n - r = 9 - 4 = 5, the number of free variables, and dim N(AT)=m−r=6−4=2\text{dim}\, N(A^T) = m - r = 6 - 4 = 2 (Lecture 10 transcript, pp. 9–10).

Check

N(A)N(A) and C(AT)C(A^T) lie in R9\mathrm{R}^9: 5+4=95 + 4 = 9. N(AT)N(A^T) and C(A)C(A) lie in R6\mathrm{R}^6: 2+4=62 + 4 = 6.

(b)4 points

AA is an m×nm \times n matrix of rank rr, and bb is a vector of Rm\mathrm{R}^m. The matrix B=[A    b]B = [A\;\;b] is AA with bb added as one more column. Find dim N(B)\text{dim}\, N(B) when bb is in C(A)C(A), and dim N(BT)\text{dim}\, N(B^T) when bb is not in C(A)C(A), as formulas in mm, nn and rr.

Hint

First find the rank of BB in each case: does the new column add a pivot? Then count columns of BB, and rows of BB.

Solution

The idea. A new column adds a pivot exactly when it is not a combination of the old columns, that is when bb is not in C(A)C(A).

b in C(A)

Then C(B)=C(A)C(B) = C(A), so BB has rank rr and n+1n + 1 columns:

Nullspace of B
dim N(B)=(n+1)−r\text{dim}\, N(B) = (n + 1) - r
In words

dim capital N ( capital B ) equals the quantity n plus 1, all minus r

Source: 18.06 Lecture 9 transcript (Prof. Strang), p. 24 (the count; the matrix B is our own)

The extra dimension is the solution (x,−1)(x, -1), where Ax=bAx = b.

b not in C(A)

Then bb is independent of the columns of AA (Problem 1(c) applied to a basis of C(A)C(A)), BB has rank r+1r + 1, and it still has mm rows:

Left nullspace of B
dim N(BT)=m−(r+1)=m−r−1\text{dim}\, N(B^T) = m - (r + 1) = m - r - 1
In words

dim capital N ( capital B ^ capital T ) equals m minus the quantity r plus 1, equals m minus r minus 1

Source: 18.06 Lecture 10 transcript (Prof. Strang), p. 10 (the count; the matrix B is our own)

Check

Take A=(1000)A = \begin{pmatrix} 1 & 0 \\ 0 & 0 \end{pmatrix}, so m=n=2m = n = 2 and r=1r = 1. With b=(1,0)b = (1, 0), in C(A)C(A), N(B)N(B) holds (1,0,−1)(1, 0, -1) and (0,1,0)(0, 1, 0): dimension 2=2+1−12 = 2 + 1 - 1. With b=(0,1)b = (0, 1), not in C(A)C(A), BB has rank 2 and N(BT)N(B^T) is only zero: dimension 0=2−1−10 = 2 - 1 - 1. With the 3×23 \times 2 matrix A=(100000)A = \begin{pmatrix} 1 & 0 \\ 0 & 0 \\ 0 & 0 \end{pmatrix} and b=(0,1,0)b = (0, 1, 0), not in C(A)C(A), the third row of BB is zero, so N(BT)N(B^T) is the line of multiples of (0,0,1)(0, 0, 1): dimension 1=3−1−11 = 3 - 1 - 1.

(c)6 points

Is there a matrix with each property?

  1. A 3×43 \times 4 matrix with dim N(A)=1\text{dim}\, N(A) = 1 and dim N(AT)=1\text{dim}\, N(A^T) = 1.
  2. A 3×33 \times 3 matrix whose column space is equal to its nullspace.
  3. A 4×64 \times 6 matrix with dim C(AT)=3\text{dim}\, C(A^T) = 3 and dim N(A)=3\text{dim}\, N(A) = 3.
  4. A 2×22 \times 2 matrix whose column space is equal to its nullspace.
Hint

Each condition fixes the rank. See whether the conditions agree on one rank, and whether that rank is possible for the size.

Hint

For a square matrix, equal column space and nullspace need r=n−rr = n - r.

Solution

The idea. The four dimensions are rr, rr, n−rn - r and m−rm - r (Lecture 10 transcript, pp. 7–10), so any two conditions on them must give the same rank.

Properties 1 and 3

Property 1: dim N(A)=4−r=1\text{dim}\, N(A) = 4 - r = 1 gives r=3r = 3, and then dim N(AT)=3−3=0\text{dim}\, N(A^T) = 3 - 3 = 0, not 1. Impossible. Property 3: dim C(AT)=3\text{dim}\, C(A^T) = 3 gives r=3r = 3, and then dim N(A)=6−3=3\text{dim}\, N(A) = 6 - 3 = 3, as asked; rank 3 is possible for a 4×64 \times 6 matrix (it is at most 4). For example, the matrix with II of size 3 in its upper left corner and zeros elsewhere. Possible.

Properties 2 and 4

For an n×nn \times n matrix both spaces lie in Rn\mathrm{R}^n, and equal spaces have equal dimensions: r=n−rr = n - r, so n=2rn = 2r. For n=3n = 3 that is impossible, since rr would be 32\frac32. For n=2n = 2 it needs r=1r = 1, and the matrix (0100)\begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix} works: its column space is the line of multiples of (1,0)(1, 0), and so is its nullspace, since (0100)(x1x2)=(x20)\begin{pmatrix} 0 & 1 \\ 0 & 0 \end{pmatrix}\begin{pmatrix} x_1 \\ x_2 \end{pmatrix} = \begin{pmatrix} x_2 \\ 0 \end{pmatrix} is zero exactly when x2=0x_2 = 0.

Check

For the example of property 3, the special solutions are the last three columns of the 6×66 \times 6 identity: three of them, n−r=3n - r = 3. Its left nullspace is the multiples of (0,0,0,1)(0, 0, 0, 1): m−r=1m - r = 1.

Problem 6#

Problem

What row operations keep

14 points

Let AA be an m×nm \times n matrix and EE an invertible m×mm \times m matrix, and put B=EAB = EA. Every sequence of row operations gives such a BB; the reduced form is R=EAR = EA for the EE of Gauss–Jordan.

(a)7 points

Take A=(1326−1−3)A = \begin{pmatrix} 1 & 3 \\ 2 & 6 \\ -1 & -3 \end{pmatrix} and its reduced form R=(130000)R = \begin{pmatrix} 1 & 3 \\ 0 & 0 \\ 0 & 0 \end{pmatrix}. The left nullspace N(AT)N(A^T) contains a vector (p,1,0)(p, 1, 0) and a vector (q,0,1)(q, 0, 1): give pp and qq. Then compare N(AT)N(A^T) with N(RT)N(R^T).

Hint

yy is in N(AT)N(A^T) when yTAy^TA, the combination of the rows of AA with the coefficients y1,y2,y3y_1, y_2, y_3, is the zero row.

Hint

For N(RT)N(R^T), do the same with the rows of RR. Then test whether a vector of one space lies in the other.

Solution

The idea. yTA=0Ty^TA = 0^T asks for a combination of the rows that gives the zero row (Lecture 10 transcript, p. 16).

The left nullspace of A

Every row of AA is a multiple of (1,3)(1, 3): rows 1, 2, 3 are 11, 22 and −1-1 times it. So yTA=(y1+2y2−y3)(1,3)y^TA = (y_1 + 2y_2 - y_3)(1, 3), which is zero exactly when y1+2y2−y3=0y_1 + 2y_2 - y_3 = 0. With y=(p,1,0)y = (p, 1, 0) that gives p+2=0p + 2 = 0, so p=−2p = -2; with y=(q,0,1)y = (q, 0, 1) it gives q−1=0q - 1 = 0, so q=1q = 1. The two vectors (−2,1,0)(-2, 1, 0) and (1,0,1)(1, 0, 1) are a basis of N(AT)N(A^T), which has dimension m−r=3−1=2m - r = 3 - 1 = 2.

The left nullspace of R

yTR=y1(1,3)y^TR = y_1(1, 3), which is zero exactly when y1=0y_1 = 0: N(RT)N(R^T) is the plane of the vectors (0,y2,y3)(0, y_2, y_3). It is a plane in R3\mathrm{R}^3 too, but a different one: (−2,1,0)(-2, 1, 0) is in N(AT)N(A^T) and not in N(RT)N(R^T), and (0,1,0)(0, 1, 0) is in N(RT)N(R^T) but not in N(AT)N(A^T), since 0+2−0≠00 + 2 - 0 \neq 0.

Check

(−2,1,0)TA=−2(1,3)+(2,6)=(0,0)(-2, 1, 0)^TA = -2(1, 3) + (2, 6) = (0, 0) and (1,0,1)TA=(1,3)+(−1,−3)=(0,0)(1, 0, 1)^TA = (1, 3) + (-1, -3) = (0, 0). Row operations kept the dimension of the left nullspace, m−r=2m - r = 2, but moved it to another plane.

(b)7 points

Show that B=EAB = EA has the same nullspace and the same row space as AA.

This part has no answer box. Write your argument, then open the solution and mark yourself.

Hint

For the nullspace: if Ax=0Ax = 0, what is BxBx? And if Bx=0Bx = 0, multiply by E−1E^{-1}.

Hint

For the row space: each row of EAEA is a combination of the rows of AA. Use A=E−1BA = E^{-1}B for the other direction.

Solution

The idea. Because EE can be undone, each of AA and BB is a row-combination of the other.

The nullspace

If Ax=0Ax = 0 then Bx=E(Ax)=E0=0Bx = E(Ax) = E0 = 0. If Bx=0Bx = 0 then Ax=E−1(EAx)=E−10=0Ax = E^{-1}(EAx) = E^{-1}0 = 0. So Ax=0Ax = 0 and Bx=0Bx = 0 have the same solutions: N(B)=N(A)N(B) = N(A).

The row space

Each row of B=EAB = EA is a combination of the rows of AA, with the entries of the same row of EE as its coefficients. So every row of BB, and every combination of rows of BB, is in the row space of AA: C(BT)C(B^T) lies inside C(AT)C(A^T). In the same way A=E−1BA = E^{-1}B puts every row of AA in the row space of BB. Each space lies inside the other, so they are equal:

Same row space
C((EA)T)=C(AT)for every invertible EC\big((EA)^T\big) = C(A^T) \quad \text{for every invertible } E
In words

capital C ((E capital A )^ capital T ) equals capital C ( capital A ^ capital T ) for every invertible E

Source: 18.06 Lecture 10 transcript (Prof. Strang), pp. 14–15 (reversing the steps; the general form is our own solution)

This is why elimination may be used to find both spaces (Lecture 10 transcript, pp. 12–15).

Check

In part (a), R=EAR = EA: both AA and RR have as row space the multiples of (1,3)(1, 3), and as nullspace the multiples of (−3,1)(-3, 1), since every row of either matrix has the form (c,3c)(c, 3c) and −3c+3c=0-3c + 3c = 0. The column spaces are the multiples of (1,2,−1)(1, 2, -1) and of (1,0,0)(1, 0, 0): the column space is not kept, and by part (a) neither is the left nullspace. Their dimensions are kept, rr and m−rm - r, since BB has the same rank as AA.

Symbols on this page

Show the 58 symbols used here
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
⟺\Longleftrightarrow if and only if.
If and only if: each statement implies the other. Say it: “is equivalent to”.
×\times times.
Times (multiplication). Between two vectors: the cross product. Say it: “times”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
aa a.
The number that appears in v₂ and v₃ of Problem 3. Say it: “a”.
HH H.
In Problem 2(d), the space of all vectors of R⁴ that satisfy one linear equation. Say it: “H”.
zz z.
The vector (3, 0, 6, 5) of Problem 2(c), to be written in a basis of S. Say it: “z”.
cc c.
A number multiplying a vector in a combination (in Problem 4(b), the coefficient of the first row of R); in Problem 6(b), the first entry of a row (c, 3c). Say it: “c”.
TT T.
As a superscript: the transpose (Aᵀ has the rows of A as its columns). Say it: “capital T”.
xx x.
A vector of unknowns, x = (x₁, x₂, …), as in Ax = 0; in Problem 2(d), a vector of R⁴ tested against one equation. Say it: “x”.
yy y.
A vector of the left nullspace: Aᵀy = 0, that is yᵀA = 0ᵀ, a combination of the rows giving the zero row. Say it: “y”.
tt t.
The fourth component of the vector (1, 1, s, t) of Problem 4(b). Say it: “t”.
dd d.
A coefficient in a combination: in Problem 1(c) the coefficient of w, in Problem 4(b) the coefficient of the second row of R. Say it: “d”.
nn n.
The number of columns of a matrix (the number of components of each row); also the number of vectors in a list v₁, …, vₙ, and in Problem 3(d) the dimension of a space. Say it: “n”.
mm m.
The number of rows of a matrix, which is the number of components of each column. Say it: “m”.
vv v.
A vector; v₁, v₂, … are the vectors whose independence is tested. Say it: “v”.
rr r.
The rank of a matrix: the number of pivots, which is the dimension of its column space and of its row space. Say it: “r”.
AA A.
The matrix of each problem (a different matrix in each problem); in Problems 1 to 3, the matrix whose columns are the vectors being tested. Say it: “capital A”.
BB B.
In Problem 5(b), the matrix [A b]; in Problem 6, the matrix EA reached by row operations. Say it: “capital B”.
CC C.
As in C(A): the column space of A, all combinations of its columns; C(Aᵀ) is the row space. Say it: “capital C”.
bb b.
In Problem 5(b), a vector of Rᵐ added to A as one more column. Say it: “b”.
qq q.
The first component of the vector (q, 0, 1) of Problem 6(a). Say it: “q”.
ss s.
The third component of the vector (1, 1, s, t) of Problem 4(b). Say it: “s”.
NN N.
As in N(A): the nullspace of A, all solutions of Ax = 0; N(Aᵀ) is the left nullspace. Say it: “capital N”.
pp p.
The first component of the vector (p, 1, 0) of Problem 6(a). Say it: “p”.
RR R.
The reduced row echelon form of a matrix (zeros above and below the pivots, pivots equal to 1); upright, as in R³ or R⁴, the space of all real vectors with that many components. Say it: “capital R”.
SS S.
The space spanned by w₁, w₂, w₃ and w₄ in Problem 2. Say it: “capital S”.
EE E.
The matrix that records the row operations, with EA = R (Gauss–Jordan takes [A I] to [R E]); in Problem 6, any invertible matrix multiplying A from the left. Say it: “E”.
ww w.
A vector: in Problem 1(c), one that is not a combination of v₁, …, v_k; in Problem 3(d), a vector of the space that is not a combination of the u's. Say it: “w”.
x1x_{1} x 1.
The first component of a vector x. Say it: “x one”.
x2x_{2} x 2.
The second component of a vector x. Say it: “x two”.
y1y_{1} y 1.
The first component of a vector y of the left nullspace. Say it: “y one”.
y2y_{2} y 2.
The second component of a vector y of the left nullspace. Say it: “y two”.
UU U.
The echelon (staircase) form that elimination produces, before the entries above the pivots are cleared. Say it: “capital U”.
x4x_{4} x four.
The fourth component of a vector x of R⁴. Say it: “x four”.
x3x_{3} x three.
The third component of a vector x. Say it: “x three”.
y3y_{3} y three.
The third component of a vector y of the left nullspace. Say it: “y three”.
v1v_{1} v one.
The first vector of a list being tested: (1, 0, 2) in Problem 1(b), (1, 1, 0) in Problem 3. Say it: “v one”.
v2v_{2} v two.
The second vector of a list being tested: (0, 1, 1) in Problem 1(b), (1, a, 1) in Problem 3. Say it: “v two”.
II I.
The identity matrix, as in [A I]. Say it: “capital I”.
v3v_{3} v 3.
The third vector of a list being tested: (1, 1, 0) in Problem 1(b), (0, 2, a) in Problem 3. Say it: “v three”.
c1c_{1} c one.
The coefficient of the first vector (v₁ or w₁) in a combination. Say it: “c one”.
c2c_{2} c two.
The coefficient of the second vector (v₂) in a combination. Say it: “c two”.
cic_{i} c i.
Any one of the coefficients c₁, …, c_k. Say it: “c sub i”.
u1u_{1} u one.
The first of n vectors u₁, …, uₙ in a space of dimension n (Problem 3(d)). Say it: “u one”.
c3c_{3} c 3.
The coefficient of the third vector in a combination (of v₃ in Problem 1(b), of w₃ in Problem 2). Say it: “c three”.
unu_{n} u sub n.
The last of n vectors u₁, …, uₙ in a space of dimension n (Problem 3(d)). Say it: “u sub n”.
cnc_{n} c sub n.
The coefficient of the last vector vₙ in a combination of v₁, …, vₙ. Say it: “c sub n”.
v4v_{4} v four.
The fourth vector of Problem 1(b), (1, 4, −3). Say it: “v four”.
vnv_{n} v n.
The last of n vectors v₁, …, vₙ. Say it: “v n”.
w1w_{1} w one.
The first of the four vectors of Problem 2, (1, 0, 2, 1). Say it: “w one”.
w2w_{2} w two.
The second of the four vectors of Problem 2, (2, 1, 3, 0). Say it: “w two”.
w3w_{3} w three.
The third of the four vectors of Problem 2, (0, 1, −1, −2). Say it: “w three”.
w4w_{4} w four.
The fourth of the four vectors of Problem 2, (1, 1, 1, 1). Say it: “w four”.
c4c_{4} c four.
The coefficient of w₄ in a combination (Problem 2). Say it: “c four”.
vkv_{k} v k.
The last vector of the list v₁, …, v_k in Problem 1(c). Say it: “v sub k”.
ckc_{k} c k.
The coefficient of v_k, the last of the vectors v₁, …, v_k. Say it: “c sub k”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 32 words used here

Also used

independence.
Of vectors: none of them is a combination of the others, so the only combination giving zero uses all zero coefficients. Explained in Independence, basis and dimension.
basis.
A set of independent vectors from which every vector in a space can be built, in exactly one way, as a combination. Explained in Independence, basis and dimension.
dimension.
The number of vectors in any basis of a vector space or subspace. Explained in Independence, basis and dimension.
four fundamental subspaces.
The column space, nullspace, row space and left nullspace of a matrix, whose dimensions are all fixed by its rank. Explained in The four fundamental subspaces.
matrix.
A rectangular table of numbers, which acts on vectors to give new ones and so describes a linear change of coordinates. Explained in Planes through three points, and matrices.
subspace.
A set of vectors inside a larger space that is a space itself: sums and multiples of its vectors stay inside it. Explained in Transposes, permutations and vector spaces.
perpendicular.
At right angles to a line, a surface or another direction. Explained in Inclined planes.
MIT.
Massachusetts Institute of Technology: the university in Cambridge, USA, whose free courses this site rewrites.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
vector.
A list of numbers written as a column, or more generally anything that can be added and multiplied by numbers. Explained in Orthogonal vectors and subspaces.
zero vector.
The vector whose components are all zero; adding it to any vector changes nothing. Explained in Transposes, permutations and vector spaces.
free variable.
An unknown whose column has no pivot, so it can be given any value; the other unknowns are then fixed by the equations.
span.
The span of some vectors is everything that can be made by combining them; vectors span a space when they fill all of it. Explained in Independence, basis and dimension.
invertible.
Of a square matrix or operator: having an inverse that undoes it; for a matrix this happens exactly when its determinant is not zero. Explained in The geometry of linear equations.
rank.
The number of independent columns of a matrix, which always equals the number of independent rows. Explained in Similar matrices and the Jordan form.
pivot column.
A column of a matrix that contains a pivot after elimination; the matching columns of the original matrix form a basis for its column space. Explained in Column space and nullspace.
special solution.
A solution of Ax = 0 found by setting one free variable to 1 and the others to 0; together they build every solution. Explained in Solving Ax = 0: pivot variables and special solutions.
row space.
All the vectors that can be made by combining the rows of a matrix; it is the column space of its transpose. Explained in Matrix multiplication and inverse matrices.
nullspace.
All the vectors x that a matrix sends to zero, that is, all solutions of Ax = 0. Explained in Column space and nullspace.
column space.
All the vectors made by combining the columns of a matrix; Ax = b can be solved exactly when b lies in it. Explained in Matrix multiplication and inverse matrices.
left nullspace.
The nullspace of the transpose of a matrix: all the combinations of its rows that give zero. Explained in The four fundamental subspaces.
Gauss–Jordan.
A method that continues elimination upwards as well as downwards until the matrix becomes the identity, which finds the inverse. Explained in The four fundamental subspaces.
pivot.
In elimination, the first nonzero number in a row, used to clear out the entries below it. Explained in Positive definite matrices and minima.
elimination.
Solving equations by subtracting multiples of one from another until each unknown can be found in turn. Explained in The geometry of linear equations.
free column.
A column of a matrix with no pivot after elimination; it is a combination of the pivot columns before it. Explained in Solving Ax = 0: pivot variables and special solutions.
row exchange.
Swapping two rows of a matrix, needed in elimination when a zero sits where a pivot should be.

Academic

problem set.
A weekly sheet of exercises that students work through and hand in, to practise what the lectures taught.
transcript.
A written record of exactly what was said in a recorded lecture, word for word.
citation.
A note saying exactly where a statement, number or formula comes from, so readers can check it.
on paper.
In theory or in a calculation, as opposed to in a real experiment or in reality.
argument.
A chain of reasoning that leads to a conclusion; in maths also the input of a function, such as x in sin x.
satisfy.
To make an equation or condition true.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).