MIT 18.06 Completed

Lecture 13 · First Test Review

Review part one: elimination, four subspaces and the main line of rank.

On this page

Quiz 1 review | Gilbert Strang | MIT 18.06 Linear Algebra

Lecture 13 / Total 35 Lectures |Part 2 · Orthogonality and Determinant

Video of this lecture: Bilibili p13 · First test review ↗(47:40)| MIT OCW official page ↗

Illustration: MIT OCW 18.06SC official lecture summary (CC BY-NC-SA 4.0) and Bilibili classroom video frames (time stamped), about 10 frames per lecture.

Introduction to this lecture

Review the first part of this lecture, that is, Ax=bA\boldsymbol{x}=\boldsymbol{b} This main line: elimination, rank, vector space and subspace, and by AA The four fundamental subspaces generated. The focus of the review is on the rectangular matrix. When the square matrix is ​​reversible, there are many things that you don’t need to think about in detail - the homogeneous equation has only zero solutions, and there is a unique solution for each right-hand side; once the matrix becomes a rectangle, these conclusions are no longer automatically true. Which ones are still true and which ones are not true are exactly what the test asks.

The way to review is to use old test questions instead of rereading the definitions. The questions often only give part of the information: a general solution, the shape of a block matrix, a sentence about subspace, and require you to turn the definition over and deduce the matrix itself or the dimension of a certain space. This type of questions seems to be diverse, but the answers all fall on the same table: as long as you get mm, nn, rr With three numbers, the dimensions of the four basic subspaces are all determined.

This lecture classifies the test points into five categories: dimensional accounting, inverse matrices from general solutions, true and false judgments of four basic subspaces, product matrices with reversible factors, and why row space and null space only intersect at the zero vector. The last question already points to the orthogonal nature of the next lecture.

Official Handout Summary Page 1/5

MIT OCW Official Lecture Notes Summary Page 1/5 (18.06SC Lecture 13 Summary, CC BY-NC-SA 4.0).

1. Test point 1: use m,n,rm,n,r Count four dimensions at once

Set AA is m×nm\times n matrix, rank rr. Which space the four basic subspaces live in and what their dimensions are are completely determined by these three numbers:

subspacespacedimension
column space C(A)C(A)Rm\mathbb{R}^mrr
nullspace N(A)N(A)Rn\mathbb{R}^nn−rn-r
row space C(AT)C(A^{\mathsf T})Rn\mathbb{R}^nrr
left nullspace N(AT)N(A^{\mathsf T})Rm\mathbb{R}^mm−rm-r

The first step in solving dimensionality problems is always to find mm and nn: See how many rows and columns the matrix has. In the second step, count the pivot (pivot) to get rr. The order of these two steps cannot be reversed because which number should be used to subtract? rr, depends on how many dimensions the vector in this null space has. The entire process can be fixed into four steps: reading the shape, determining m,nm,n, Number of main elements are obtained rr, find out the four dimensions according to the table; if any step in the middle is omitted, the answer may be misaligned as a whole.

Example 1. u,v,wu,v,w is R7\mathbb{R}^7 There are three non-zero vectors in the vector. How many dimensions may the subspace spanned by them have?

The answer is 1, 2, 3. It will not exceed 3. The span is generated by three vectors, with up to three independent directions; it cannot be 0, because every vector is non-zero, and the span contains at least one non-zero vector. If all three vectors are allowed to take zero vectors, then the subspace with dimension 0 {0}\{\boldsymbol{0}\} It must also be included - the “non-zero” condition plays this role in the question.

Example 2. UU is 5×35\times 3 is a ladder-shaped matrix with three pivot elements, r=3r=3.N(U)N(U) What is it?

There are only zero vectors. The reason should be said in terms of dimensions, not “because it is a ladder shape”: n=3n=3, r=3r=3, so dim⁡N(U)=3−3=0\dim N(U)=3-3=0. The three columns are all pivot columns and there are no free variables. Ux=0U\boldsymbol{x}=\boldsymbol{0} There is only zero solution.

Example 3. put two UU Stack it up B=[U2U]B=\begin{bmatrix}U\\2U\end{bmatrix}, it is 10×310\times 3.BB What are the rank, simplest form and null space of ?

