Loading…

Euler's Method Approximator

Math Calculus • Multivariable Calculus

View all topics

Approximate the solution of an initial value problem \(\displaystyle y'=f(x,y),\ y(x_0)=y_0\) using Euler’s method. The tool builds the full step table, compares with an optional exact solution, draws the slope field, and animates the Euler polygon.

Initial value problem \(\displaystyle \frac{dy}{dx}=f(x,y),\quad y(x_0)=y_0\) Euler slope \(\displaystyle m_n=f(x_n,y_n)\) Euler update \(\displaystyle y_{n+1}=y_n+h\,f(x_n,y_n)\) Error comparison \(\displaystyle E_n=y_{\mathrm{exact}}(x_n)-y_n\)

Equation, step size, and initial condition

Leave blank if no exact solution is known. For the sample \(y'=x+y,\ y(0)=1\), the exact solution is 2*exp(x)-x-1.
Use variables x and y. Supported functions: sin, cos, tan, sqrt, abs, exp, ln, log. Constants: pi, e. Use * for multiplication.
Live preview

Quick examples

Ready
Enter an IVP and click “Approximate”.

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

What is Euler's method?

Euler's method is a numerical method for approximating solutions to initial value problems. It uses the slope at the current point to move forward by one step.

What formula does Euler's method use?

Euler's method uses x_{n+1}=x_n+h and y_{n+1}=y_n+h f(x_n,y_n).

What does the step size h control?

The step size h controls how far the method moves in x at each step. Smaller step sizes usually give better accuracy but require more steps.

What is the difference between local and global error?

Local error is the error made in one step. Global error is the accumulated difference between the approximate and exact solution after many steps.

Why does the calculator ask for an exact solution?

Euler's method does not automatically find exact solutions. If an exact solution is provided, the calculator can compare Euler approximations against it.

What does the slope field show?

The slope field shows the value of f(x,y) at many points. The Euler polygon follows those slopes step by step.

Can Euler's method step backward?

Yes. A negative step size, or the backward direction option, moves the approximation toward smaller x-values.

Do the graph axes show units?

Yes. The axis tick labels include both numerical values and the selected units.