# 投影（线性代数）

线性代数中的投影是向量空间上的一个幂等线性算子P，即对它施加两次与施加一次的结果相同：\( P^2 = P \)。<sup>[1](https://github.com/RiazML/math-for-llms/blob/master/03-Advanced-Linear-Algebra/04-Linear-Transformations/notes.md)</sup> 从几何上看，投影把每个向量送到一个选定的子空间W，即它的值域，并把空间的其余部分，即它的核，压平为零；已经在W中的向量保持不变。<sup>[2](https://math.berkeley.edu/~wodzicki/54.S15/LinAlg.pdf)</sup> 投影主要有两种：正交投影，其核与值域垂直；以及斜投影，其核与值域不垂直。<sup>[3](https://www.researchgate.net/publication/220656385_On_the_Numerical_Analysis_of_Oblique_Projectors)</sup>

| 关键事实 | 细节 |
|---|---|
| 定义性质 | 线性映射P是投影，当且仅当它是幂等的，\( P^2 = P \)；等价地，\( I - P \)也是投影。<sup>[1](https://github.com/RiazML/math-for-llms/blob/master/03-Advanced-Linear-Algebra/04-Linear-Transformations/notes.md)</sup><sup> • </sup><sup>[4](https://www.uab.edu/cas/mathematics/images/Documents/linear-algebra-lecture-notes.pdf)</sup> |
| 分解 | 每个投影都把空间分裂为直和，\( V = \operatorname{im}(P) \oplus \ker(P) \)，其中 \( \operatorname{im}(P) = \ker(I - P) \)，\( \ker(P) = \operatorname{im}(I - P) \)。<sup>[1](https://github.com/RiazML/math-for-llms/blob/master/03-Advanced-Linear-Algebra/04-Linear-Transformations/notes.md)</sup> |
| 特征值 | 秩为r的\( n \times n \)投影矩阵有r个等于1的特征值和\( n - r \)个等于0的特征值，因此\( \operatorname{tr}(P) = \operatorname{rank}(P) \)。<sup>[5](https://biostat.jhsph.edu/~iruczins/teaching/140.751/notes/ch2.pdf)</sup> |
| 正交情形 | 一个矩阵是到某子空间的正交投影，当且仅当它是对称且幂等的，\( P^{\top} = P \)且\( P^2 = P \)。<sup>[6](https://choxos.github.io/Mathematics-of-ITC/chapters/part1/02-linear-algebra-ii.html)</sup> |
| 最佳逼近 | y到子空间Ω的正交投影\( w_1 \)满足：对每个\( x \in \Omega \)，有\( \lVert y - w_1 \rVert \le \lVert y - x \rVert \)。<sup>[5](https://biostat.jhsph.edu/~iruczins/teaching/140.751/notes/ch2.pdf)</sup> |
| 斜投影情形 | 斜投影算子是一个幂等矩阵，其零空间与值域斜交；这类算子的算子范数可以大于1。<sup>[3](https://www.researchgate.net/publication/220656385_On_the_Numerical_Analysis_of_Oblique_Projectors)</sup><sup> • </sup><sup>[7](https://www.math.utoronto.ca/mnica/oral/func_notes.pdf)</sup> |

## 定义与幂等性

幂等条件\( P^2 = P \)直接抓住了几何思想：一个向量一旦被投影到子空间上，再次投影不会改变任何东西，因为结果已经位于值域中并在那里固定不动。<sup>[1](https://github.com/RiazML/math-for-llms/blob/master/03-Advanced-Linear-Algebra/04-Linear-Transformations/notes.md)</sup> 按照伯克利讲义中子空间形式的表述，算子P沿子空间W′投影到子空间W上，恰好当W是它的值域、W′是它的核，且W中的每个向量v都满足\( P(v) = v \)。<sup>[2](https://math.berkeley.edu/~wodzicki/54.S15/LinAlg.pdf)</sup>

两种表述是等价的。任何投影都是幂等的，因为\( P(v) \)位于W中，因而固定不动。反过来，任何幂等算子T都是沿其核到其值域上的投影：值域中的每个\( w \)都具有形式\( w = T(v) \)，于是\( T(w) = T(T(v)) = T(v) = w \)。<sup>[2](https://math.berkeley.edu/~wodzicki/54.S15/LinAlg.pdf)</sup> 一个有用的等价说法是：\( x \)位于P的值域中当且仅当\( Px = x \)，并且值域与核只在零向量处相交。<sup>[4](https://www.uab.edu/cas/mathematics/images/Documents/linear-algebra-lecture-notes.pdf)</sup>

## 值域、核与补投影

每个投影P都伴随一个伙伴，即补投影\( P' = I - P \)。这个算子同样是幂等的，因为

\[ P' \circ P' = (I - P)(I - P) = I - 2P + P^2 = I - P = P'. \]

此外，\( P'(v) = 0 \)恰好当\( P(v) = v \)，而\( P'(v) = v \)恰好当\( P(v) = 0 \)，所以P′沿P的值域投影到P的核上。<sup>[2](https://math.berkeley.edu/~wodzicki/54.S15/LinAlg.pdf)</sup> 用算子语言说，对任何幂等算子E，有\( \operatorname{ran}(E) = \ker(I - E) \)和\( \ker(E) = \operatorname{ran}(I - E) \)，并且幂等算子的值域总是闭子空间。<sup>[7](https://www.math.utoronto.ca/mnica/oral/func_notes.pdf)</sup>

两个投影合起来给出整个空间的直和分解：任何\( v \)都分裂为\( v = Pv + (I - P)v \)，其中\( Pv \in \operatorname{im}(P) \)，\( (I - P)v \in \ker(P) \)，且这种分裂是唯一的。<sup>[1](https://github.com/RiazML/math-for-llms/blob/master/03-Advanced-Linear-Algebra/04-Linear-Transformations/notes.md)</sup> 这就是为什么投影与互补子空间对彼此对应：选择一个投影就等于选择空间如何分解。<sup>[2](https://math.berkeley.edu/~wodzicki/54.S15/LinAlg.pdf)</sup>

## 正交投影与斜投影

当向量空间带有内积时，投影的核可能是、也可能不是其值域的正交补。正交投影是满足\( \ker P = (\operatorname{ran} P)^{\perp} \)的幂等算子P；零空间仅仅与值域斜交的幂等算子称为斜投影算子。<sup>[7](https://www.math.utoronto.ca/mnica/oral/func_notes.pdf)</sup><sup> • </sup><sup>[3](https://www.researchgate.net/publication/220656385_On_the_Numerical_Analysis_of_Oblique_Projectors)</sup> 有些文献把不加限定的“投影”一词留给正交情形，而用“幂等算子”指一般情形。<sup>[7](https://www.math.utoronto.ca/mnica/oral/func_notes.pdf)</sup>

这一区别有可度量的后果。对于希尔伯特空间上的幂等算子E，以下各项等价：E是正交投影；E是到其值域上的正交投影；\( \lVert E \rVert = 1 \)；E是厄米的（\( E = E^* \)）；E是正规的；E是正的（对所有h有\( \langle Eh, h \rangle \ge 0 \)）。<sup>[7](https://www.math.utoronto.ca/mnica/oral/func_notes.pdf)</sup> 一个具体的非正交例子是\( \mathbb{R}^n \)上对固定i把\( v = \sum \alpha_k e_k \)送到\( \alpha_i e_i \)的映射，其中\( e_1, \ldots, e_n \)是一个非正交基；它的范数超过1。<sup>[7](https://www.math.utoronto.ca/mnica/oral/func_notes.pdf)</sup>

正交投影也是子空间中的最佳逼近。若Ω是子空间，每个y都唯一分解为\( y = w_1 + w_2 \)，其中\( w_1 \in \Omega \)，\( w_2 \in \Omega^{\perp} \)，并且\( w_1 \)使距离最小：对任何\( x \in \Omega \)，有\( \lVert y - w_1 \rVert \le \lVert y - x \rVert \)。<sup>[5](https://biostat.jhsph.edu/~iruczins/teaching/140.751/notes/ch2.pdf)</sup> 正是这一极小性质把投影与最小二乘问题联系起来。<sup>[8](https://epubs.siam.org/doi/abs/10.1137/1.9780898719574.ch2)</sup>

## 矩阵公式与计算

对于向量，y到单个向量x上的投影是

\[ \operatorname{Proj}_x(y) = \frac{x^{\top} y}{x^{\top} x}\, x. \]

把y送到它在子空间Ω中的分量\( w_1 \)的矩阵P称为投影矩阵；它把y投影到由它自己的列张成的空间上，而\( I - P \)投影到正交补\( \Omega^{\perp} \)上。<sup>[5](https://biostat.jhsph.edu/~iruczins/teaching/140.751/notes/ch2.pdf)</sup> 当矩阵Q的列构成目标子空间的标准正交基时，到该子空间的正交投影就是\( QQ^{\top} \)。<sup>[9](https://watanabe.you/wiki/Projection%20Matrix)</sup>

运算顺序在数值上有影响。把秩一投影算子\( qq^{\top} \)作用于一个向量，如果按\( (qq^{\top})a \)计算，代价是\( O(m^2) \)次运算；但如果按\( q(q^{\top}a) \)计算，代价只有\( O(m) \)次；矩阵乘法是结合的但不是交换的，括号的位置会改变代价。<sup>[10](https://ocw.mit.edu/courses/18-335j-introduction-to-numerical-methods-spring-2019/pages/week-4/)</sup> 正交性也保护精度：当投影由正交矩阵Q构造时，相应的最小二乘求解继承的是条件数\( \kappa(A) \)而不是\( \kappa(A)^2 \)，因此当\( \kappa(A) = 10^6 \)时，拟合在求解开始之前不会损失一半的有效数字。<sup>[11](https://www.numerical-linear-algebra.com/essays/the-projection-and-the-right-angle/)</sup>

斜投影算子有它自己的数值理论。马里兰大学应用数学家G. W. Stewart在2011年《SIAM矩阵分析与应用杂志》上发表论文，讨论它们的扰动理论、表示、舍入误差下的行为、补投影的计算以及更新算法，并指出文献中一直缺少对这些性质的系统阐述。<sup>[3](https://www.researchgate.net/publication/220656385_On_the_Numerical_Analysis_of_Oblique_Projectors)</sup>

## 谱性质

投影的谱尽可能简单。若P是秩为r的\( n \times n \)投影矩阵，它有r个等于1的特征值，对应值域中的向量；有\( n - r \)个等于0的特征值，对应核；因此\( \operatorname{tr}(P) = \operatorname{rank}(P) \)，并且对称幂等矩阵是半正定的。<sup>[5](https://biostat.jhsph.edu/~iruczins/teaching/140.751/notes/ch2.pdf)</sup> 迹公式提供了一种从矩阵快速读出投影子空间维数的方法。

## 应用

投影算子出现在一切把高维问题约化到选定子空间的地方。在数值线性代数中，求解大型线性系统的投影方法分为正交投影方法和非正交（斜）投影方法；斜投影类以Lanczos双正交化算法为代表，对大型非对称系统尤其有吸引力。<sup>[12](https://epubs.siam.org/doi/10.1137/0719031)</sup> 在大型矩阵微分方程的动力学低秩逼近中，对Galerkin条件作草图会导致一个到切空间的斜投影，它只在向量场的限制性条件下才近似重现标准方法；一种保持经典方法几何结构的正交草图方法在数值上是稳定的，并已在Allen–Cahn方程、Fokker–Planck方程和Vlasov–Poisson方程上得到演示。<sup>[13](https://arxiv.org/abs/2607.03402)</sup>

在物理学中，Mori–Zwanzig投影算子形式是非平衡统计力学的核心工具：它通过系统的粗粒化程序从微观动力学导出宏观输运方程，其中与时间无关和与时间有关的投影算子定义了理论的不同层次。<sup>[14](https://arxiv.org/abs/2001.01572)</sup> 量子力学用投影算子表示关于系统的命题，而相互正交的投影算子之和仍是投影算子。<sup>[15](https://www.researchgate.net/publication/2194678_Histories_Approach_to_Quantum_Mechanics)</sup>

## 术语

“投影”在泛函分析和矩阵论中的用法可追溯到马歇尔·H·斯通（Marshall H. Stone）的《希尔伯特空间中的线性变换》（*Linear Transformations in Hilbert Space*，1932年）。斯通先用这个词指像，然后用它指产生像的变换；他指出希尔伯特学派曾把这类算子称为“Einzeltransformation”或“Einzeloperator”，这一术语无法优雅地译成英语，于是改用了“projection”。<sup>[16](https://mathshistory.st-andrews.ac.uk/Miller/mathword/p/)</sup>

## References

1. [Projection Operators, math-for-llms notes on linear transformations, GitHub](https://github.com/RiazML/math-for-llms/blob/master/03-Advanced-Linear-Algebra/04-Linear-Transformations/notes.md)
2. [A. Wodzicki, Supplementary Notes on Linear Algebra, University of California, Berkeley](https://math.berkeley.edu/~wodzicki/54.S15/LinAlg.pdf)
3. [G. W. Stewart (2011). On the Numerical Analysis of Oblique Projectors. SIAM Journal on Matrix Analysis and Applications 32(1):309–348.](https://www.researchgate.net/publication/220656385_On_the_Numerical_Analysis_of_Oblique_Projectors)
4. [Linear Transformations, lecture notes, University of Alabama at Birmingham](https://www.uab.edu/cas/mathematics/images/Documents/linear-algebra-lecture-notes.pdf)
5. [Idempotent and Projection Matrices, lecture notes 140.751, Johns Hopkins Biostatistics](https://biostat.jhsph.edu/~iruczins/teaching/140.751/notes/ch2.pdf)
6. [Linear Algebra II: Orthogonality and the Projection Theorem, The Mathematics of Indirect Treatment Comparisons](https://choxos.github.io/Mathematics-of-ITC/chapters/part1/02-linear-algebra-ii.html)
7. [Projections and Idempotents; Invariant and Reducing Subspaces, functional analysis notes, University of Toronto](https://www.math.utoronto.ca/mnica/oral/func_notes.pdf)
8. [L. N. Trefethen and D. Bau III (1997). Numerical Linear Algebra, Chapter II: QR Factorization and Least Squares. SIAM.](https://epubs.siam.org/doi/abs/10.1137/1.9780898719574.ch2)
9. [Projection Matrix, Watanabe wiki](https://watanabe.you/wiki/Projection%20Matrix)
10. [Week 4, 18.335J Introduction to Numerical Methods, MIT OpenCourseWare (Spring 2019)](https://ocw.mit.edu/courses/18-335j-introduction-to-numerical-methods-spring-2019/pages/week-4/)
11. [The Projection and the Right Angle, Numerical Linear Algebra essays](https://www.numerical-linear-algebra.com/essays/the-projection-and-the-right-angle/)
12. [The Lanczos Biorthogonalization Algorithm and Other Oblique Projection Methods for Solving Large Unsymmetric Systems. SIAM Journal on Numerical Analysis.](https://epubs.siam.org/doi/10.1137/0719031)
13. [B. Carrel and L. Grigori. Sketch low-rank dynamics: orthogonal vs. oblique projections. arXiv:2607.03402.](https://arxiv.org/abs/2607.03402)
14. [Projection operators in statistical mechanics: a pedagogical approach. arXiv:2001.01572.](https://arxiv.org/abs/2001.01572)
15. [Histories Approach to Quantum Mechanics, ResearchGate](https://www.researchgate.net/publication/2194678_Histories_Approach_to_Quantum_Mechanics)
16. [Earliest Known Uses of Some of the Words of Mathematics (P), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Miller/mathword/p/)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Linear and multilinear algebra › Vector spaces and linear maps

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/projection-linear-algebra

English original: https://www.edgepedia.org/projection-linear-algebra