You can see it clearly by eliminating elements: the lower half minus twice the upper half, BB form [U0]\begin{bmatrix}U\\0\end{bmatrix}, the rank is still 3, and the null space is still {0}\{\boldsymbol{0}\}- Repeating the same line does not lead to new directions. To get it all the way to the row reduced echelon form, just normalize the pivots to 1 and clear the elements above the pivots to zero; the zero row is already at the bottom.

Example 4. Made of four blocks C=[UUU0]C=\begin{bmatrix}U&U\\U&0\end{bmatrix}, it is 10×610\times 6.CC What is the rank of ? N(CT)N(C^{\mathsf T}) What are the dimensions of ?

Still doing block elimination. Subtract the upper half of the five elements from the lower half of the five elements, and we get [UU0−U]\begin{bmatrix}U&U\\0&-U\end{bmatrix}; Then eliminate the second piece of the upper half with the lower half, that is, add the upper half to the lower half, and we get

[U00−U].\begin{bmatrix}U&0\\0&-U\end{bmatrix}.

two UU Each has three main elements and does not interfere with each other, so r=6r=6.

Note the difference from Example 3: UU The two zero rows of the matrix fall into the middle of the matrix after splicing. When converting the rows into their simplest form, they should be sunk to the bottom and then normalized by the pivot element.

thus

dim⁡N(CT)=m−r=10−6=4.\dim N(C^{\mathsf T})=m-r=10-6=4 .

The most common mistake here is which number to subtract in the last step: CTC^{\mathsf T} is 6×106\times 10, the vector in its null space belongs to R10\mathbb{R}^{10}, so take m=10m=10 To subtract; if you use column numbers conveniently 66 If you subtract, you will get the wrong answer of 0. In the same question, two zero spaces must also be distinguished: CC The number of columns is 6 and the rank is 6, so N(C)N(C) Only the zero vector remains, and N(CT)N(C^{\mathsf T}) It is four-dimensional, and the two are not the same thing.

Video 00:11:37: Classroom blackboard writing

Video 00:11:37|Approximately corresponding to Section 1 “1. Test Point 1: Use m,n,rm,n,r “Count four dimensions at once”.

Official Handout Summary Page 2/5

MIT OCW Official Lecture Notes Summary Page 2/5 (18.06SC Lecture 13 Summary, CC BY-NC-SA 4.0).

2. Test point 2: Reverse the matrix from a general solution

The second type of questions is asked backwards: no matrix is given, only an equation and its general solution are given, and you are asked to find the matrix.

Set Ax=bA\boldsymbol{x}=\boldsymbol{b} The right end of is b=(2,4,2)\boldsymbol{b}=(2,4,2), the general interpretation is

x=[200]+c1[110]+c2[001].\boldsymbol{x}=\begin{bmatrix}2\\0\\0\end{bmatrix} +c_1\begin{bmatrix}1\\1\\0\end{bmatrix} +c_2\begin{bmatrix}0\\0\\1\end{bmatrix}.

Ask for AA The row space dimension of AA itself. The method is to translate each piece of the general explanation into AA of a message.

The first step is to determine a column for the particular solution. order c1=c2=0c_1=c_2=0, the special solution is xp=(2,0,0)\boldsymbol{x}_p=(2,0,0). multiply by AA Only the first component plays a role, so AxpA\boldsymbol{x}_p equal to twice the first column; it should be equal to b=(2,4,2)\boldsymbol{b}=(2,4,2), divide both sides by 2, the first column is (1,2,1)(1,2,1).

The second step is to count the free variables to get the rank. There are two arbitrary constants in the general solution, indicating that dim⁡N(A)=2\dim N(A)=2; x\boldsymbol{x} is three-dimensional, so n=3n=3, so

r=n−dim⁡N(A)=3−2=1.r=n-\dim N(A)=3-2=1 .

The dimension of the row space is equal to rank, so the answer is 1.

The third step is to translate the basis vectors of the null space into column-to-column relationships one by one. (0,0,1)(0,0,1) In null space, explain Ax=0A\boldsymbol{x}=\boldsymbol{0} The third column is allowed to cancel when multiplied by a factor of 1, i.e. the third column is a zero vector. (1,1,0)(1,1,0) In the null space, it means that the first column plus the second column is zero, and the second column is equal to −(1,2,1)-(1,2,1). So

