MIT 18.06 Completed

Lecture 34 · General Review

General review: eight main lines and core test points that connect the entire course.

On this page

Final course review | Gilbert Strang | MIT 18.06 Linear Algebra

Lecture 34 / Total 35 Lectures |Part 3 · Eigenvalues, positive definiteness and linear transformation

Video of this lecture: Bilibili p35 · General review ↗(43:26)| 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

The last lecture ties together the entire course with exam questions from previous years. The questions seem scattered, but they actually cover the main line of the course: a question about 3×n3\times n A matrix question asks about rank, column space, null space, determinant and positive certainty; a column vector combination question asks about the column view of matrix multiplication and the uniqueness of the solution; an orthogonal question asks about projection; a Markov matrix question asks about eigenvalues, traces and steady states; several questions 2×22\times2 The construction question of the projection matrix and A=SΛS−1A=S\Lambda S^{-1} Pull back again; the last least squares question brings together projection, normal equations and fitting straight lines.

Reviewing is not about reading Lecture 33 over again. What should be remembered is a chain of cause and effect: Ax=bA\boldsymbol x=\boldsymbol b Whether it can be solved and whether the solution is unique depends on m,n,rm,n,r Three numbers determine it; four basic subspaces are needed to see these three numbers clearly; rectangular matrices often have no solution, so they turn to orthogonality and projection, and use least squares to find the nearest solution; the determinant gives the square matrix a number, the eigenvalue gives the square matrix a set of directions, and positive certainty connects the two; the singular value decomposition (SVD) decomposes any matrix into “rotation-stretch-rotation”, and linear transformation shows that the matrix is just the coordinates of a certain transformation under a set of basis. The following seven sections are developed according to this chain. The first six sections each use a set of test questions in this lecture as a skeleton, and the last section gathers the entire course into a map.

Official Handout Summary Page 1/6

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

1. Rank rr: mm, nn, rr Three numbers determine solvability and uniqueness

The question is this: AA is m×nm\times n, rank (rank) is rr The matrix of Ax=(1,0,0)TA\boldsymbol x=(1,0,0)^{\mathsf T} No solution, Ax=(0,1,0)TA\boldsymbol x=(0,1,0)^{\mathsf T} There is exactly one solution. ask m,n,rm,n,r To what extent can it be determined.

The right end is a three-dimensional vector, so m=3m=3. There is an unsolvable right end, indicating that not every row has a pivot: when elimination reaches the end, at least one row becomes a zero row. This row is a linear combination of the remaining rows, column space. C(A)C(A) Just R3\mathbb R^3 the true subspace of , then r<mr<m. Another condition is stronger: once there is a solution, there is only one solution, indicating nullspace. N(A)N(A) There is nothing else except the zero vector, the number of free variables n−r=0n-r=0, that is r=nr=n, each column is linearly independent. The two conditions are one constraint row and one constraint column. rr Sandwiched in the middle; conversely, the verification is also smooth: r=mr=m This will allow each right-hand side to have a solution, contradicting the first condition; r<nr<n It will make it impossible to have a unique solution, which is inconsistent with the second condition. Together

r=n<m=3,n=r≤2.r=n<m=3,\qquad n=r\le 2 .

Specific examples can be taken

A=[010].A=\begin{bmatrix}0\\1\\0\end{bmatrix}.

it is 3×13\times1, rank 1: Ax=(0,1,0)TA\boldsymbol x=(0,1,0)^{\mathsf T} only x=1x=1, while (1,0,0)T(1,0,0)^{\mathsf T} Not in the column space, there is no solution. If you don’t want a matrix with only one column, add another column to the right (0,0,1)T(0,0,1)^{\mathsf T}, get 3×23\times2, r=n=2r=n=2 The matrix of , the column space becomes yzyz plane, (1,0,0)T(1,0,0)^{\mathsf T} Still can’t figure it out. This question states that “there is a solution if and only if b∈C(A)\boldsymbol b\in C(A)” and “only if and only if N(A)={0}N(A)=\{\boldsymbol 0\}“The two criteria were used at the same time.

Video 00:04:21: Classroom blackboard writing

Video 00:04:21|Approximately corresponding to Section 1 “1. Rank rr: mm, nn, rr Three numbers determine solvability and uniqueness”.

2. ATAA^{\mathsf T}A with AATAA^{\mathsf T}: Determinant, symmetry, positive certainty

The same question then asks three questions about whether they are true or false. The purpose is to squeeze several clues from the entire course into a matrix. Still take the top 3×23\times2 example, at this time m=3m=3, n=r=2n=r=2.

