01 / 20

Slope Fields
Visualizing Differential Equations

Learn to sketch and interpret slope fields to understand solution curves of differential equations of the form \(\frac{dy}{dx} = f(x, y)\).

AP Calculus Differential Equations

What Is a Slope Field?

A slope field (also called a direction field) is a graphical representation of a first-order differential equation \(\frac{dy}{dx} = f(x, y)\). At each sample point \((x, y)\) in the plane, we draw a short line segment whose slope equals \(f(x, y)\).

Seeing the Pattern

Consider the simple equation \(\frac{dy}{dx} = x\). At every point, the slope depends only on \(x\). All segments in the same vertical column share the same slope.

\(x\)
\(y\)

Why Slope Fields Matter

Unsolvable Equations
Many differential equations have no closed-form solution. Slope fields let us visualize behavior without solving.
Qualitative Insight
Quickly see equilibrium solutions, growth vs. decay, and how initial conditions affect outcomes.
Foundation for Numerics
Euler's method and other numerical techniques are built on the same idea: follow the slope step by step.

The Core Rule

A solution curve (also called an integral curve) is any curve \(y(x)\) that is tangent to every segment it crosses. The slope field shows all possible solution curves simultaneously.

Solution Curves Follow the Flow

For \(\frac{dy}{dx} = x\), the general solution is \(y = \frac{x^2}{2} + C\). Each parabola threads through the slope field, always tangent to the segments.

\(x\)
\(y\)

What Determines the Slope?

Type Pattern in Slope Field Example
\(f(x)\) only Same slope in each vertical column \(\frac{dy}{dx} = x\)
\(f(y)\) only Same slope in each horizontal row \(\frac{dy}{dx} = y\)
\(f(x, y)\) Slope varies in both directions \(\frac{dy}{dx} = x + y\)

Understanding Isoclines

An isocline is a curve along which the slope is constant. For the equation \(\frac{dy}{dx} = f(x, y)\), the isocline for slope \(c\) is the set of all \((x, y)\) where \(f(x, y) = c\).

\(c = 0\) Isocline
Called the nullcline: all segments are horizontal. Solution curves have local max/min here.
\(c = 1\) Isocline
All segments have slope 1 (tilted at \(45^\circ\)). Sketch these to build the field efficiently.

Equilibrium Solutions

An equilibrium solution (or constant solution) occurs when \(\frac{dy}{dx} = 0\) for all \(x\) along a horizontal line \(y = k\). This means \(f(x, k) = 0\) for every \(x\).

1
Stable equilibrium: nearby solution curves approach \(y = k\) as \(x \to \infty\). Segments above point down, segments below point up.
2
Unstable equilibrium: nearby curves diverge away from \(y = k\). Segments above point up, segments below point down.
3
Semi-stable: curves approach from one side but diverge on the other.

How to Sketch a Slope Field

1
Set up a grid of sample points, typically integer coordinates like \((-2,-2)\) to \((2,2)\).
2
Evaluate \(f(x, y)\) at each grid point to find the slope.
3
Draw a short segment through each point with the computed slope. Keep all segments the same length.
4
Identify isoclines for special slopes: \(m = 0\) (horizontal), \(m = 1\) (diagonal), and undefined (vertical).
5
Sketch solution curves by starting at an initial condition and following the segments smoothly, never crossing them.

Example 1: \(\frac{dy}{dx} = y\)

\(x\)
\(y\)

Example 2: \(\frac{dy}{dx} = x + y\)

\(x\)
\(y\)

Example 3: \(\frac{dy}{dx} = x^2 - y\)

\(x\)
\(y\)

Common Mistakes

✕ Crossing Segments
Drawing a solution curve that crosses through a segment at a different angle. Solutions must be tangent to every segment they touch.
✕ Confusing \(x\) and \(y\)
When \(\frac{dy}{dx} = y\), segments in the same row match, not the same column. Mixing up the dependency direction leads to a wrong sketch.
✕ Varying Segment Lengths
Making steep segments longer than shallow ones. All segments should be the same length: only the angle changes, not the size.

Quick Reference Table

Concept Description Visual Cue
Slope field Grid of segments with slope \(f(x,y)\) Tiny segments everywhere
Isocline Curve where \(f(x,y) = c\) Parallel segments along a curve
Nullcline Isocline for \(c = 0\) All horizontal segments
Solution curve Curve tangent to every segment Smooth curve threading the field
Equilibrium \(f(x, k) = 0\) for all \(x\) Horizontal line of flat segments

Question 1 of 5

If \(\frac{dy}{dx} = y\), what do all the segments along the line \(y = 0\) look like?

Question 2 of 5

In the slope field for \(\frac{dy}{dx} = x\), which statement is true?

Question 3 of 5

For \(\frac{dy}{dx} = x + y\), what is the nullcline (the curve where slope equals 0)?

Question 4 of 5

A slope field shows all segments in the same horizontal row as parallel. Which form must the differential equation have?

Question 5 of 5

When sketching a solution curve on a slope field, the curve must: