第 24 章
第二次测验复习:按题型串起正交、行列式与特征值
用七类典型题复习:投影矩阵、投影型差分方程、最小二乘、Gram-Schmidt、特征值性质、三对角递推,以及矩阵族的可逆性与投影。
Quiz 2 Review: Tying Orthogonality, Determinants, and Eigenvalues Together
Seven problem types: projection matrices, projection difference equations, least squares, Gram-Schmidt, eigenvalue identities, tridiagonal recurrences, and a family of matrices.
篇内目录
- Scope
- Timeline
- Problem type 1: projection onto a line
- Rank, eigenvalues, eigenvectors
- Problem type 2: a projection difference equation
- Contrast with a general matrix
- Problem type 3: least squares through the origin
- Two pictures, not one
- Problem type 4: Gram-Schmidt
- Problem type 5: eigenvalue identities
- Problem type 6: the tridiagonal recurrence
- The recurrence
- A first-order system
- Eigenvalues
- Problem type 7: a family of matrices
- Core review
- Common misconceptions
- Check your understanding
- How this connects
复习范围
这次测验覆盖三块内容:
- 正交性:、投影到直线与子空间、最小二乘、Gram-Schmidt。
- 行列式:三条定义性质、由它们推出的性质、大公式与代数余子式、逆矩阵公式。
- 特征值与特征向量(6.1–6.2):、特征方程、对角化与矩阵的幂。
微分方程(6.3)不在这次范围内。
时间轴
| 时间 | 内容 |
|---|---|
| 0:09 | 复习范围与考试安排 |
| 3:28 | 用旧考题串讲 |
| 6:34 | 特征值相关的问法 |
| 9:41 | 题型一:投影到直线 |
| 13:02 | 用特征向量展开 |
| 16:03 | 题型三:过原点的最小二乘 |
| 19:07 | 最小二乘的关键点 |
| 22:10 | 题型四:Gram-Schmidt |
| 25:17 | 零特征值的含义 |
| 28:22 | 题型六:三对角矩阵族 |
| 31:39 | 行列式的递推 |
| 34:52 | 把递推设为零 |
| 37:59 | 稳定性与 的符号 |
| 41:12 | 的具体矩阵 |
| 44:17 | 用迹校验特征值和 |
| 47:27 | 的行列式 |
题型一:投影到直线
题目:,求投影到 所在直线的矩阵 。
单列矩阵的投影公式是
先算分母:
分子是外积:
所以
追问:秩、特征值、特征向量
- 秩为 1,因为每一列都是 的倍数。
- 列空间就是 所在的直线。
- 秩为 1 说明零空间是二维的,所以 是二重特征值。
- 剩下的特征值由迹决定:,所以第三个特征值是 1。
- 的特征向量就是 本身:投影到直线上, 不动。
也可以用投影矩阵的通用性质:,所以特征值只能是 0 或 1。
题型二:投影型差分方程
题目:,,求 。
第一步:
计算内积:
所以
关键观察: 已经在直线上。再投影一次不会改变它,因为 。因此
与一般矩阵的对比
若矩阵不是投影矩阵,就必须走完整流程:
- 求特征值;
- 求特征向量;
- 把 展开成 ;
- 得到 。
投影矩阵的特殊之处在于:两个特征值为零,对应项从第一步起就消失,只剩 的那一项。
题型三:过原点的最小二乘
题目:用 拟合点 。
写成方程组:
这个方程组无解(三个点不共线)。最小二乘解满足正规方程
计算:
所以
两张图不要混淆
- ty 平面图:三个数据点与拟合直线 。这里没有把点投影到直线上。
- 向量空间图:把 投影到 的列空间。列空间是由 张成的一条直线。投影得到的向量是 。
最小二乘的「投影」发生在第二张图里。
题型四:Gram-Schmidt
题目:,,求同一平面内的一组正交基。
保留 ,把 中沿 方向的分量减掉:
计算:
验证正交性:
题目只要正交,不必单位化;若要标准正交,再除以 。
题型五:特征值的性质
设 矩阵 的特征值为 。
| 问题 | 答案 | 依据 |
|---|---|---|
| 可逆的条件 | 所有 | 零特征值 奇异 |
| 的特征值是 | ||
| 加 使每个特征值加 1 |
这些关系都来自两条恒等式:特征值之和等于迹,之积等于行列式。
题型六:三对角全 1 矩阵的递推
设 是 阶三对角矩阵,三条对角线全为 1。记 。
递推公式
沿第一行展开。第一个 1 的余子式是 。第二个 1 位于 ,符号为负;它的余子式再沿第一列展开,得到 。因此
初值:
化成一阶系统
令向量 ,则
特征值
解得
两个特征值的模都是 1,所以 不收敛也不发散,而是周期变化。又因为 ,矩阵的六次方是单位矩阵,序列周期为 6。
这与前面 Fibonacci 的例子形成对照:Fibonacci 的递推是 ,特征值一实一虚、模不为 1,所以指数增长;这里中间是减号,特征值落在单位圆上,所以周期。
题型七:矩阵族的可逆性
设 为
第三列是第一列的 2 倍,所以奇异。
特征多项式:
特征值为
迹为 0,与特征值之和一致。
设 为
用余子式展开算行列式,得到 ,所以可逆。可逆意味着列空间是整个 ,投影到列空间的矩阵就是单位矩阵。
一般规律(课堂上的猜测):奇数阶奇异,偶数阶可逆,行列式有规律可循。
核心回顾
- 投影到直线:,秩 1,特征值 1 与 0。
- 投影型差分方程:一次投影后就到达不动点。
- 最小二乘:正规方程 ;投影发生在 所在空间。
- Gram-Schmidt:减去在已有方向上的投影。
- 特征值性质:可逆看零、逆取倒数、加 平移。
- 三对角递推:,特征值在单位圆上,周期 6。
- 矩阵族:先判断可逆,再谈列空间与投影。
常见误区
- 在最小二乘里把数据点投影到拟合直线上。投影发生在向量空间,不在散点图。
- Gram-Schmidt 忘记减去投影,只做正交化的一半。
- 算完特征值不验证迹与行列式。这是最快的自检。
- 把三对角递推的符号写反。中间的减号来自 位置的负号。
- 看到矩阵族就直接求投影矩阵。先判断可逆性,可逆时答案可能平凡。
理解检验
1. 为什么投影矩阵的零空间维数等于 ?
参考答案:,每一列都是 的倍数,所以 ()。由秩–零化度定理,
几何上, 把向量投影到直线 上,只有该方向在列空间里;垂直于 的 维超平面整体被压成零。对应地, 的代数重数是 , 的重数是 1。
2. 若 已经在列空间内, 与 有什么关系?
参考答案:,投影到列空间不动,所以 。由 ,之后每一步都不再变化: 对所有 成立。在特征向量分解中, 只含 的分量,两个 分量系数为零,所以没有任何衰减项。
3. 用正规方程求 过原点的拟合,并解释 的单位。
参考答案:,。正规方程 :
所以 。单位是「 的单位除以 的单位」:若 用米、 用秒,,正是直线的斜率(速度)。过原点的模型没有截距,只有一个参数。
4. 写出三对角矩阵序列的前六项行列式。
参考答案:递推 ,初值 、:
序列是 ,周期 6; 与特征值落在单位圆上、满足 一致。
5. 可逆,为什么它到列空间的投影矩阵是 ?
参考答案: 是 且 ,所以它的四列线性无关,列空间是整个 。任何向量都已经在列空间里,投影不改变它。公式验证:
推广: 且列满秩时, 是投影到 的矩阵;只有 为可逆方阵时它才恰好等于 。
与前后课程的关系
复习课把正交、行列式、特征值三条线并置。接下来的课程进入对称矩阵与正定性:实特征值、正交特征向量、二次型的符号,都会在这里汇合。
Scope
The quiz covers three blocks:
- Orthogonality: , projections onto lines and subspaces, least squares, Gram-Schmidt.
- Determinants: the three defining properties, their consequences, the big formula and cofactors, the inverse formula.
- Eigenvalues and eigenvectors (6.1–6.2): , the characteristic equation, diagonalization and powers.
Differential equations (6.3) are not on this quiz.
Timeline
| Time | Topic |
|---|---|
| 0:09 | Scope of the review and exam logistics |
| 3:28 | Working through old exam problems |
| 6:34 | Eigenvalue questions |
| 9:41 | Problem type 1: projection onto a line |
| 13:02 | Expanding in eigenvectors |
| 16:03 | Problem type 3: least squares through the origin |
| 19:07 | The key point of least squares |
| 22:10 | Problem type 4: Gram-Schmidt |
| 25:17 | What a zero eigenvalue means |
| 28:22 | Problem type 6: the tridiagonal family |
| 31:39 | The determinant recurrence |
| 34:52 | Setting the recurrence to zero |
| 37:59 | Stability and the signs of |
| 41:12 | The matrix |
| 44:17 | Checking with the trace |
| 47:27 | The determinant of |
Problem type 1: projection onto a line
Problem: For , find the matrix that projects onto the line through .
For a single-column matrix the formula is
The denominator:
The numerator is the outer product:
Hence
Rank, eigenvalues, eigenvectors
- The rank is 1, since every column is a multiple of .
- The column space is the line through .
- Rank 1 means the null space is two-dimensional, so has multiplicity two.
- The remaining eigenvalue comes from the trace: , so the third eigenvalue is 1.
- The eigenvector for is itself: a vector on the line does not move under projection.
Equivalently, use , which forces every eigenvalue to be 0 or 1.
Problem type 2: a projection difference equation
Problem: Solve with .
First step:
The inner product:
so
The key observation: already lies on the line, and , so projecting again changes nothing. Therefore
Contrast with a general matrix
For a general matrix, the full procedure is:
- find the eigenvalues;
- find the eigenvectors;
- expand ;
- write .
For a projection, two eigenvalues are zero, so those terms vanish immediately and only the term remains.
Problem type 3: least squares through the origin
Problem: Fit to .
As a system:
which has no solution, since the three points are not collinear. The least-squares solution satisfies the normal equation
Compute:
so
Two pictures, not one
- The -plane picture: the three data points and the fitted line . Nothing is projected onto the line here.
- The vector-space picture: is projected onto the column space of , which is the line spanned by in . The projection is .
The word "projection" in least squares belongs to the second picture.
Problem type 4: Gram-Schmidt
Problem: For and , find an orthogonal basis of their plane.
Keep and subtract from its component along :
Compute:
Check orthogonality:
Only orthogonality was requested; normalize by dividing by if an orthonormal basis is needed.
Problem type 5: eigenvalue identities
Let a matrix have eigenvalues .
| Question | Answer | Reason |
|---|---|---|
| When is invertible? | All | A zero eigenvalue is equivalent to singularity |
| has eigenvalues | ||
| Adding shifts every eigenvalue by 1 |
All three follow from the two identities: eigenvalues sum to the trace and multiply to the determinant.
Problem type 6: the tridiagonal recurrence
Let be the tridiagonal matrix with ones on all three diagonals, and let .
The recurrence
Expand along the first row. The first 1 has cofactor . The second 1 sits at with a minus sign; expanding its cofactor along the first column leaves . Therefore
Initial values:
A first-order system
With the vector ,
Eigenvalues
so
Both eigenvalues have modulus 1, so neither converges nor blows up; it is periodic. Since , the sixth power of the matrix is the identity and the sequence has period six.
Contrast with Fibonacci: there the recurrence is , the eigenvalues are real and one has modulus above 1, so the sequence grows exponentially. Here the minus sign places the eigenvalues on the unit circle, producing periodicity.
Problem type 7: a family of matrices
Let
The third column is twice the first, so the matrix is singular.
The characteristic polynomial:
so the eigenvalues are
Their sum is 0, matching the trace.
Now let
Cofactor expansion gives , so is invertible. Its column space is all of , and the projection onto it is the identity matrix.
The lecture's conjecture: odd sizes are singular, even sizes are invertible, and the determinants follow a pattern.
Core review
- Projection onto a line: , rank 1, eigenvalues 1 and 0.
- A projection difference equation reaches its fixed point after one step.
- Least squares: solve ; the projection happens in the space where lives.
- Gram-Schmidt subtracts the component along directions already chosen.
- Eigenvalue identities: invertibility means no zero; inverses invert; adding shifts.
- Tridiagonal recurrence: , eigenvalues on the unit circle, period six.
- For a matrix family, decide invertibility first; the projection may then be trivial.
Common misconceptions
- Projecting the data points onto the fitted line in least squares. The projection is in vector space, not in the scatter plot.
- Skipping the subtraction in Gram-Schmidt.
- Not checking eigenvalues against trace and determinant. It is the fastest sanity check.
- Flipping the sign in the tridiagonal recurrence. The minus comes from the position.
- Computing a projection matrix for a matrix family before checking invertibility. If it is invertible, the answer is often trivial.
Check your understanding
1. Why is the null space of a rank-one projection -dimensional?
Reference answer: has every column a multiple of , so (for ). By rank–nullity,
Geometrically, projects onto the line ; only that direction survives, while the -dimensional hyperplane perpendicular to is collapsed to zero. Correspondingly has algebraic multiplicity and has multiplicity 1.
2. If already lies in the column space, how do and compare?
Reference answer: Since , projecting onto the column space leaves it unchanged, so . Because , nothing changes afterwards: for all . In the eigenvector expansion, contains only the component; the coefficients of the two components are zero, so no decaying term remains.
3. Solve the through-origin fit by the normal equation and interpret the units of .
Reference answer: , . The normal equation gives
so . Its unit is " unit per unit": if is in metres and in seconds, , the slope (velocity) of the line. The through-origin model has no intercept and only this one parameter.
4. Write out the first six determinants of the tridiagonal sequence.
Reference answer: With , and :
The sequence has period 6; agrees with the eigenvalues lying on the unit circle and satisfying .
5. Why is the projection onto the column space of the identity?
Reference answer: is with , so its four columns are linearly independent and its column space is all of . Every vector already lies in the column space, so projection changes nothing. In formula form,
More generally, for full column rank with , projects onto ; it equals exactly when is an invertible square matrix.
How this connects
The review places orthogonality, determinants, and eigenvalues side by side. The next lectures turn to symmetric matrices and positive definiteness, where real eigenvalues, orthogonal eigenvectors, and quadratic forms all meet.