MIT 18.06 Completed

Lecture 14 · Orthogonal vectors and orthogonal subspaces

Understand orthogonal vectors and orthogonal subspaces, and master the relationship between orthogonal complement and four subspaces.

On this page

Orthogonal vectors and subspaces | Gilbert Strang | MIT 18.06 Linear Algebra

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

Video of this lecture: Bilibili p14 · Orthogonal vectors and orthogonal subspaces ↗(49:48)| 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

Starting from this lecture, the course enters the chapter of orthogonality. The theme can be summarized in one sentence: ninety degrees. What kind of vectors are perpendicular to each other, what kind of subspaces are perpendicular to each other, and what kind of basis are perpendicular to each other are all questions to be answered in this chapter. We have already met the four fundamental subspaces before and know their dimension (dimension): row space and nullspace coexist Rn\mathbb R^n , the dimensions are respectively rr and n−rn-r;Column space and left nullspace are the same Rm\mathbb R^m , the dimensions are respectively rr and m−rm-r. But at that time we only knew what each subspace was and how to find the basis, but we did not know their relative postures to each other. This lecture adds this layer of geometry: these two pairs of subspaces happen to be perpendicular to each other. The previous lectures focused on what vectors are contained in each subspace, but this lecture focuses on which direction they face. The original “four-piece puzzle” therefore became two “right-angle puzzles”. Rn\mathbb R^n with Rm\mathbb R^m Each is divided into two subspaces at right angles to each other.

The second half of this lecture turns to the main question of this chapter: Ax=bA\boldsymbol x=\boldsymbol b What to do when there is no solution. This is the norm in applications - when measuring the position of a satellite, you will get a thousand equations by measuring it a thousand times, but there may be only six parameters describing the position; when measuring the pulse, there is only one unknown number, but it will be measured repeatedly. There are more equations than unknowns, and the right-hand side is noisy, so an exact solution is destined to not exist. Applying all the equations and finding the “best solution” is a reasonable goal; and the key to it is the matrix ATAA^{\mathsf T}A.

The route of this lecture is: first give the criterion of vector orthogonality, and use the Pythagorean theorem to explain its origin; then generalize this criterion from vectors to subspaces, proving that the row space and the null space, the column space and the left null space are each at right angles; then use dimensions to illustrate that this orthogonality is “complementary”, thus piecing the four basic subspaces into two complete pictures; finally, the optimal solution and matrix of the unsolvable equation are derived ATAA^{\mathsf T}A reversibility.

Official Handout Summary Page 1/2

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

1. Orthogonal vectors and dot product test

orthogonal (orthogonal) is a synonym for “vertical”. in nn Saying that two vectors are orthogonal in a dimensional space is equivalent to saying that the angle between them is 90∘90^\circ, which is equivalent to saying that they are equal to and vector x+y\boldsymbol{x}+\boldsymbol{y} form a right triangle, where x+y\boldsymbol{x}+\boldsymbol{y} It’s the hypotenuse. Given two vectors, how do you tell whether they are orthogonal? The answer is to calculate their dot product:

xTy=x1y1+x2y2+⋯+xnyn.\boldsymbol{x}^{\mathsf T}\boldsymbol{y} =x_1y_1+x_2y_2+\cdots+x_ny_n .

This number is written as matrix multiplication by “one row by one column”, and the result is a 1×11\times 1 matrix, which is a scalar. Two vectors are orthogonal if and only if

xTy=0.\boldsymbol{x}^{\mathsf T}\boldsymbol{y}=0 .

This is the most basic criterion in this lecture. It translates the geometric “right angle” into an algebraic condition that can be calculated, and all subsequent conclusions grow from it. judge nn The angle between two vectors in a dimensional space is originally a geometric problem, and the most important thing to look at is the simplest quantity - the dot product; this is really beautiful. This dot product is also called inner product (inner product); on a real vector, it is the multiplication of the corresponding components and then summation.

Verify it in three-dimensional space. take x=(1,2,3)\boldsymbol{x}=(1,2,3). Following the Pythagorean theorem, the square of the length of a vector is the sum of the squares of its components, and this sum of squares is exactly its dot product with itself:

∥x∥2=xTx=12+22+32=14.\|\boldsymbol{x}\|^2=\boldsymbol{x}^{\mathsf T}\boldsymbol{x} =1^2+2^2+3^2=14 .