First sentence: det⁡(ATA)=det⁡(AAT)\det(A^{\mathsf T}A)=\det(AA^{\mathsf T}). False. ATAA^{\mathsf T}A is 2×22\times2, AATAA^{\mathsf T} is 3×33\times3, the two determinants are of fundamentally different orders. In this case ATA=I2A^{\mathsf T}A=I_2, the determinant is 1; AAT=diag⁡(0,1,1)AA^{\mathsf T}=\operatorname{diag}(0,1,1), the determinant is 0. What is really established is the difference between square matrices of the same order. det⁡(AB)=det⁡(BA)\det(AB)=\det(BA):If AA It is a square matrix itself, then

det⁡(ATA)=det⁡(AT)det⁡(A)=(det⁡A)2=det⁡(A)det⁡(AT)=det⁡(AAT).\det(A^{\mathsf T}A)=\det(A^{\mathsf T})\det(A)=(\det A)^2=\det(A)\det(A^{\mathsf T})=\det(AA^{\mathsf T}).

So this judgment is wrong AA It’s not a square matrix, it’s not the multiplicative property of the determinant that’s wrong.

Second sentence: ATAA^{\mathsf T}A Reversible. True. Generally, ATAA^{\mathsf T}A reversible if and only if AA The columns of are linearly independent, that is, r=nr=n. The key is ATAA^{\mathsf T}A with AA have the same null space: Ax=0A\boldsymbol x=\boldsymbol 0 given naturally ATAx=0A^{\mathsf T}A\boldsymbol x=\boldsymbol 0; conversely if ATAx=0A^{\mathsf T}A\boldsymbol x=\boldsymbol 0, multiply left xT\boldsymbol x^{\mathsf T} Got ∥Ax∥2=0\|A\boldsymbol x\|^2=0, there are still Ax=0A\boldsymbol x=\boldsymbol 0. This question r=nr=n, the null space only has zero vectors, ATAA^{\mathsf T}A Reversible - in this case it happens to be the identity matrix.

The third sentence: AATAA^{\mathsf T} Right concentration. False. AATAA^{\mathsf T} is always a symmetric matrix, always a square matrix, here again 3×33\times3, but its rank is equal to r=2r=2, dissatisfied with rank. The reason is AATy=0AA^{\mathsf T}\boldsymbol y=\boldsymbol 0 with ATy=0A^{\mathsf T}\boldsymbol y=\boldsymbol 0 Same solution (left multiplication yT\boldsymbol y^{\mathsf T} can deduce the latter from the former), so N(AAT)=N(AT)N(AA^{\mathsf T})=N(A^{\mathsf T}), dimension m−r=1m-r=1, the rank is only m−(m−r)=rm-(m-r)=r. So there is non-zero y\boldsymbol y such that AATy=0AA^{\mathsf T}\boldsymbol y=\boldsymbol 0, that is yTAATy=0\boldsymbol y^{\mathsf T}AA^{\mathsf T}\boldsymbol y=0, violate positive definite (positive definite) requires “for everything” y≠0\boldsymbol y\ne\boldsymbol 0 Yes yTMy>0\boldsymbol y^{\mathsf T}M\boldsymbol y>0”. This example AAT=diag⁡(0,1,1)AA^{\mathsf T}=\operatorname{diag}(0,1,1), the first line is all zeros. The correct statement that can be established is positive semidefinite (positive semidefinite): for any y\boldsymbol y,

yTAATy=∥ATy∥2≥0,\boldsymbol y^{\mathsf T}AA^{\mathsf T}\boldsymbol y=\|A^{\mathsf T}\boldsymbol y\|^2\ge 0,

And m>rm>r left nullspace N(AT)N(A^{\mathsf T}) It is non-trivial, and the equal sign can be obtained, so it cannot be strengthened into positive determination. This word “half” corresponds exactly to m−r>0m-r>0.

By the way, I can answer another little question: Find one that cannot be written as BTBB^{\mathsf T}B real matrix. BTBB^{\mathsf T}B It must be symmetric, so just give any asymmetric matrix, for example

[0100].\begin{bmatrix}0&1\\0&0\end{bmatrix}.

What really needs to be remembered is BTBB^{\mathsf T}B Two structural properties of: symmetry and positive semi-definite.

Arranging the dimensions of the four fundamental subspaces together, these judgments have a unified basis:

dim⁡C(A)=r,dim⁡N(A)=n−r,dim⁡C(AT)=r,dim⁡N(AT)=m−r.\dim C(A)=r,\quad \dim N(A)=n-r,\quad \dim C(A^{\mathsf T})=r,\quad \dim N(A^{\mathsf T})=m-r .

