线性代数的本质 · 精研复习站

第 10 集:特征向量与特征值

Eigenvectors and eigenvalues
一句话直觉:特征向量是线性变换中始终留在自身张成直线上的特殊向量,特征值则是它的伸缩倍数;用特征向量作基(特征基),就能把任意矩阵简化为仅作用于各轴的对角矩阵。

本章以几何直观彻底打破“特征向量/特征值纯靠死算”的困局:从寻找留在原张成直线上的向量出发,通过三维旋转轴理解其脱离坐标系的本质;随后借助“空间压缩降维 $\iff$ 行列式为零”推导特征方程 $\det(A-\lambda I)=0$,剖析旋转与剪切两大经典特例,最后与上一章汇合,引出利用特征基实现矩阵对角化与高次幂速算的强大威力。

▶ YouTube 原片 📺 B站官方双语 P14 🎙 B站中文配音 P14

前置依赖

← 第 05 集 · 行列式:利用“行列式为零等价于空间被压缩进更低维度”建立求解特征值的核心判别式 $\det(A-\lambda I)=0$。
← 第 06 集 · 逆矩阵、列空间、秩与零空间:理解非零向量在空间降维时才能落入零空间,对应齐次方程组 $(A-\lambda I)\vec{v}=\vec{0}$ 存在非零解。
← 第 09 集 · 基变换:只有掌握 $P^{-1}AP$ 基变换框架,才能把一组特征向量升级为“特征基”从而对矩阵对角化。

后续延伸

→ 第 10·拓展 集 · 快速计算特征值的技巧:掌握几何与特征方程后,下一篇拓展视频将教你利用迹与行列式在几秒内口算 2×2 矩阵特征值。
→ 第 11 集 · 抽象向量空间:特征向量(以及后续的函数空间特征函数)是不依赖于特定坐标轴的内在属性,直指抽象向量空间的核心理念。
特征向量与特征值基本方程
$$A\vec{v} = \lambda \vec{v} \qquad (\vec{v} \neq \vec{0})$$
特征方程(非零零空间与降维条件)
$$(A - \lambda I)\vec{v} = \vec{0} \;\Longleftrightarrow\; \det(A - \lambda I) = 0$$
利用特征基进行相似对角化
$$D = P^{-1} A P = \begin{bmatrix} \lambda_1 & 0 \\ 0 & \lambda_2 \end{bmatrix}, \qquad P = \begin{bmatrix} \vec{v}_1 & \vec{v}_2 \end{bmatrix}$$
对角化加速矩阵高次幂计算
$$A^n = P D^n P^{-1} = P \begin{bmatrix} \lambda_1^n & 0 \\ 0 & \lambda_2^n \end{bmatrix} P^{-1}$$

几何直观:谁在变换后还留在自己的张成直线上?

⏱ 00:20 – 03:18

学生对特征向量和特征值感到困惑,往往不是因为概念本身复杂,而是缺乏对矩阵即变换、行列式、线性方程组和基变换的视觉根基。现在观察一个具体二维变换:将 $\hat{\imath}$ 送到 $\begin{bmatrix} 3 \\ 0 \end{bmatrix}$、将 $\hat{\jmath}$ 送到 $\begin{bmatrix} 1 \\ 2 \end{bmatrix}$,对应矩阵 $A = \begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix}$。

任选一个普通向量并画出它所张成的直线(穿过原点与尖端)。变换发生时,绝大多数向量都会被“踢出”这条直线,发生旋转偏离。但有两类极其特殊的向量却稳稳停留在自身张成的直线上,矩阵对它们的作用效果退化为纯标量缩放:

  • 第一类($x$ 轴):矩阵第一列直接表明 $\hat{\imath}$ 被拉长到 $3\hat{\imath}$;由线性性质,整个 $x$ 轴上所有向量都沿 $x$ 轴被拉伸为原来的 $3$ 倍。
  • 第二类(对角线):稍微隐蔽一点的向量 $\begin{bmatrix} -1 \\ 1 \end{bmatrix}$ 变换后落在 $\begin{bmatrix} -2 \\ 2 \end{bmatrix}$;同样由线性性质,它所张成的斜线上所有向量都仅被拉伸为原来的 $2$ 倍。

除此之外,平面上其他所有方向的向量都会在变换中被扭转偏离原有的直线。

