微积分I(标准路径) · free preview

§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. 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.

9. 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.

10. 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.

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free