The four dimensions of this question are in order 2,0,2,12,0,2,1. The last item is the key to the next question: ATA^{\mathsf T} is 2×32\times3, number of rows n=2n=2 is equal to rank and full of rank, so ATy=cA^{\mathsf T}\boldsymbol y=\boldsymbol c for each c∈R2\boldsymbol c\in\mathbb R^2 There are solutions; and N(AT)N(A^{\mathsf T}) It is one-dimensional and has one free variable, so there are infinite solutions. Replace with ATA^{\mathsf T} after mm with nn The role reversal is the easiest to miscalculate.

Official Handout Summary Page 2/6

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

3. Combination of columns, null space and uniqueness of solution

The second question is for A=[v1 v2 v3]A=[\boldsymbol v_1\ \boldsymbol v_2\ \boldsymbol v_3], first solve Ax=v1−v2+v3A\boldsymbol x=\boldsymbol v_1-\boldsymbol v_2+\boldsymbol v_3. The column view of a matrix multiplied by a vector is

Ax=x1v1+x2v2+x3v3,A\boldsymbol x=x_1\boldsymbol v_1+x_2\boldsymbol v_2+x_3\boldsymbol v_3,

The coefficient group has been written on the right end, and you can get it by comparing

x=[1−11].\boldsymbol x=\begin{bmatrix}1\\-1\\1\end{bmatrix}.

This is the most basic way to read matrix multiplication: the product is xx linear combination of components.

Then ask: If v1−v2+v3=0\boldsymbol v_1-\boldsymbol v_2+\boldsymbol v_3=\boldsymbol 0, is the solution unique? Not unique. This equation is equivalent to v3=v2−v1\boldsymbol v_3=\boldsymbol v_2-\boldsymbol v_1, the third column falls in the plane formed by the first two columns; at this time x=(1,−1,1)T\boldsymbol x=(1,-1,1)^{\mathsf T} falls in the null space, any solution plus it is still a solution, because A(x+ξ)=AxA(\boldsymbol x+\boldsymbol\xi)=A\boldsymbol x. Uniqueness has always been associated with null space: N(A)={0}N(A)=\{\boldsymbol 0\} Equivalent to r=nr=n, which is equivalent to each column being linearly independent. On the other hand, if the three columns are linearly independent and the combination is zero, it can only be inferred that all three coefficients are zero. N(A)N(A) Only the zero vector remains, and the solution is unique. As long as you find that one column is a combination of the other columns, you already know that the rank is insufficient and the solution is not unique; this is two sides of the same thing as the condition of “exactly one solution” in Section 1.

4. Orthogonal projection: closest point, projection matrix and least squares

Projection is the answer to “What to do when there is no solution?” This section connects the three projections in the course.

Let’s look at the orthonormal case first. If v1,v2,v3\boldsymbol v_1,\boldsymbol v_2,\boldsymbol v_3 orthonormal (usually rewritten as q1,q2,q3\boldsymbol q_1,\boldsymbol q_2,\boldsymbol q_3), ask span⁡{v1,v2}\operatorname{span}\{\boldsymbol v_1,\boldsymbol v_2\} Zhongli v3\boldsymbol v_3 Which combination is the closest point. The answer is 0⋅v1+0⋅v2=00\cdot\boldsymbol v_1+0\cdot\boldsymbol v_2=\boldsymbol 0: Three vectors are orthogonal to each other, v3\boldsymbol v_3 Perpendicular to the entire plane, its projection on the plane is the zero vector. Use standard basis e1,e2,e3\boldsymbol e_1,\boldsymbol e_2,\boldsymbol e_3 Thinking about it again makes it clearest——xyxy away from the plane e3\boldsymbol e_3 The closest point is the origin.

Look at another straight line. passed a=(4,−3)\boldsymbol a=(4,-3) is a straight line, its projection matrix is

P=aaTaTa=125[16−12−129].P=\frac{\boldsymbol a\boldsymbol a^{\mathsf T}}{\boldsymbol a^{\mathsf T}\boldsymbol a}=\frac1{25}\begin{bmatrix}16&-12\\-12&9\end{bmatrix}.

The principle of the formula is the same as that of least squares: the points on the straight line are a\boldsymbol a multiples of b\boldsymbol b Throw it over, the coefficient is aTb/aTa\boldsymbol a^{\mathsf T}\boldsymbol b/\boldsymbol a^{\mathsf T}\boldsymbol a. Each column of the resulting matrix is a\boldsymbol a A multiple of , rank is 1; it is symmetrical; projecting the vector on the straight line again remains unchanged, that is P2=PP^2=P.