矩阵 [3, 1; 0, 2] 将平面网格变形:i-hat 落至 (3,0),j-hat 落至 (1,2) 01:28
矩阵 [3, 1; 0, 2] 将平面网格变形:i-hat 落至 (3,0),j-hat 落至 (1,2)画面重点:展示开篇核心二维线性变换
绝大多数普通向量变换后偏离自身原有张成直线 01:50
绝大多数普通向量变换后偏离自身原有张成直线画面重点:一般向量与特征向量的鲜明对照
x 轴上的基向量 i-hat 及其共线向量沿原直线拉伸为 3 倍 02:19
x 轴上的基向量 i-hat 及其共线向量沿原直线拉伸为 3 倍画面重点:第一条不变特征直线(x 轴)
隐蔽的特征向量 [-1, 1]^T 沿其对角线精确拉伸为 2 倍 02:44
隐蔽的特征向量 [-1, 1]^T 沿其对角线精确拉伸为 2 倍画面重点:第二条不变特征直线(斜对角线)
[00:20] ↗
“特征向量与特征值”是许多学生认为非常不直观的一个话题
Eigenvectors and eigenvalues is one of those topics that a lot of students find particularly unintuitive.
[00:26] ↗
“为什么要这么做”以及“它究竟意味着什么”之类的问题 通常都淹没在计算的海洋中无人问津
Questions like, why are we doing this and what does this actually mean, are too often left just floating away in an unanswered sea of computations.
[00:34] ↗
在我放出这个视频系列之后 有很多人都在评论,说特别期待这一部分的形象解释
And as I've put out the videos of this series, a lot of you have commented about looking forward to visualizing this topic in particular.
[00:41] ↗
我怀疑 原因并不在于特征的东西特别复杂或是缺乏说明
I suspect that the reason for this is not so much that eigenthings are particularly complicated or poorly explained.
[00:47] ↗
实际上,相对而言它更加直接 而且我认为大部分的书也提供了良好的解释
In fact, it's comparatively straightforward, and I think most books do a fine job explaining it.
[00:52] ↗
问题在于 只有对之前讲的内容有充分的几何直观,你才能真正理解它
The issue is that it only really makes sense if you have a solid visual understanding for many of the topics that precede it.
[00:59] ↗
这里最重要的部分是,你需要了解如何将矩阵看作线性变换 但你也需要熟悉其他的内容 例如行列式、线性方程组和基变换
Most important here is that you know how to think about matrices as linear transformations, but you also need to be comfortable with things like determinants, linear systems of equations, and change of basis.
[01:11] ↗
通常而言,对特征的东西感到疑惑,更多的是因为以上内容的薄弱基础 而不是在于特征向量与特征值本身
Confusion about eigenstuffs usually has more to do with a shaky foundation in one of these topics than it does with eigenvectors and eigenvalues themselves.
[01:20] ↗
首先,考虑二维空间中的某个线性变换 比如现在展示的这个
To start, consider some linear transformation in two dimensions, like the one shown here.
[01:25] ↗
它将基向量i帽变换到坐标(3, 0),j帽变换到坐标(1, 2)
It moves the basis vector i-hat to the coordinates 3, 0, and j-hat to 1, 2.
[01:32] ↗
所以如果用矩阵来表达,它的列就是(3, 0)和(1, 2)
So it's represented with a matrix whose columns are 3, 0, and 1, 2.
[01:37] ↗
我们关注它对一个特定向量的作用 并且考虑这个向量张成的空间,也就是通过原点和向量尖端的直线
Focus in on what it does to one particular vector, and think about the span of that vector, the line passing through its origin and its tip.
[01:45] ↗
大部分向量在变换中都离开了其张成的空间
Most vectors are going to get knocked off their span during the transformation.
[01:49] ↗
我的意思是,如果向量正好落在这条直线上,感觉更像是巧合
I mean, it would seem pretty coincidental if the place where the vector landed also happened to be somewhere on that line.
[01:57] ↗
不过,某些特殊向量的确留在它们张成的空间里 意味着矩阵对它的作用仅仅是拉伸或者压缩而已,如同一个标量
But some special vectors do remain on their own span, meaning the effect that the matrix has on such a vector is just to stretch it or squish it, like a scalar.
[02:09] ↗
在这个例子中,基向量i帽就是这样一个特殊向量
For this specific example, the basis vector i-hat is one such special vector.
[02:15] ↗
i帽张成的空间是x轴 而且从矩阵的第一列可以看出 i帽变成了原来的3倍,仍然留在x轴上
The span of i-hat is the x-axis, and from the first column of the matrix, we can see that i-hat moves over to 3 times itself, still on that x-axis.
[02:26] ↗
此外,因为线性变换的性质 x轴上的任何其他向量都只是被拉伸为原来的3倍 因此也就留在它们张成的空间里
What's more, because of the way linear transformations work, any other vector on the x-axis is also just stretched by a factor of 3, and hence remains on its own span.
[02:38] ↗
有一个略显隐蔽的向量(-1, 1),它在变换中也留在自己张成的空间里
A slightly sneakier vector that remains on its own span during this transformation is negative 1, 1.
[02:45] ↗
最终被拉伸为原来的2倍
It ends up getting stretched by a factor of 2.
[02:49] ↗
同上,线性性质暗示着一点 处在它所张成的对角线上的其他任何一个向量 也仅仅被拉伸为原来的2倍
And again, linearity is going to imply that any other vector on the diagonal line spanned by this guy is just going to get stretched out by a factor of 2.
[03:00] ↗
对这个变换而言 以上就是所有拥有这一特殊性质(留在它们张成的空间里)的向量
And for this transformation, those are all the vectors with this special property of staying on their span.
[03:06] ↗
x轴上的向量被拉伸为原来的3倍 而这条对角线上的向量被拉伸为原来的2倍
Those on the x-axis getting stretched out by a factor of 3, and those on this diagonal line getting stretched by a factor of 2.
[03:13] ↗
任何其他向量在变换中都有或多或少的旋转 从而离开它张成的直线
Any other vector is going to get rotated somewhat during the transformation, knocked off the line that it spans.

定义与意义:特征向量、特征值与三维旋转轴

⏱ 03:23 – 05:11

这种在变换中保持在自身张成直线上的非零向量,称为该变换的特征向量(eigenvector);而它被拉伸或压缩的比例因子,称为对应的特征值(eigenvalue),通常记为 $\lambda$。特征值既可以是正数也可以是负数或分数——例如 $\lambda = -1/2$ 意味着特征向量翻转反向并缩短为一半,但它依然紧贴在原直线上而未发生旋转。

