Modified Euler's Method Calculator
Type y' = f(x, y), the starting point, the step size and the end value.
Write y' = f(x, y), such as y' = x + y, or just the right side.
The starting value of x.
The value of y at the start.
The step size, more than 0. The distance from x₀ to the end must be a whole number of steps.
The value of x to stop at, more than x₀. At most 1000 steps.
Result
You entered
Exact solution
Exact value
Error
Show the work
Modified Euler's method (midpoint)
Instead of the slope at the start of the step, use the slope at its MIDDLE: take half an Euler step to estimate the midpoint, find the slope there, and use it for the whole step.
Using
Step 1
From .
Step 2
From .
Step 3
From .
Table of steps
Every step with its two slopes.
Compare with the exact solution
This equation has an exact solution, so the numerical value can be checked: gives , an error of .
Result
The value after steps.