Mathematics, Statistics & Geometry

Differential Equation Solver

Solve first-order ordinary differential equations numerically using Euler's method. Evaluate dy/dx over an interval with custom step sizes.

y(1)
3.187
Method UsedEuler's Method
Calculation StepsDifferential Equation: dy/dx = x + y Initial Value: y(0) = 1 Target X: 1, Step Size: 0.1 Using Euler's Method: y_new = y_old + h * f(x, y) Step 1: y(0.1000) = 1 + 0.1 * 1.0000 = 1.100000 ... Final Step: y(1) ≈ 3.187485

Calculated locally in your browser. Fast, secure, and private.

Simulating the Real World

The Differential Equation Solver allows you to approximate the solutions to complex First-Order Ordinary Differential Equations (ODEs) directly in your browser. Using the robust Euler Method, this calculator steps through time to predict future states.

yn+1=yn+hf(xn,yn)\begin{aligned} y_{n+1} = y_n + h \cdot f(x_n, y_n) \end{aligned}

Where:
yn+1y_{n+1}=
The approximated value at the next step
h=
The small increment added to x
f(x,y)=
The slope function (dy/dx)

How Euler's Method Works

Euler's method is the foundation of all computer simulations. It works on a very simple premise:

  1. Start at your known initial point (x0,y0)(x_0, y_0).
  2. Use the differential equation dydx\frac{dy}{dx} to calculate the exact slope at that point.
  3. Move forward a tiny amount (the Step Size, hh) along that slope to find your new point.
  4. Repeat the process.

Real-World Applications

Differential equations are the language of continuous change. They are used to model:

  • Epidemiology: Predicting the spread of a virus over time (SIR models).
  • Physics: Modeling the trajectory of a pendulum with air resistance.
  • Biology: Calculating population growth in environments with limited resources (Logistic Growth).
  • Finance: Modeling the continuous compounding of interest or Black-Scholes options pricing.

Frequently Asked Questions

It is an equation that relates one or more functions and their derivatives. Essentially, it is an equation that describes a 'rate of change' rather than a static value.

Euler's method is a first-order numerical procedure for solving ordinary differential equations (ODEs) with a given initial value. It uses tangent lines to approximate the curve.

Many real-world differential equations cannot be solved exactly using analytical algebra. Numerical methods allow computers to approximate the solution curve to a high degree of accuracy.

A smaller step size (e.g., 0.01) makes the approximation much more accurate because it follows the curves more tightly. However, it requires significantly more calculations.

An IVP is a differential equation combined with a known starting point (e.g., at time t=0, population y=100). Euler's method requires an IVP to start iterating.