💡 三维空间旋转的终极直觉:特征向量就是旋转轴
试想一个三维空间的刚体旋转。如果能找到该旋转变换的特征向量(变换前后方向未离开自身直线的向量),你找到的正是它的旋转轴(axis of rotation)!且其对应特征值必为 $\lambda = 1$(刚体旋转绝不改变长度)。相比起读入受限于特定坐标轴的 $3\times 3$ 矩阵九个数字,“绕某根特征轴旋转多少度”才是触及变换灵魂且几乎不依赖坐标系的描述。
特征向量与特征值(拉伸比例因子)核心定义画面:λ=3 与 λ=2 两条特征直线 03:36
特征向量与特征值(拉伸比例因子)核心定义画面:λ=3 与 λ=2 两条特征直线画面重点:正式命名 Eigenvector 与 Eigenvalue
负特征值 -1/2 演示:向量反向并减半,但依然留在原张成直线上 03:53
负特征值 -1/2 演示:向量反向并减半,但依然留在原张成直线上画面重点:负特征值的几何意义
三维立方体旋转演示:唯一停留在自身张成直线上的黄色向量即旋转轴(λ=1) 04:16
三维立方体旋转演示:唯一停留在自身张成直线上的黄色向量即旋转轴(λ=1)画面重点:三维旋转轴即特征向量的直观威力
[03:23] ↗
估计你现在已经猜到了 这些特殊向量就被称为变换的“特征向量” 每个特征向量都有一个所属的值,被称为“特征值” 即衡量特征向量在变换中拉伸或压缩比例的因子
As you might have guessed by now, these special vectors are called the eigenvectors of the transformation, and each eigenvector has associated with it what's called an eigenvalue, which is just the factor by which it's stretched or squished during the transformation.
[03:40] ↗
当然,拉伸和压缩或者特征值恰好为正,并没有什么特殊的地方
Of course, there's nothing special about stretching versus squishing, or the fact that these eigenvalues happen to be positive.
[03:46] ↗
换个例子,你可以有一个属于特征值-1/2的特征向量 意味着这个向量被反向,并且被压缩为原来的1/2
In another example, you could have an eigenvector with eigenvalue negative 1 half, meaning that the vector gets flipped and squished by a factor of 1 half.
[03:57] ↗
但是重点在于,它停留在它张成的直线上,并未发生旋转
But the important part here is that it stays on the line that it spans out without getting rotated off of it.
[04:04] ↗
若想知道为什么它有用途并且值得细究 那就考虑一个三维空间中的旋转
For a glimpse of why this might be a useful thing to think about, consider some three-dimensional rotation.
[04:12] ↗
如果你能找到这个旋转的特征向量 也就是留在它张成的空间里的向量 那么你找到的就是旋转轴
If you can find an eigenvector for that rotation, a vector that remains on its own span, what you have found is the axis of rotation.
[04:23] ↗
而且把一个三维旋转看成绕某个轴旋转一定角度,要比考虑相应的3×3矩阵直观得多
And it's much easier to think about a 3D rotation in terms of some axis of rotation and an angle by which it's rotating, rather than thinking about the full 3x3 matrix associated with that transformation.
[04:37] ↗
顺便一提,在这种情况下,相应的特征值必须为1 因为旋转并不缩放任何一个向量 所以向量的长度保持不变
In this case, by the way, the corresponding eigenvalue would have to be 1, since rotations never stretch or squish anything, so the length of the vector would remain the same.
[04:48] ↗
这种规律在线性代数中经常出现
This pattern shows up a lot in linear algebra.
[04:50] ↗
对于任一矩阵描述的线性变换 你可以通过将矩阵的列看作变换后的基向量来理解它
With any linear transformation described by a matrix, you could understand what it's doing by reading off the columns of this matrix as the landing spots for basis vectors.
[05:00] ↗
但是,理解线性变换作用的关键往往较少依赖于你的特定坐标系 更好的方法是求出它的特征向量和特征值
But often, a better way to get at the heart of what the linear transformation actually does, less dependent on your particular coordinate system, is to find the eigenvectors and eigenvalues.

代数求解原理:为何 $\det(A - \lambda I) = 0$?

⏱ 05:15 – 09:26

用符号写出特征向量条件:$A\vec{v} = \lambda\vec{v}$。方程左侧是矩阵乘法,右侧是标量乘法,为了把两边合并成同一个矩阵,我们把右侧写成缩放矩阵 $\begin{bmatrix} \lambda & 0 \\ 0 & \lambda \end{bmatrix}\vec{v} = (\lambda I)\vec{v}$,其中 $I$ 为主对角线全为 $1$ 的单位矩阵。移项并提出公因式 $\vec{v}$:

📐 化为齐次方程与空间降维判据
$$A\vec{v} = \lambda I \vec{v} \;\implies\; (A - \lambda I)\vec{v} = \vec{0} \;\xrightarrow{\vec{v}\neq\vec{0}}\; \det(A - \lambda I) = 0$$
零向量 $\vec{0}$ 永远满足该方程但毫无意义;要存在非零特征向量 $\vec{v}$,新矩阵 $(A-\lambda I)$ 必须把空间压缩降维(把某非零方向压扁进原点),这等价于其行列式必须为零!

以矩阵 $A = \begin{bmatrix} 2 & 2 \\ 1 & 3 \end{bmatrix}$ 为例,想象手里握着一个调节参数 $\lambda$ 的旋钮,不断从对角线上减去 $\lambda$,观察变换矩阵 $(A-\lambda I)$ 的面积缩放率变化。当旋钮恰好扭到 $\lambda = 1$ 时,矩阵 $\begin{bmatrix} 1 & 2 \\ 1 & 2 \end{bmatrix}$ 刚好把整个二维平面压缩进一条直线,此时行列式归零!这意味着存在非零向量 $\vec{v}$ 落入它的零空间,即 $(A-1\cdot I)\vec{v}=\vec{0} \implies A\vec{v}=1\cdot\vec{v}$,此向量在原变换下完全固定不动。

