Loading…

Initial Value Problem Solver

Math Calculus • Multivariable Calculus

View all topics

Solve initial value problems for first-order equations \(\displaystyle y'=f(x,y)\) and second-order equations \(\displaystyle y''=F(x,y,y')\). The tool recognizes common exact cases such as \(y'=y\), and otherwise uses numerical methods such as Euler, Heun, and RK4.

First-order IVP \(\displaystyle y'=f(x,y),\quad y(x_0)=y_0\) Second-order IVP \(\displaystyle y''=F(x,y,y'),\quad y(x_0)=y_0,\quad y'(x_0)=v_0\) RK4 update \(\displaystyle y_{n+1}=y_n+\frac{h}{6}(k_1+2k_2+2k_3+k_4)\) Solution curve \(\displaystyle (x_0,y_0)\ \text{anchors the curve}\)

Equation, initial conditions, and graph settings

Use variables x, y, and for second-order problems v for \(y'\). Supported functions: sin, cos, tan, sqrt, abs, exp, ln, and log. Constants: pi, e. Use * for multiplication.
Live preview

Quick examples

Ready
Enter the equation and initial conditions, then click “Solve IVP”.

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 an initial value problem?

An initial value problem is a differential equation together with a starting condition, such as y' = f(x,y) and y(x0)=y0.

What first-order form does this calculator use?

It uses y' = f(x,y) with an initial value y(x0)=y0.

What second-order form does this calculator use?

It uses y'' = F(x,y,y') with initial data y(x0)=y0 and y'(x0)=v0.

How does the calculator solve second-order IVPs?

It converts the equation into a first-order system by setting v=y'. Then y'=v and v'=F(x,y,v).

Does it give exact solutions?

It gives exact solutions for recognized simple cases such as y'=y, y'=-y, y'=ky, y'=xy, and y'=y(1-y). Otherwise it uses numerical methods.

What is RK4?

RK4 is the fourth-order Runge-Kutta method. It estimates the next point using four slope evaluations and is usually much more accurate than Euler's method.

Why does the graph show more than one curve?

The graph can show the main numerical solution, the exact solution if recognized, comparison methods, and slope or velocity curves.

What does the initial point marker mean?

The initial point marker shows the point (x0,y0). The solution curve must pass through this point.

Are the graph axes labeled with units?

Yes. The graph axes have labels and numbered tick marks with the selected units.