First order differential equation

The simulation calculates solutions of ordinary explicit first order differential equations

y´ = dy/dx = f(y,x)

using the Runge−Kutta algorithm. In the left coordinate system the abscissa represents x, the ordinate y.

When opening the file you see a fat red point at x = 0, representing the initial value y0 at its abscissa x0 . You can change the initial value with the slider, more exactly and unlimited by typing a value into the number field. Two additional number fields are used to define x0 and xmax . Default values are: y0 = 1; x0 = 0; xmax = 3. You can also draw the red point to create new initial conditions.

In the comboBox you can chose between a number of predefined types of functions. Their formula is shown in field y´ = .. . There you can edit formulas or input any arbitrary first order explicit differential equation.

When activating start with the default equation, the differential equation of the exponential function y´= y is evaluated. Calculation stops as x = xmax . At first you see a set of calculated points. You can choose the option trace to get an interpolated smooth curve.

Stop stops the calculation; back leaves already calculated points and sets back to the initial conditions. Changing these now creates an additional curve at start. This way you can generate sets of solutions for different initial conditions (the Trace option would create jumps, which are avoided in the points option). Clear resets and clears traces, but leaves parameters unchanged. Reset leads back to default values.

After back you can change the x-resolution of the calculation by slider step, and look if and how different resolution influence the result.

The smaller window shows the phase space projection

y ´ = y´ ( y )

The green point is the one last calculated.

The phase space diagram very distinctively demonstrates the different character of solutions:  convergence, divergence, periodic oscillation, oscillating divergence, oscillating convergence. It is independent of the initial condition. The order of predefined functions follows these characteristics.