核心方程 Av = λv:左侧为矩阵乘向量,右侧为标量缩放向量 05:37
核心方程 Av = λv:左侧为矩阵乘向量,右侧为标量缩放向量画面重点:特征问题的代数起点
将 λv 改写为 (λI)v 并移项合并得到 (A - λI)v = 0 06:39
将 λv 改写为 (λI)v 并移项合并得到 (A - λI)v = 0画面重点:统一为矩阵乘法求解零空间
动态旋钮实验:以 [2,2;1,3] 为例调节 λ,观察矩阵空间随 λ 形变 07:50
动态旋钮实验:以 [2,2;1,3] 为例调节 λ,观察矩阵空间随 λ 形变画面重点:从几何降维视角理解寻找特征值
甜点时刻 λ=1:(A - I) 将整个平面压缩成一条直线,行列式恰为零 08:26
甜点时刻 λ=1:(A - I) 将整个平面压缩成一条直线,行列式恰为零画面重点:特征方程 det(A-λI)=0 的几何本质
[05:15] ↗
我并不会涉及计算特征向量和特征值的具体细节 但是我会尽量概述一下计算思想 这对概念上的理解至关重要
I won't cover the full details on methods for computing eigenvectors and eigenvalues here, but I'll try to give an overview of the computational ideas that are most important for a conceptual understanding.
[05:27] ↗
用符号表示的话,以下就是特征向量的概念
Symbolically, here's what the idea of an eigenvector looks like.
[05:31] ↗
A是代表某个变换的矩阵 v是特征向量 λ是一个数,也就是对应的特征值
A is the matrix representing some transformation, with v as the eigenvector, and lambda is a number, namely the corresponding eigenvalue.
[05:41] ↗
这个等式是说,矩阵向量乘积,也就是A乘以v 等于特征向量v乘以某个数λ
What this expression is saying is that the matrix-vector product, A times v, gives the same result as just scaling the eigenvector v by some value lambda.
[05:51] ↗
因此求解矩阵A的特征向量和特征值 实际上就是求解使得这个等式成立的向量v和数λ
So finding the eigenvectors and their eigenvalues of a matrix A comes down to finding the values of v and lambda that make this expression true.
[06:02] ↗
乍一看,求解这个等式有些棘手 因为等号左侧代表的是矩阵向量乘积 但是等号右侧代表的是向量数乘
It's a little awkward to work with at first, because that left-hand side represents matrix-vector multiplication, but the right-hand side here is scalar-vector multiplication.
[06:11] ↗
所以我们首先将等号右侧重写为某个矩阵向量乘积 其中,矩阵的作用效果是将任一向量乘以λ
So let's start by rewriting that right-hand side as some kind of matrix-vector multiplication, using a matrix which has the effect of scaling any vector by a factor of lambda.
[06:22] ↗
这个矩阵的列代表着变换后的基向量 而每个基向量仅仅与λ相乘 所以这个矩阵的对角元均为λ,其余位置都是0
The columns of such a matrix will represent what happens to each basis vector, and each basis vector is simply multiplied by lambda, so this matrix will have the number lambda down the diagonal, with zeros everywhere else.
[06:36] ↗
通常的书写方法是提出因子λ,写作λ乘以 I 这里的 I 就是单位矩阵,对角元均为1
The common way to write this guy is to factor that lambda out and write it as lambda times i, where i is the identity matrix with 1s down the diagonal.
[06:46] ↗
现在两侧都是矩阵向量乘积的形式 我们就能将等号右侧的东西移到左侧,然后提出因子v
With both sides looking like matrix-vector multiplication, we can subtract off that right-hand side and factor out the v.
[06:54] ↗
现在我们得到的是一个新的矩阵 - A减去λ乘以单位阵 我们就寻找一个向量v,使得这个新矩阵与v相乘结果为零向量
So what we now have is a new matrix, A minus lambda times the identity, and we're looking for a vector v such that this new matrix times v gives the zero vector.
[07:06] ↗
如果v本身就是零向量的话,这个等式恒成立 但是这没什么意思
Now, this will always be true if v itself is the zero vector, but that's boring.
[07:11] ↗
我们想要的是一个非零特征向量
What we want is a non-zero eigenvector.
[07:14] ↗
如果你看过第五章和第六章视频的话 你就知道,当且仅当矩阵代表的变换将空间压缩到更低的维度时 才会存在一个非零向量,使得矩阵和它的乘积为零向量
And if you watch chapter 5 and 6, you'll know that the only way it's possible for the product of a matrix with a non-zero vector to become zero is if the transformation associated with that matrix squishes space into a lower dimension.
[07:29] ↗
而空间压缩对应的就是矩阵的行列式为零
And that squishification corresponds to a zero determinant for the matrix.
[07:35] ↗
举个具体的例子,假设你有一个矩阵,列为(2, 1)和(2, 3) 考虑每个对角元都减去某个变量λ
To be concrete, let's say your matrix A has columns 2, 1 and 2, 3, and think about subtracting off a variable amount, lambda, from each diagonal entry.
[07:46] ↗
现在想象一下,逐渐调整λ的值
Now imagine tweaking lambda, turning a knob to change its value.
[07:51] ↗
当λ的值改变时 矩阵本身发生改变,因此行列式也在改变
As that value of lambda changes, the matrix itself changes, and so the determinant of the matrix changes.
[07:58] ↗
目标在于找到一个λ使得这个行列式为零 也就是说调整后的变换将空间压缩到一个更低的维度上
The goal here is to find a value of lambda that will make this determinant zero, meaning the tweaked transformation squishes space into a lower dimension.
[08:08] ↗
在这个例子中,λ等于1时恰到好处
In this case, the sweet spot comes when lambda equals 1.
[08:12] ↗
当然,如果我选择其他的矩阵 特征值不一定是1,λ取其他值时才能使行列式为零
Of course, if we had chosen some other matrix, the eigenvalue might not necessarily be 1.
[08:16] ↗
特征值不一定是1,λ取其他值时才能使行列式为零
The sweet spot might be hit at some other value of lambda.
[08:20] ↗
这看起来有点复杂,不过我们来解释这个过程的意思
So this is kind of a lot, but let's unravel what this is saying.
[08:23] ↗
当λ等于1时,A减去λ乘以单位阵将空间压缩到一条直线上
When lambda equals 1, the matrix A minus lambda times the identity squishes space onto a line.
[08:30] ↗
这意味着存在一个非零向量v 使得A减去λ乘以单位阵的结果乘以v等于零向量
That means there's a non-zero vector v such that A minus lambda times the identity times v equals the zero vector.
[08:40] ↗
记住一点,我们关注它,是因为它意味着A乘以v等于λ乘以v 也就是说向量v是A的一个特征向量 在变换中停留在它张成的空间里
And remember, the reason we care about that is because it means A times v equals lambda times v, which you can read off as saying that the vector v is an eigenvector of A, staying on its own span during the transformation A.
[08:58] ↗
在这个例子中,v对应的特征值是1,所以它实际上保持不变
In this example, the corresponding eigenvalue is 1, so v would actually just stay fixed in place.
[09:06] ↗
如果你觉得理解还不够透彻,那就暂停思考一下
Pause and ponder if you need to make sure that that line of reasoning feels good.
[09:13] ↗
这就是我在绪论中提到的内容
This is the kind of thing I mentioned in the introduction.
[09:16] ↗
如果你没有充分理解行列式,以及它为什么与线性方程组存在非零解有所联系 这个等式会让你感到出乎意料
If you didn't have a solid grasp of determinants and why they relate to linear systems of equations having non-zero solutions, an expression like this would feel completely out of the blue.

