微积分I(标准路径) · 免费预览

§7.3 Euler's method

什么是欧拉方法?如何利用它来近似求解初值问题?

1. Introduction

Introduction

2. Euler's Method

Euler's Method

3. The error in Euler's method

The error in Euler's method

4. Summary

Summary

5. The Euler update rule

Euler's method approximates solutions of dydt=f(t,y)\frac{dy}{dt} = f(t,y) by repeatedly applying

6. A tangent line for Euler's launch

For the initial value problem dydt=12(y+1)\frac{dy}{dt} = \frac{1}{2}(y+1) with y(0)=0y(0) = 0, the tangent line at t=0t = 0 is

7. Euler parked on an equilibrium

Applying Euler's method with y(0)=6y(0) = 6 to dydt=6y−y2\frac{dy}{dt} = 6y-y^2 produces

8. The other logistic equilibria

The differential equation dydt=6y−y2\frac{dy}{dt} = 6y-y^2 has equilibrium solutions

9. Euler's method as a Riemann sum

For dydt=f(t)=2t−1\frac{dy}{dt} = f(t) = 2t-1 with y(0)=0y(0) = 0 and Δt=0.2\Delta t = 0.2, the Euler value y5y_5 coincides with

10. One spreadsheet of coffee physics

Alice's coffee (k=0.5k = 0.5) and Bob's coffee (k=0.1k = 0.1) both start at 100∘100^\circF in a 70∘70^\circ room. Their initial cooling rates are

11. Room swings, coffee follows

When the room temperature oscillates as Tr=70+10sin⁡tT_r = 70+10\sin t, Euler approximations for Alice (k=0.5k=0.5) and Bob (k=0.1k=0.1) show that

12. First Euler step for a logistic

For dydt=6y−y2\frac{dy}{dt} = 6y-y^2 with y(0)=1y(0) = 1 and Δt=0.2\Delta t = 0.2, compute the first approximation y1y_1.

13. Second Euler step for the same walk

Continuing with y1=2y_1 = 2 at t=0.2t = 0.2, compute the second Euler approximation y2y_2 at t=0.4t = 0.4, still with Δt=0.2\Delta t = 0.2.

14. A downward first step

For dydt=2t−1\frac{dy}{dt} = 2t-1 with y(0)=0y(0) = 0 and Δt=0.2\Delta t = 0.2, compute the first Euler approximation y1y_1.

15. The error left at the finish

The exact solution of dydt=2t−1\frac{dy}{dt} = 2t-1, y(0)=0y(0) = 0 is y=t2−ty = t^2-t, while Euler with Δt=0.2\Delta t = 0.2 ends at y5=−0.2y_5 = -0.2. Compute the error y(1)−y5y(1)-y_5.

16. Accelerating convergence

For dydt=y\frac{dy}{dt} = y, y(0)=1y(0)=1, Euler gave E0.2=2.4883E_{0.2} = 2.4883 and E0.1=2.5937E_{0.1} = 2.5937. Assuming y(1)−EΔt=KΔty(1)-E_{\Delta t} = K\Delta t, solve the two equations and report the improved y(1)y(1), rounded to three decimals.

17. The walk from one climbs to six

For dydt=6y−y2\frac{dy}{dt} = 6y-y^2 with y(0)=1y(0) = 1, the solution increases toward the stable equilibrium y=6y = 6 and never crosses it.

18. Euler error shrinks linearly

The error of Euler's method at a fixed target time is proportional to Δt\Delta t, so halving the step size roughly halves the error.

19. Improved Euler squares the accuracy

For the improved Euler's method, experiments such as I0.2=2.7027I_{0.2} = 2.7027 and I0.1=2.7141I_{0.1} = 2.7141 approximating ee suggest the error is proportional to Δt2\Delta t^2.

20. Solutions of the linear equation shift vertically

For dydt=2t−1\frac{dy}{dt} = 2t-1, changing the initial value from y(0)=0y(0) = 0 to y(0)=1y(0) = 1 simply adds 11 to every Euler value, reflecting that all solutions differ by a constant.

进入交互式练习

免费注册 · 即时批改 · 自动安排间隔复习。

免费开始这门课