# Risch 算法

Risch 算法是有限项不定积分的一个判定过程：给定一个初等函数，它判定是否存在初等原函数，若存在，则以封闭形式计算出来。<sup>[1](https://mathworld.wolfram.com/RischAlgorithm.html)</sup> 罗伯特·H·里施（Robert H. Risch）在 1969 年和 1970 年发表的论文中提出了该问题并给出了第一个算法，使用的是微分代数的语言。<sup>[2](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/1995313.pdf)</sup><sup> • </sup><sup>[3](https://www3.risc.jku.at/people/ppaule/theses/phd_erocal.pdf)</sup> 该算法是计算机代数系统中符号积分例程的理论基础，尽管尚无已知的完整实现。<sup>[4](https://symbolica.io/posts/symbolic_integration/)</sup>

| 关键事实 | 详情 |
|---|---|
| 判定内容 | 给定初等函数是否有初等原函数，并在存在时返回该原函数<sup>[1](https://mathworld.wolfram.com/RischAlgorithm.html)</sup> |
| 起源 | 罗伯特·H·里施，《有限项积分问题》，《美国数学会会刊》139 (1969)，第 167–189 页<sup>[2](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/1995313.pdf)</sup> |
| 1969 年算法的范围 | 由有理运算、指数和对数构成的初等函数；该论文排除了代数运算<sup>[2](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/1995313.pdf)</sup> |
| 理论核心 | 刘维尔定理：任何初等原函数都可写为域中一个元素加上域中元素对数的常数倍之和<sup>[5](https://charleshzh.github.io/oCAS/latest/en/math/risch-algorithm.html)</sup> |
| 实现状况 | 尚无已知的完整实现；代数扩张情形在任何计算机代数系统中都未完全实现<sup>[4](https://symbolica.io/posts/symbolic_integration/)</sup><sup> • </sup><sup>[1](https://mathworld.wolfram.com/RischAlgorithm.html)</sup> |
| 标准参考书 | 曼努埃尔·布朗斯坦，《符号积分 I：超越函数》（Springer，1997）<sup>[6](https://link.springer.com/book/10.1007/978-3-662-03386-9)</sup> |
| 实用变体 | 启发式 Risch–Norman（并行）方法，以及针对代数被积函数的 Risch–Trager–Bronstein 算法<sup>[7](https://arxiv.org/abs/2404.13042)</sup><sup> • </sup><sup>[8](https://arxiv.org/abs/2004.04910)</sup> |

## 有限项积分问题

初等函数是由常数和一个变量通过有限次算术运算、指数、对数、代数函数和复合构成的函数。<sup>[4](https://symbolica.io/posts/symbolic_integration/)</sup> 有限项积分问题要求给出一个算法，判定这样的函数是否有初等不定积分，并在存在时求出该积分。<sup>[9](https://doi.org/10.1090/s0002-9904-1970-12454-5)</sup> 许多初等函数，例如 \( e^{x^{2}} \) 或 \( e^{x}/x \)，没有初等原函数，因此算法必须能够证明不存在性，也能给出结果。<sup>[10](https://docs.sympy.org/latest/modules/integrals/integrals.html)</sup>

里施 1969 年发表在《美国数学会会刊》上的论文用微分域给出了初等函数的精确定义，并针对由有理运算、指数和对数构成的类给出了一个算法；它明确排除了用添加常数并进行代数运算来代替指数和对数的情形。<sup>[2](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/1995313.pdf)</sup> 1970 年《美国数学会通报》上的一篇四页公告《有限项积分问题的解决》勾勒了完整的解决方案，包括代数函数。<sup>[3](https://www3.risc.jku.at/people/ppaule/theses/phd_erocal.pdf)</sup><sup> • </sup><sup>[11](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/S0002-9904-1970-12454-5.pdf)</sup> 里施此前于 1968 年在加州大学伯克利分校、麦克斯韦·罗森利希特指导下就该问题撰写了博士论文。<sup>[12](https://math.berkeley.edu/publications/problem-integration-finite-terms)</sup>

## 算法如何工作

**以刘维尔定理为基础。** 该算法建立在 1830 年代和 1840 年代的刘维尔定理之上：如果一个初等函数有初等原函数，那么该原函数可以写成 \( v_{0} + \sum_{i} c_{i} \log v_{i} \)，其中 \( v_{i} \) 与被积函数位于同一个微分域中，\( c_{i} \) 是常数。<sup>[11](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/S0002-9904-1970-12454-5.pdf)</sup><sup> • </sup><sup>[5](https://charleshzh.github.io/oCAS/latest/en/math/risch-algorithm.html)</sup> 换言之，初等原函数所能引入的唯一真正新的对象是对数的常数倍。这把搜索范围限制得如此之紧，以至于它变成了一个有限的代数问题，而不是无休止地寻找代换。<sup>[5](https://charleshzh.github.io/oCAS/latest/en/math/risch-algorithm.html)</sup>

**微分域塔。** 被积函数被置于一个微分域塔 \( \mathbb{Q}(x, t_{1}, \ldots, t_{n}) \) 中，其中每个新的生成元 \( t_{i} \) 都是其下方域上的对数或指数：对数扩张满足 \( D t = D u / u \)，指数扩张满足 \( D t = t \cdot D u \)。<sup>[5](https://charleshzh.github.io/oCAS/latest/en/math/risch-algorithm.html)</sup> 常数域沿塔保持不变。<sup>[5](https://charleshzh.github.io/oCAS/latest/en/math/risch-algorithm.html)</sup> 然后算法按塔中单项式的数目进行归纳递归：在每一层，它把积分拆分为有理部分（通过推广部分分式法的埃尔米特型约化处理）、对数部分（通过对数导数找到），以及必须求解一阶线性微分方程即 Risch 微分方程 \( D q + f \cdot q = g \) 的剩余部分。<sup>[11](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/S0002-9904-1970-12454-5.pdf)</sup><sup> • </sup><sup>[13](https://charleshzh.github.io/oCAS/latest/en/algorithms/integration.html)</sup><sup> • </sup><sup>[6](https://link.springer.com/book/10.1007/978-3-662-03386-9)</sup> 如果所需的解不存在，则证明被积函数没有初等原函数。<sup>[10](https://docs.sympy.org/latest/modules/integrals/integrals.html)</sup>

**代数情形。** 处理代数扩张，例如含有根式的被积函数，是最困难的部分。里施 1970 年的论文表明，该问题归结为求出代数曲线的雅可比簇上某个元素的除子的挠的界，他称这是积分问题中最令人惊讶的方面。<sup>[11](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/S0002-9904-1970-12454-5.pdf)</sup> 后来的改进来自 达文波特（1979）、特拉格（1984）、布朗斯坦（1990）和米勒（2012），组合方法通常被称为 Risch–Trager–Bronstein 算法。<sup>[8](https://arxiv.org/abs/2004.04910)</sup>

**常数问题。** 该过程假定能够判定常数域中的表达式是否等于零。里施自己的论文指出，对于任意有理数 \( r \)，没有已知方法判定 \( e^{e^{r}} = r \) 是否成立，因此没有已知的通用方法来判断某些积分是否为初等。<sup>[11](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/S0002-9904-1970-12454-5.pdf)</sup>

## 实现

**尚无已知的完整实现。** Risch 判定过程以边角情况极其复杂著称，没有任何计算机代数系统实现了混合超越函数和代数函数积分的完整判定过程。<sup>[4](https://symbolica.io/posts/symbolic_integration/)</sup><sup> • </sup><sup>[14](https://mathoverflow.net/questions/374089/does-there-exist-a-complete-implementation-of-the-risch-algorithm)</sup> MathWorld 指出，代数扩张的情形相当复杂，在任何计算机代数系统中都未完全实现。<sup>[1](https://mathworld.wolfram.com/RischAlgorithm.html)</sup>

**FriCAS 和 Axiom** 拥有最深入的实现。FriCAS 是 Axiom 的开源后继，实现了该算法的相当一部分，但处理代数扩张的大部分仍未实现；当它遇到未实现的部分时会报错，因此 FriCAS 返回的未求值积分就是非初等性的断言。<sup>[14](https://mathoverflow.net/questions/374089/does-there-exist-a-complete-implementation-of-the-risch-algorithm)</sup><sup> • </sup><sup>[15](https://wiki.fricas.org/RischImplementationStatus?root=Symbolic+Integration)</sup> FriCAS 还推广了该算法，使被积函数可以包含刘维尔函数，并可以用指数积分、误差函数、不完全伽马函数、多对数函数和椭圆积分来表示结果，尽管前三种的理论完整算法在实现中仍有缺口。<sup>[15](https://wiki.fricas.org/RischImplementationStatus?root=Symbolic+Integration)</sup>

**Maple 和 SymPy** 实现的是部分版本。Maple 的 `method=Risch` 对涉及初等函数但不涉及一般代数函数的表达式应用部分实现；如果不存在根式函数，该方法失败就表明不存在初等积分。Maple 还提供用于纯代数函数的 `method=Trager` 和 `method=ParallelRisch`，后者并行考虑扩张，可以产生更简单的答案。<sup>[16](https://maplesoft.com/support/help/Maple/view.aspx?path=int%2Fmethods)</sup> SymPy 的 `risch_integrate` 只支持算法的超越部分，目前是指数和对数；当它返回 `NonElementaryIntegral` 时，积分已被证明为非初等，但未求值的 `Integral` 可能只意味着所需部分尚未实现。<sup>[10](https://docs.sympy.org/latest/modules/integrals/integrals.html)</sup>

**标准参考书**是曼努埃尔·布朗斯坦的《符号积分 I：超越函数》（Springer，1997），该书全面处理了超越函数的有限项积分，以伪代码形式给出算法，并包含关于 Risch 微分方程、参数问题、耦合微分系统和结构定理的章节。<sup>[6](https://link.springer.com/book/10.1007/978-3-662-03386-9)</sup> 当时在苏黎世联邦理工学院的布朗斯坦完成了巴里·特拉格开始的封闭形式积分的理论工作。<sup>[17](https://www.nongnu.org/axiom/axiom-website/bookvol0.pdf)</sup>

## 变体与扩展

**Risch–Norman（并行）积分。** 并行 Risch 或 Risch–Norman 方法通过对积分的拟设（通常基于启发式次数界）在超越扩张塔上寻找封闭形式；它是一种快速启发式方法，而不是判定过程。<sup>[7](https://arxiv.org/abs/2404.13042)</sup><sup> • </sup><sup>[18](https://arxiv.org/abs/2608.29482)</sup> 诺曼后来提出了一种避免次数界、转而依赖约化系统完备化的方法。<sup>[7](https://arxiv.org/abs/2404.13042)</sup>

**特殊函数。** Risch 算法的基本形式不支持特殊函数，因此不能直接处理误差函数或多对数函数。<sup>[4](https://symbolica.io/posts/symbolic_integration/)</sup> 切里在 1983、1986 和 1989 年的扩展使该算法能够处理一些特殊函数。<sup>[1](https://mathworld.wolfram.com/RischAlgorithm.html)</sup>

**相关用途。** 由于该算法能够证明初等可积性，它已被用于生成初等可积表达式的数据集，以训练和评估符号积分中的机器学习模型。<sup>[19](https://arxiv.org/abs/2306.15572)</sup> 对于伪椭圆积分等结构化的特殊情形，单独的构造性判据可以快速求解积分；萨姆·布莱克 2020 年的一种方法在随机测试中求解了 Risch–Trager–Bronstein 算法最佳实现可求解积分的 73.4%，但与里施一脉不同，它不是判定过程。<sup>[8](https://arxiv.org/abs/2004.04910)</sup>

## References

1. [Risch Algorithm, Wolfram MathWorld](https://mathworld.wolfram.com/RischAlgorithm.html)
2. [Robert H. Risch (1969). The Problem of Integration in Finite Terms. Transactions of the American Mathematical Society 139, 167–189.](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/1995313.pdf)
3. [Robert H. Risch (1970). The solution of the problem of integration in finite terms. Bull. Amer. Math. Soc. 76, 605–608.](https://www3.risc.jku.at/people/ppaule/theses/phd_erocal.pdf)
4. [Symbolica 2.2: symbolic integration, Symbolica blog](https://symbolica.io/posts/symbolic_integration/)
5. [The Risch Integration Algorithm, oCAS documentation](https://charleshzh.github.io/oCAS/latest/en/math/risch-algorithm.html)
6. [Manuel Bronstein (1997). Symbolic Integration I: Transcendental Functions. Springer.](https://link.springer.com/book/10.1007/978-3-662-03386-9)
7. [Reduction systems and degree bounds for integration, arXiv:2404.13042](https://arxiv.org/abs/2404.13042)
8. [Sam Blake (2020). A Simple Method for Computing Some Pseudo-Elliptic Integrals in Terms of Elementary Functions. arXiv:2004.04910.](https://arxiv.org/abs/2004.04910)
9. [The solution of the problem of integration in finite terms (1970), SciSpace paper page](https://doi.org/10.1090/s0002-9904-1970-12454-5)
10. [Integrals, SymPy 1.14.0 documentation](https://docs.sympy.org/latest/modules/integrals/integrals.html)
11. [Robert H. Risch (1970). The Solution of the Problem of Integration in Finite Terms (scan), Bull. Amer. Math. Soc. 76, 605–608.](https://www.cs.ru.nl/~freek/courses/mfocs-2012/risch/S0002-9904-1970-12454-5.pdf)
12. [The Problem of Integration in Finite Terms, UC Berkeley Mathematics PhD thesis record](https://math.berkeley.edu/publications/problem-integration-finite-terms)
13. [Symbolic Integration, oCAS documentation](https://charleshzh.github.io/oCAS/latest/en/algorithms/integration.html)
14. [Does there exist a complete implementation of the Risch algorithm?, MathOverflow](https://mathoverflow.net/questions/374089/does-there-exist-a-complete-implementation-of-the-risch-algorithm)
15. [RischImplementationStatus, FriCAS wiki](https://wiki.fricas.org/RischImplementationStatus?root=Symbolic+Integration)
16. [Maple help: int/methods, Maplesoft](https://maplesoft.com/support/help/Maple/view.aspx?path=int%2Fmethods)
17. [Axiom: The Art of Scientific Computation, foreword volume](https://www.nongnu.org/axiom/axiom-website/bookvol0.pdf)
18. [Parallel Integration over Simple Radical Extensions, arXiv:2608.29482](https://arxiv.org/abs/2608.29482)
19. [Generating Elementary Integrable Expressions, arXiv:2306.15572](https://arxiv.org/abs/2306.15572)

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

Topic: 物质世界与数学 › 数学与统计学 › 数与代数 › Computational and symbolic algebra › Symbolic and algebraic algorithms › Symbolic integration, summation, and differential algebra

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/risch-algorithm

English original: https://www.edgepedia.org/risch-algorithm