例题实算与三大特例:旋转、剪切与各向同性缩放

⏱ 09:28 – 12:47

回到开头的矩阵 $A = \begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix}$:对角线减去 $\lambda$ 求行列式,得特征多项式 $\det\begin{bmatrix} 3-\lambda & 1 \\ 0 & 2-\lambda \end{bmatrix} = (3-\lambda)(2-\lambda) = 0$,立即解出两个特征值 $\lambda = 2$ 与 $\lambda = 3$。把 $\lambda = 2$ 代回 $(A - 2I)\vec{v} = \vec{0}$,求解线性方程组 $\begin{bmatrix} 1 & 1 \\ 0 & 0 \end{bmatrix}\begin{bmatrix} x \\ y \end{bmatrix} = \vec{0}$,就得出所有形如 $t\begin{bmatrix} -1 \\ 1 \end{bmatrix}$ 的斜对角线特征向量!

但并非所有矩阵都拥有实特征向量。紧接着剖析三个极富启发性的经典特例:

  • 特例 1(无实特征向量——$90^\circ$ 旋转):矩阵 $\begin{bmatrix} 0 & -1 \\ 1 & 0 \end{bmatrix}$ 把每一个向量都转离了原直线。代数上,特征多项式为 $\lambda^2 + 1 = 0$,仅有虚根 $\lambda = \pm i$;没有实数解恰恰对应几何上没有实特征向量(提示虚数与旋转的深层联系)。
  • 特例 2(特征值重根但缺方向——剪切变换):剪切矩阵 $\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}$ 仅保持 $x$ 轴静止不动,特征多项式为 $(1-\lambda)^2 = 0$,唯一特征值为 $\lambda = 1$,且特征向量全部挤在一条直线($x$ 轴)上。
  • 特例 3(单特征值却满平面向量——各向同性放大):矩阵 $\begin{bmatrix} 2 & 0 \\ 0 & 2 \end{bmatrix}$ 把所有向量拉长 $2$ 倍。它也只有一个特征值 $\lambda = 2$,但平面上的每一个非零向量都是特征向量!