Take again y=(2,−1,0)\boldsymbol{y}=(2,-1,0), then xTy=2−2+0=0\boldsymbol{x}^{\mathsf T}\boldsymbol{y}=2-2+0=0, the two vectors are indeed orthogonal. The relevant numbers are completely consistent:

x+y=[313],∥y∥2=22+(−1)2+02=5,∥x+y∥2=32+12+32=19,\boldsymbol{x}+\boldsymbol{y}=\begin{bmatrix}3\\1\\3\end{bmatrix}, \qquad \|\boldsymbol{y}\|^2=2^2+(-1)^2+0^2=5, \qquad \|\boldsymbol{x}+\boldsymbol{y}\|^2=3^2+1^2+3^2=19,

And 14+5=1914+5=19: The sum of the squares of the lengths of the two right-angled sides is equal to the square of the length of the hypotenuse. Note xTx\boldsymbol{x}^{\mathsf T}\boldsymbol{x} is always positive, the only exception is the zero vector, whose length squared is zero.

Video 00:04:59: Classroom blackboard writing

Video 00:04:59 | Approximately corresponding to Section 1 “1. Orthogonal Vectors and Dot Product Test”.

2. The dot product criterion and the Pythagorean theorem are the same thing

The equation in the previous section is not a coincidence, the Pythagorean theorem explains exactly where the criterion comes from. The Pythagorean theorem says that if x,y\boldsymbol{x},\boldsymbol{y} are the two right-angled sides of a right triangle, then

∥x∥2+∥y∥2=∥x+y∥2.\|\boldsymbol{x}\|^2+\|\boldsymbol{y}\|^2=\|\boldsymbol{x}+\boldsymbol{y}\|^2 .

Write the length squared as a dot product and expand the right side according to the distributive law:

(x+y)T(x+y)=xTx+xTy+yTx+yTy.(\boldsymbol{x}+\boldsymbol{y})^{\mathsf T}(\boldsymbol{x}+\boldsymbol{y}) =\boldsymbol{x}^{\mathsf T}\boldsymbol{x} +\boldsymbol{x}^{\mathsf T}\boldsymbol{y} +\boldsymbol{y}^{\mathsf T}\boldsymbol{x} +\boldsymbol{y}^{\mathsf T}\boldsymbol{y}.

This step only uses the distributive law of matrix multiplication without introducing any assumptions. For real vectors, yTx\boldsymbol{y}^{\mathsf T}\boldsymbol{x} with xTy\boldsymbol{x}^{\mathsf T}\boldsymbol{y} is the same number, both are equal to x1y1+⋯+xnynx_1y_1+\cdots+x_ny_n, so the middle two items are combined into 2xTy2\boldsymbol{x}^{\mathsf T}\boldsymbol{y}. Substituting the Pythagorean equation, both ends xTx\boldsymbol{x}^{\mathsf T}\boldsymbol{x} with yTy\boldsymbol{y}^{\mathsf T}\boldsymbol{y} Cancel, leaving only

2xTy=0,即xTy=0.2\boldsymbol{x}^{\mathsf T}\boldsymbol{y}=0 , \qquad\text{即}\qquad \boldsymbol{x}^{\mathsf T}\boldsymbol{y}=0 .

So the two criteria are connected: the dot product being zero and the Pythagorean relationship being established are the same thing.

It must be emphasized that the Pythagorean equation does not hold for any three vectors. When the angle is not a right angle, the Pythagorean relationship generally does not hold; it only holds when the angle is a right angle, that is, the dot product is zero. In turn, as long as the dot product is zero, the Pythagorean equation automatically holds. This is the complete correspondence between the geometric meaning of “orthogonality” and the algebraic criterion.

There is also an edge case that needs to be handled by definition. If x\boldsymbol{x} is a zero vector, then for any y\boldsymbol{y} All xTy=0\boldsymbol{x}^{\mathsf T}\boldsymbol{y}=0, so the zero vector is orthogonal to all vectors. There is no need to feel awkward about this in mathematics: the rules are enforced.

3. Orthogonal subspace

