# 欧拉方法

欧拉方法是一种数值方法，通过在每一个计算点上沿切线方向向前推进，来近似求解常微分方程的初值问题。给定方程 \( y' = f(t, y) \) 及初值 \( y(t_0) = y_0 \) 和步长 \( h \)，它按下式推进解：

\[ y_{n+1} = y_n + h \, f(t_n, y_n). \]

它是常微分方程最简单的数值积分器，是显式的（新值直接由已知量算出），在实际应用中极少使用，但它是理解数值微分方程理论的起点。<sup>[1](https://jmahaffy.sdsu.edu/courses/f00/math122/lectures/num_method_diff_equations/numdeeg.htm)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC11646139/)</sup>

| 关键事实 | 细节 |
|---|---|
| 更新规则 | \( y_{n+1} = y_n + h f(t_n, y_n) \)；每步计算一次 \( f \)<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC11646139/)</sup><sup> • </sup><sup>[3](https://arxiv.org/abs/2301.04595)</sup> |
| 精度 | 一阶：局部截断误差 \( -\tfrac{1}{2} h^2 u_{tt}(t^n) = O(h^2) \)，全局误差 \( O(h) \)<sup>[4](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/order-of-accuracy/1690r-local-truncation-error/)</sup> |
| 稳定区域 | \( \{ z \in \mathbb{C} : |1 + z| \le 1 \} \)，即以 \(-1\) 为圆心、半径为 1 的圆盘<sup>[5](https://www.buttenschoen.ca/MATH551/forward-euler/)</sup> |
| 步长限制 | 对 \( y' = \lambda y \)（\( \lambda \) 为负实数），稳定性要求 \( h < 2/|\lambda| \)<sup>[6](https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_%28Chong%29/10%3A_Numerical_Integration_of_ODEs/10.02%3A_Forward_Euler_Method)</sup> |
| 分类 | 一阶龙格-库塔法；显式、条件稳定<sup>[7](https://farside.ph.utexas.edu/teaching/329/lectures/node35.html)</sup><sup> • </sup><sup>[8](https://mude.citg.tudelft.nl/book/2026/numerical_methods/2-error-analysis-stability.html)</sup> |
| 起源 | 莱昂哈德·欧拉（Leonhard Euler）的《积分学原理》第一卷，1763 年写成，1768 年在圣彼得堡出版<sup>[9](https://scholarlycommons.pacific.edu/euler-works/342/)</sup> |

## 工作原理

该方法由导数的定义直接推出。在小区间 \( h \) 上，精确解满足 \( y(t_n + h) \approx y(t_n) + h\, y'(t_n) \)，而微分方程提供了斜率 \( y'(t_n) = f(t_n, y_n) \)。从 \( t_0 \) 时刻的初始状态 \( \vec{y}_0 \) 出发反复执行这一过程，就得到序列 \( \vec{y}_1, \vec{y}_2, \ldots \)，即数值解。由于下一步所需的一切都已知，该方法被称为显式方法。<sup>[6](https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_%28Chong%29/10%3A_Numerical_Integration_of_ODEs/10.02%3A_Forward_Euler_Method)</sup>

该方法可直接推广到方程组，此时 \( y \) 和 \( f \) 均为向量，它是龙格-库塔方法族中的第一个成员。<sup>[7](https://farside.ph.utexas.edu/teaching/329/lectures/node35.html)</sup>

## 精度

局部截断误差，即从精确值出发单步计算所产生的误差，可由精确解的泰勒展开得到：

\[ u(t_{n+1}) = u(t_n) + h\, u_t(t_n) + \tfrac{1}{2} h^2 u_{tt}(t_n) + O(h^3). \]

前两项恰好就是欧拉更新，因此主误差项为 \( -\tfrac{1}{2} h^2 u_{tt}(t^n) = O(h^2) \)。<sup>[4](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/order-of-accuracy/1690r-local-truncation-error/)</sup> 若以速率表示，单位时间内的截断误差为 \( \tau_n = \tfrac{h}{2} u''(t_n) + O(h^2) = O(h) \)，而单步误差本身为 \( O(h^2) \)。<sup>[5](https://www.buttenschoen.ca/MATH551/forward-euler/)</sup>

由于到达固定终点需要大约 \( O(1/h) \) 步，而局部误差会在这些步骤中累积，全局误差低一阶，为 \( O(h) \)：步长减半，最终误差减半。这正是该方法被称为一阶方法的原因。<sup>[4](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/order-of-accuracy/1690r-local-truncation-error/)</sup><sup> • </sup><sup>[10](https://netmaths.in/book/ode-pde-applied-mathematics/numerical-analysis/numerical-ode-euler-runge-kutta)</sup> 作为对比，改进的欧拉法（休恩法）是二阶的，全局误差为 \( O(h^2) \)；经典四阶龙格-库塔法（RK4）的全局误差为 \( O(h^4) \)。<sup>[11](https://allisone.co.jp/note/mathematics/numerical-analysis/basic/euler-method_en.html)</sup> 减小步长可提高精度，但会增加计算量，这促使人们研究高阶方法，以在单位工作量下获得更高精度。<sup>[12](https://sist.sathyabama.ac.in/sist_naac/aqar_2022_2023/documents/1.3.4/Maths_Batch%20No.6.pdf)</sup>

## 稳定性与刚性方程

**稳定区域。** 在测试方程 \( u' = \lambda u \) 上，欧拉更新给出 \( u_{n+1} = (1 + h\lambda) u_n \)，故数值解为 \( u_n = (1 + h\lambda)^n u_0 \)。仅当 \( |1 + h\lambda| \le 1 \) 时它才有界，这就定义了稳定区域：复平面上以 \(-1\) 为圆心、半径为 1 的圆盘。任何光滑的常微分方程经泰勒展开后局部都是线性的，因此在这个测试方程上的行为就能揭示该方法的一般稳定性性质。<sup>[5](https://www.buttenschoen.ca/MATH551/forward-euler/)</sup> 对负实数 \( \lambda \)，条件化为 \( h < 2/|\lambda| \)。若违反该条件，则 \( 1 - h\kappa < -1 \)，此时尽管精确解衰减到零，数值解却以指数增长的振幅振荡。<sup>[6](https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_%28Chong%29/10%3A_Numerical_Integration_of_ODEs/10.02%3A_Forward_Euler_Method)</sup>

这种行为正是刚性问题的特征，即含有与步长相比很大的时间常数或弹性常数的方程。<sup>[6](https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_%28Chong%29/10%3A_Numerical_Integration_of_ODEs/10.02%3A_Forward_Euler_Method)</sup> 所谓刚性问题，就是稳定性要求使用的步长远小于仅考虑精度时所需的步长的问题；此时显式方法变得不实用，隐式方法是标准工具。<sup>[13](https://notes.amittai.studio/differential-equations/numerical/multistep-systems-stability)</sup> 一个具体算例可以说明代价：对 \( y' = -100y + 100t + 1 \)，其精确解在经历一段很薄的初始层后基本上就是直线 \( y = t \)，欧拉法的稳定性要求 \( h < 0.02 \)。当 \( h = 0.025 \) 时，欧拉迭代以爆炸式增长的振幅振荡（在 \( t = 0.4 \) 处达到 657.241，而精确值为 0.400000）；而步长为 0.1（四倍步长）的后向欧拉法却能干净地跟踪解。<sup>[13](https://notes.amittai.studio/differential-equations/numerical/multistep-systems-stability)</sup> 当 \( \lambda = -10^6 \) 时，前向欧拉法需要约 \( 10^6 \) 步才能积分到 \( T = 2 \)，全部消耗在稳定性而非精度上；而后向欧拉法以 \( h = 0.01 \) 只需 200 步即可完成。<sup>[5](https://www.buttenschoen.ca/MATH551/forward-euler/)</sup>

补救办法是后向欧拉法，\( y_{n+1} = y_n + h f(t_{n+1}, y_{n+1}) \)，其中新值出现在等式两边，每一步都必须求解一个非线性方程组，通常用[牛顿法](https://www.edgepedia.org/zh/newtons-method)。其放大因子 \( g = 1/(1 - \lambda \Delta t) \) 对所有负实数 \( \lambda \) 和任意步长其模都小于 1，因此整个左半平面都是稳定的；该方法与向前欧拉法一样是一阶的，并且是 A 稳定的。<sup>[14](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/stiffness-and-implicit-methods/)</sup><sup> • </sup><sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC11646139/)</sup> 数值计算永远无法挽救一个不稳定的问题，但不恰当的方法或步长却可能引入原问题本不具有的不稳定性。<sup>[13](https://notes.amittai.studio/differential-equations/numerical/multistep-systems-stability)</sup>

## 与其他方法的关系及实际应用

欧拉方法是龙格-库塔方法族的一阶成员，更高阶的成员以每步更多的函数计算量换取更低的截断误差。\( n \) 阶龙格-库塔法每步需要计算 \( n \) 次 \( f \)，在大多数计算物理问题中，精度与代价的平衡点在四阶附近，这就是 RK4 常作为默认选择的原因。<sup>[7](https://farside.ph.utexas.edu/teaching/329/lectures/node35.html)</sup> 欧拉法每步只需一次计算，而龙格-库塔-费尔伯格法需要六次，但 RKF 的自适应步进大大减少了时间点总数，因而总体效率要高得多。<sup>[3](https://arxiv.org/abs/2301.04595)</sup>

在生产软件中，欧拉方法极少使用。SciPy 的 `solve_ivp` 等标准求解器对非刚性问题提供显式龙格-库塔方法（RK23、RK45、DOP853），对刚性问题提供隐式方法（Radau、BDF），默认首选 RK45。<sup>[15](https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html)</sup> 电路仿真器一般采用后向欧拉法和梯形积分等隐式方法，其无条件稳定性使步长不再受稳定性约束。<sup>[3](https://arxiv.org/abs/2301.04595)</sup> 然而，在简便性比精度更重要的场合，欧拉方法仍会出现：它被用作教学工具，用于神经 ODE 的初步研究，以及 MeshGraphNet 等模型——后者是一种基于图神经网络的神经 ODE，因其层数众多、反向传播代价高昂而依赖前向欧拉法。<sup>[2](https://pmc.ncbi.nlm.nih.gov/articles/PMC11646139/)</sup> 它也是现代优化的基础：梯度下降可以理解为将欧拉方法应用于梯度流微分方程。<sup>[16](https://arxiv.org/abs/2505.13397)</sup>

## 历史

该方法以[莱昂哈德·欧拉](https://www.edgepedia.org/zh/leonhard-euler)（Leonhard Euler，1707–1783）命名。它出现在其《积分学原理》（*Institutionum calculi integralis*）第一卷中，该书 1763 年写成，1768 年由圣彼得堡帝国科学院出版；该著作编目为 Eneström 编号 E342，是三卷积分学著作中的第一卷。<sup>[9](https://scholarlycommons.pacific.edu/euler-works/342/)</sup> 该卷的拉丁文标题为 *Methodus integrandi a primis principiis usque ad integrationem aequationum differentialium primi gradus*，意为从基本原理出发直至一阶微分方程积分的积分方法。<sup>[17](https://www.e-rara.ch/zut/content/titleinfo/9548534)</sup>

## References

1. [Numerical Methods for Differential Equations – Examples, San Diego State University (J. Mahaffy)](https://jmahaffy.sdsu.edu/courses/f00/math122/lectures/num_method_diff_equations/numdeeg.htm)
2. [Training stiff neural ordinary differential equations with implicit single-step methods, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC11646139/)
3. [Circuit simulation using explicit methods, arXiv:2301.04595](https://arxiv.org/abs/2301.04595)
4. [1.3 Order of Accuracy, MIT OpenCourseWare 16.90 Computational Methods in Aerospace Engineering](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/order-of-accuracy/1690r-local-truncation-error/)
5. [Forward Euler Method – Introduction to Scientific Computing (MATH 551, UBC, K. Buttenschoen)](https://www.buttenschoen.ca/MATH551/forward-euler/)
6. [10.2: Forward Euler Method, Physics LibreTexts (Computational Physics, Chong)](https://phys.libretexts.org/Bookshelves/Mathematical_Physics_and_Pedagogy/Computational_Physics_%28Chong%29/10%3A_Numerical_Integration_of_ODEs/10.02%3A_Forward_Euler_Method)
7. [Runge-Kutta methods, lecture notes, University of Texas at Austin](https://farside.ph.utexas.edu/teaching/329/lectures/node35.html)
8. [1.3. Accuracy and stability of numerical methods, MUDE textbook, TU Delft](https://mude.citg.tudelft.nl/book/2026/numerical_methods/2-error-analysis-stability.html)
9. [Institutionum calculi integralis volumen primum, Euler Archive record E342, University of the Pacific](https://scholarlycommons.pacific.edu/euler-works/342/)
10. [Numerical ODE: Euler, Runge–Kutta, NETMaths](https://netmaths.in/book/ode-pde-applied-mathematics/numerical-analysis/numerical-ode-euler-runge-kutta)
11. [Euler Method – The Most Fundamental Numerical Method for ODEs, Allisone](https://allisone.co.jp/note/mathematics/numerical-analysis/basic/euler-method_en.html)
12. [Comparative study on numerical methods, Sathyabama Institute](https://sist.sathyabama.ac.in/sist_naac/aqar_2022_2023/documents/1.3.4/Maths_Batch%20No.6.pdf)
13. [Multistep Methods, Systems, and Stability, Amittai study notes](https://notes.amittai.studio/differential-equations/numerical/multistep-systems-stability)
14. [1.7 Stiffness and Implicit Methods, MIT OpenCourseWare 16.90](https://mitocw.ups.edu.ec/courses/aeronautics-and-astronautics/16-90-computational-methods-in-aerospace-engineering-spring-2014/numerical-integration-of-ordinary-differential-equations/stiffness-and-implicit-methods/)
15. [solve_ivp, SciPy v1.18.0 Manual](https://docs.scipy.org/doc/scipy/reference/generated/scipy.integrate.solve_ivp.html)
16. [Learning by solving differential equations, arXiv:2505.13397](https://arxiv.org/abs/2505.13397)
17. [Methodus integrandi a primis principiis... (1768), ETH-Bibliothek Zürich](https://www.e-rara.ch/zut/content/titleinfo/9548534)

---
*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: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Numerical methods and approximation

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/euler-method

English original: https://www.edgepedia.org/euler-method