Finally, there is a complete calculation example. Set

A=[101112],b=[341],x=[cd],A=\begin{bmatrix}1&0\\1&1\\1&2\end{bmatrix},\qquad \boldsymbol b=\begin{bmatrix}3\\4\\1\end{bmatrix},\qquad \boldsymbol x=\begin{bmatrix}c\\d\end{bmatrix},

The first column corresponds to the constant term, and the second column corresponds to t=0,1,2t=0,1,2, so cc is the intercept, dd is the slope. Three equations with two unknowns generally have no solution; least squares (least squares) solution x^\hat{\boldsymbol x} satisfy normal equation(normal equations)

ATAx^=ATb.A^{\mathsf T}A\hat{\boldsymbol x}=A^{\mathsf T}\boldsymbol b .

This equation comes from orthogonality: the residuals of least squares b−Ax^\boldsymbol b-A\hat{\boldsymbol x} Must be with C(A)C(A) Each vector in is orthogonal to AA Each column of is orthogonal, that is, AT(b−Ax^)=0A^{\mathsf T}(\boldsymbol b-A\hat{\boldsymbol x})=\boldsymbol 0, the shifted term is the normal equation. In this example, the two columns are linearly independent. det⁡(ATA)=3⋅5−3⋅3=6≠0\det(A^{\mathsf T}A)=3\cdot5-3\cdot3=6\ne0, so x^\hat{\boldsymbol x} Only.

Work it out item by item ATA=[3335]A^{\mathsf T}A=\begin{bmatrix}3&3\\3&5\end{bmatrix}, ATb=(8,6)TA^{\mathsf T}\boldsymbol b=(8,6)^{\mathsf T}, the solution is

c^=113,d^=−1.\hat c=\frac{11}{3},\qquad \hat d=-1 .

put c^,d^\hat c,\hat d Replacing: ATAx^A^{\mathsf T}A\hat{\boldsymbol x} The two components of are respectively 3c^+3d^=83\hat c+3\hat d=8, 3c^+5d^=63\hat c+5\hat d=6, exactly equal to ATbA^{\mathsf T}\boldsymbol b. The projection vector is

p=Ax^=113[111]−[012]=[11/38/35/3],\boldsymbol p=A\hat{\boldsymbol x}=\frac{11}{3}\begin{bmatrix}1\\1\\1\end{bmatrix}-\begin{bmatrix}0\\1\\2\end{bmatrix} =\begin{bmatrix}11/3\\8/3\\5/3\end{bmatrix},

it is b\boldsymbol b in column space C(A)C(A) The projection on; the corresponding fitting straight line is y=113−ty=\frac{11}{3}-t, in t=0,1,2t=0,1,2 The heights at are in order 11/3,8/3,5/311/3,8/3,5/3, with data 3,4,13,4,1 closest. Generally, to C(A)C(A) The projection matrix is P=A(ATA)−1ATP=A(A^{\mathsf T}A)^{-1}A^{\mathsf T}, calculated according to the straight line formula above PP is it in n=1n=1 special case.

Last question: Find a non-zero one b\boldsymbol b, so that the least squares solution is zero. The condition is b\boldsymbol b Orthogonal to both columns, that is ATb=0A^{\mathsf T}\boldsymbol b=\boldsymbol 0;at this time b\boldsymbol b The projection onto the column space is zero and the normal equation gives ATAx^=0A^{\mathsf T}A\hat{\boldsymbol x}=\boldsymbol 0, while ATAA^{\mathsf T}A Reversible (column independent), so x^=0\hat{\boldsymbol x}=\boldsymbol 0. take

b=[1−21],\boldsymbol b=\begin{bmatrix}1\\-2\\1\end{bmatrix},

it is related to (1,1,1)T(1,1,1)^{\mathsf T} and (0,1,2)T(0,1,2)^{\mathsf T} The inner products of are all 0. Geometrically, b\boldsymbol b The whole falls C(A)C(A) In the orthogonal complement of , the column space vector closest to it can only be zero.

Official Handout Summary Page 3/6

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

Video 00:18:11: Classroom blackboard writing

Video 00:18:11 | Approximately corresponding to Section 4 “4. Orthogonal projection: closest point, projection matrix and least squares”.

Video 00:23:55: Classroom blackboard writing

Video 00:23:55 | Approximately corresponding to Section 4 “4. Orthogonal projection: closest point, projection matrix and least squares”.

5. Eigenvalues, diagonalization and matrix reconstruction from eigenpairs