Once the orthogonality of vectors is defined, the orthogonality of subspaces can be defined. orthogonal subspace The definition of (orthogonal subspaces) is: subspace SS and subspace TT Orthogonal means SS Every vector in TT Every vector in is orthogonal. The “each” in the definition cannot be weakened: only finding a pair of vectors that are perpendicular to each other, or two subspaces each having a part of vectors that are perpendicular to each other, is not considered orthogonal.

Test this definition using three dimensions. Consider the infinitely extending blackboard as a two-dimensional subspace, and the floor as another two-dimensional subspace. Both pass through the same origin (equivalent to a xzxz plane with a xyxy plane). Are they orthogonal? no. You can pick one on the blackboard that matches the seam 45∘45^\circ vector, which is obviously not perpendicular to the vector on the floor. The more fundamental reason is that these two planes intersect on a straight line, which is the joint between the floor and the blackboard; any non-zero vector on the intersection belongs to two subspaces at the same time, and a non-zero vector cannot be orthogonal to itself. From this we get a necessary condition: two orthogonal subspaces can only intersect at the zero vector. But “the intersection only has zero vectors” is not enough to guarantee orthogonality.

By listing all the subspaces in a two-dimensional plane, the components of this definition will become clear. There are only three types of subspaces in the plane: zero vector, straight line passing through the origin, and the entire plane. A straight line through the origin is never orthogonal to the entire plane, because the entire plane contains vectors that make any angle to the straight line, and even the straight line itself. The line is always orthogonal to the zero subspace because the zero vector is orthogonal to all vectors. Two different straight lines passing through the origin are orthogonal if and only if they are 90∘90^\circ. So “orthogonality” is much stricter than “non-coincidence”: the two subspaces must not only be separated from each other, but also be perpendicular to each other in every direction.

Video 00:12:21: Classroom blackboard writing

Video 00:12:21 | Approximately corresponding to Section 3 “3. Orthogonal Subspace”.

Video 00:14:56: Classroom blackboard writing

Video 00:14:56 | Approximately corresponding to Section 3 “3. Orthogonal Subspace”.

4. Row space and null space are orthogonal

With the definition of subspace orthogonality, the attitude between the four basic subspaces can be explained clearly. The core facts are: Row space is orthogonal to null space.

The proof only requires obtaining the definition of the null space Ax=0A\boldsymbol{x}=\boldsymbol{0}. put AA Written line by line, the equation becomes

Ax=[row1row2⋮rowm]x=[row1xrow2x⋮rowmx]=[00⋮0].A\boldsymbol{x}= \begin{bmatrix} \text{row}_1\\ \text{row}_2\\ \vdots\\ \text{row}_m \end{bmatrix}\boldsymbol{x} = \begin{bmatrix} \text{row}_1\boldsymbol{x}\\ \text{row}_2\boldsymbol{x}\\ \vdots\\ \text{row}_m\boldsymbol{x} \end{bmatrix} = \begin{bmatrix} 0\\0\\\vdots\\0 \end{bmatrix}.

The equation holds, which means that the vector in the null space x\boldsymbol{x} with AA Each row of is orthogonal: row1x=0\text{row}_1\boldsymbol{x}=0, row2x=0\text{row}_2\boldsymbol{x}=0, until rowmx=0\text{row}_m\boldsymbol{x}=0.

But the line space is not just this mm rows, it also contains all linear combinations of these rows. If x\boldsymbol{x} If it is orthogonal to every row, then it is also orthogonal to any combination:

(c1row1+⋯+cmrowm)x=c1(row1x)+⋯+cm(rowmx)=0.(c_1\text{row}_1+\cdots+c_m\text{row}_m)\boldsymbol{x} =c_1(\text{row}_1\boldsymbol{x})+\cdots+c_m(\text{row}_m\boldsymbol{x})=0 .

So N(A)N(A) Each vector in is related to C(AT)C(A^{\mathsf T}) Every vector in is orthogonal, i.e. N(A)⊥C(AT)N(A)\perp C(A^{\mathsf T}). In other words, the equation Ax=0A\boldsymbol{x}=\boldsymbol{0} This expression contains two levels of information at the same time: it picks out the AA vectors that map to zero, also indicating that the directions of these vectors are the same as AA The rows are vertical. The same reasoning is used ATA^{\mathsf T} Above: ATA^{\mathsf T} is also a matrix that also satisfies “the row space and the null space are orthogonal”, and ATA^{\mathsf T} The row space is AA column space, ATA^{\mathsf T} The null space is AA The left null space of , then

