# 超平面

超平面是维数比包含它的空间少一维的子空间，或平移子空间：在 \( n \) 维向量空间中，它是 \( (n-1) \) 维子空间；在仿射空间中，它是 \( (n-1) \) 维仿射子空间<sup>[1](https://sanweb.lib.msu.edu/crcmath/math/math/h/h453.htm)</sup><sup> • </sup><sup>[2](https://tangente-mag.com/en/articles/hyperplane)</sup>。在三维空间中，超平面就是普通的平面；在二维空间中，它就是直线；这个术语把平面推广到了更高维<sup>[3](https://mathworld.wolfram.com/Plane.html)</sup>。

| 关键事实 | 细节 |
|---|---|
| 维数 | 在 \( n \) 维空间中，超平面的维数为 \( n-1 \)，余维数为 1<sup>[2](https://tangente-mag.com/en/articles/hyperplane)</sup> |
| 线性形式 | 向量空间 \( E \) 中的超平面具有形式 \( \{x : f(x) = \lambda\} \)，其中 \( f \in E^* \) 非零，\( \lambda \in K \)<sup>[4](https://encyclopediaofmath.org/wiki/Vector_space)</sup> |
| 核视角 | 线性超平面是从该向量空间到基域的任何非零线性映射的核；等价地，它是子空间 \( V \subset W \)，且 \( W/V \) 是一维的<sup>[1](https://sanweb.lib.msu.edu/crcmath/math/math/h/h453.htm)</sup> |
| 方程 | 在 \( \mathbb{R}^N \) 中，隐式方程为 \( \mathbf{n} \cdot \mathbf{x} = \sum_{i=1}^{N} n_i x_i = d \)，其中 \( \mathbf{n} \) 是法向量，\( d \) 是以法向量长度为单位的原点到超平面的有符号距离<sup>[5](https://math.stackexchange.com/questions/4478169/is-a-hyper-plane-uniquely-defined-by-a-single-normal-vector)</sup> |
| 法向量 | 法向量在相差一个非零标量倍数的意义下唯一，因为 \( \mathbb{R}^n \) 中的 \( (n-1) \) 维超平面只留下一个垂直于它的方向<sup>[6](https://math.stackexchange.com/questions/2796428/does-every-hyperplane-have-a-unique-normal-vector-up-to-non-zero-scalar-multipl)</sup> |
| 仿射情形 | 余维数为 1 的线性簇（子空间 \( L \) 的平移 \( x_0 + L \)）称为超平面<sup>[7](https://encyclopediaofmath.org/wiki/Linear_variety)</sup> |
| 分类用途 | 在线性支持向量机中，分离超平面为 \( \mathbf{w}^T \mathbf{x} + b = 0 \)，间隔为 \( \rho = 2/\|\mathbf{w}\|_2 \)<sup>[8](https://web.stanford.edu/class/cs276/handouts/lecture14-SVMs-handout-1-per.pdf)</sup> |

## 线性超平面与仿射超平面

线性情形最简单。设 \( a_1, a_2, \ldots, a_n \) 是不全为 0 的标量。\( \mathbb{R}^n \) 中满足

\[ a_1 x_1 + a_2 x_2 + \cdots + a_n x_n = 0 \]

的向量 \( \mathbf{X} = (x_1, \ldots, x_n) \) 的集合是 \( \mathbb{R}^n \) 的一个子空间，称为超平面<sup>[1](https://sanweb.lib.msu.edu/crcmath/math/math/h/h453.htm)</sup>。因为一个独立方程恰好消去一个自由度，所以解集的维数为 \( n-1 \)<sup>[2](https://tangente-mag.com/en/articles/hyperplane)</sup>。由此得到三种等价刻画：超平面是任何余维数为 1 的子空间；是 \( W \) 的任何子空间 \( V \)，使得商空间 \( W/V \) 是一维的；也是从该向量空间到基域的任何非零线性映射的核<sup>[1](https://sanweb.lib.msu.edu/crcmath/math/math/h/h453.htm)</sup>。用对偶空间的语言说，非零 \( f \in E^* \) 的核 \( \{f\}_\perp \) 是极大真线性子空间，有时称为超子空间<sup>[4](https://encyclopediaofmath.org/wiki/Vector_space)</sup>。

**仿射超平面。** 大多数应用使用仿射版本，它不必经过原点。仿射超平面是余维数为一的线性子空间的平移：在集合 \( H \) 中选取基点 \( p \)，可写成 \( H = p + L \)，其中 \( L \) 是方向空间<sup>[9](https://androma.org/theorems/13566)</sup>。用线性簇的语言说，向量空间 \( E \) 的子集 \( M = x_0 + L \) 是线性簇，而对应于余维数为 1 的子空间的线性簇称为超平面<sup>[7](https://encyclopediaofmath.org/wiki/Linear_variety)</sup>。nLab 总结了常见用法：超平面分别是仿射空间或线性空间中的仿射子空间或线性子空间，通常要求维数和余维数为正，并且常常要求余维数恰好为 1<sup>[10](https://ncatlab.org/nlab/show/hyperplane)</sup>。

仿射函数给出了无坐标的描述。若 \( u \) 是仿射空间 \( E \) 上的非常值仿射函数，\( A \) 是标量，则满足 \( u(x) = A \) 的 \( x \) 的集合是超平面；反之，\( E \) 中每个超平面 \( H \) 都满足 \( H = u^{-1}(0) \)，其中 \( u \) 是某个仿射函数，并且每个具有此性质的仿射函数都是某个固定仿射函数的标量倍数。对同一个 \( u \)，由方程 \( u(x) = \alpha \) 和 \( u(x) = \beta \) 给出的超平面是平行的<sup>[11](https://math.mit.edu/~hrm/palestine/bourbaki-algebra-1i.pdf)</sup>。

## 方程与法向量

在笛卡尔坐标中，\( N \) 维空间中的超平面由一个线性方程描述：

\[ \mathbf{n} \cdot \mathbf{x} = \sum_{i=1}^{N} n_i x_i = d, \]

其中 \( \mathbf{n} = (n_1, \ldots, n_N) \) 是法向量，\( \mathbf{x} \) 是超平面上的任意点，\( d \) 是以法向量长度为单位的原点到超平面的有符号距离<sup>[5](https://math.stackexchange.com/questions/4478169/is-a-hyper-plane-uniquely-defined-by-a-single-normal-vector)</sup>。等价地，仿射函数 \( x \mapsto \beta_0 + \sum_{j=1}^{p} x_j \beta_j \) 确定了超平面 \( H = \{x : \sum_j x_j \beta_j + \beta_0 = 0\} \)，以及该表达式取正值和负值的两个半空间；向量 \( N = (\beta_1, \ldots, \beta_p) \) 是法向量，通过缩放总可以选取 \( \|N\|_2 = 1 \) 的 \( N \)，同时缩放 \( \beta_0 \)，使 \( H \) 保持不变<sup>[12](https://web.stanford.edu/class/stats202/notes/Support-vector-machines/Support-vector-machines.html?highlight=e+learning)</sup>。

有符号量 \( \beta_0 + x_1 \beta_1 + \cdots + x_p \beta_p \) 度量一个点沿法向量方向到超平面的距离，其符号表明该点位于超平面的哪一侧<sup>[12](https://web.stanford.edu/class/stats202/notes/Support-vector-machines/Support-vector-machines.html?highlight=e+learning)</sup>。法向量在相差一个非零标量倍数的意义下唯一：超平面是 \( (n-1) \) 维的，这只剩下一个垂直于它的方向<sup>[6](https://math.stackexchange.com/questions/2796428/does-every-hyperplane-have-a-unique-normal-vector-up-to-non-zero-scalar-multipl)</sup>。若法向量为零向量，方程退化：此时 \( \mathbf{n} \cdot \mathbf{x} = d \) 要么处处不成立（当 \( d \neq 0 \)），要么处处成立（当 \( d = 0 \)），因此它指的不是超平面，而是空集或整个空间<sup>[5](https://math.stackexchange.com/questions/4478169/is-a-hyper-plane-uniquely-defined-by-a-single-normal-vector)</sup>。

在三维情形中，设普通平面具有非零法向量 \( \mathbf{n} = (a, b, c) \)，且经过点 \( \mathbf{x}_0 \)，则方程 \( \mathbf{n} \cdot (\mathbf{x} - \mathbf{x}_0) = 0 \) 展开为 \( ax + by + cz + d = 0 \)，其中 \( d = -ax_0 - by_0 - cz_0 \)，该平面到原点的距离为 \( D = d / \sqrt{a^2 + b^2 + c^2} \)<sup>[3](https://mathworld.wolfram.com/Plane.html)</sup>。

## 超平面配置

域 \( K \) 上 \( \ell \) 维仿射空间中余维数为一的仿射子空间的有限集合，称为超平面配置<sup>[13](https://encyclopediaofmath.org/wiki/Arrangement_of_hyperplanes)</sup>。配置带有组合结构：配置的边是其超平面的非空交集，边的集合按反包含关系偏序，构成一个几何半格，其秩由余维数给出<sup>[13](https://encyclopediaofmath.org/wiki/Arrangement_of_hyperplanes)</sup>。

几种标准配置可作为参照例子。坐标超平面的子集构成布尔配置；若一个配置在每一点处局部是布尔配置，则称它处于一般位置；辫配置由超平面 \( \{x_i = x_j : 1 \le i < j \le \ell\} \) 组成，它们是 \( \ell \) 个字母上的对称群的反射超平面；任何有限反射群的反射超平面都构成一个配置<sup>[13](https://encyclopediaofmath.org/wiki/Arrangement_of_hyperplanes)</sup>。该理论还与 De Concini–Procesi 奇妙模型、由原子格构造的 Feichtner–Yuzvinsky 代数、胖点、射影空间的爆破以及平面曲线的奇点相联系<sup>[14](https://arxiv.org/abs/1101.0356)</sup>。在计算方面，配置是计算几何中的基本对象，已有算法枚举其胞腔和顶点；在计算实验中发现，一种增量式胞腔枚举算法在大多数测试情形下显著快于 Avis 和 Fukuda 的反向搜索<sup>[15](https://epubs.siam.org/doi/10.1137/15M1027930)</sup>。

## 分类中的超平面

线性分类器用分离超平面进行几何描述：仿射函数给每个点赋予相对于超平面的有符号偏差，该偏差的符号决定预测类别<sup>[12](https://web.stanford.edu/class/stats202/notes/Support-vector-machines/Support-vector-machines.html?highlight=e+learning)</sup>。当两类数据可由一个超平面分开时，有无穷多个超平面能将它们分开，而支持向量机选择周围无数据点的间隔最宽的那个<sup>[12](https://web.stanford.edu/class/stats202/notes/Support-vector-machines/Support-vector-machines.html?highlight=e+learning)</sup>。

在线性支持向量机中，超平面写作 \( \mathbf{w}^T \mathbf{x} + b = 0 \)，并带有尺度约束 \( \min_i |\mathbf{w}^T \mathbf{x}_i + b| = 1 \)。这意味着对于最近的一对异类点，有 \( \mathbf{w}^T(\mathbf{x}_a - \mathbf{x}_b) = 2 \)，因此间隔为 \( \rho = \|\mathbf{x}_a - \mathbf{x}_b\|_2 = 2/\|\mathbf{w}\|_2 \)<sup>[8](https://web.stanford.edu/class/cs276/handouts/lecture14-SVMs-handout-1-per.pdf)</sup>。恰好落在间隔上、函数间隔为 1 的训练样本是支持向量，它们单独决定了决策函数<sup>[8](https://web.stanford.edu/class/cs276/handouts/lecture14-SVMs-handout-1-per.pdf)</sup>。当没有超平面能干净地分开各类时，支持向量分类器通过允许逐点松弛量 \( \epsilon_i \) 来放松约束，总松弛量由一个预算参数 \( C \) 限制<sup>[12](https://web.stanford.edu/class/stats202/notes/Support-vector-machines/Support-vector-machines.html?highlight=e+learning)</sup>。

一个关键的计算事实是：寻找超平面只需要输入向量两两之间的点积。将这些点积替换为核函数 \( K(x_i, x_k) = \langle \Phi(x_i), \Phi(x_k) \rangle \)，其中 \( \Phi \) 是特征映射，就得到支持向量机；它在扩张的、可能无穷维的特征空间中拟合一个超平面，同时在原空间中产生非线性边界<sup>[12](https://web.stanford.edu/class/stats202/notes/Support-vector-machines/Support-vector-machines.html?highlight=e+learning)</sup>。

## References

1. [Hyperplane, MathWorld (Eric W. Weisstein)](https://sanweb.lib.msu.edu/crcmath/math/math/h/h453.htm)
2. [Hyperplane, Tangente Magazine geometry glossary](https://tangente-mag.com/en/articles/hyperplane)
3. [Plane, Wolfram MathWorld](https://mathworld.wolfram.com/Plane.html)
4. [Vector space, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Vector_space)
5. [Is a hyperplane uniquely defined by a single normal vector?, Mathematics Stack Exchange](https://math.stackexchange.com/questions/4478169/is-a-hyper-plane-uniquely-defined-by-a-single-normal-vector)
6. [Does every hyperplane have a unique normal vector (up to non-zero scalar multiplication)?, Mathematics Stack Exchange](https://math.stackexchange.com/questions/2796428/does-every-hyperplane-have-a-unique-normal-vector-up-to-non-zero-scalar-multipl)
7. [Linear variety, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Linear_variety)
8. [Linear Support Vector Machine, Stanford CS276 lecture handout (Introduction to Information Retrieval, Sec. 15.1)](https://web.stanford.edu/class/cs276/handouts/lecture14-SVMs-handout-1-per.pdf)
9. [Hyperplanes as Level Sets of Nonzero Linear Functionals, Androma theorem statement and proof](https://androma.org/theorems/13566)
10. [Hyperplane, nLab](https://ncatlab.org/nlab/show/hyperplane)
11. [Linear Algebra §9.5: Definition of Projective Spaces (Bourbaki algebra chapter notes), MIT](https://math.mit.edu/~hrm/palestine/bourbaki-algebra-1i.pdf)
12. [Support vector machines, Stanford STATS 202 course notes](https://web.stanford.edu/class/stats202/notes/Support-vector-machines/Support-vector-machines.html?highlight=e+learning)
13. [Arrangement of hyperplanes, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Arrangement_of_hyperplanes)
14. [Hyperplane Arrangements: Computations and Conjectures, arXiv:1101.0356](https://arxiv.org/abs/1101.0356)
15. [A New Algorithm for Enumeration of Cells of Hyperplane Arrangements and a Comparison with Avis and Fukuda's Reverse Search, SIAM Journal on Discrete Mathematics](https://epubs.siam.org/doi/10.1137/15M1027930)

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

Topic: 物质世界与数学 › 数学与统计学 › 几何学与拓扑学 › Projective and affine geometry

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/hyperplane

English original: https://www.edgepedia.org/hyperplane