back again 2×22\times2 Question: Ask for one 2×22\times2 matrix, the eigenvalues are 00 and 33, the corresponding eigenvectors (eigenvector) are respectively (1,2)T(1,2)^{\mathsf T} with (2,1)T(2,1)^{\mathsf T}. This time the direction is reversed - usually eigenvalues ​​are found for matrices, here matrices are found for eigenpairs.

Arrange feature vectors in columns SS, the eigenvalues are arranged in a diagonal matrix Λ\Lambda, then AS=SΛAS=S\Lambda, so

A=SΛS−1,S=[1221],Λ=[0003].A=S\Lambda S^{-1},\qquad S=\begin{bmatrix}1&2\\2&1\end{bmatrix},\quad \Lambda=\begin{bmatrix}0&0\\0&3\end{bmatrix}.

The reason is simple: SS The columns of are feature vectors, AS=SΛAS=S\Lambda But it is Axi=λixiA\boldsymbol x_i=\lambda_i\boldsymbol x_i Write this set of equations side by side; multiply both sides by the right S−1S^{-1} Just solve it AA.SS The determinant of is −3-3, so S−1=−13[1−2−21]S^{-1}=-\frac13\begin{bmatrix}1&-2\\-2&1\end{bmatrix}. Multiply:

SΛ=[0603],A=[0603][−1/32/32/3−1/3]=[4−22−1].S\Lambda=\begin{bmatrix}0&6\\0&3\end{bmatrix},\qquad A=\begin{bmatrix}0&6\\0&3\end{bmatrix}\begin{bmatrix}-1/3&2/3\\2/3&-1/3\end{bmatrix} =\begin{bmatrix}4&-2\\2&-1\end{bmatrix}.

Verify: A(1,2)T=(0,0)T=0⋅(1,2)TA(1,2)^{\mathsf T}=(0,0)^{\mathsf T}=0\cdot(1,2)^{\mathsf T}, A(2,1)T=(6,3)T=3⋅(2,1)TA(2,1)^{\mathsf T}=(6,3)^{\mathsf T}=3\cdot(2,1)^{\mathsf T}, both feature pairs are correct. The premise for this structure to be established is that SS Reversible, that is, the two eigenvectors are linearly independent, that is, the matrix can diagonalization (diagonalization); when the feature vector is not enough SS If it cannot be taken out, the matrix cannot be diagonalized.

There is another question in the same group of questions: Give a matrix that has orthogonal eigenvectors but is not symmetric. 2×22\times2 matrix. The eigenvectors of symmetric matrices can be orthogonal, which is a familiar family; but orthogonal eigenvectors are not exclusive to it. Antisymmetric matrix (skew-symmetric matrix) such as

[0−110]\begin{bmatrix}0&-1\\1&0\end{bmatrix}

The characteristic value of is ±i\pm\mathrm i, the eigenvectors are complex vectors and orthogonal to each other; orthogonal matrices such as rotation matrices [cos⁡θ−sin⁡θsin⁡θcos⁡θ]\begin{bmatrix}\cos\theta&-\sin\theta\\\sin\theta&\cos\theta\end{bmatrix} Same thing. Therefore, “eigenvector orthogonality” cannot infer “matrix symmetry”.

Official Handout Summary Page 4/6

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

Video 00:28:14: Classroom blackboard writing

Video 00:28:14 | Approximately corresponding to Section 5 “5. Eigenvalues, diagonalization and matrix reconstruction from eigenpairs”.

6. Markov matrix and long-term steady state

The question about Markov matrix is a 3×33\times3 A matrix where the elements in each column are nonnegative and sum to 1:

A=[0.20.40.30.40.20.30.40.40.4].A=\begin{bmatrix}0.2&0.4&0.3\\0.4&0.2&0.3\\0.4&0.4&0.4\end{bmatrix}.

Find its three eigenvalues. Let’s first look at the relationship between columns: the first column plus the second column is equal to twice the third column, that is a1+a2=2a3\boldsymbol a_1+\boldsymbol a_2=2\boldsymbol a_3, the three columns are linearly related, so AA singular, λ1=0\lambda_1=0, the null space contains (1,1,−2)T(1,1,-2)^{\mathsf T}. And since the sum of each column is 1, AT(1,1,1)T=(1,1,1)TA^{\mathsf T}(1,1,1)^{\mathsf T}=(1,1,1)^{\mathsf T}, so λ2=1\lambda_2=1 Also AA eigenvalues (AA with ATA^{\mathsf T} have the same eigenvalues, but λ=1\lambda=1 Belong to AA The eigenvectors of are also required separately). The last one is determined by the trace: the sum of the diagonals is 0.2+0.2+0.4=0.80.2+0.2+0.4=0.8, and the sum of eigenvalues is equal to the trace, so 0+1+λ3=0.80+1+\lambda_3=0.8, λ3=−0.2\lambda_3=-0.2.