C(A)⊥N(AT).C(A)\perp N(A^{\mathsf T}).

The four basic subspaces are paired in pairs: Rn\mathbb R^n Divided into two parts by row space and null space, the dimension rr with n−rn-r Added to nn; Rm\mathbb R^m Divided into two parts by column space and left null space, the dimension rr with m−rm-r Added to mm. In fact, these geometric relationships have always been Ax=0A\boldsymbol{x}=\boldsymbol{0} Inside, I just didn’t discuss verticality before, so I didn’t see it; now I picked it up. This is the second part of the fundamental theorem of linear algebra: the first part talks about the dimensions of the four subspaces, the second part talks about their orthogonality, and the third part talks about their orthogonal basis.

Video 00:18:55: Classroom blackboard writing

Video 00:18:55 | Approximately corresponding to Section 4 “4. Row space and null space are orthogonal”.

5. Orthogonal complement: orthogonal and exactly complementary

“Orthogonal” is not precise enough. orthogonal complement The (orthogonal complement) requirement is stronger: the orthogonal complement of a subspace contains not only some vectors that are orthogonal to it, but also all vectors that are orthogonal to it.

The dimensions must match, which is the key to understanding orthogonal complement. consider R3\mathbb R^3 matrix in

A=[1252410].A=\begin{bmatrix}1&2&5\\2&4&10\end{bmatrix}.

The second row is twice the first row, so rank r=1r=1: line space is along (1,2,5)(1,2,5) A straight line in the direction. The null space is given by the equation

x1+2x2+5x3=0x_1+2x_2+5x_3=0

decision. An equation, three unknowns, the solution set is a two-dimensional plane passing through the origin, and its normal vector is exactly (1,2,5)(1,2,5), that is, the “normal vector” in calculus nn”. The row space is a straight line and the null space is a plane. They are orthogonal to each other. The dimensions 1+2=31+2=3 Just covers the whole R3\mathbb R^3. It is impossible to have a situation where “the row space is a straight line and the null space is also a straight line” because n=3n=3, r=1r=1, the zero space dimension must be n−r=2n-r=2.

second line (2,4,10)(2,4,10) It has no substantial impact on the row space and null space, and the conclusion remains unchanged if it is deleted. So N(A)N(A) Not just “some vector orthogonal to the row space”, but All Vectors orthogonal to the row space: all (1,2,5)(1,2,5) The vertical vectors form that plane, and N(A)N(A) It is this plane, no more and no less. On the contrary, the total number of vectors orthogonal to a straight line is not another straight line, but an entire plane - the orthogonal complement is this entire plane. Just write it with symbols

N(A)=C(AT)⊥,N(AT)=C(A)⊥.N(A)=C(A^{\mathsf T})^{\perp}, \qquad N(A^{\mathsf T})=C(A)^{\perp}.

Orthogonality, coupled with the fact that the sum of the dimensions equals the entire space, are two things that add up to a complete decomposition. A single vector cannot be said to be orthogonal complement, complement is the relationship between subspaces.

6. Main question: Find the “best solution” when the equation has no solution

The second half of this lecture turns to the main question of this chapter, which is also the last discussion in the entire course. Ax=bA\boldsymbol{x}=\boldsymbol{b}: When an equation has no solution, find its “best solution”. No solution means b\boldsymbol{b} Not in column space. If AA It is a rectangular matrix with more rows than columns. This situation is normal.

There are many practical examples. When a satellite flies in the sky and its position is measured a thousand times, a thousand equations are obtained, and the parameters that determine the position may only be six. Taking your pulse is even simpler: there is only an unknown number of beats per minute, but you measure it repeatedly. The situation is the same for resistance measurement and pulse measurement. There are too many equations, and the measurements are noisy, so Ax=bA\boldsymbol{x}=\boldsymbol{b} Exact solution is doomed to failure - even the right end b\boldsymbol{b} Neither can be trusted in itself. But the data contains a lot of information about x\boldsymbol{x} of information, the problem is to separate the information from the noise. This can also be seen from the shape of the matrix: if AA is m×nm\times n and m>nm>n, its rank cannot reach mm, the column space is just Rm\mathbb R^m A small part of it, and most of the right-hand vectors are not in it at all.

