Euler's Method Calculator
Estimate the solution of a first-order differential equation y' = f(x, y) from a starting point using Euler's method, step by step. Enter f(x, y), the start point, the step size and the end x.
1 Fill in the boxes
2 Your answer
Your answer shows here as you type.
How to use the Euler's Method Calculator
- Type the differential equation as f(x, y), for example x + y or -2*x*y. Use * for multiplication and ^ for powers.
- Enter the starting point x0 and y0, the step size h, and the end x.
- Read the estimated y at each step. The last line gives the approximate value of y at the end x.
Frequently asked questions
What is Euler's method?
Euler's method is a numerical way to approximate the solution of y' = f(x, y) from a known starting point. Each step uses y_next = y + h * f(x, y) and moves x forward by the step size h.
How accurate is Euler's method?
The global error is roughly proportional to the step size h, so halving h roughly halves the error. Smaller steps give better estimates but need more calculations.
What does the step size h do?
h is the distance between successive x values. If the end x is not a multiple of h, the last step is shortened so that the calculation ends exactly at the end x.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.