Then let the process take place. Set uk=Aku0\boldsymbol u_k=A^k\boldsymbol u_0, initial value u0=(0,10,0)T\boldsymbol u_0=(0,10,0)^{\mathsf T}, that is, ten individuals start from the second state. put u0\boldsymbol u_0 Expand by eigenvectors,

uk=c10kx1+c21kx2+c3(−0.2)kx3.\boldsymbol u_k=c_1 0^k\boldsymbol x_1+c_2 1^k\boldsymbol x_2+c_3(-0.2)^k\boldsymbol x_3 .

when k≥1k\ge1, the items corresponding to zero eigenvalues disappear immediately; (−0.2)k(-0.2)^k The amplitude of is getting smaller and smaller, the signs alternate, and it tends to zero; only 1k1^k Which one is left, the limit is c2x2c_2\boldsymbol x_2, this is Steady state(steady state).λ=1\lambda=1 The eigenvector solution of (A−I)x=0(A-I)\boldsymbol x=\boldsymbol 0:

A−I=[−0.80.40.30.4−0.80.30.40.4−0.6],x2=[334],A-I=\begin{bmatrix}-0.8&0.4&0.3\\0.4&-0.8&0.3\\0.4&0.4&-0.6\end{bmatrix},\qquad \boldsymbol x_2=\begin{bmatrix}3\\3\\4\end{bmatrix},

Line by line verification (A−I)x2=0(A-I)\boldsymbol x_2=\boldsymbol 0 All are established. coefficient c2c_2 There is no need to solve a linear system of equations: the Markov process neither increases nor decreases, the sum of the components remains the same, the initial total is 10, and x2\boldsymbol x_2 The sum of the components of is exactly 10, so c2=1c_2=1, the steady state is

u∞=[334].\boldsymbol u_\infty=\begin{bmatrix}3\\3\\4\end{bmatrix}.

The standard routine for this type of question is: use the column sum to be 1 to get λ=1\lambda=1, use Strange to get λ=0\lambda=0, use trace to get the last eigenvalue, and then use eigenvector expansion to see the long-term limit.

7. Whole course map: eight main lines and four decompositions

Arrange today’s questions according to the main line of the course, and a map of the entire course will appear.

Elimination and LU. The number of pivots is the rank; if there is a pivot in each row, there is a solution to any right end; if there is no pivot, a certain row is a combination of the other rows. elimination bar AA written as LULU;When there is row exchange, it is written as PA=LUPA=LU, among which PP is the permutation matrix. And ∣det⁡A∣|\det A| Equal to the product of the pivots, swapping rows will bring only one symbol.

four subspaces. Column space and null space, row space and left null space, the dimensions are respectively r,n−r,r,m−rr,n-r,r,m-r;The null space is the orthogonal complement of the row space, and the left null space is the orthogonal complement of the column space. Section 2 that ATy=cA^{\mathsf T}\boldsymbol y=\boldsymbol c There are infinite solutions, the dimension is used m−rm-r.

Orthographic projection. ATAA^{\mathsf T}A Invertible if and only if columns are independent; projection matrix P=A(ATA)−1ATP=A(A^{\mathsf T}A)^{-1}A^{\mathsf T} put b\boldsymbol b vote to C(A)C(A);The least squares solution is given by the normal equation ATAx^=ATbA^{\mathsf T}A\hat{\boldsymbol x}=A^{\mathsf T}\boldsymbol b is given; Gram-Schmidt orthogonalization gives A=QRA=QR.

determinant. det⁡(AB)=det⁡Adet⁡B\det(AB)=\det A\det B, det⁡AT=det⁡A\det A^{\mathsf T}=\det A, ∣det⁡A∣|\det A| It is the product of the principal element and the volume; det⁡A≠0\det A\ne0 if and only if AA Reversible. One more reminder: det⁡(AB)=det⁡(BA)\det(AB)=\det(BA) Only talk between phalanxes of the same level.

Eigenvalues. solution det⁡(A−λI)=0\det(A-\lambda I)=0 Get the roots of the characteristic polynomial; A=SΛS−1A=S\Lambda S^{-1} Transform the power, exponent, and difference equations of the matrix into pairs of eigenvalues and calculate them one by one; the eigenvalues of the Markov matrix satisfy ∣λ∣≤1|\lambda|\le1 And there must be λ=1\lambda=1, when the absolute values of the remaining eigenvalues are less than 1, the long-term behavior is determined by λ=1\lambda=1 Determined by the eigenvector.