A tempting but bad approach is to throw away some equations until you are left with a square matrix that is invertible and then solve the square matrix. This is equivalent to arbitrarily announcing that “these measurements are accurate and those are invalid” without any basis; there is no reason to say that some equations are full of information and others are full of noise. We need to use all measurements to get as much information as possible, which is to find the “best solution”x^\hat{\boldsymbol{x}}.

Elimination can tell us whether the equation has a solution; for this type of problem, elimination usually ends with ”00 Equal to some non-zero number”, the signal that there is no solution is clear at a glance. The way out is to left-multiply both sides of the equation at the same time ATA^{\mathsf T}:

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

This is the central equation of this chapter. x^\hat{\boldsymbol{x}} is the best solution; the precise definition of “best” will be left to later, but the equation itself has specified that the real object to be studied is ATAA^{\mathsf T}A. From the shape point of view, this equation is also completely reasonable: ATA^{\mathsf T} is n×mn\times m, b\boldsymbol{b} is mm dimension, so ATbA^{\mathsf T}\boldsymbol{b} is nn dimensional vector, and unknowns x^\hat{\boldsymbol{x}} The number is consistent; ATAA^{\mathsf T}A is n×nn\times n The square matrix of , the central equation is exactly nn an equation, nn an unknown number. So the original rectangular system of equations was replaced by a square matrix system. This is the first reason why it is worthy of study.

Video 00:32:22: Classroom blackboard writing

Video 00:32:22 | Approximately corresponding to section 6 “6. Main problem: finding the “best solution” when the equation has no solution”.

Video 00:33:57: Classroom blackboard writing

Video 00:33:57 | Approximately corresponding to section 6 “6. Main problem: finding the “best solution” when the equation has no solution”.

Video 00:39:50: Classroom blackboard writing

Video 00:39:50 | Approximately corresponding to Section 6 “6. Main problem: finding the “best solution” when the equation has no solution”.

7. ATAA^{\mathsf T}A and reversibility

Set AA is m×nm\times n The rectangular matrix of ATA^{\mathsf T} is n×mn\times m, so ATAA^{\mathsf T}A is n×nn\times n phalanx. And it is a symmetric matrix:

(ATA)T=AT(AT)T=ATA.(A^{\mathsf T}A)^{\mathsf T} =A^{\mathsf T}(A^{\mathsf T})^{\mathsf T} =A^{\mathsf T}A .

Only one rule is used above: the transpose of the product of two matrices is equal to the reverse multiplication of each transpose. To be able to solve the central equation, you need to know ATAA^{\mathsf T}A When is it reversible.

Let’s look at a specific example first. take

A=[111215].A=\begin{bmatrix}1&1\\1&2\\1&5\end{bmatrix}.

it is 3×23\times 2 Matrix, the two columns are (1,1,1)(1,1,1) with (1,2,5)(1,2,5), linearly independent, rank is 22. to such AA, Ax=bA\boldsymbol{x}=\boldsymbol{b} are three equations, two unknowns, and usually have no solution: b\boldsymbol{b} must fall in the plane spanned by these two columns, and R3\mathbb R^3 Most of the vectors in are not in this plane. but ATAA^{\mathsf T}A is a beautiful one 2×22\times 2 matrix:

ATA=[111125][111215]=[38830].A^{\mathsf T}A= \begin{bmatrix}1&1&1\\1&2&5\end{bmatrix} \begin{bmatrix}1&1\\1&2\\1&5\end{bmatrix} = \begin{bmatrix}3&8\\8&30\end{bmatrix}.

Check item by item: The upper left corner is (1,1,1)(1,1,1) dot product with yourself 1+1+1=31+1+1=3;The off-diagonal element is the dot product of two columns 1+2+5=81+2+5=8, the symmetry ensures that the upper right and lower left are the same; the lower right corner is (1,2,5)(1,2,5) dot product with yourself 1+4+25=301+4+25=30. Its determinant is

3⋅30−8⋅8=90−64=26≠0,3\cdot 30-8\cdot 8=90-64=26\neq 0,

So this ATAA^{\mathsf T}A Reversible.