A=[1−102−201−10].A=\begin{bmatrix} 1&-1&0\\ 2&-2&0\\ 1&-1&0 \end{bmatrix}.

Test: The first and third rows are the same, the second row is twice the first row, the rank is indeed 1; the column space is (1,2,1)(1,2,1) multiples of all. Ask again “for which ones?” b\boldsymbol{b} The equation is solvable”, the answer is all (1,2,1)(1,2,1) multiples. Given by the question (2,4,2)=2(1,2,1)(2,4,2)=2(1,2,1) Exactly qualified; because r=1<m=3r=1<m=3, the column space is just R3\mathbb{R}^3 A straight line in , most of them b\boldsymbol{b} None of them are in the column space.

The approach to this type of problem can be memorized into three sentences: the specific solution determines the sequence, the free variable determines the rank, and the basis vectors in the null space determine the sequence relationship. On the other hand, if you are given a general solution to a matrix, you need to eliminate elements, find the pivot column, take turns taking 1 for the free variables, and write out the special solution and add the null space.

The error-prone point is to read the zero-space vector as a row relationship. (0,0,1)(0,0,1) It says “the third column is all zeros”, not “the third row is all zeros”; (1,1,0)(1,1,0) It is said that the sum of columns and columns is zero. The null space vector is AA The coefficient of each column, its corresponding object is always the column.

Video 00:18:07: Classroom blackboard writing

Video 00:18:07 | Approximately corresponding to Section 2 “2. Test Point 2: Reverse the Matrix from a General Solution”.

3. Test point 3: Quick judgment of four basic subspaces

A large part of the review class is this kind of one-sentence true-false questions, which are quick to answer and also test the familiarity with definitions. The following are the propositions reviewed in this lecture.

There is a time-saving order for doing true and false questions: if you want to assert “false”, you only need to cite a counterexample; if you want to assert “true”, you must give a reason that is true for all matrices. Citing a few examples does not count as proof. When you get stuck, try the extreme case first - make the matrix reversible, zero matrix, or rank 1 matrix. You can often tell at a glance which type of matrix the proposition fails.

The null space of the square matrix and the null space of the transpose. If AA It is a square matrix and N(A)={0}N(A)=\{\boldsymbol{0}\}, then N(AT)={0}N(A^{\mathsf T})=\{\boldsymbol{0}\}. real. square formation m=nm=n, dim⁡N(A)=0\dim N(A)=0 given r=n=mr=n=m, so dim⁡N(AT)=m−r=0\dim N(A^{\mathsf T})=m-r=0.

Invertible matrices do not form subspaces. All 5×55\times 5 The matrix is a 25-dimensional vector space, in which the invertible matrix is No subspace. The most direct reason: the zero matrix does not belong to it, and the subspace must contain zero vectors. The universe of singular matrices is also not a subspace - the sum of two singular matrices is entirely possible to be invertible, e.g. [1000]+[0001]=I\begin{bmatrix}1&0\\0&0\end{bmatrix}+\begin{bmatrix}0&0\\0&1\end{bmatrix}=I.

B2=0B^2=0 Whether to launch B=0B=0? False. The counterexample is

B=[0100],B2=[0000].B=\begin{bmatrix}0&1\\0&0\end{bmatrix}, \qquad B^2=\begin{bmatrix}0&0\\0&0\end{bmatrix}.

This matrix will appear again and again later in the course as an “example of what went wrong.”

mm equation mm unknowns and column vectors are linearly independent, whether for each b\boldsymbol{b} Can all be solved? True. Column independent r=m=nr=m=n, AA reversible, x=A−1b\boldsymbol{x}=A^{-1}\boldsymbol{b} to any b\boldsymbol{b} There are solutions. This is a “good situation” when a square matrix is ​​reversible, but don’t regard it as the only situation. The rectangular matrix is ​​the focus of the review.

m=nm=n When row space equals column space? False. take A=[0100]A=\begin{bmatrix}0&1\\0&0\end{bmatrix}, the row space is (0,1)(0,1) is a multiple of , the column space is (1,0)(1,0) Multiples of , two different straight lines. A symmetric matrix will definitely make the two coincide - the rows and columns are the same batch of vectors after transposition.

