Solving an Initial Value Problem using Numerical Approximation Methods Click to see/hide details
This page solves the following Initial Value Problem (IVP) and plots the corresponding solutions found using numerical methods of approximation at different values of x in a given interval :
\({dy \over dx} = xy^2 + 3xy\),
\({y(x_0)} = y_0 \) with \((x_0, y_0)= (0, 3)\), and \(x \in [x_0; X]\) with \(X=5.5\)
The following graph shows the convergence of the solutions in the above interval found using different numerical methods of approximation (Euler's, Improved Euler's, and Runge-Kutta's) with the possibility to change initial conditions, the number of grid steps used (N) as well as the height/size/range of each grid step(H).

Set Initial Conditions

Initial value of \(x, x_0 = \)

Initial value of \(y, y_0 = \)

Set X in \(x \in [x_0, X]\) :


Set either N or H:

  
  
Generate Graph

Resultant Graphs:

The above graph shows the convergence of the numerical methods of approximation. Try changing the number of grid steps (N) or the height of each grid step (H) above and see how the results vary.

The following graph gives a comparative view of the corresponding approximation errors using the aforementioned three numerical methods with the aforementioned initial conditions.