But it’s not always reversible. If you put AA Change the two columns of into vectors on the same straight line, ATAA^{\mathsf T}A The rank will also fall accordingly. For example, let the second column be the first column 33 Times:

A=[131313],ATA=[39927],A=\begin{bmatrix}1&3\\1&3\\1&3\end{bmatrix}, \qquad A^{\mathsf T}A= \begin{bmatrix}3&9\\9&27\end{bmatrix},

The product has only rank 11, the determinant is zero and irreversible. This is not surprising: AA The rank is already only 11, and the rank is 11 When multiplying matrices, the rank of the result will not exceed 11. More generally, ATAA^{\mathsf T}A Each column of is ATA^{\mathsf T} combination of columns, so its column space is contained in ATA^{\mathsf T} In the column space of , the ranks will only be smaller or equal, never larger. Generally, there are always

rank⁡(ATA)=rank⁡(A),N(ATA)=N(A).\operatorname{rank}(A^{\mathsf T}A)=\operatorname{rank}(A), \qquad N(A^{\mathsf T}A)=N(A).

Why are the two null spaces the same? One direction is direct: if Ax=0A\boldsymbol{x}=\boldsymbol{0}, multiply left by both sides ATA^{\mathsf T} Just get ATAx=0A^{\mathsf T}A\boldsymbol{x}=\boldsymbol{0}. The other direction uses the square of the length of section 1: if ATAx=0A^{\mathsf T}A\boldsymbol{x}=\boldsymbol{0}, multiply both sides by left xT\boldsymbol{x}^{\mathsf T}, get

0=xTATAx=(Ax)T(Ax)=∥Ax∥2.0=\boldsymbol{x}^{\mathsf T}A^{\mathsf T}A\boldsymbol{x} =(A\boldsymbol{x})^{\mathsf T}(A\boldsymbol{x}) =\|A\boldsymbol{x}\|^2 .

A vector whose length squared is zero can only be a zero vector, so Ax=0A\boldsymbol{x}=\boldsymbol{0}. The inclusion relationships in the two directions are combined, and the two null spaces are equal; then the sum of the rank and the null space dimension is the number of columns nn, the ranks of the two are also equal.

From this we get the most important criterion of this lecture: ATAA^{\mathsf T}A Reversible if and only if N(A)N(A) Contains only zero vectors if and only if AA The columns of are linearly independent of. Not required here AA It is a square matrix, and it is only required that it be of full rank. This also explains why the second example fails: two columns are related meaning N(A)N(A) Contains non-zero vectors, ATAA^{\mathsf T}A They cannot be distinguished from zero. As you will see in the next lecture, ATAA^{\mathsf T}A It will appear at the core of the problem later.

Video 00:44:49: Classroom blackboard writing

Video 00:44:49|Approximately corresponding to Section 7 “7. ATAA^{\mathsf T}A “near reversibility”.

Official Handout Summary Page 2/2

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

