If you haven't already, visit Introduction to Differential Equations. Slope fields provide a way to visualize first-order 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 click-drag 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 y-axis, 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 right-hand 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 drop-down menu, showing the differential equation dy/dx = y. The initial solution is the x-axis, 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 right-hand 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.
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).
Other 'Differential Equations' topics
Derived from the work of Thomas S. Downey under a Creative Commons Attribution 3.0 License.