AA with −A-A Have the same four subspaces? True. The overall sign change does not change any Zhang Cheng, Ax=0A\boldsymbol{x}=\boldsymbol{0} with −Ax=0-A\boldsymbol{x}=\boldsymbol{0} Same explanation.

If A,BA,B There are the same four subspaces, AA whether it is BB Multiples of? False. Take any two 6×66\times 6 Invertible matrix, the four subspaces are R6,R6,{0},{0}\mathbb{R}^6,\mathbb{R}^6,\{\boldsymbol{0}\},\{\boldsymbol{0}\}, exactly the same, but there is generally no multiple relationship between the two invertible matrices. The only thing that can be deduced is “the same rank”; the four subspaces record the direction, not the role of the matrix in the direction.

Exchange AA Which subspaces are unchanged in the two rows? The row space and null space remain unchanged, but the column space generally changes. The two rows are a set of generated vectors in the row space. Changing the order does not change the span; exchanging the order of the equations does not change the solution set. Column spaces are different: [1200]\begin{bmatrix}1&2\\0&0\end{bmatrix} The column space is (1,0)(1,0) A multiple of , after line breaks, it becomes (0,1)(0,1) multiples.

Finally, remember the two extremes of full rank, which are the general outlines of true-false questions. r=mr=m (The line is full of rank, m≤nm\le n) when the column space is the entire Rm\mathbb{R}^m, each b\boldsymbol{b} can be solved, but generally not unique, because dim⁡N(A)=n−m≥0\dim N(A)=n-m\ge 0.r=nr=n (Full rank, n≤mn\le m), the null space has only zero vectors, and the solution is unique if it exists, but not every b\boldsymbol{b} All in column space.

Official Handout Summary Page 3/5

MIT OCW Official Lecture Notes Summary Page 3/5 (18.06SC Lecture 13 Summary, CC BY-NC-SA 4.0).

Video 00:25:26: Classroom blackboard writing

Video 00:25:26 | Approximately corresponding to Section 3 “3. Test Point 3: Rapid Judgment of Four Basic Subspaces”.

Video 00:30:59: Classroom blackboard writing

Video 00:30:59 | Approximately corresponding to Section 3 “3. Test Point 3: Rapid Judgment of Four Basic Subspaces”.

4. Test Point 4: For products with reversible factors, first read the structure before writing.

There is a type of question where a matrix is written as the product of two matrices. Direct multiplication is time-consuming and easy to make mistakes; the correct approach is to first see the structure clearly.

Set B=CDB=CD, among which

C=[110010101],D=[10−12011−10000].C=\begin{bmatrix}1&1&0\\0&1&0\\1&0&1\end{bmatrix}, \qquad D=\begin{bmatrix}1&0&-1&2\\0&1&1&-1\\0&0&0&0\end{bmatrix}.

CC is 3×33\times 3, DD is 3×43\times 4, so BB is 3×43\times 4, to find the null space, we need to find R4\mathbb{R}^4 vector in .

Look first CC. Its three columns are (1,0,1)(1,0,1), (1,1,0)(1,1,0), (0,0,1)(0,0,1). The second column has a 1 in the second component, and the other two columns have a 0 in that position, so any combination equal to zero must first force the coefficient of the second column to 0; the remaining two columns are obviously irrelevant. Therefore CC Reversible.

Key takeaways: CC Reversible N(CD)=N(D)N(CD)=N(D). On the one hand, Dx=0D\boldsymbol{x}=\boldsymbol{0} Take left on both sides CC Got CDx=0CD\boldsymbol{x}=\boldsymbol{0};On the other hand, CDx=0CD\boldsymbol{x}=\boldsymbol{0} Take left on both sides C−1C^{-1} Got Dx=0D\boldsymbol{x}=\boldsymbol{0}. Invertible matrix left multiplication will not compress non-zero vectors to zero, and it will not change the null space. The same reason is given r(B)=r(D)=2r(B)=r(D)=2.

So just solve Dx=0D\boldsymbol{x}=\boldsymbol{0}.DD The pivot columns of are columns 1 and 2, and the free variables are x3,x4x_3,x_4;Write the previous two lines into chunked form [IF]\begin{bmatrix}I&F\end{bmatrix} (The third line is all zeros), where

