AP Calculus AB · Study guide

Sketching Slope Fields

AP® Calculus AB · Unit 7 · Differential Equations

Sketching Slope Fields

A slope field draws a differential equation: at each point it shows the slope a solution curve would have there. This guide shows how to draw one by hand and how to match a field to its equation.

The idea in one paragraph

For \(\frac{dy}{dx} = F(x, y)\), the value \(F(x, y)\) is the slope of the solution curve passing through \((x, y)\). A slope field draws a short segment with that slope at many grid points. Solution curves follow the segments like a stream follows the current. Patterns help: if the slope depends only on \(y\), rows match; only on \(x\), columns match; where \(F = 0\), segments are flat.

1What a slope field shows

Figure 1. Each segment is a tiny piece of tangent line: its slope is dy/dx evaluated at that point. Along the line y = x every slope is 0, so those segments are flat.

2Drawing one

Worked Example 1 Compute the slopes

\(\dfrac{dy}{dx} = x - y\) at nine points

  1. 1
    At each point, substitute: at \((1, -1)\), \(1 - (-1) = 2\); at \((-1, 1)\), \(-1 - 1 = -2\); at \((1, 1)\), \(0\).
  2. 2
    Draw a short segment with that slope centered at the point: steep upward for 2, steep downward for −2, flat for 0.
  3. 3
    Look for patterns to save work: here every point on the line y = x has slope 0.
Answer: Figure 1 shows all nine segments.
Write it like this

“At \((1, -1)\), \(\frac{dy}{dx} = 1 - (-1) = 2\), so the segment there rises 2 units for each unit to the right.”

Common Mistake 1 · Swapping x and y

At the point \((1, -1)\), \(x = 1\) and \(y = -1\). Plugging them in the wrong order gives \(-1 - 1 = -2\), the opposite slope.

Common Mistake 2 · Drawing segment lengths to show size

Segments in a slope field are all the same length. Steepness, not length, shows the size of the slope.

3Patterns that save time

Figure 2. If dy/dx depends only on y, segments in the same row are parallel. If it depends only on x, segments in the same column are parallel. This is the fastest way to match a slope field to its equation.
Worked Example 2 Match a field to an equation

Use the row and column test

A slope field has every segment in the row \(y = 1\) pointing the same way, and every segment along the x-axis flat. Which equation fits: \(\frac{dy}{dx} = x\), \(\frac{dy}{dx} = y\), or \(\frac{dy}{dx} = x + y\)?

  1. 1
    Same slopes along each row means the slope depends only on \(y\). That rules out \(x\) and \(x + y\).
  2. 2
    Flat on the x-axis means slope 0 when \(y = 0\). \(\frac{dy}{dx} = y\) gives 0 there. ✓
Answer: \(\dfrac{dy}{dx} = y\)
Worked Example 3 Where are the segments flat?

\(\dfrac{dy}{dx} = x^2 - y\)

  1. 1
    Flat means slope 0: \(x^2 - y = 0\), so along the parabola \(y = x^2\).
  2. 2
    Above the parabola, \(y \gt x^2\), the slopes are negative; below it, positive.
Answer: Flat along \(y = x^2\); negative slopes above it, positive below.
Worked Example 4 When the slope is undefined

\(\dfrac{dy}{dx} = -\dfrac{x}{y}\)

  1. 1
    At \((1, 0)\): \(-\frac{1}{0}\) is undefined. The tangent there is vertical, so draw a vertical segment.
  2. 2
    At \((0, 1)\): \(-\frac{0}{1} = 0\), a flat segment. At \((1, 1)\): \(-1\).
  3. 3
    At the origin, \(\frac{0}{0}\) gives no direction at all, so no segment is drawn there.
Answer: Vertical segments along the x-axis, flat ones along the y-axis; together the segments trace circles around the origin.
Common Mistake 3 · Leaving a gap where the slope is undefined

When only the denominator is 0, the slope is vertical: draw a vertical segment, not an empty spot. Only a point where the formula gives \(\frac{0}{0}\) has no direction.

Common Mistake 4 · Assuming flat means zero everywhere in that row

For \(\frac{dy}{dx} = x - y\), the segment at the origin is flat, but the rest of the row \(y = 0\) is not: at \((1, 0)\) the slope is 1. Only a slope that depends on \(y\) alone keeps a whole row the same.

Quick reference

Equation depends onPattern in the field
y onlyEach row has parallel segments
x onlyEach column has parallel segments
F(x, y) = 0 along a curveFlat segments along that curve
F > 0Segments rise left to right
F < 0Segments fall left to right
Denominator 0, numerator not 0Vertical segment