对开篇矩阵 [3,1;0,2] 展开行列式得到特征多项式 (3-λ)(2-λ) 09:55
对开篇矩阵 [3,1;0,2] 展开行列式得到特征多项式 (3-λ)(2-λ)画面重点:求特征值标准代数流程
代入 λ=2 求解齐次方程,解集恰好为 [-1, 1]^T 张成的对角线 10:30
代入 λ=2 求解齐次方程,解集恰好为 [-1, 1]^T 张成的对角线画面重点:代数方程组与开头几何直觉完美印证
90° 旋转矩阵特征多项式为 λ^2 + 1 = 0,仅有虚特征值 λ = i 或 -i 11:25
90° 旋转矩阵特征多项式为 λ^2 + 1 = 0,仅有虚特征值 λ = i 或 -i画面重点:无实特征值对应平面上无不变直线
剪切矩阵 [1,1;0,1] 仅 x 轴向量不动,特征多项式 (1-λ)^2=0 仅有一条特征直线 11:51
剪切矩阵 [1,1;0,1] 仅 x 轴向量不动,特征多项式 (1-λ)^2=0 仅有一条特征直线画面重点:重特征值却只有一个一维特征子空间
纯缩放矩阵 2I:特征值同样只有 λ=2,但全平面所有非零向量都是特征向量 12:35
纯缩放矩阵 2I:特征值同样只有 λ=2,但全平面所有非零向量都是特征向量画面重点:对比重根特征值的不同几何自由度
[09:28] ↗
为了了解这个过程,我们重温一下视频开头的例子 这个矩阵的列是(3, 0)和(1, 2)
To see this in action, let's revisit the example from the start, with a matrix whose columns are 3, 0 and 1, 2.
[09:35] ↗
为了求解特征值λ 将矩阵的对角元减去λ,然后计算行列式
To find if a value lambda is an eigenvalue, subtract it from the diagonals of this matrix and compute the determinant.
[09:51] ↗
这样我们就得到了一个关于λ的二次多项式(3-λ)(2-λ)
Doing this, we get a certain quadratic polynomial in lambda, 3 minus lambda times 2 minus lambda.
[09:58] ↗
因为只有当这个行列式为零时,λ才会是特征值 你就能推断出,所有可能的特征值是λ等于2和λ等于3
Since lambda can only be an eigenvalue if this determinant happens to be zero, you can conclude that the only possible eigenvalues are lambda equals 2 and lambda equals 3.
[10:10] ↗
为了求出属于某个特征值的特征向量,比如λ等于2 将λ的值代入矩阵当中 然后求解出在这个对角线变化的矩阵变换后成为零的向量
To figure out what the eigenvectors are that actually have one of these eigenvalues, say lambda equals 2, plug in that value of lambda to the matrix and then solve for which vectors this diagonally altered matrix sends to zero.
[10:25] ↗
如果进行计算,如同求解其他线性方程组一样 你会发现所有的解全部落在由向量(-1, 1)张成的对角线上
If you computed this the way you would any other linear system, you'd see that the solutions are all the vectors on the diagonal line spanned by negative 1, 1.
[10:35] ↗
与之对应的,就是原始的矩阵[(3, 0), (1, 2)]将这些向量拉伸为原来的2倍
This corresponds to the fact that the unaltered matrix, 3, 0, 1, 2, has the effect of stretching all those vectors by a factor of 2.
[10:46] ↗
不过,二维线性变换不一定有特征向量
Now, a 2D transformation doesn't have to have eigenvectors.
[10:51] ↗
举个例子,考虑这样一个90度的旋转
For example, consider a rotation by 90 degrees.
[10:54] ↗
它并没有特征向量,因为每一个向量都发生了旋转并离开了其张成的空间
This doesn't have any eigenvectors since it rotates every vector off of its own span.
[11:01] ↗
如果你真的尝试去计算它的特征值,注意一下会发生什么
If you actually try computing the eigenvalues of a rotation like this, notice what happens.
[11:06] ↗
矩阵的列为(0, 1)和(-1, 0)
Its matrix has columns 0, 1 and negative 1, 0.
[11:11] ↗
对角元减去λ后,然后寻找行列式为0的情形
Subtract off lambda from the diagonal elements and look for when the determinant is zero.
[11:18] ↗
在这个例子里,你会得到多项式λ^2+1
In this case, you get the polynomial lambda squared plus 1.
[11:23] ↗
这个多项式的根只能是虚数i与-i
The only roots of that polynomial are the imaginary numbers, i and negative i.
[11:29] ↗
没有实数解表明它没有特征向量
The fact that there are no real number solutions indicates that there are no eigenvectors.
[11:36] ↗
另一个很有意思并且值得思考的例子是剪切变换
Another pretty interesting example worth holding in the back of your mind is a shear.
[11:41] ↗
它保持i帽不变,将j帽向右移动一个单位 所以矩阵的列为(1, 0)和(1, 1)
This fixes i-hat in place and moves j-hat 1 over, so its matrix has columns 1, 0 and 1, 1.
[11:49] ↗
所有x轴上的向量都是属于特征值1的特征向量,因为它们都保持不变
All of the vectors on the x-axis are eigenvectors with eigenvalue 1 since they remain fixed in place.
[11:56] ↗
实际上,这些就是所有的特征向量
In fact, these are the only eigenvectors.
[11:59] ↗
当你将对角元减去λ,然后计算行列式 你得到的是(1-λ)^2
When you subtract off lambda from the diagonals and compute the determinant, what you get is 1 minus lambda squared.
[12:09] ↗
这个多项式唯一的根是λ等于1
And the only root of this expression is lambda equals 1.
[12:15] ↗
这与几何上得到的“所有特征向量均属于特征值1”的结果一致
This lines up with what we see geometrically, that all of the eigenvectors have eigenvalue 1.
[12:21] ↗
不过注意一点 可能会出现只有一个特征值,但是特征向量不止在一条直线上的情况
Keep in mind though, it's also possible to have just one eigenvalue, but with more than just a line full of eigenvectors.
[12:30] ↗
一个简单的例子是将所有向量变为两倍的矩阵
A simple example is a matrix that scales everything by 2.
[12:34] ↗
唯一的特征值是2,但是平面内每一个向量都是属于这个特征值的特征向量
The only eigenvalue is 2, but every vector in the plane gets to be an eigenvector with that eigenvalue.
[12:42] ↗
现在是暂停思考这部分的绝好时机 因为接下来我会继续最后一个话题
Now is another good time to pause and ponder some of this before I move on to the last topic.

终极武器:特征基(Eigenbasis)与矩阵对角化

⏱ 13:04 – 16:46

如果我们的基向量恰好全都是特征向量,例如 $\hat{\imath}$ 被缩放 $-1$ 倍、$\hat{\jmath}$ 被缩放 $2$ 倍,那么记录新基落点的矩阵就是 $\begin{bmatrix} -1 & 0 \\ 0 & 2 \end{bmatrix}$——除了主对角线上躺着各自的特征值外,其余位置全是 $0$,称为对角矩阵(diagonal matrix)。对角矩阵最诱人的性质是计算高次幂极其轻松:将它连乘 $100$ 次,只相当于把每个对角元(特征值)直接取 $100$ 次幂!