F=[−121−1],N(D)=[−FI]=[1−2−111001].F=\begin{bmatrix}-1&2\\1&-1\end{bmatrix}, \qquad N(D)=\begin{bmatrix}-F\\I\end{bmatrix} =\begin{bmatrix}1&-2\\-1&1\\1&0\\0&1\end{bmatrix}.

The two columns are the two basis vectors of the null space: x3=1,x4=0x_3=1,x_4=0 given s1=(1,−1,1,0)\boldsymbol{s}_1=(1,-1,1,0), x4=1,x3=0x_4=1,x_3=0 given s2=(−2,1,0,1)\boldsymbol{s}_2=(-2,1,0,1). Substitute verification: Ds1D\boldsymbol{s}_1 The first line of is 1−1=01-1=0, the second line is −1+1=0-1+1=0. Note that the upper block of the null space matrix is −F-F instead of FF: The main variable is equal to “negative FF Multiplying free variables”, with the sign reversed, is the most common mistake here.

Another question: Solution Bx=(1,0,1)B\boldsymbol{x}=(1,0,1). No need to multiply out BB.BB The first column of is CC multiply DD the first column of (1,0,0)(1,0,0), that is CC the first column of (1,0,1)(1,0,1), exactly equal to the right end, so the special solution is xp=(1,0,0,0)\boldsymbol{x}_p=(1,0,0,0) That’s it, the general interpretation is

x=xp+c1s1+c2s2.\boldsymbol{x}=\boldsymbol{x}_p+c_1\boldsymbol{s}_1+c_2\boldsymbol{s}_2 .

The special solution is not unique. Any solution that satisfies the equation can serve as a special solution, and the one with the least effort is chosen. The structure of “general solution = a special solution + null space” does not depend on the size of the matrix or the finite dimension of the system of equations. It is a general pattern of linear systems.

Official Handout Summary Page 4/5

MIT OCW Official Lecture Notes Summary Page 4/5 (18.06SC Lecture 13 Summary, CC BY-NC-SA 4.0).

Video 00:36:48: Classroom blackboard writing

Video 00:36:48 | Approximately corresponding to Section 4 “4. Test Point 4: Products with reversible factors, first look at the structure before writing”.

5. Test point 5: Why do row spaces and null spaces have no common non-zero vectors?

The last question is forward-looking. vector v=(1,2,3)\boldsymbol{v}=(1,2,3) Can it be both AA A certain line of , and it falls in N(A)N(A) Where?

No. Suppose the first line is v\boldsymbol{v}, and v∈N(A)\boldsymbol{v}\in N(A), then Av=0A\boldsymbol{v}=\boldsymbol{0}; but AvA\boldsymbol{v} The first component of is v\boldsymbol{v} Dot product with itself:

vTv=[123][123]=1+4+9=14≠0.\boldsymbol{v}^{\mathsf T}\boldsymbol{v} =\begin{bmatrix}1&2&3\end{bmatrix}\begin{bmatrix}1\\2\\3\end{bmatrix} =1+4+9=14\neq 0 .

Contradiction, it can be seen that such a matrix cannot be assembled: the rest of the matrix is filled in casually, and the conflict only occurs in this row.

The conclusion is: both row space and zero space live in Rn\mathbb{R}^n , but only intersect at the zero vector. Putting the two pieces of information together: the line space is rr dimension, the null space is n−rn-r dimensional, both Rn\mathbb{R}^n Within, the dimensions exactly add up to nn, the intersection has only zero vectors - this is the dimensional precursor of the orthogonal complement. Going one step further, the null space and the row space are perpendicular to each other. The next lecture will start from here to talk about orthogonality and orthogonal complement.

Official Handout Summary Page 5/5

MIT OCW Official Lecture Notes Summary Page 5/5 (18.06SC Lecture 13 Summary, CC BY-NC-SA 4.0).

