Streamlines in 2-Dimensional Vector Fields
? 2008 Waterloo Maple Inc
Introduction
This worksheet gives two examples of Maple's capabilities for calculating and displaying the streamlines in a 2-dimensional vector field.
Example 1
A vector field v is defined by:
. The streamlines show the path traced by an object following the vector field and can be plotted by defining the first order ordinary differential equation:
. In this example, a vector field v is defined by
 |
(2.1) |
 |
(2.2) |
As explicit solutions:
 |
(2.3) |
The family of solutions is now plotted in the first quadrant to display the sections of streamlines for various values of _C1:
![plot({subs(_C1 = -5, exp1[1]), subs(_C1 = -2, exp1[1]), subs(_C1 = -1, exp1[1]), subs(_C1 = -3.5, exp1[1]), subs(_C1 = -.75, exp1[1]), subs(_C1 = -.25, exp1[1]), subs(_C1 = -.1, exp1[1])}, x = 0 .. 10...](/view.aspx?SI=6665/Streamlines in 2-D Vector Fields_11.gif)
![plot({subs(_C1 = -5, exp1[1]), subs(_C1 = -2, exp1[1]), subs(_C1 = -1, exp1[1]), subs(_C1 = -3.5, exp1[1]), subs(_C1 = -.75, exp1[1]), subs(_C1 = -.25, exp1[1]), subs(_C1 = -.1, exp1[1])}, x = 0 .. 10...](/view.aspx?SI=6665/Streamlines in 2-D Vector Fields_12.gif)
![plot({subs(_C1 = -5, exp1[1]), subs(_C1 = -2, exp1[1]), subs(_C1 = -1, exp1[1]), subs(_C1 = -3.5, exp1[1]), subs(_C1 = -.75, exp1[1]), subs(_C1 = -.25, exp1[1]), subs(_C1 = -.1, exp1[1])}, x = 0 .. 10...](/view.aspx?SI=6665/Streamlines in 2-D Vector Fields_13.gif)
![plot({subs(_C1 = -5, exp1[1]), subs(_C1 = -2, exp1[1]), subs(_C1 = -1, exp1[1]), subs(_C1 = -3.5, exp1[1]), subs(_C1 = -.75, exp1[1]), subs(_C1 = -.25, exp1[1]), subs(_C1 = -.1, exp1[1])}, x = 0 .. 10...](/view.aspx?SI=6665/Streamlines in 2-D Vector Fields_14.gif)
Alternatively samples of the vector field can be plotted directly:
Comparing these two plots, the solutions of the original differential equation indicate the direction of the vector field at any point but to see the magnitude and direction of the field, the fieldplot procedure must be used.
Example 2
Repeat the above analysis for the vector field:
. The differential equation defining the streamlines is:
 |
(3.1) |
whose general solution is:
 |
(3.2) |
 |
(3.3) |
The expression may be written as below without consequence:
 |
(3.4) |
Plotting the family of curves for values of _C1 gives:



Plotting the field components directly gives:
Legal Notice: The copyright for this application is owned by Maplesoft. The application is intended to demonstrate the use of Maple to solve a particular problem. It has been made available for product evaluation purposes only and may not be used in any other context without the express permission of Maplesoft.