一般矩阵的基通常不是特征向量。但如果一个变换拥有足够多线性无关的特征向量以至于能张成整个空间(例如开篇的 $\begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix}$ 拥有 $\begin{bmatrix} 1 \\ 0 \end{bmatrix}$ 和 $\begin{bmatrix} -1 \\ 1 \end{bmatrix}$),我们就可以通过第 13 章的基变换把这组特征向量选为新坐标系——即一组特征基(eigenbasis)。

📐 特征基三明治公式:将一般矩阵化为对角矩阵
$$\underbrace{\begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix}^{-1}}_{P^{-1}} \underbrace{\begin{bmatrix} 3 & 1 \\ 0 & 2 \end{bmatrix}}_{A} \underbrace{\begin{bmatrix} 1 & -1 \\ 0 & 1 \end{bmatrix}}_{P} = \begin{bmatrix} 3 & 0 \\ 0 & 2 \end{bmatrix} = D$$
因为在新基坐标系中,基向量自身仅仅被特征值缩放,所以三明治乘积必然是一个主对角线为特征值的对角矩阵 $D$!求 $A^{100}$ 只需“切换至特征基 $\to$ 求 $D^{100}$ $\to$ 切换回标准基”。
⚠️ 并非所有矩阵都能对角化
像前面的剪切矩阵 $\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}$,它的特征向量只有 $x$ 轴一条直线,不够张成整个二维空间,因此找不到完整的特征基,也就无法对角化。视频结尾留下一道经典斐波那契矩阵高次幂练习:$A = \begin{bmatrix} 0 & 1 \\ 1 & 1 \end{bmatrix}$(特征向量为 $\begin{bmatrix} 2 \\ 1+\sqrt{5} \end{bmatrix}$ 与 $\begin{bmatrix} 2 \\ 1-\sqrt{5} \end{bmatrix}$),利用特征基即可推导 $A^n$ 的显式闭式公式,并预告全系列最终章《抽象向量空间》。
当基向量就是特征向量时,矩阵呈对角形式 [-1,0;0,2],对角元恰为特征值 13:34
当基向量就是特征向量时,矩阵呈对角形式 [-1,0;0,2],对角元恰为特征值画面重点:对角矩阵的几何本质
对角矩阵连乘 100 次等价于对各特征值直接取 100 次幂 14:20
对角矩阵连乘 100 次等价于对各特征值直接取 100 次幂画面重点:为何数学家偏爱对角矩阵
当变换具备张成全空间的特征向量时,将其选作新的基向量(特征基) 14:55
当变换具备张成全空间的特征向量时,将其选作新的基向量(特征基)画面重点:构建特征基坐标系
基变换三明治 P^-1 A P 必然输出以特征值为对角元的对角矩阵 15:30
基变换三明治 P^-1 A P 必然输出以特征值为对角元的对角矩阵画面重点:矩阵相似对角化完整流程
计算非对角矩阵 100 次幂的捷径路线图:换基 → 对角幂 → 换回 16:08
计算非对角矩阵 100 次幂的捷径路线图:换基 → 对角幂 → 换回画面重点:特征基对角化的实战威力
片尾拓展谜题提示卡片:利用特征基求解矩阵高次幂的惊人应用 16:34
片尾拓展谜题提示卡片:利用特征基求解矩阵高次幂的惊人应用画面重点:思维拓展练习预告
[13:04] ↗
我想以特征基的概念结束这期视频 而它在很大程度上依赖于上期视频的思想
I want to finish off here with the idea of an eigenbasis, which relies heavily on ideas from the last video.
[13:11] ↗
如果我们的基向量恰好是特征向量,来看看会发生什么
Take a look at what happens if our basis vectors just so happen to be eigenvectors.
[13:17] ↗
比如说,可能i帽变为原来的(-1)倍,j帽变为原来的2倍
For example, maybe i-hat is scaled by negative 1 and j-hat is scaled by 2.
[13:23] ↗
将它们的新坐标作为矩阵的列 注意,它们的倍数-1和2,也就是i帽和j帽所属的特征值 位于矩阵的对角线上,而其他元素均为0
Writing their new coordinates as the columns of a matrix, notice that those scalar multiples, negative 1 and 2, which are the eigenvalues of i-hat and j-hat, sit on the diagonal of our matrix, and every other entry is a 0.
[13:39] ↗
除了对角元以外其他元素均为0的矩阵被称为对角矩阵,这非常合理
Any time a matrix has zeros everywhere other than the diagonal, it's called, reasonably enough, a diagonal matrix.
[13:46] ↗
解读它的方法是,所有基向量都是特征向量 矩阵的对角元是它们所属的特征值
And the way to interpret this is that all the basis vectors are eigenvectors, with the diagonal entries of this matrix being their eigenvalues.
[13:57] ↗
对角矩阵在很多方面都更容易处理
There are a lot of things that make diagonal matrices much nicer to work with.
[14:02] ↗
其中一个重要的方面是,矩阵与自己多次相乘的结果更容易计算
One big one is that it's easier to compute what will happen if you multiply this matrix by itself a whole bunch of times.
[14:09] ↗
因为对角矩阵仅仅让基向量与某个特征值相乘 所以多次应用矩阵乘法,比如100次 也只是将每个基向量与对应特征值的100次幂相乘
Since all one of these matrices does is scale each basis vector by some eigenvalue, applying that matrix many times, say 100 times, is just going to correspond to scaling each basis vector by the 100th power of the corresponding eigenvalue.
[14:26] ↗
相比之下,尝试计算一个非对角矩阵的100次幂
In contrast, try computing the 100th power of a non-diagonal matrix.
[14:30] ↗
真的去试试看,这就是场噩梦
Really, try it for a moment.
[14:32] ↗
真的去试试看,这就是场噩梦
It's a nightmare.
[14:36] ↗
当然对于基向量同时也是特征向量的情况,你很可能不像它那么幸运
Of course, you'll rarely be so lucky as to have your basis vectors also be eigenvectors.
[14:42] ↗
但是如果你的变换有许多特征向量,就像视频开始时的例子一样 多到你能选出一个张成全空间的集合 那么你就能变换你的坐标系,使得这些特征向量就是基向量
But if your transformation has a lot of eigenvectors, like the one from the start of this video, enough so that you can choose a set that spans the full space, then you could change your coordinate system so that these eigenvectors are your basis vectors.
[14:57] ↗
我在上期视频中已经讨论过基变换了 不过我在这里再做一次超快的回顾 说说如何在另一个坐标系中表达当前坐标系所描述的变换
I talked about change of basis last video, but I'll go through a super quick reminder here of how to express a transformation currently written in our coordinate system into a different system.
[15:08] ↗
取出你想用作新基的向量的坐标 在这里指的是两个特征向量 然后将坐标作为一个矩阵的列,这个矩阵就是基变换矩阵
Take the coordinates of the vectors that you want to use as a new basis, which in this case means our two eigenvectors, then make those coordinates the columns of a matrix, known as the change of basis matrix.
[15:20] ↗
在右侧写下基变换矩阵 在左侧写下基变换矩阵的逆 当你将原始的变换夹在两个矩阵中间时 所得的矩阵代表的是同一个变换 不过是从新基向量所构成的坐标系的角度来看的
When you sandwich the original transformation, putting the change of basis matrix on its right and the inverse of the change of basis matrix on its left, the result will be a matrix representing that same transformation, but from the perspective of the new basis vectors coordinate system.
[15:37] ↗
用特征向量来完成这件事的意义在于 这个新矩阵必然是对角的,并且对角元为对应的特征值
The whole point of doing this with eigenvectors is that this new matrix is guaranteed to be diagonal with its corresponding eigenvalues down that diagonal.
[15:47] ↗
这是因为,它所处的坐标系的基向量在变换中只进行了缩放
This is because it represents working in a coordinate system where what happens to the basis vectors is that they get scaled during the transformation.
[15:56] ↗
一组基向量(同样是特征向量)构成的集合被称为一组“特征基”,这也非常合理
A set of basis vectors which are also eigenvectors is called, again, reasonably enough, an eigenbasis.
[16:02] ↗
所以说,如果你要计算这个矩阵的100次幂 一种更容易的做法是先变换到特征基 在那个坐标系中计算100次幂 然后转换回标准坐标系
So if, for example, you needed to compute the 100th power of this matrix, it would be much easier to change to an eigenbasis, compute the 100th power in that system, then convert back to our standard system.
[16:17] ↗
不是所有变换都能进行这一过程
You can't do this with all transformations.
[16:18] ↗
比如说剪切变换,它的特征向量不够多,并不能张成全空间
A shear, for example, doesn't have enough eigenvectors to span the full space.
[16:23] ↗
但是如果你能找到一组特征基,矩阵运算就会变得非常轻松
But if you can find an eigenbasis, it makes matrix operations really lovely.
[16:29] ↗
对于那些愿意动笔计算的人,我在屏幕上留了一道练习 帮助你们理解矩阵幂次计算的实际过程,以及它所能带来的惊人结论
For those of you willing to work through a pretty neat puzzle to see what this looks like in action and how it can be used to produce some surprising results, I'll leave up a prompt here on the screen.
[16:38] ↗
这需要下一点功夫,不过我觉得你会喜欢它的
It takes a bit of work, but I think you'll enjoy it.
[16:41] ↗
下期,也就是最后一期视频,是关于抽象向量空间的内容 到时候再见!
The next and final video of this series is going to be on abstract vector spaces. See you then!

