Putting the solutions and the slope fields together

Often, you will want to plot the solution curves for different initial conditions along with the slope field together on one graph.  You can do that by combining the solution graphing we did above with the slope fields.

Because I picked a pretty nasty equation, DSolve doesn't work like I want, so we will do this one using NDSolve. Let's solve for the different initial values for the curves we want to plot (say from [Graphics:../Images/index_gr_98.gif] to [Graphics:../Images/index_gr_99.gif], every 2 units):

[Graphics:../Images/index_gr_100.gif]
[Graphics:../Images/index_gr_101.gif]
[Graphics:../Images/index_gr_102.gif]
[Graphics:../Images/index_gr_103.gif]

[Graphics:../Images/index_gr_104.gif]

[Graphics:../Images/index_gr_105.gif]

Now, let's combine the slope field with the solution curves:

[Graphics:../Images/index_gr_106.gif]

[Graphics:../Images/index_gr_107.gif]

[Graphics:../Images/index_gr_108.gif]

This is, of course, hideous.  To fix that, we can explicitly tell it what region to plot:

[Graphics:../Images/index_gr_109.gif]

[Graphics:../Images/index_gr_110.gif]

[Graphics:../Images/index_gr_111.gif]


Converted by Mathematica      July 20, 2003