Euler Method
📐 Definition
Section titled “📐 Definition”For an ODE with timestep , the forward Euler update advances the state by evaluating the drift at the current time level:
Domain and Codomain
Section titled “Domain and Codomain”The method applies to states in (or a function space) with locally Lipschitz . The update returns in the same space.
⚙️ Key Properties
Section titled “⚙️ Key Properties”Order and Local Error
Section titled “Order and Local Error”Forward Euler is first-order accurate in time, with local truncation error .
Linear Stability (Test Equation)
Section titled “Linear Stability (Test Equation)”For the linear test equation , the update is
Stability requires , which yields a CFL-type timestep restriction for many PDE semi-discretizations.
One drift evaluation per step; no linear or nonlinear solves.
🎯 Special Cases and Limits
Section titled “🎯 Special Cases and Limits”For linear drift with forcing ,
As , the method converges to the exact flow under standard smoothness assumptions.
🔗 Related Functions
Section titled “🔗 Related Functions”Heun’s method improves accuracy by averaging drift estimates; backward Euler trades explicitness for strong stability on stiff problems.
Usage in Oakfield
Section titled “Usage in Oakfield”Oakfield provides Euler stepping as a built-in context integrator:
- Integrator names:
eulerandeuler_deterministic(Lua:sim.sim_create_context_integrator(ctx, "euler", {...})). - Optional adaptivity: the Euler integrator can run in adaptive mode using a full-step vs two half-step estimate (step rejection up to a small fixed attempt count).
- Stochastic increments: when enabled, Oakfield applies stochastic updates after the deterministic step using the integrator’s noise hook.
- Scope: integrators advance the context by evolving the primary field state (field index 0) while drift evaluation executes the operator graph.
Historical Foundations
Section titled “Historical Foundations”📜 Origins
Section titled “📜 Origins”Euler’s method is one of the earliest systematic numerical schemes for integrating differential equations, arising from 18th-century work on differential calculus and approximation.
🌍 Modern Perspective
Section titled “🌍 Modern Perspective”Today it serves as a canonical explicit first-order method: simple, interpretable, and a building block for stability and error analysis of more sophisticated integrators.
📚 References
Section titled “📚 References”- Hairer, Nørsett, Wanner, Solving Ordinary Differential Equations I
- Butcher, Numerical Methods for Ordinary Differential Equations