Enter the function g(x,y) for y' in the text input field marked "y'=g(x,y)=".
Example: y'= -x
Click the "Graph" button (this button also refreshes the graph).
The initial value point (x0,y0) can be chosen in either of two ways:
To erase the graph and the text input fields for f (x,y) and g(x,y), and set x0, y0, and tmax to default values, click the "Clear" button (this also sets the fields in the "Field" window to default values).
Predator-Prey Model: x'=x(1-y), y'=y(x-1), (x0,y0)=(3,1), tmax=5
This is equivalent to graphing a phase portrait and solution curve for the system of differential equations x'=f (x,y) and y'=g(x,y), derivatives with respect to t, having solutions of the form x(t) and y(t) with initial values given by x(0)=x0 and y(0)=y0.
The particular solution curve (x(t),y(t)) is graphed by determining a numerical approximation to the curve using the classical (order four) Runge-Kutta Method.
An anomaly of Java graphics may cause a curve which overlaps itself to leave a "trail" during the click-and-drag action. For example, in the above example where solution curves are circles, if tmax=10.0, the trail will appear in the overdrawn part of the curve, associated with t values greater than 2. Eventually the applet's graphics will catch up with the mouse action and erase the trail. This anomaly could not be improved without seriously degrading performance during the click-and-drag action.