Summary of this lecture

  • The dimensions of the four basic subspaces are only given by m,n,rm,n,r Decision: Column space vs. row space is rr dimension, the null space is n−rn-r dimension, the left null space is m−rm-r dimension; solve the problem first m,nm,n, then count the main element to get rr.
  • R7\mathbb{R}^7 The subspace formed by three non-zero vectors in may be 1, 2, or 3 dimensions; the upper bound comes from “only three vectors”, and the exclusion of 0 dimensions comes from “non-zero”.
  • 5×35\times 3 If the matrix has three pivot elements, the null space only has zero vectors; put two such UU Stacked into 10×310\times 3 of B=[U2U]B=\begin{bmatrix}U\\2U\end{bmatrix}, the rank is still 3, and the zero row is already at the bottom.
  • block matrix C=[UUU0]C=\begin{bmatrix}U&U\\U&0\end{bmatrix} is 10×610\times 6, the block is digested into [U00−U]\begin{bmatrix}U&0\\0&-U\end{bmatrix}, the rank is 6, so dim⁡N(CT)=10−6=4\dim N(C^{\mathsf T})=10-6=4.
  • There are three clues to infer the matrix from the general solution: the specific solution determines a certain column, the number of free variables determines the rank, and the basis vectors in the null space give the relationship between columns; in this example, we get A=[1−102−201−10]A=\begin{bmatrix}1&-1&0\\2&-2&0\\1&-1&0\end{bmatrix}, r=1r=1, the solvable right-hand side is (1,2,1)(1,2,1) multiples.
  • Key points of the true-false question: If the null space of a square matrix is trivial, then the transposed null space is also trivial; neither the reversible matrix nor the singular matrix constitutes a subspace; B2=0B^2=0 Not launched B=0B=0; m=nm=n Row space is generally not equal to column space.
  • The same four subspaces can only deduce the same rank, but cannot deduce that the matrix is proportional; two 6×66\times 6 An invertible matrix is a counterexample.
  • Swap two rows to maintain the row space and null space, but the column space will change; there are two extremes of full rank r=mr=m with r=nr=n Determines solvability and uniqueness.
  • CC Reversible N(CD)=N(D)N(CD)=N(D), r(CD)=r(D)r(CD)=r(D), so the null space of the product does not need to be multiplied; DD The first two lines of are written as [IF]\begin{bmatrix}I&F\end{bmatrix}, the null space basis is [−FI]\begin{bmatrix}-F\\I\end{bmatrix}, the sign should be reversed.
  • The intersection of row space and null space has only zero vectors: if (1,2,3)(1,2,3) If it is a row and a zero-space vector at the same time, then there must be vTv=1+4+9=14\boldsymbol{v}^{\mathsf T}\boldsymbol{v}=1+4+9=14 equal to 00, a contradiction; the next lecture proves that these two spaces are orthogonal.

keywords

EnglishChineseOne sentence explanation
rankrankThe number of pivots is also the dimension of column space and row space.
column spacecolumn spaceAA All linear combinations of columns fall within Rm\mathbb{R}^m
nullspacenull spacesatisfy Ax=0A\boldsymbol{x}=\boldsymbol{0} of all x\boldsymbol{x}, falls on Rn\mathbb{R}^n
row spacerow spaceAA All linear combinations of rows, colocated with null space Rn\mathbb{R}^n
left nullspaceleft null spacesatisfy ATy=0A^{\mathsf T}\boldsymbol{y}=\boldsymbol{0} of y\boldsymbol{y}, falls on Rm\mathbb{R}^m
dimensiondimensionThe number of basis vectors in the space
basisbaseA set of vectors that span the entire space and are linearly independent
spanZhang ChengA subspace composed of all linear combinations of a set of vectors
linearly independentlinearly independentOnly all zero coefficients can combine to create a zero vector
free variablefree variableThe variable corresponding to the non-pivot column can be any
particular solutionspecial solutionsatisfy Ax=bA\boldsymbol{x}=\boldsymbol{b} a solution of
general solutionGeneral explanationSpecial solution plus any vector in null space
row reduced echelon formrow simplest formA ladder shape with the pivot element being 1, the remaining elements in the pivot column being zero, and the zero row sinking to the bottom
full rankfull rankr=mr=m or r=nr=n, solvability and uniqueness are respectively determined by the dimension on the other side
subspacesubspaceA set of vectors that are closed to addition and multiplication and contain zero vectors

← Lecture 12 | Course Catalog | Lecture 14 →

Machine-assisted translation · Read Chinese original