Back to Numerical Methods repository
Numerical Methods2D

Ordinary Differential Equations - Theory & Concepts - Euler Method

Numerical solutions for initial-value and boundary-value problems of ordinary differential equations.

Open the complete lesson

Euler's Method Visualization

Solving the initial value problem dydx=2x3+12x220x+8.5\frac{dy}{dx} = -2x^3 + 12x^2 - 20x + 8.5, with y(0)=1y(0) = 1.

04xyTrueEuler
0.1 (More Accurate)2.0 (Less Accurate)

Results at x = 4

True y(4)
3.0000
Euler Approx y(4)
7.0000
True Percent Relative Error:
133.33%
Euler's Formula
yi+1=yi+f(xi,yi)hy_{i+1} = y_i + f(x_i, y_i)h
Euler's method truncates the Taylor series after the first derivative. Decreasing the step size hh reduces this truncation error and improves accuracy.