Privacy note: We capture your IP address to provide customised and focused services. See our Privacy Policy.

AP Calculus AB: Deep Dive — Alpha School

Lesson 10: Slope Fields

Reading a Slope Field

A slope field is a picture of a differential equation. At each point in the plane, a short segment is drawn with the slope that the equation gives at that point. The field shows the direction a solution must go at every point, without solving anything. A solution curve is a curve that follows the segments, staying parallel to them as it goes. Different initial conditions give different curves through the same field, and all of them are solutions of the same equation.

To read a slope field, look for the patterns. Where the segments are flat, the slope is zero, and a solution there is momentarily horizontal. Where the segments are steep, the solution rises or falls fast. If the slope depends only on y, the segments in any horizontal line are all parallel, because the slope is the same for every x at that height. If the slope depends only on x, the segments in any vertical line are parallel. These patterns are the quickest way to match an equation to its field.

Worked example matching a field to an equation: a field shows segments that are flat along the line y equals 2, rising below it and falling above it. Which equation fits: dy/dx equals y minus 2, or dy/dx equals 2 minus y? At a point below the line, say y equals 0, the first gives minus 2, a falling slope, but the field shows rising slopes there, so the first is wrong. The second gives 2, a rising slope, which matches, and above the line it gives a negative slope, which also matches. The answer is dy/dx equals 2 minus y, and the equilibrium y equals 2 is stable, because solutions move towards it from both sides. Two test points, one on each side of the equilibrium, are enough to decide between two candidates, and that is the fastest matching method.

A slope field for dy/dx = x - y

Each short segment has slope dy/dx at that point The dashed curve is one solution, following the segments

The field shows the slope at every point without solving anything. A solution curve follows the segments, staying parallel to them as it goes.

Building a Slope Field by Hand

To draw a slope field for dy/dx equals x minus y, pick a grid of points and compute the slope at each. At the point (2, 2), the slope is 0, so the segment is horizontal. At (4, 2), the slope is 2, so the segment is steep and rising. At (2, 4), the slope is minus 2, so the segment is steep and falling. A handful of points is enough to see the pattern: the slope is zero along the line y equals x, positive below it and negative above it. Solutions approach the line y equals x from above and below, because the slope pushes them towards it.

On an exam you will usually be given a field and asked to match it to an equation, or to sketch a solution through a given point. For matching, test two or three points: compute the slope from each candidate equation at a point where the field is clearly flat or clearly steep, and eliminate the candidates that disagree. For sketching, start at the given point and follow the segments, changing direction as the field changes, and never crossing another solution curve.

Equilibrium Solutions

An equilibrium solution is a constant solution: a horizontal line that satisfies the equation because its derivative is zero. For dy/dx equals y over 6 times 4 minus y, the derivative is zero when y is 0 or y is 4, so y equals 0 and y equals 4 are equilibrium solutions. Solutions starting just above 4 fall back towards it, and solutions starting between 0 and 4 rise towards it, so y equals 4 is stable. Solutions starting just above 0 move away from it, so y equals 0 is unstable. The slope field shows this directly: segments point towards a stable equilibrium and away from an unstable one.

Worked example: for dy/dx equals y times 1 minus y, the equilibria are y equals 0 and y equals 1. Between them the slope is positive, so solutions rise towards 1; above 1 the slope is negative, so solutions fall towards 1. The value 1 is stable and 0 is unstable. This is the logistic shape, and it appears in population models where growth slows as a limit is approached. You do not need to solve the equation to describe this behaviour: the field and the sign of the slope give it all.

Watch & Learn

One video to watch for this lesson, from a trusted educator.

Key Terms

Slope field
A grid of short segments showing the slope given by a differential equation at each point.
Solution curve
A curve through a slope field that follows the segments; one solution of the equation.
Equilibrium solution
A constant solution, where the derivative is zero.
Stable equilibrium
An equilibrium that nearby solutions move towards.
Unstable equilibrium
An equilibrium that nearby solutions move away from.
Isocline
A curve along which the slope is constant, such as the line y equals x for dy/dx equals x minus y.

Discussion Questions

  1. Why does a slope field show every solution at once, without solving the equation?
  2. How can you tell from a field whether an equilibrium is stable or unstable?
  3. Why do two solution curves in the same field never cross?

Practice Questions

  1. For dy/dx equals x minus y, what is the slope at the point (2, 2)?
  2. What is the slope at (4, 2) for the same equation?
  3. For dy/dx equals y over 6 times 4 minus y, what are the equilibrium solutions?
  4. Which of those equilibria is stable?
  5. If the slope depends only on y, what pattern appears in the field?
Show answers
  1. 0, because 2 minus 2 is 0.
  2. 2, because 4 minus 2 is 2.
  3. y equals 0 and y equals 4.
  4. y equals 4, because nearby solutions move towards it.
  5. Segments in any horizontal line are all parallel.
Keep reading to complete this lesson