Euler’s Method · Foundational

Euler’s Method Follows an ODE One Step at a Time

How local slopes generate a numerical approximation and why step size controls error.

Given y=f(t,y)y'=f(t,y) and y(t0)=y0y(t_0)=y_0, Euler’s method advances by

tn+1=tn+h,yn+1=yn+hf(tn,yn).t_{n+1}=t_n+h,\qquad y_{n+1}=y_n+h f(t_n,y_n).

Local approximation

The update comes from y(t+h)y(t)+hy(t)y(t+h)\approx y(t)+hy'(t). For smooth solutions, one step has error proportional to h2h^2, while accumulated error over a fixed interval is typically proportional to hh.

Step size

Smaller hh usually improves accuracy but increases work. A solution that changes rapidly may require short steps. Some stable differential equations can produce unstable Euler approximations when hh is too large.

Work the recurrence by hand

Approximate y=yy'=y, y(0)=1y(0)=1, using h=0.25h=0.25. Euler’s update is

yn+1=yn+0.25yn=1.25yn.y_{n+1}=y_n+0.25y_n=1.25y_n.

The first four approximations are 11, 1.251.25, 1.56251.5625, 1.9531251.953125, and 2.441406252.44140625. At t=1t=1, the exact value is e2.71828e\approx2.71828, so Euler underestimates the convex exponential.

Stability can be stricter than accuracy

Apply Euler to y=λyy'=\lambda y. The update is yn+1=(1+hλ)yny_{n+1}=(1+h\lambda)y_n. When λ<0\lambda<0, the true solution decays. The numerical solution decays only if

1+hλ<1.|1+h\lambda|<1.

For y=10yy'=-10y, this requires 0<h<0.20<h<0.2. A larger step makes a truly stable system oscillate or grow numerically.

Check your understanding

For y=4yy'=-4y with h=0.5h=0.5, what does Euler predict, and why is it misleading?

Show the reasoning

The multiplier is 14(0.5)=11-4(0.5)=-1, so the approximation alternates forever with constant magnitude. The exact solution y0e4ty_0e^{-4t} decays. The step lies on the stability boundary.

Continue exploring

Connections

Related concepts

First-Order ODEsFirst-Order ODEs Model Growth, Decay, and BalanceSlope FieldsSlope Fields Show an ODE Before It Is Solved

Applications

  • numerical simulation
  • initial-value problems