# 因式分解

代数中的**因式分解**，是把环中一个元素分解为若干更简单元素的乘积，它推广了整数分解为素数的做法。核心问题在于这样的分解何时存在、何时唯一；本主题围绕*不可约元*与*素元*的区分，以及唯一分解整环这一环类展开——在这类环中两个概念重合，且每个元素都唯一分解。

| 关键事实 | 细节 |
|---|---|
| 不可约元 | 一个非零非单位元 \( x \)，使得 \( x = yz \) 蕴含 \( y \) 或 \( z \) 是单位<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup> |
| 素元 | 一个非零非单位元 \( x \)，满足 \( x \mid yz \Rightarrow x \mid y \) 或 \( x \mid z \)；等价地，\( xR \) 是素理想<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup> |
| 素元与不可约元 | 在整环中，每个素元都是不可约元；反之不成立，例如在 \( \mathbb{Z}[\sqrt{-5}] \) 中<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup> |
| UFD 的定义 | 每个非零非单位元都是不可约元的乘积，且在次序与相伴意义下唯一；在 UFD 中，所有不可约元都是素元<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup> |
| 环的层级 | 每个欧几里得整环都是主理想整环，每个主理想整环都是 UFD；两个逆命题都不成立<sup>[2](https://people.seas.harvard.edu/~salil/am106/fall18/PolyFactorizationAndIdeals.pdf)</sup> |
| 高斯定理 | 若 \( R \) 是 UFD，则 \( R[x] \) 是 UFD，因此 \( \mathbb{Z}[x] \) 与 \( F[x_1, \dots, x_n] \) 是 UFD，但不是主理想整环<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup><sup> • </sup><sup>[2](https://people.seas.harvard.edu/~salil/am106/fall18/PolyFactorizationAndIdeals.pdf)</sup> |
| 历史性失败 | 在 \( \mathbb{Z}[\sqrt{-5}] \) 中，\( 6 = 2 \cdot 3 = (1+\sqrt{-5})(1-\sqrt{-5}) \)，这是两种不同的不可约分解<sup>[3](https://arxiv.org/abs/1711.10842)</sup> |

## 不可约元与素元

设 \( R \) 是整环，即带单位元且无零因子的交换环。**单位**是有乘法逆元的元素；含有单位的分解，例如 \( \mathbb{Z} \) 中的 \( 5 = 1 \cdot 5 \)，不算真分解。元素 \( a \) 是**不可约的**，如果它既不是零也不是单位，且每当 \( a = bc \)，\( b \) 或 \( c \) 中总有一个是单位；等价地，\( a \) 只能分解为一个单位乘以其自身的某个相伴元，其中两个元素相差一个单位因子时称为**相伴元**<sup>[4](https://maths.nuigalway.ie/MA416/section4-1.pdf)</sup>。

元素 \( p \) 是**素的**，如果它既不是零也不是单位，且每当 \( p \) 整除乘积 \( ab \)，它就整除 \( a \) 或 \( b \)。这个整除条件等价于主理想 \( pR \) 是素理想<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup>。

两个概念相关但不相同。在任何整环中，每个素元都是不可约元：若 \( p = rs \)，则 \( p \) 整除 \( rs \)，故 \( p \) 整除 \( r \) 或 \( s \)；假设 \( p \mid r \)，写 \( r = pa \)，于是 \( p = pas \)，又因 \( p \neq 0 \) 且环无零因子，得 \( as = 1 \)，故 \( s \) 是单位<sup>[4](https://maths.nuigalway.ie/MA416/section4-1.pdf)</sup>。反之一般不成立。在整数中两种角色重合，这正是素整数能同时承担两种用途的原因；在一般整环中则必须将二者区分开<sup>[5](https://math.dartmouth.edu/~trs/PreTeXtProjects/css-playground/section-12.html)</sup>。

## 唯一分解整环

整环 \( R \) 是**唯一分解整环**（UFD），也称因子分解整环，如果每个非零非单位元都能写成不可约元的乘积 \( a = p_1 p_2 \cdots p_r \)，并且这种表示唯一：任何第二个这样的分解都有相同数目的因子，重排后与原分解中的因子相伴<sup>[6](https://www.math.ucla.edu/~sharifi/notes/algebra-ch05.html)</sup>。等价地，可以固定一个不可约元系统 \( P \)，把每个非零元唯一地写成 \( a = u \prod_{p \in P} p^{n(p)} \)，其中 \( u \) 是单位，且只有有限多个非零指数<sup>[7](https://encyclopediaofmath.org/wiki/Unique_factorisation_domain)</sup>。

UFD 的定义性质是：所有不可约元都是素元；正是这一点迫使分解唯一<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup>。整数 \( \mathbb{Z} \) 是 UFD，每个域也平凡地是 UFD，因为它没有非零非单位元<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup>。在因子分解整环中，任意两个元素都有最大公因数和最小公倍数<sup>[7](https://encyclopediaofmath.org/wiki/Unique_factorisation_domain)</sup>。

**存在性是另一个问题。** 分解的唯一性以不可约分解的存在为前提。正是诺特条件保证了分解过程会终止；在主理想整环中，诺特性质给出不可约分解，而 PID 中的不可约元都是素元，所以每个 PID 都是 UFD<sup>[6](https://www.math.ucla.edu/~sharifi/notes/algebra-ch05.html)</sup>。

## 环的层级

标准的包含链为

\[ \text{欧几里得整环} \subset \text{主理想整环} \subset \text{唯一分解整环}, \]

且每个包含都是严格的。整数 \( \mathbb{Z} \) 和域 \( F \) 上的多项式环 \( F[x] \) 都是欧几里得整环，从而是 PID 和 UFD；在两者中每个理想都是主理想，非零素理想分别由素整数或不可约多项式生成<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup>。存在不是欧几里得整环的主理想整环，也存在不是主理想整环的 UFD，\( \mathbb{Z}[x] \) 是标准例子<sup>[8](https://www.math.colostate.edu/~pries/467/Judson12.pdf)</sup>。

**高斯定理**把唯一分解推广到多项式环：若 \( R \) 是 UFD，则 \( R[x] \) 也是 UFD<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup>。证明用到多项式的**内容**，即其系数的最大公因数，以及高斯引理：本原多项式的乘积仍是本原的；迭代该定理可得，只要 \( D \) 是 UFD，\( D[x_1, \dots, x_n] \) 就是 UFD<sup>[6](https://www.math.ucla.edu/~sharifi/notes/algebra-ch05.html)</sup><sup> • </sup><sup>[8](https://www.math.colostate.edu/~pries/467/Judson12.pdf)</sup>。因此，\( \mathbb{Z}[x] \) 与 \( n \geq 2 \) 时的 \( F[x_1, \dots, x_n] \) 是 UFD 但不是 PID；由于缺少欧几里得结构，对其理想进行计算更困难，这推动了格罗布纳基等工具的发展<sup>[2](https://people.seas.harvard.edu/~salil/am106/fall18/PolyFactorizationAndIdeals.pdf)</sup>。

## 唯一分解失效时

标准反例是 \( R = \mathbb{Z}[\sqrt{-5}] \)，由范数 \( N(a + b\sqrt{-5}) = a^2 + 5b^2 \) 可知其单位只有 \( \pm 1 \)。在这个环中，

\[ 6 = 2 \cdot 3 = (1+\sqrt{-5})(1-\sqrt{-5}), \]

其中 \( 2 \)、\( 3 \)、\( 1+\sqrt{-5} \)、\( 1-\sqrt{-5} \) 是两两不相伴的不可约元，且都不是素元<sup>[1](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)</sup><sup> • </sup><sup>[3](https://arxiv.org/abs/1711.10842)</sup>。这种可约性并不总意味着失败：在 \( \mathbb{Z}[\sqrt{-2}] \) 中，素数 2 和 3 不再是不可约元，因为 \( 2 = -(\sqrt{-2})^2 \)、\( 3 = (1+\sqrt{-2})(1-\sqrt{-2}) \)，然而 \( \mathbb{Z}[\sqrt{-2}] \) 是欧几里得整环，从而是唯一分解整环<sup>[6](https://www.math.ucla.edu/~sharifi/notes/algebra-ch05.html)</sup><sup> • </sup><sup>[16](https://math.stanford.edu/~ksound/Math152A10/Solution6.pdf)</sup>。

唯一分解失效并不是故事的终点。\( \mathbb{Z}[\sqrt{-5}] \) 是**半因子分解整环**：尽管元素可能有多个不可约分解，但给定元素的每个分解都使用相同数目的不可约因子<sup>[3](https://arxiv.org/abs/1711.10842)</sup>。更重要的是，唯一分解可以在理想层面恢复。\( \mathbb{Z}[\sqrt{-5}] \) 的理想论基本定理指出，每个非零真理想都唯一地（除次序外）分解为素理想；在这种分解下，6 的两个分解给出相同的理想分解<sup>[3](https://arxiv.org/abs/1711.10842)</sup>。戴德金环中理想与除子一致；它只有当是主理想环时才是因子分解整环<sup>[7](https://encyclopediaofmath.org/wiki/Unique_factorisation_domain)</sup>。

## 历史渊源

动机来自费马大定理。试图通过把普通整数算术推广到诸如 \( a + b\sqrt{-3} \) 的环来证明它，却遇到了那里的素数唯一分解失效的事实；在这样的环中，\( 4 = 2 \times 2 = (1+\sqrt{-3})(1-\sqrt{-3}) \)<sup>[9](https://mathshistory.st-andrews.ac.uk//HistTopics/Ring_theory/)</sup>。1843年，恩斯特·爱德华·库默尔（Ernst Eduard Kummer）意识到，证明费马大定理的尝试之所以失败，是因为整数的唯一分解不能推广到其他复数环，于是他试图通过引入“理想”数来恢复唯一性<sup>[10](https://mathshistory.st-andrews.ac.uk/Biographies/Kummer/)</sup>。他曾在1844年发表一个例子，表明这种分解的唯一性会失效；1846年，他通过引入“理想复数”恢复了唯一性；1847年，就在加布里埃尔·拉梅（Gabriel Lamé）宣布一个有缺陷的费马大定理证明之后不久，库默尔用他的理论对所有 \( n < 100 \) 证明了该定理，除了 \( n = 37, 59, 67, \) 和 \( 74 \)<sup>[9](https://mathshistory.st-andrews.ac.uk//HistTopics/Ring_theory/)</sup>。广为流传的说法称库默尔发明理想数是为了修补他自己证明该定理时犯的错误，这几乎肯定是假的<sup>[9](https://mathshistory.st-andrews.ac.uk//HistTopics/Ring_theory/)</sup>。

库默尔只对循环域成功构造了他的理想数，或称除子；他的结果促使理查德·戴德金（Richard Dedekind）和利奥波德·克罗内克（Leopold Kronecker）把理论推广到任意代数数环。在戴德金1882年的理论中，理想和素理想的概念出现了，为交换代数奠定了基础<sup>[11](https://encyclopediaofmath.org/wiki/Commutative_algebra)</sup>。戴德金把理想刻画为一个子环，其元素乘以任意环元素后仍留在该子环中，并在1871年把素整数推广为素理想；这种从元素到理想的转变标志着环论发展的决定性阶段<sup>[9](https://mathshistory.st-andrews.ac.uk//HistTopics/Ring_theory/)</sup>。交换环的公理化处理随后在20世纪20年代由埃米·诺特（Emmy Noether）和沃尔夫冈·克鲁尔（Wolfgang Krull）的工作完成<sup>[9](https://mathshistory.st-andrews.ac.uk//HistTopics/Ring_theory/)</sup>。

## 计算分解

分解是否存在的理论问题，与找出一个分解的算法问题不同；整数分解和多项式分解都是重要的计算问题。

整数分解算法属于三类之一：确定性算法；第一类随机算法，其期望运行时间由最小素因子的大小决定；第二类随机算法，其期望运行时间由待分解数的大小决定<sup>[12](https://dlmf.nist.gov/27.19)</sup>。第一类方法包括布伦特–波拉德 rho 算法、波拉德 \( p-1 \) 算法和椭圆曲线方法；截至2009年1月，它们创下的素因子纪录分别为19、58和67位。第二类方法依赖寻找整数 \( x, y \) 使 \( x^2 \equiv y^2 \pmod{n} \)，包括连分数算法、多重多项式二次筛法、一般数域筛法和特殊数域筛法；截至2009年1月，特殊数域筛法保持纪录，分解了一个307位的合数，不过它只适用于非常接近小基数幂的数<sup>[12](https://dlmf.nist.gov/27.19)</sup>。大整数分解的困难性构成了 RSA 加密安全性的基础<sup>[13](https://arxiv.org/abs/2507.07055)</sup>。

**多项式分解**在许多系数环上算法上是可处理的。诸如 Magma 的计算机代数系统可在有限域、整数、有理数和代数数域上分解一元多项式，返回每个不可约因子及其重数<sup>[14](https://docs.magma-maths.org/BasicRings/UnivariatePolynomialRings/factorization.html)</sup>。在整数和有理数上，Magma 使用马克·范·霍伊（Mark van Hoeij）的算法：先在一个小素数模下找到分解，再通过亨泽尔提升把它提升为素数幂模下的分解，然后通过 LLL 格基约化求解一个背包问题，高效地找出模因子的正确组合——在经典的伯利坎普–扎森豪斯方法中，这一组合的最坏情形代价是指数级的<sup>[14](https://docs.magma-maths.org/BasicRings/UnivariatePolynomialRings/factorization.html)</sup>。在局部域上，蒙特斯算法以 \( p \) 进方式分解多项式，给出数域中位于素数 \( p \) 之上的素理想的表示，这些表示参数化了定义多项式的不可约因子<sup>[15](https://docs.magma-maths.org/GlobalFields/NumberFieldsAndOrders/montes.html)</sup>。

## References

1. [Factorization, Commutative Algebra notes (P. B. Cohen, Stanford)](https://crypto.stanford.edu/pbc/notes/commalg/factorization.html)
2. [Polynomial Factorization and Ideals, AM 106 (Salil Vadhan, Harvard)](https://people.seas.harvard.edu/~salil/am106/fall18/PolyFactorizationAndIdeals.pdf)
3. [How do elements really factor in \( \mathbb{Z}[\sqrt{-5}] \)? (arXiv:1711.10842)](https://arxiv.org/abs/1711.10842)
4. [Unique Factorization Domains, MA416 Section 4.1 (University of Galway)](https://maths.nuigalway.ie/MA416/section4-1.pdf)
5. [Factoring in integral domains, Abstract Algebra Reader (Dartmouth)](https://math.dartmouth.edu/~trs/PreTeXtProjects/css-playground/section-12.html)
6. [Romyar Sharifi, Abstract Algebra, Chapter 5: Advanced ring theory (UCLA)](https://www.math.ucla.edu/~sharifi/notes/algebra-ch05.html)
7. [Factorial ring, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Unique_factorisation_domain)
8. [Abstract Algebra: Theory and Applications (Judson), Chapter 18 (Colorado State)](https://www.math.colostate.edu/~pries/467/Judson12.pdf)
9. [The development of Ring Theory, MacTutor History of Mathematics (J. J. O'Connor and E. F. Robertson)](https://mathshistory.st-andrews.ac.uk//HistTopics/Ring_theory/)
10. [Eduard Kummer (1810–1893), MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/Biographies/Kummer/)
11. [Commutative algebra, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Commutative_algebra)
12. [DLMF §27.19 Methods of Computation: Factorization, NIST](https://dlmf.nist.gov/27.19)
13. [Integer Factorization: Another perspective (arXiv:2507.07055)](https://arxiv.org/abs/2507.07055)
14. [Factorization, Magma Handbook, Univariate Polynomial Rings](https://docs.magma-maths.org/BasicRings/UnivariatePolynomialRings/factorization.html)
15. [The Montes Algorithm, Magma Handbook, Number Fields and Orders](https://docs.magma-maths.org/GlobalFields/NumberFieldsAndOrders/montes.html)
16. [math.stanford.edu](https://math.stanford.edu/~ksound/Math152A10/Solution6.pdf)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Algebraic structures › Ring theory › Factorization and orders

Copyright 2026 Edgepedia

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

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

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