---
name: explicit-euler
description: "The simplest way to advance an ordinary differential equation y' = f(t, y) by one time step. Use for teaching, quick prototypes or a first sanity check of a model on a smooth, non-stiff problem. First order, explicit, one evaluation of f per step. Also called forward Euler. Not suitable for long runs, conservative mechanical systems or stiff problems."
---

# Explicit Euler

> **Placeholder (demo).** Description only: there is no reference implementation or verification for this entry yet. It belongs to a demonstration set of textbook methods.

## What it does

Takes the slope at the start of the step and follows it: $y_{n+1} = y_n + h\, f(t_n, y_n)$. Each step costs one evaluation of $f$. The global error is proportional to $h$ (first order), so halving the step only halves the error.

## When to use

- Teaching, debugging a right-hand side, or a quick look at the qualitative behaviour of a smooth, non-stiff system.
- As a building block inside other schemes, where its simplicity matters more than accuracy.

## When not to use (and what to use instead)

| Situation | Use instead |
| --- | --- |
| A little more accuracy for one extra evaluation per step | `explicit-midpoint` (second order) |
| You need accuracy at reasonable cost | `rk4` (fixed step) or `dormand-prince-rk45` (error control) |
| Conservative mechanical system or long runs: energy grows steadily | `stormer-verlet` or `symplectic-euler` |
| Stiff problem: the step must be tiny to stay stable | `backward-euler` or `implicit-midpoint` |

## Key facts

Order 1, explicit, not symplectic, not time-reversible, conditionally stable (for $y' = \lambda y$ it needs $|1 + h\lambda| \le 1$).

## Sources

- E. Hairer, S. P. Nørsett, G. Wanner. *Solving Ordinary Differential Equations I*, 2nd rev. ed. Springer, 1993. https://doi.org/10.1007/978-3-540-78862-1
