The simplest one-step method: advance with the slope at the current node. Full derivation along three routes (Taylor, incremental quotient and integration), order, a worked example and the implicit variant.
The idea: advance with the current slope
At node tk we know the approximation yk and, with it, the slope f(tk,yk) that the equation assigns to the solution at that point. Euler's method advances in a straight line with that slope across the whole subinterval:
yk+1=yk+hf(tk,yk),k=0,1,…,N−1
Explicit Euler method.Euler replaces the exact curve by the tangent line leaving (tk,yk); across the whole step it uses a single slope.
It is an explicit method: yk+1 is computed directly from yk. Its interest is not accuracy (it is the lowest-order method) but that it condenses the three techniques used to design almost every method: Taylor expansions, derivative approximation and quadrature.
Derivation
The complete derivation, along all three routes and with the error analysis that fixes the order of the method, is the following:
The geometric reading of first-order Taylor: keeping only the linear term means advancing along the tangent.
Expand the solution y by Taylor around t, with the Lagrange form of the remainder (ξ between t and t+h):
y(t+h)=y(t)+hy′(t)+2h2y′′(ξ)
The differential equation provides the derivative: y′(t)=f(t,y(t)). Substituting:
y(t+h)=y(t)+hf(t,y(t))+2h2y′′(ξ)
Discard the remainder 2h2y′′(ξ) (the terms of order at least 2) and evaluate at the nodes t=tk, with yk≈y(tk): Euler's scheme remains.
yk+1=yk+hf(tk,yk)
Route 2: incremental quotient
The derivative is the limit of the incremental quotient; for small h, that quotient approximates it. This gives the first-order forward difference:
y′(t)=h→0limhy(t+h)−y(t)⇒y′(t)≈hy(t+h)−y(t)
Substituting the approximation into the equation y′=f(t,y) and solving for y(t+h) recovers the same formula:
hy(t+h)−y(t)≈f(t,y)⇒y(t+h)≈y(t)+hf(t,y)
Route 3: integration
In integral form, explicit Euler approximates the area under f(τ,y(τ)) by a rectangle with left height f(tk,yk).
Before using the Fundamental Theorem of Calculus, write the ODE with the dummy variable τ and integrate both sides over [tk,tk+1]:
∫tktk+1y′(τ)dτ=∫tktk+1f(τ,y(τ))dτ
Now the Fundamental Theorem of Calculus turns the integral of y′ into the exact difference of the solution:
y(tk+1)=y(tk)+∫tktk+1f(τ,y(τ))dτ
Approximate the integrand by its value at the left endpoint. In other words, interpolate it with the constant polynomial p0(τ)=f(tk,y(tk)) and integrate that rectangle of base h:
Substituting into the integral identity yields Euler's scheme again. Approximating the integrand with higher-degree polynomials produces, along this same route, Heun (trapezoid), RK4 (Simpson) and the Adams methods.
Local error, global error and order
The local error of one step is the Taylor remainder discarded in Route 1 (ξk∈]tk,tk+1[):
For the global error, sum the N local errors. Since y′′ is continuous, the intermediate value theorem lets us collect the sum at a single point ξ∈[a,b]:
k=0∑N−12h2y′′(ξk)=2h2Ny′′(ξ)
With N=hb−a, one power of h cancels and the first-order global error remains: Euler's method is first order.
2h2hb−ay′′(ξ)=2b−ay′′(ξ)h=O(h)
Order of the method
The global error loses one unit with respect to the local one: N=hb−a local errors are committed, and their accumulation multiplies by a factor proportional to 1/h. The precise definition of both errors and the numerical estimation of the order are covered in Convergence, consistency and order.
Worked example
ExampleTwo Euler steps on the Verhulst model
Approximate with two Euler steps the solution of y′(t)=(3−0.1y(t))y(t) on [0,2] with y(0)=10, whose exact solution is y(t)=1+2e−3t30.
With N=2 the step is h=1. First step, from t0=0, y0=10: the slope is f(0,10)=(3−1)⋅10=20.
y1=y0+hf(t0,y0)=10+1⋅20=30
Second step, from t1=1, y1=30: now f(1,30)=(3−3)⋅30=0, so the numerical solution does not move.
y2=y1+hf(t1,y1)=30+0=30
Comparing with the exact solution, y(1)=27.2833 and y(2)=29.8517, the maximum error is ∣27.2833−30∣=2.7167: the first row of the table in the order estimation exercise.
Implicit Euler
If instead of the slope at the start of the subinterval one uses the slope at the end, the implicit Euler method is obtained:
yk+1=yk+hf(tk+1,yk+1)
Implicit Euler method.Implicit Euler uses the right-hand rectangle: the height depends on the new point, which is why an equation must be solved.
The integral derivation of implicit Euler uses the right endpoint: the rectangle height contains the unknown yk+1.
Instead of approximating the derivative at tk looking forward, approximate it at tk+1 looking backward, with the backward difference:
y′(tk+1)≈hy(tk+1)−y(tk)
Substitute into the differential equation evaluated at the new node, y′(tk+1)=f(tk+1,y(tk+1)), and solve:
yk+1=yk+hf(tk+1,yk+1)
The same scheme follows from the integral form of the IVP, approximating the integrand by its value at the right endpoint (right-hand rectangle), in exact parallel to Route 3 of the explicit Euler derivation.
Since yk+1 appears inside f, each step requires solving an (in general nonlinear) equation in the unknown yk+1, for instance with the Newton-Raphson method:
g(yk+1)=yk+1−yk−hf(tk+1,yk+1)=0
Since yk+1 appears on both sides, each step requires solving the equation g(yk+1)=yk+1−yk−hf(tk+1,yk+1)=0, often with the Newton-Raphson method. The method has a larger stability region: it works with large steps where the explicit one blows up, as the stability exercise shows and as studied in general in Stiff problems and stability.