next up previous contents
Next: Using hw3plot.m Up: Examples Previous: Example 1   Contents

Example 2

Investigate the behavior of the ODE $x' \,=\, 2t - x$. Plot one solution to the ODE in an appropriate rectangle that illustrates the general behavior of the ODE.
  1. Change only the following in init.m
    ftx = '2*t-x';
    initax = [-2,2,-2,2];
    Save then type init in the command window to initialize the variables (or copy-and-paste in the Emporium).

  2. Use slopef.m to determine if the entries for initax are suitable.

    \begin{picture}(5,5.5)
\put(1,0){\includegraphics [width=5cm,height=5cm]{inst1f04.ps}}
\end{picture}

  3. Type sol1. Answer ``n'' to retain the current slopefield.

  4. Choose manual entry by clicking with the crosshairs inside the graphics window but outside of the actual plot. At each respective prompt enter $t_0 = -0.00504$ and $x_0 = -0.50479$.

    \begin{picture}(5,5.5)
\put(1,0){\includegraphics [width=5cm,height=5cm]{inst1f05.ps}}
\end{picture}



Michael Renardy
2000-05-12