# 龙格–库塔方法

龙格–库塔方法是一族用于求解常微分方程的单步数值算法。在这类算法中，从某一时间点到下一时间点的每一步，都由若干次右端函数的求值（称为“级”）构造而成，再以固定权重组合，从而达到选定的精度阶数。该方法由卡尔·达维德·托尔梅·龙格（Carl David Tolmé Runge，1856–1927）于1895年引入，1901年由威廉·库塔（Wilhelm Kutta）发展为一般族，至今仍是多数软件中求解非刚性初值问题的默认选择。

| 关键事实 | 详情 |
|---|---|
| 起源 | 龙格1895年发表于《数学年刊》（*Mathematische Annalen*）第46卷的论文开创了这一族方法；库塔1901年的论文确立了通用格式<sup>[1](https://bishtref.com/articles/10.1007/bf01446807)</sup><sup> • </sup><sup>[2](https://books.google.com/books/about/Beitrag_zur_n%C3%A4herungsweisen_Integration.html?id=Zc4TAQAAIAAJ)</sup> |
| 经典RK4 | 每步四级，更新公式 \( y_1 = y_0 + \tfrac{h}{6}(F_1 + 2F_2 + 2F_3 + F_4) \)，四阶精度<sup>[3](https://www.math.auckland.ac.nz/~butcher/miniature/apology9.pdf)</sup> |
| 记号 | 具有 \( s \) 级的方法用系数 \( c \)、\( A \) 和权重 \( b \) 的布切尔表表示<sup>[4](https://www.scholarpedia.org/article/Runge-Kutta_methods)</sup> |
| 阶数壁垒 | 当 \( p > 4 \) 时，\( p \) 阶显式龙格–库塔方法所需的级数多于 \( p \)<sup>[5](https://www.math.auckland.ac.nz/~butcher/ODE-book-2008/Tutorials/IRK.pdf)</sup> |
| 稳定性 | 显式方法的稳定域有界，不可能是A-稳定的；任意高阶的隐式方法都可以是A-稳定的<sup>[6](https://doi.org/10.1016/S0377-0427%2800%2900455-6)</sup> |
| 自适应对 | 嵌入式对，如费尔伯格（1969）和多曼德–普林斯RK5(4)（1980），用一个低阶的第二公式估计误差<sup>[7](https://ntrs.nasa.gov/search.jsp?R=19690021375)</sup><sup> • </sup><sup>[8](https://explore.openaire.eu/search/result?pid=10.1016%2F0771-050x%2880%2990013-3)</sup> |
| 软件默认 | SciPy的`RK45`被建议作为非刚性问题的首选，高精度用`DOP853`，刚性问题用`Radau`或`BDF`<sup>[9](https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html)</sup> |

## 一步是如何构造的

对于初值问题 \( y'(t) = f(t, y(t)) \)，\( y(t_0) = y_0 \)，龙格–库塔方法在一个大小为 \( h \) 的步长内推进解，其做法是在步内若干点上求 \( f \) 的值，再对结果取加权平均。经典的四阶方法通常称为RK4，计算四个级值<sup>[3](https://www.math.auckland.ac.nz/~butcher/miniature/apology9.pdf)</sup>：

\[ F_1 = f(t_0, y_0), \quad F_2 = f\!\left(t_0 + \tfrac{1}{2}h,\, y_0 + \tfrac{1}{2}h F_1\right), \quad F_3 = f\!\left(t_0 + \tfrac{1}{2}h,\, y_0 + \tfrac{1}{2}h F_2\right), \quad F_4 = f(t_0 + h,\, y_0 + h F_3) \]

然后将它们组合为

\[ y_1 = y_0 + \frac{h}{6}(F_1 + 2F_2 + 2F_3 + F_4). \]

布切尔（Butcher）称该格式把辛普森法则的益处带到了微分方程中，并指出它通常比只用 \( F_1 \) 的欧拉方法效果好得多<sup>[3](https://www.math.auckland.ac.nz/~butcher/miniature/apology9.pdf)</sup>。一个关于 \( y' = -y \)、\( \Delta t = 0.2 \) 的算例给出 \( y_1 = 0.8187\bar{3} \)，而精确值为 \( e^{-0.2} = 0.8187307\ldots \)<sup>[10](https://mude.citg.tudelft.nl/book/2026-draft/numerical_methods/4-multistep_and_multistage_methods.html)</sup>。

**布切尔表。** 具有 \( s \) 级的方法可用其系数表紧凑表示：横坐标 \( c_i \)、级系数矩阵 \( A = (a_{ij}) \) 和输出权重 \( b_i \)<sup>[4](https://www.scholarpedia.org/article/Runge-Kutta_methods)</sup>。在显式方法中，\( A \) 是严格下三角的，因此每一级可以依次由前几级算出；在隐式方法中，各级方程必须联立求解，通常借助非线性求解器<sup>[11](https://academic.oup.com/ptep/article/2024/6/063D01/7656954)</sup>。

## 历史

关键日期如下：亚当斯（Adams）和巴什福斯（Bashforth）1883年的线性多步工作，龙格1895年的方法，库塔1901年的推广，尼斯特伦（Nyström）1925年针对二阶方程的特殊方法，莫尔顿（Moulton）1926年的隐式多步方法，以及柯蒂斯（Curtiss）和希尔施费尔德（Hirschfelder）1952年对刚性问题的识别<sup>[12](https://www.math.auckland.ac.nz/~butcher/CONFERENCES/AFSS-2006-slides.pdf)</sup>。库塔1901年的论文《论全微分方程的近似积分》（*Beitrag zur näherungsweisen Integration totaler Differentialgleichungen*，Teubner出版社，19页）建立在休恩（Heun）早期方法之上，推导出了三至五阶公式的条件<sup>[2](https://books.google.com/books/about/Beitrag_zur_n%C3%A4herungsweisen_Integration.html?id=Zc4TAQAAIAAJ)</sup>。

现代理论在很大程度上是奥克兰大学（University of Auckland）的约翰·C·布切尔（John C. Butcher）的工作。他1964年的论文《隐式龙格–库塔过程》（“Implicit Runge–Kutta processes”，《计算数学》*Mathematics of Computation* 18，第50–64页）开启了对隐式公式的系统研究<sup>[13](https://www.math.auckland.ac.nz/~butcher/fullist.html)</sup>，而他1972年的论文《积分方法的代数理论》（“An algebraic theory of integration methods”，《计算数学》26，第79–106页）表明，包括龙格–库塔方法在内的一类积分方法与一个可在有根树集合上表示为实值函数的群相关<sup>[14](https://www.researchgate.net/publication/245275021_An_Algebraic_Theory_of_Integration_Methods)</sup>。这种基于树的方法用初等微分表示精确解和近似解的泰勒展开，并把原本显得任意的阶条件变成一份有条理的清单<sup>[15](https://www.math.auckland.ac.nz/~butcher/ODE-book-2008/contents.html)</sup>。

## 阶条件与壁垒

当方法的局部误差表现为 \( O(h^{p+1}) \) 时，称其具有 \( p \) 阶。代数阶条件的数目随 \( p \) 迅速增长，而对于显式方法，随着阶数提高，求解这些条件变得越来越困难<sup>[5](https://www.math.auckland.ac.nz/~butcher/ODE-book-2008/Tutorials/IRK.pdf)</sup>。阶数壁垒指出，对于 \( p \) 阶显式格式，当 \( p > 4 \) 时，级数必须超过 \( p \)<sup>[5](https://www.math.auckland.ac.nz/~butcher/ODE-book-2008/Tutorials/IRK.pdf)</sup>；换一种说法，直到 \( p = 4 \)，显式格式的级数可以与其阶数相等，但超过这一点，级数必须大于阶数<sup>[11](https://academic.oup.com/ptep/article/2024/6/063D01/7656954)</sup>。

隐式方法避开了这一困难的大部分。对每个正整数 \( s \)，都存在具有 \( 2s \) 阶的 \( q \) 级高斯型隐式方法<sup>[4](https://www.scholarpedia.org/article/Runge-Kutta_methods)</sup>，而布切尔的简化假设 \( B(k) \)、\( C(k) \) 和 \( D(k) \) 把高阶验证归结为几族可检验的方程；例如，一个五阶隐式方法满足由 \( B(5) \)、\( C(2) \) 和 \( D(2) \) 推出的17个阶条件<sup>[5](https://www.math.auckland.ac.nz/~butcher/ODE-book-2008/Tutorials/IRK.pdf)</sup>。

## 显式方法与隐式方法

**刚性决定选择。** 作为一般规则，非刚性问题最好用显式方法求解，它们以最小代价达到可接受的精度；随着问题变得越来越刚性，稳定性而非精度成为主导考虑，隐式方法便成为合适的选择<sup>[4](https://www.scholarpedia.org/article/Runge-Kutta_methods)</sup>。例如，当直线法把带有显著扩散的偏微分方程转化为大型常微分方程组时，就会出现刚性问题<sup>[16](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/F356AA1AE59BED1D14B298ED18B851D7/S1446181109000030a.pdf/div-class-title-practical-runge-kutta-methods-for-scientific-computation-div.pdf)</sup>。

稳定性理论解释了原因。应用于测试方程 \( y' = \lambda y \)，龙格–库塔方法产生 \( y_{n} = R(z)\, y_{n-1} \)，其稳定函数为 \( R(z) = 1 + z b^{T}(I - zA)^{-1}e \)；对于显式方法，\( R \) 是多项式，稳定域总是有界集，没有显式方法可以是A-稳定的。对于隐式方法，\( R(z) \) 是有理函数 \( N(z)/D(z) \)，分子和分母的次数最高可达 \( s \)，且任意高阶的方法都可以是A-稳定的<sup>[6](https://doi.org/10.1016/S0377-0427%2800%2900455-6)</sup>。A-稳定性意味着稳定域包含整个左半平面，因此问题中的衰减会对任意步长在数值解中产生衰减<sup>[17](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)</sup>。

经典的隐式族与求积相联系。高斯型方法的稳定函数形如 \( R(z) = N(z)/N(-z) \)，且 \( R(z) = \exp(z) + O(z^{2s+1}) \)，即指数函数的帕德（Padé）近似；帕德表的对角线及前两条次对角线对应高斯、拉道IA/IIA和洛巴托IIIC族，它们都是A-稳定的<sup>[6](https://doi.org/10.1016/S0377-0427%2800%2900455-6)</sup>。\( R \) 级、\( 2R \) 阶的隐式方法总是A-稳定的<sup>[18](https://mtchu.math.ncsu.edu/Teaching/Lectures/MA583/chapter5.pdf)</sup>。代价是计算量：作为该族中最简单的成员，隐式欧拉方法每一步都需要求解一个非线性代数方程，这对非刚性问题代价过高，但对刚性问题值得付出<sup>[16](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/F356AA1AE59BED1D14B298ED18B851D7/S1446181109000030a.pdf/div-class-title-practical-runge-kutta-methods-for-scientific-computation-div.pdf)</sup>。

## 嵌入式对与自适应步进

嵌入式对携带两个不同阶数但共享同一组级的公式，因此它们结果之差可用来估计局部误差并控制步长。NASA马歇尔太空飞行中心（Marshall Space Flight Center）的欧文·费尔伯格（Erwin Fehlberg）在NASA报告TR R-315（1969）中发表了带步长控制的低阶经典龙格–库塔公式<sup>[7](https://ntrs.nasa.gov/search.jsp?R=19690021375)</sup>，并在《计算》（*Computing*）第4卷（1969）中发表了一族5阶和6阶的八级对<sup>[19](https://epubs.siam.org/doi/abs/10.1137/0727076?journalCode=sjnaam)</sup>。J. R. 多曼德（J. R. Dormand）和P. J. 普林斯（P. J. Prince）于1980年（《计算与应用数学杂志》*Journal of Computational and Applied Mathematics* 6，第19–26页）推导出一族嵌入式RK5(4)公式，其设计具有小的主截断项和扩大的绝对稳定域<sup>[8](https://explore.openaire.eu/search/result?pid=10.1016%2F0771-050x%2880%2990013-3)</sup>。后来的工作用显式公式把费尔伯格、弗纳（Verner）和多曼德–普林斯方法联系起来；在该研究进行时，多曼德–普林斯方法包含了已知最有效的5阶和6阶方法<sup>[19](https://epubs.siam.org/doi/abs/10.1137/0727076?journalCode=sjnaam)</sup>。

## 与多步方法的比较

龙格–库塔方法是单步方法：新值只依赖于当前值，因此不必存储过去解的历史，方法可自启动。线性多步方法，如亚当斯–巴什福斯方法，需要若干个先前值，不能自启动，并且需要起始值，而这些起始值通常用龙格–库塔方法计算<sup>[20](https://www.ijert.org/runge-kutta-and-adams-mult-step-method-for-second-k-nd-of-volterra-integral-equat-on-ijertv15is052135)</sup>。在函数求值次数上，固定阶数时，比较结果对多步方法更有利：四阶龙格–库塔方法每步需要四次 \( f \) 的求值，而四阶亚当斯–巴什福斯方法需要一次，预测–校正对需要两次<sup>[21](https://lib.ysu.am/open_books/413330.pdf)</sup>。

根据布切尔在《Scholarpedia》中的叙述，这种简单的计数具有误导性：龙格–库塔方法在相同精度下可以取更大的步长，而且其步长可以简单地逐步调整，而线性多步方法则做不到<sup>[4](https://www.scholarpedia.org/article/Runge-Kutta_methods)</sup>。可变步长被列为龙格–库塔方法非常容易实现，而多步方法则需要重新计算系数<sup>[20](https://www.ijert.org/runge-kutta-and-adams-mult-step-method-for-second-k-nd-of-volterra-integral-equat-on-ijertv15is052135)</sup>。

## 几何性质

对于哈密顿问题，某些龙格–库塔方法是辛的：对于任意哈密顿量，已知的唯一辛单步方法是满足辛条件的辛龙格–库塔方法，而单步方法的辛性在极长时间内产生能量的近似守恒<sup>[22](https://people.math.ethz.ch/~grsam/SS20/NAII/resources/lecture1.pdf)</sup>。一个重要推论是哈密顿系统所有二次第一积分的守恒<sup>[23](https://people.dimai.unifi.it/brugnano/LIMbook/data/PhDthesisGFC.pdf)</sup>。辛龙格–库塔方法因其稳定性而在辛格式中普遍使用<sup>[24](https://www.mdpi.com/2073-8994/13/10/1930)</sup>。然而，没有任何B-级数方法（这一类包括龙格–库塔方法）能对所有保体积向量场都保体积<sup>[25](https://www.sciencedirect.com/science/article/pii/S0168927416301040)</sup>。

## 软件中的龙格–库塔方法

标准库直接提供这一族方法。SciPy的`solve_ivp`提供显式方法`RK23`（3(2)阶）、`RK45`（基于多曼德–普林斯）和`DOP853`（8阶），以及隐式方法`Radau`（拉道IIA，5阶）和`BDF`；建议对非刚性问题使用显式龙格–库塔方法，对刚性问题使用隐式方法，不确定时先试`RK45`，需要高精度时优先用`DOP853`<sup>[9](https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html)</sup>。MATLAB的`ode78`和`ode89`将高精度龙格–库塔公式应用于天体力学问题，在这些问题上`ode45`和`ode113`在默认容差下会失败，而在文档记载的测试问题上`ode89`表现最佳<sup>[26](https://www.mathworks.com/help/matlab/math/solve-celestial-mechanics-problem-with-high-order-ode-solvers.html)</sup>。在Julia的OrdinaryDiffEq中，默认算法从`Tsit5`和`Vern7`等显式非刚性方法开始，检测到刚性时切换到刚性方法<sup>[27](https://docs.sciml.ai/OrdinaryDiffEq/dev/api/common_interface/)</sup>。

专门的变体服务于特定需求：火灾动力学代码FDS使用一种辅以理查森外推的二阶龙格–库塔格式，这将精度提高到四阶，并为复杂化学提供误差控制<sup>[28](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1018e6.pdf)</sup>；而带有自动步长控制的优化嵌入式对已被设计用于可压缩计算流体力学<sup>[29](https://arxiv.org/abs/2104.06836)</sup>。

## References

1. [Runge, C. (1895). Ueber die numerische Auflösung von Differentialgleichungen. Mathematische Annalen 46.](https://bishtref.com/articles/10.1007/bf01446807)
2. [Kutta, W. (1901). Beitrag zur näherungsweisen Integration totaler Differentialgleichungen. Teubner.](https://books.google.com/books/about/Beitrag_zur_n%C3%A4herungsweisen_Integration.html?id=Zc4TAQAAIAAJ)
3. [Butcher, J. C. Mathematical Apology 9: the classical Runge–Kutta method. University of Auckland.](https://www.math.auckland.ac.nz/~butcher/miniature/apology9.pdf)
4. [Butcher, J. C. Runge-Kutta methods. Scholarpedia.](https://www.scholarpedia.org/article/Runge-Kutta_methods)
5. [Butcher, J. C. Implicit Runge–Kutta methods (tutorial). University of Auckland.](https://www.math.auckland.ac.nz/~butcher/ODE-book-2008/Tutorials/IRK.pdf)
6. [Butcher, J. C. (2000). Numerical methods for ordinary differential equations in the 20th century. Journal of Computational and Applied Mathematics.](https://doi.org/10.1016/S0377-0427%2800%2900455-6)
7. [Fehlberg, E. (1969). Low-order classical Runge-Kutta formulas with stepsize control. NASA TR R-315.](https://ntrs.nasa.gov/search.jsp?R=19690021375)
8. [Dormand, J. R., Prince, P. J. (1980). A family of embedded Runge-Kutta formulae. J. Comput. Appl. Math. 6, 19–26.](https://explore.openaire.eu/search/result?pid=10.1016%2F0771-050x%2880%2990013-3)
9. [solve_ivp, SciPy v1.18.0 Manual.](https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html)
10. [Multi-step and multi-stage methods, MUDE textbook, TU Delft.](https://mude.citg.tudelft.nl/book/2026-draft/numerical_methods/4-multistep_and_multistage_methods.html)
11. [Efficient Solver of Relativistic Hydrodynamics with an Implicit Runge–Kutta Method. Progress of Theoretical and Experimental Physics (2024).](https://academic.oup.com/ptep/article/2024/6/063D01/7656954)
12. [Butcher, J. C. Scientific Computation and Differential Equations (conference slides, historical dates). University of Auckland.](https://www.math.auckland.ac.nz/~butcher/CONFERENCES/AFSS-2006-slides.pdf)
13. [Publication list of J. C. Butcher. University of Auckland.](https://www.math.auckland.ac.nz/~butcher/fullist.html)
14. [Butcher, J. C. (1972). An Algebraic Theory of Integration Methods. Mathematics of Computation 26, 79–106.](https://www.researchgate.net/publication/245275021_An_Algebraic_Theory_of_Integration_Methods)
15. [Survey of contents, Butcher ODE book (2008 draft). University of Auckland.](https://www.math.auckland.ac.nz/~butcher/ODE-book-2008/contents.html)
16. [Butcher, J. C. (2009). Practical Runge–Kutta methods for scientific computation. ANZIAM J. 50, 333–342.](https://www.cambridge.org/core/services/aop-cambridge-core/content/view/F356AA1AE59BED1D14B298ED18B851D7/S1446181109000030a.pdf/div-class-title-practical-runge-kutta-methods-for-scientific-computation-div.pdf)
17. [Stiff Differential Equations, Computational Physics lecture notes, Universität Bielefeld.](https://roesner.pages.ub.uni-bielefeld.de/lectures/computational-physics/semester/sose2026/lecture/07_ode/07_stiffness.html)
18. [Chapter 5 lecture notes, NC State (MA 583).](https://mtchu.math.ncsu.edu/Teaching/Lectures/MA583/chapter5.pdf)
19. [A Contrast of Some Runge–Kutta Formula Pairs. SIAM Journal on Numerical Analysis.](https://epubs.siam.org/doi/abs/10.1137/0727076?journalCode=sjnaam)
20. [Runge Kutta and Adams Multistep Method for Second Kind of Volterra Integral Equation. IJERT.](https://www.ijert.org/runge-kutta-and-adams-mult-step-method-for-second-k-nd-of-volterra-integral-equat-on-ijertv15is052135)
21. [Multistep Methods chapter (Numerical Analysis text, YSU library copy).](https://lib.ysu.am/open_books/413330.pdf)
22. [Geometrical numerical integration methods for differential equations (lecture notes, ETH Zürich).](https://people.math.ethz.ch/~grsam/SS20/NAII/resources/lecture1.pdf)
23. [Brugnano et al. Geometric Integration (thesis chapter).](https://people.dimai.unifi.it/brugnano/LIMbook/data/PhDthesisGFC.pdf)
24. [Symplectic All-at-Once Method for Hamiltonian Systems. MDPI Symmetry 13(10), 1930 (2021).](https://www.mdpi.com/2073-8994/13/10/1930)
25. [Volume preservation by Runge–Kutta methods. Journal of Computational and Applied Mathematics.](https://www.sciencedirect.com/science/article/pii/S0168927416301040)
26. [Solve Celestial Mechanics Problem with High-Order Solvers. MATLAB & Simulink documentation.](https://www.mathworks.com/help/matlab/math/solve-celestial-mechanics-problem-with-high-order-ode-solvers.html)
27. [Common Interface API, OrdinaryDiffEq.jl documentation.](https://docs.sciml.ai/OrdinaryDiffEq/dev/api/common_interface/)
28. [NIST Special Publication 1018-6, Fire Dynamics Simulator technical reference, Appendix E.](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.1018e6.pdf)
29. [Ranocha, H., Dalcin, L., Parsani, M., Ketcheson, D. I. (2021). Optimized Runge-Kutta Methods with Automatic Step Size Control for Compressible Computational Fluid Dynamics. arXiv:2104.06836.](https://arxiv.org/abs/2104.06836)

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

Topic: 物质世界与数学 › 数学与统计学 › 数学分析与数学模型 › Numerical analysis and computation

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/runge-kutta-methods

English original: https://www.edgepedia.org/runge-kutta-methods
