If you haven't already, visit Introduction to Differential Equations. Slope fields provide a way to visualize firstorder differential equations and get a feel for the family of solutions.
1. dy/dx = x
The applet shows the slope field for dy/dx = x. We know that the general solution to this differential equation is y = ½x² + C and one of this family is shown in magenta. You can clickdrag the magenta point to move the solution to other members of the family. The gray line segments in the background of the graph represent the slope field. The differential equation tells us the slope of a solution for any given point (x,y) on the plane, so one way to help visualize this is to draw small line segments at regular grid points, each segment having the appropriate slope at that point.
In this example, the slope is the same as x, so the farther we get from the yaxis, the steeper the slope becomes and the line segments of the slope field are drawn with steeper slopes. Notice that the segment slopes are positive for x>0 and are negative for x<0, as you would expect. Also notice that, since the righthand side of our example differential equation only has x in it and no y's, the slopes shown in the slope field do not depend on y. This shows up as having vertical columns of slope segments all with the same slope, as seen in this example. Also notice that the slope field's general shape gives you some idea of the shape of the solution.
2. dy/dx = y
Select the second example from the dropdown menu, showing the differential equation dy/dx = y. The initial solution is the xaxis, but you can click/drag the magenta point to see other members of the solution family. What type of function do the solution curves look like? We will see on a later page how to find the solution and what its form looks like. Also notice that the righthand side of this differential equation depends on only y, so that the slope field shows horizontal rows of identical slope segments.
3. dy/dx = x+y
Select the third example, showing dy/dx = x + y. Drag the magenta point around to see various members of the solution family. In this example the slope depends on both x and y, so the slope field is more complicated than the previous examples.
Explore
You can select the other examples from the drop down menu and explore their solution families. Note that for the fifth example, dy/dx = x/ y, some solutions look nice and smooth while other solutions look all jagged. The jagged solutions are not being graphed correctly, because of limitations in the graphing algorithm when the solution curve is not a function or when the slope field becomes nearly vertical (we will explore this issue more when we discuss Euler's method).
While you are here..
... I have a small favor to ask. Over the years we have used advertising to support the site so it can remain free for everyone.
However, advertising revenue is falling and I have always hated the ads. So, would you go to Patreon and become a patron of the site?
When we reach the goal I will remove all advertising from the site.
It only takes a minute and any amount would be greatly appreciated.
Thank you for considering it! – John Page
Become a patron of the site at patreon.com/mathopenref
Other 'Differential Equations' topics
Acknowledgements
Derived from the work of Thomas S. Downey under a Creative Commons Attribution 3.0 License.