Positive certainty. Positive definite means that the symmetric matrix is non-zero for all x\boldsymbol x All xTAx>0\boldsymbol x^{\mathsf T}A\boldsymbol x>0, which is equivalent to all eigenvalues being positive, all principals being positive, and all leading principal minors being positive. ATAA^{\mathsf T}A Positive definite when the columns are independent, AATAA^{\mathsf T} in m>rm>r Time can only be semi-positive.

SVD. Any matrix—including rectangular matrices and singular matrices—can be written as A=UΣVTA=U\Sigma V^{\mathsf T}, that is, “rotation-stretch-rotation”; the number of non-zero singular values is equal to the rank, and low-rank approximation is the source of image compression. It is the last decomposition of the course and the most general decomposition.

Linear transformation. After selecting the basis, the linear transformation is a matrix; changing a set of basis (change of basis), the matrix becomes M−1AMM^{-1}AM, similar matrices represent the same transformation.

When reviewing, do not remember by “which lecture”, but by “which decomposition and subspace this question is asking about.” Today’s question is just a rearrangement of eight main lines: rank, four subspaces, determinants, and positive certainty are squeezed into the first question. Projection and least squares are combined into one group, and eigenvalues ​​and Markov processes are combined into another group.

Official Handout Summary Page 5/6

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

Video 00:39:05: Classroom blackboard writing

Video 00:39:05 | Approximately corresponding to section 7 “7. Whole lesson map: eight main lines and four decompositions”.

Official Handout Summary Page 6/6

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

Summary of this lecture

  • rank Decide everything: Ax=bA\boldsymbol x=\boldsymbol b to someone b\boldsymbol b There is no solution if and only if r<mr<m;When there is a solution, the solution is unique if and only if r=nr=n. The answer to the first question in this lecture is r=n≤2<m=3r=n\le2<m=3.
  • The dimensions of the four basic subspaces are rr, n−rn-r, rr, m−rm-r; ATy=cA^{\mathsf T}\boldsymbol y=\boldsymbol c At full row rank, for each c\boldsymbol c has solution, null space dimension m−rm-r Gives infinite solutions.
  • det⁡(ATA)=det⁡(AAT)\det(A^{\mathsf T}A)=\det(AA^{\mathsf T}) This is only true for square matrices of the same order; for rectangular matrices, ATAA^{\mathsf T}A with AATAA^{\mathsf T} The order is different, r=nr=n When the former is reversible (in this case, I2I_2), the latter rank is still rr, must be strange.
  • BTBB^{\mathsf T}B Must be symmetrical and semi-positive definite; positive definite requires that everything is non-zero x\boldsymbol x Yes xTMx>0\boldsymbol x^{\mathsf T}M\boldsymbol x>0, so AATAA^{\mathsf T} in m>rm>r Time can only be semi-positive definite.
  • In column view AxA\boldsymbol x is a linear combination of columns: Ax=v1−v2+v3A\boldsymbol x=\boldsymbol v_1-\boldsymbol v_2+\boldsymbol v_3 The solution is (1,−1,1)T(1,-1,1)^{\mathsf T}; If the combination is zero, this vector is in the null space and the solution is not unique.
  • Projection matrix: over a=(4,−3)\boldsymbol a=(4,-3) The straight line corresponding to P=125[16−12−129]P=\frac1{25}\begin{bmatrix}16&-12\\-12&9\end{bmatrix};Standard orthogonal v3\boldsymbol v_3 Arrive span⁡{v1,v2}\operatorname{span}\{\boldsymbol v_1,\boldsymbol v_2\} The closest point is zero.
  • Least squares: ATAx^=ATbA^{\mathsf T}A\hat{\boldsymbol x}=A^{\mathsf T}\boldsymbol b, examples are c^=11/3\hat c=11/3, d^=−1\hat d=-1, projection p=(11/3,8/3,5/3)T\boldsymbol p=(11/3,8/3,5/3)^{\mathsf T}, fitting straight line y=11/3−ty=11/3-t; b⊥C(A)\boldsymbol b\perp C(A) time x^=0\hat{\boldsymbol x}=\boldsymbol 0.
  • Reconstruct the matrix from the feature pairs using A=SΛS−1A=S\Lambda S^{-1}, examples are A=[4−22−1]A=\begin{bmatrix}4&-2\\2&-1\end{bmatrix}; Orthogonal eigenvectors are not unique to symmetric matrices, but also to antisymmetric matrices and rotation matrices (orthogonal in the sense of complex vectors).
  • The Markov matrix column sum is 1, so λ=1\lambda=1;The three eigenvalues of the example question are 0,1,−0.20,1,-0.2, steady-state eigenvector (3,3,4)T(3,3,4)^{\mathsf T}, the coefficient 1 is derived from the conservation of total quantity, u∞=(3,3,4)T\boldsymbol u_\infty=(3,3,4)^{\mathsf T}.
  • The whole lesson is summarized into eight themes and four decompositions: elimination (LULU), orthogonalization (QRQR), diagonalization (SΛS−1S\Lambda S^{-1}), singular value decomposition (UΣVTU\Sigma V^{\mathsf T}), with four subspaces, determinants and positive definiteness.

