Plotting the solution to simple differential equations
The plot of a simple differential equation can be obtained by selecting Diff
Eq in the TYPE field of the PLOT SETUP environment as follows: suppose that we
want to plot x(t) from the differential equation dx/dt = exp(-t
conditions: x = 0 at t = 0. The calculator allows for the plotting of the solution
of differential equations of the form Y'(T) = F(T,Y). For our case, we let Y x
and T t, therefore, F(T,Y) f(t,x) = exp(-t
Before plotting the solution, x(t), for t = 0 to 5, delete the variables EQ and
Press „ô, simultaneously if in RPN mode, to access to the PLOT SETUP
Press ˜ and type ³„ ¸-~ „tQ2@@@OK@@@.
The cursor is now in the
. This is the code used by the calculator to identify the variables to be
be plotted in the horizontal axis.
variable (default name 'Y') will be plotted in the vertical axis.
Press ˜ . The cursor is now in the
„t@@@OK@@@ to change the independent variable to t.
Press L@@@OK@@@ to return to normal calculator display.
Press „ò, simultaneously if in RPN mode, to access the PLOT window
(in this case it will be called PLOT WINDOW – DIFF EQ).
Change the H-VIEW and V-VIEW parameters to read:
The values Step and Tol represent the step in the independent variable and
the tolerance for convergence to be used by the numerical solution. Let's
leave those values with their default settings (if the word default is not
shown in the Step: field, use L @RESET to reset that value to its default
value. Press L to return to the main menu.) Press ˜ .
The Init-Soln value represents the initial value of the solution to start the
numerical result. For the present case, we have for initial conditions x(0) =
0, thus, we need to change this value to 0.0, by using 0@@@OK@@@.
Press @ERASE @DRAW to plot the solution to the differential equation.
Press @EDIT L @LABEL @MENU to see the graph with labels.
means the independent variable (to be selected later) will
value to 0, and the Final value to 5 by using: 0@@@OK@@@
field. It should show
field. Press ³~
), with initial
means the dependent