📝 几何直觉自测(点击题目展开解答)

Q1. 为什么求解特征值时,必须令 $\det(A - \lambda I) = 0$?▼
特征向量定义为满足 $A\vec{v} = \lambda\vec{v}$ 的非零向量,整理得 $(A - \lambda I)\vec{v} = \vec{0}$。只有当矩阵 $(A - \lambda I)$ 将空间压缩进更低维度(行列式为 $0$)时,才存在非零向量被它映射为零向量。
Q2. 三维空间中任意绕过原点轴线的旋转矩阵,是否至少有一个实特征向量和实特征值?如果有,它是什么?▼
是的!旋转轴本身上的所有非零向量在旋转后方向和长度都不变,因此旋转轴方向向量必然是特征向量,且对应特征值必为 $\lambda = 1$(实数)。这也从几何上说明为何奇数阶实矩阵至少有一个实特征值。
Q3. 是不是只要矩阵有特征向量就能通过基变换对角化?请举反例说明。▼
不是。必须有足够多的线性无关特征向量以至于能张成整个空间(构成特征基),才能对角化。反例是二维剪切矩阵 $\begin{bmatrix} 1 & 1 \\ 0 & 1 \end{bmatrix}$,它只有特征值 $\lambda=1$ 且特征向量全部集中在 $x$ 轴这一维直线上,无法张成二维平面。