keywords

EnglishChineseOne sentence explanation
rankrankThe number of pivots is the dimension of both column space and row space.
pivotpivotThe key number used to eliminate the lower elements in elimination, its number is equal to the rank
column spacecolumn spaceAA all linear combinations of columns, b\boldsymbol b The equation has a solution when it falls in
nullspacenull spacesatisfy Ax=0A\boldsymbol x=\boldsymbol 0 of all x\boldsymbol x, the dimension is n−rn-r
row spacerow spaceThe space spanned by each row has a dimension of rr, is the orthogonal complement of the null space
left nullspaceleft null spacesatisfy ATy=0A^{\mathsf T}\boldsymbol y=\boldsymbol 0 of y\boldsymbol y, the dimension is m−rm-r
determinantdeterminantA number corresponding to a square matrix is zero if and only if the matrix is singular
positive definitepositive definiteSymmetric matrix and non-zero for everything x\boldsymbol x Yes xTAx>0\boldsymbol x^{\mathsf T}A\boldsymbol x>0
positive semidefinitepositive semidefiniteto everything x\boldsymbol x Yes xTAx≥0\boldsymbol x^{\mathsf T}A\boldsymbol x\ge0, allowing the existence of non-zero vectors equal to 0
projection matrixprojection matrixThe matrix that projects the vector onto the subspace, the straight line case is aaT/aTa\boldsymbol a\boldsymbol a^{\mathsf T}/\boldsymbol a^{\mathsf T}\boldsymbol a
least squaresleast squaresAsk for help when there is no solution ∥Ax−b∥\|A\boldsymbol x-\boldsymbol b\| smallest x\boldsymbol x
normal equationsnormal equationATAx^=ATbA^{\mathsf T}A\hat{\boldsymbol x}=A^{\mathsf T}\boldsymbol b, the least squares solution of the equation
orthonormalorthogonalA set of vectors that are pairwise orthogonal and of length 1
eigenvalueeigenvaluesuch that Ax=λxA\boldsymbol x=\lambda\boldsymbol x has a non-zero solution λ\lambda
eigenvectoreigenvectorBe AA A non-zero vector that maps to a multiple of itself
characteristic polynomialcharacteristic polynomialdet⁡(A−λI)\det(A-\lambda I), whose root is exactly the eigenvalue
diagonalizationdiagonalizationwritten as A=SΛS−1A=S\Lambda S^{-1}, SS The columns of are linearly independent eigenvectors
tracetraceThe sum of the diagonal elements is equal to the sum of all eigenvalues
Markov matrixMarkov matrixA square matrix whose columns are non-negative and whose column sum is 1 must have the eigenvalue 1
steady stateSteady stateThe distribution that tends to remain unchanged after a long period of time is given by λ=1\lambda=1 Characteristic vector description of
skew-symmetric matrixantisymmetric matrixsatisfy AT=−AA^{\mathsf T}=-A matrix, the eigenvalues are pure imaginary numbers
symmetric matrixsymmetric matrixsatisfy AT=AA^{\mathsf T}=A The matrix of can be orthogonally diagonalized
singular value decompositionsingular value decompositionAny matrix is written as UΣVTU\Sigma V^{\mathsf T}, that is, rotate-stretch-rotate
linear transformationlinear transformationMaintain the mapping between addition and multiplication, represented by a matrix after selecting the basis
change of basisbasis transformationChange a group of bases, and the matrix is M−1AMM^{-1}AM change to represent the same transformation
similar matricessimilarity matrixsatisfy B=M−1AMB=M^{-1}AM A pair of matrices with the same eigenvalues

← Lecture 33 | Course Catalog

Machine-assisted translation · Read Chinese original