Summary of this lecture

  • orthogonal (orthogonal) i.e. vertical: two vectors are orthogonal if and only if xTy=0\boldsymbol{x}^{\mathsf T}\boldsymbol{y}=0;The square of the length is ∥x∥2=xTx\|\boldsymbol{x}\|^2=\boldsymbol{x}^{\mathsf T}\boldsymbol{x};The zero vector is orthogonal to all vectors.
  • The Pythagorean theorem and the dot product criterion are the same thing: put ∥x+y∥2\|\boldsymbol{x}+\boldsymbol{y}\|^2 expand, eliminate ∥x∥2\|\boldsymbol{x}\|^2 with ∥y∥2\|\boldsymbol{y}\|^2, the remaining 2xTy=02\boldsymbol{x}^{\mathsf T}\boldsymbol{y}=0.
  • orthogonal subspace Definition of (orthogonal subspaces): SS Each vector in TT Each vector in is orthogonal. The blackboard and the floor both pass through the origin but intersect on a straight line, so they are not orthogonal; the two orthogonal subspaces can only intersect at the zero vector.
  • In a two-dimensional plane: a straight line is never orthogonal to the entire plane, a straight line is always orthogonal to the zero subspace, and two different straight lines are orthogonal if and only if 90∘90^\circ.
  • Row space is orthogonal to null space: Ax=0A\boldsymbol{x}=\boldsymbol{0} Description x\boldsymbol{x} with AA Each row of is orthogonal, and each row is orthogonal means that it is orthogonal to all linear combinations of the row space; for ATA^{\mathsf T} In the same way, the column space is orthogonal to the left null space.
  • orthogonal complement(orthogonal complement): N(A)N(A) contains All A vector orthogonal to the row space, so N(A)=C(AT)⊥N(A)=C(A^{\mathsf T})^{\perp}, the same reason N(AT)=C(A)⊥N(A^{\mathsf T})=C(A)^{\perp};The dimensions respectively satisfy r+(n−r)=nr+(n-r)=n with r+(m−r)=mr+(m-r)=m.
  • R3\mathbb R^3 Example in: A=[1252410]A=\begin{bmatrix}1&2&5\\2&4&10\end{bmatrix} The rank is 11, the row space is over (1,2,5)(1,2,5) the straight line; the null space is given by x1+2x2+5x3=0x_1+2x_2+5x_3=0 Given, it is (1,2,5)(1,2,5) is the plane of the normal vector.
  • The best solution when there is no solution satisfies ATAx^=ATbA^{\mathsf T}A\hat{\boldsymbol{x}}=A^{\mathsf T}\boldsymbol{b}, which is the central equation of this chapter; ATAA^{\mathsf T}A is n×nn\times n Symmetric matrix.
  • Example: A=[111215]A=\begin{bmatrix}1&1\\1&2\\1&5\end{bmatrix} given ATA=[38830]A^{\mathsf T}A=\begin{bmatrix}3&8\\8&30\end{bmatrix}, determinant 26≠026\neq 0;When two columns are proportional (such as A=[131313]A=\begin{bmatrix}1&3\\1&3\\1&3\end{bmatrix})ATA=[39927]A^{\mathsf T}A=\begin{bmatrix}3&9\\9&27\end{bmatrix}, the rank is 11, irreversible.
  • Generally N(ATA)=N(A)N(A^{\mathsf T}A)=N(A), rank⁡(ATA)=rank⁡(A)\operatorname{rank}(A^{\mathsf T}A)=\operatorname{rank}(A); ATAA^{\mathsf T}A reversible if and only if AA The columns are linearly independent.

keywords

EnglishChineseOne sentence explanation
orthogonalorthogonalThe angle between two vectors is 90∘90^\circ, which is equivalent to the dot product being zero
dot productdot productThe corresponding components are multiplied together and then summed, which is written as xTy\boldsymbol{x}^{\mathsf T}\boldsymbol{y}
orthogonal subspacesorthogonal subspaceEvery vector in one subspace is orthogonal to every vector in the other subspace
orthogonal complementorthogonal complementOrthogonal to a given subspace All A subspace composed of vectors, such as N(A)=C(AT)⊥N(A)=C(A^{\mathsf T})^{\perp}
row spacerow spaceAA The subspace formed by each row of is recorded as C(AT)C(A^{\mathsf T})
nullspacenull spacesatisfy Ax=0A\boldsymbol{x}=\boldsymbol{0} of all x\boldsymbol{x}, recorded as N(A)N(A)
column spacecolumn spaceAA The subspace formed by each column of is denoted as C(A)C(A)
left nullspaceleft null spacesatisfy ATy=0A^{\mathsf T}\boldsymbol{y}=\boldsymbol{0} of all y\boldsymbol{y}, recorded as N(AT)N(A^{\mathsf T})
four fundamental subspacesfour fundamental subspacesRow space, null space, column space, left null space, orthogonal pairing
symmetric matrixsymmetric matrixsatisfy AT=AA^{\mathsf T}=A The matrix of ATAA^{\mathsf T}A always symmetrical
linearly independentlinearly independentThe zero combination of each column has only a trivial solution, which is equivalent to N(A)N(A) Contains only zero vectors
best solutionbest solutionAx=bA\boldsymbol{x}=\boldsymbol{b} Satisfied when there is no solution ATAx^=ATbA^{\mathsf T}A\hat{\boldsymbol{x}}=A^{\mathsf T}\boldsymbol{b} of x^\hat{\boldsymbol{x}}

← Lecture 13 | Course Catalog | Lecture 15 →

Machine-assisted translation · Read Chinese original