# 二次型

二次型是若干变量的二次齐次多项式，例如 \( Q(x,y) = 3x^{2} - 4xy + 5y^{2} \)；或者，在无坐标的表述下，是向量空间上的一个函数 \( q \)，满足 \( q(\lambda v) = \lambda^{2} q(v) \)，且映射 \( (x,y) \mapsto q(x+y) - q(x) - q(y) \) 是一个双线性形式。二次型贯穿线性代数、数论、最优化和统计学，其系统研究始于卡尔·弗里德里希·高斯（Carl Friedrich Gauss）。

| 关键事实 | 细节 |
|---|---|
| 定义 | 二次齐次多项式，只允许 \( a x_{k}^{2} \) 和 \( c x_{j} x_{k} \) 这样的项；等价地，\( Q[\mathbf{x}] = (A\mathbf{x}, \mathbf{x}) \)，其中 \( A \) 为矩阵<sup>[1](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_04-30/Ch7.html)</sup> |
| 唯一矩阵 | 每个实二次型都有唯一的表示 \( Q[\mathbf{x}] = (A\mathbf{x}, \mathbf{x}) \)，其中 \( A \) 为实对称矩阵<sup>[1](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_04-30/Ch7.html)</sup> |
| 分类 | 在实数域上，二次型在线性变量替换下由秩和符号差分类（西尔维斯特惯性定律）<sup>[2](https://academic.oup.com/book/55003/chapter-abstract/422790564)</sup> |
| 定号性 | 一个二次型正定当且仅当其对称矩阵的所有特征值均为正；不定当且仅当矩阵既有正特征值又有负特征值<sup>[3](https://nikolaimatni.github.io/ese-2030/quad-psd)</sup> |
| 历史 | 高斯在《算术研究》（*Disquisitiones Arithmeticae*，1801年）第5章中处理了整系数二元型 \( ax^{2} + 2bxy + cy^{2} \)，这是第一个系统理论<sup>[4](https://www.math.mcgill.ca/darmon/courses/history/katz.pdf)</sup> |
| 特征2 | 在特征2的域上，二次型不能由其相伴双线性形式恢复，理论必须另行重建<sup>[5](https://link.springer.com/chapter/10.1007/978-3-030-56694-4_6)</sup> |

## 定义与矩阵表示

存在若干等价定义。在 \( \mathbb{R}^{n} \) 上，二次型是双线性形式 \( L \) 的“对角线”，即 \( Q[\mathbf{x}] = L(\mathbf{x}, \mathbf{x}) = (A\mathbf{x}, \mathbf{x}) \)，其中 \( L \) 对每个自变量都是线性的。从代数的角度看，它是 \( x_{1}, \ldots, x_{n} \) 的多项式，只含二次项。<sup>[1](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_04-30/Ch7.html)</sup> 用矩阵记号，二次型写作 \( Q(\mathbf{x}) = \mathbf{x}^{T} A \mathbf{x} \)，其中 \( A \) 对称。<sup>[6](https://mathworld.wolfram.com/QuadraticForm.html)</sup>

对称矩阵是唯一的，但若不加对称要求，表示并不唯一：例如 \( Q[\mathbf{x}] = x_{1}^{2} + x_{2}^{2} - 4x_{1}x_{2} \) 可由无穷多个矩阵表示，但恰有一个对称矩阵。<sup>[1](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_04-30/Ch7.html)</sup> 在复情形下，矩阵可取复对称矩阵，因此未必是埃尔米特矩阵（自伴矩阵），尽管当它是埃尔米特矩阵时，\( (A\mathbf{x}, \mathbf{x}) \) 对每个 \( \mathbf{x} \) 都是实数。<sup>[1](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_04-30/Ch7.html)</sup>

二次型与双线性形式之间的联系是双向的。给定对称双线性形式 \( \beta \)，函数 \( q(x) = \beta(x, x) \) 是二次型；反之，\( q \) 决定了它的极形式 \( b_{q}(x,y) = q(x+y) - q(x) - q(y) \)。当 2 在系数环中可逆时，这些运算互逆，只差一个因子 \( \tfrac{1}{2} \)，因此两种理论一致；在一般环上，复合运算分别给出 \( \beta \mapsto 2\beta \) 和 \( q \mapsto 2q \)。<sup>[7](https://www.math.purdue.edu/~adebray/lecture_notes/210a_notes.pdf)</sup>

## 对角化与分类

\( n \) 个变量的任意实二次型都可通过适当的正交变量替换化为对角形式 \( Q(\mathbf{x}) = \lambda_{1} x_{1}^{2} + \lambda_{2} x_{2}^{2} + \cdots + \lambda_{n} x_{n}^{2} \)，其中 \( \lambda_{i} \) 是矩阵的特征值。<sup>[6](https://mathworld.wolfram.com/QuadraticForm.html)</sup> 两个实二次型在线性变换下等价当且仅当它们有相同的秩和相同的符号差。<sup>[6](https://mathworld.wolfram.com/QuadraticForm.html)</sup> 这就是西尔维斯特惯性定律，它通过底层空间的维数以及另外两个数——秩和符号差——来分类对称双线性形式，就像有限维向量空间仅由维数分类一样。<sup>[2](https://academic.oup.com/book/55003/chapter-abstract/422790564)</sup>

**定号性。** 若对所有 \( \mathbf{x} \neq 0 \) 都有 \( q(\mathbf{x}) > 0 \)，则二次型正定；若对所有 \( \mathbf{x} \neq 0 \) 都有 \( q(\mathbf{x}) < 0 \)，则负定；若它同时取正值和负值，则不定；半定版本允许 \( q(\mathbf{x}) = 0 \) 对非零 \( \mathbf{x} \) 成立。<sup>[3](https://nikolaimatni.github.io/ese-2030/quad-psd)</sup> 谱分解 \( K = Q \Lambda Q^{T} \) 表明 \( q \) 的符号行为完全由特征值的符号控制：正定当且仅当所有特征值均为正；不定当且仅当既有正特征值又有负特征值。<sup>[3](https://nikolaimatni.github.io/ese-2030/quad-psd)</sup> 矩阵所有元素均为正并不蕴含正定性；二次型 \( 3x_{1}^{2} + 2x_{2}^{2} + x_{3}^{2} + 4x_{1}x_{2} + 4x_{2}x_{3} \) 的特征值为 5、2 和 \( -1 \)，尽管矩阵全为正元素，它却是不定的。<sup>[3](https://nikolaimatni.github.io/ese-2030/quad-psd)</sup> 检验定号性并不需要计算特征值：根据西尔维斯特定律，任何对角化都足够；对顺序主子矩阵进行行列式检验也同样适用。<sup>[1](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_04-30/Ch7.html)</sup><sup> • </sup><sup>[8](https://www.math.stonybrook.edu/~tdrivas/Courses/MAT307/Lectures/Lecture15.pdf)</sup>

## 算术理论

算术理论研究的是整系数二次型能表示哪些整数。高斯在1801年出版的《算术研究》第5章中创立了整系数二元二次型 \( ax^{2} + 2bxy + cy^{2} \) 的一般理论。<sup>[4](https://www.math.mcgill.ca/darmon/courses/history/katz.pdf)</sup><sup> • </sup><sup>[9](https://academic.oup.com/book/54022/chapter-abstract/422206664)</sup> 他的首要目的是判断一个给定的整数能否被某个特定的二次型表示。作为工具，他定义了等价：若一个行列式为 \( \alpha\delta - \beta\gamma = 1 \) 的线性替换将其中一个变为另一个，则两个二次型等价。等价的二次型具有相同的判别式 \( b^{2} - ac \)，尽管具有相同判别式的二次型未必等价；高斯证明了对于任何给定的判别式，只有有限多个等价类，其中有一个特殊的主类，由与 \( x^{2} - Dy^{2} \) 等价的二次型组成。<sup>[4](https://www.math.mcgill.ca/darmon/courses/history/katz.pdf)</sup> 他还定义了同判别式二次型上的复合运算，该运算可交换、可结合，并诱导出类上的运算。<sup>[4](https://www.math.mcgill.ca/darmon/courses/history/katz.pdf)</sup> 二次型的族由有限多个具有相同判别式的类组成。<sup>[10](https://encyclopediaofmath.org/wiki/Quadratic_form)</sup>

两个经典结果奠定了这门学科的基础。费马（Fermat）在17世纪指出，奇素数 \( p \) 可表示为两个平方数之和当且仅当 \( p \) 模 4 余 1；拉格朗日（Lagrange）在1770年证明了每个正整数都是四个平方数之和。<sup>[11](https://www.ams.org/journals/notices/202507/rnoti-p711.pdf)</sup> 从高斯开始，这门学科历经雅可比（Jacobi）、狄利克雷（Dirichlet）、艾森斯坦（Eisenstein）、H. J. 史密斯（H. J. Smith）、闵可夫斯基（Minkowski）、胡尔维茨（Hurwitz）、赫克（Hecke）、西格尔（Siegel）、马斯（Maass）、韦伊（Weil）、朗兰兹（Langlands）和科特维茨（Kottwitz），在19世纪初成为现代数论的源头之一。<sup>[12](https://personal.math.ubc.ca/~cass/siegel/INDEX.html)</sup>

## 域上的代数理论

现代代数理论研究域 \( K \) 上的二次空间 \( (V, q) \)。若存在非零 \( v \) 使 \( q(v) = 0 \)，则二次型是迷向的，否则是非迷向的；若存在 \( v \) 使 \( a = q(v) \)，其中 \( a \in K^{\times} \)，则称它表示值 \( a \)；若它能表示 \( K^{\times} \) 中的每个元素，则称它是通用的。<sup>[13](https://danicolas.github.io/files/QF2023-2024-Lecture-notes.pdf)</sup> 标准工具包括等距、正交群、双曲空间、对角化、维特消去与维特分解，以及在代数扩张上的斯普林格奇次扩张定理和维特环的构造。<sup>[14](https://www.mun.ca/aac/mini-courses/mini-courses-2016---2025/erhard-neher/)</sup>

**特征2是例外。** 熟悉的整套理论依赖于除以2：对角化以及二次型与对称双线性形式之间的一一对应都需要它。在特征2的域上，对于相伴双线性形式 \( T \)，有 \( T(x,x) = 2Q(x) = 0 \)，因此二次型不能从 \( T \) 恢复，整个理论必须从头重建，需要有自己的判别式约定和标准形，例如 \( ax^{2} + axy + by^{2} \) 的 \( [a,b] \) 形式。<sup>[5](https://link.springer.com/chapter/10.1007/978-3-030-56694-4_6)</sup><sup> • </sup><sup>[15](https://www.mathtube.org/lecture/video/isotropy-quadratic-forms-characteristic-2)</sup>

## 应用

二次型出现在工程设计与最优化、信号处理中的输出噪声功率、物理学中的势能和动能、微分几何中的曲面法曲率、经济学中的效用函数，以及统计学中的置信椭球。<sup>[3](https://nikolaimatni.github.io/ese-2030/quad-psd)</sup> 在最优化中，函数在临界点的二阶泰勒多项式包含二次海森项 \( \tfrac{1}{2} \mathbf{h}^{T} H \mathbf{h} \)，海森矩阵的定号性决定了该点是局部极小点、局部极大点还是鞍点。<sup>[8](https://www.math.stonybrook.edu/~tdrivas/Courses/MAT307/Lectures/Lecture15.pdf)</sup> 在统计学中，多元正态密度指数中的项是二次型，即随机向量与均值向量之间的马氏距离平方。<sup>[16](https://online.stat.psu.edu/stat505/Lesson04)</sup> 在 \( q(\mathbf{z}) = \mathbf{z}^{T} K \mathbf{z} \) 中取 \( K = I_{n} \) 和 \( \mathbf{z} = A\mathbf{x} - \mathbf{b} \)，即可得到最小二乘目标 \( \|A\mathbf{x} - \mathbf{b}\|^{2} \)。<sup>[3](https://nikolaimatni.github.io/ese-2030/quad-psd)</sup>

## References

1. [Chapter 7, Bilinear and quadratic forms, Linear Algebra Done Wrong (Treil)](https://www.math.brown.edu/streil/papers/LADW/HTML_2026_04-30/Ch7.html)
2. [Quadratic forms and Sylvester's law of inertia, A Course in Linear Algebra, Oxford Academic](https://academic.oup.com/book/55003/chapter-abstract/422790564)
3. [9.2 Quadratic Forms & Positive Definite Matrices, ESE 2030, University of Pennsylvania](https://nikolaimatni.github.io/ese-2030/quad-psd)
4. [A history of mathematics (Katz), chapter 21, Gauss and quadratic forms](https://www.math.mcgill.ca/darmon/courses/history/katz.pdf)
5. [Characteristic 2, Springer Nature Link](https://link.springer.com/chapter/10.1007/978-3-030-56694-4_6)
6. [Quadratic Form, Wolfram MathWorld](https://mathworld.wolfram.com/QuadraticForm.html)
7. [MATH 210A lecture notes (Debray), Purdue University](https://www.math.purdue.edu/~adebray/lecture_notes/210a_notes.pdf)
8. [Optimization lecture notes (Drivas), Stony Brook University](https://www.math.stonybrook.edu/~tdrivas/Courses/MAT307/Lectures/Lecture15.pdf)
9. [Quadratic Forms, A Course in Number Theory, Oxford Academic](https://academic.oup.com/book/54022/chapter-abstract/422206664)
10. [Quadratic form, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Quadratic_form)
11. [Quadratic Forms Beyond Arithmetic, Merkurjev and Parimala, AMS Notices (2025)](https://www.ams.org/journals/notices/202507/rnoti-p711.pdf)
12. [Integral quadratic forms and volume formulas (Cassels), UBC](https://personal.math.ubc.ca/~cass/siegel/INDEX.html)
13. [Quadratic Forms and Class Fields II, lecture notes (Daans)](https://danicolas.github.io/files/QF2023-2024-Lecture-notes.pdf)
14. [Quadratic Forms over Fields, mini-course by Erhard Neher, Atlantic Algebra Centre](https://www.mun.ca/aac/mini-courses/mini-courses-2016---2025/erhard-neher/)
15. [Isotropy of quadratic forms in characteristic 2, mathtube.org (Zemková)](https://www.mathtube.org/lecture/video/isotropy-quadratic-forms-characteristic-2)
16. [Multivariate Normal Distribution, STAT 505, Penn State](https://online.stat.psu.edu/stat505/Lesson04)

---
*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 › Multilinear and tensor algebra › Bilinear forms and inner products

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/quadratic-form

English original: https://www.edgepedia.org/quadratic-form
