Euler's method: one step
yₙ₊₁
Follow the tangent for one step: yₙ₊₁ = yₙ + h · f(xₙ, yₙ), where f(xₙ, yₙ) is the slope the differential equation gives at the present point.
yₙ₊₁=1.2
yₙ₊₁ equals 1 plus (0.1 times 2), equals 1 plus 0.2, equals 1.2
Den här sidan finns på svenska. Byt till svenska
Definition — what does that mean?
Follow the tangent for one small step, then read off the new slope and do it again.
In Swedish: Eulers metod: ett steg
yₙ₊₁
Follow the tangent for one step: yₙ₊₁ = yₙ + h · f(xₙ, yₙ), where f(xₙ, yₙ) is the slope the differential equation gives at the present point.
yₙ₊₁=1.2
yₙ₊₁ equals 1 plus (0.1 times 2), equals 1 plus 0.2, equals 1.2
You are given
The differential equation y′ = f(x, y) gives the slope at the present point. Work out f(xₙ, yₙ) from the equation, enter it with yₙ and the step h in the card above, and it returns the next value. The card does not know the equation, so it serves any first-order equation.
It is also called the forward Euler method.
The slope at (0, 1) is 3 + 0 − 1 = 2, so
At (0.1, 1.2) the slope is 3 + 0.1 − 1.2 = 1.9, so y₂ = 1.2 + 0.19 = 1.39. The exact solution y = t + 2 − e−t gives 1.1952 and 1.3813, so each step carries a small error that builds up.
With y(0) = 1 and h = 0.1: y₁ = 1.1, y₂ = 1.21, y₃ = 1.331. The exact solution et at t = 0.3 is 1.3499. Halving h halves the error at a fixed t.
Why does the error build up?
Each step follows a tangent, which leaves the curve. The next step starts from the wrong value and follows
the slope there, so the error carries forward.
| Solve for | Rearranged | With the numbers | Comes to |
|---|---|---|---|
| yₙ₊₁ | yₙ | 1 | 1.2 |
| yₙ | yₙ₊₁ | 1.2 | 1 |
| h | yₙ₊₁ | 1.2 | 0.1 |
| f(xₙ, yₙ) | yₙ₊₁ | 1.2 | 2 |
Last reviewed October 11, 2026 ·How pages are reviewed
Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.