01 / 21

Sketching
Slope Fields

Learn to visualize differential equations by drawing tiny line segments whose slopes are given by \(\frac{dy}{dx}\) at every point in the plane.

AP Calculus

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)\), you draw a short line segment whose slope equals \(f(x,y)\).

Visualizing \(\frac{dy}{dx} = x\)

x y 2 -2 2 -2 \(m = 0\) \(m < 0\) \(m > 0\) (steep)

Why Slope Fields Matter

Visualize Solutions
Many differential equations have no closed-form solution. Slope fields let you see the family of solution curves without solving.
Predict Behavior
Identify equilibria, growth/decay, and long-term behavior by reading the direction of segments.
Connect to IVPs
Given an initial value \(y(x_0)=y_0\), you can trace a unique solution curve through the slope field.

The Core Idea

Given a differential equation \(\frac{dy}{dx} = f(x,y)\), for each grid point \((x_i, y_j)\):

1
Compute the slope \(m = f(x_i, y_j)\).
2
Draw a short segment centered at \((x_i, y_j)\) with that slope.
3
Repeat for every point on your grid to reveal the overall pattern.

Key Tool: Isoclines

An isocline is a curve along which all slope segments have the same slope. Setting \(f(x,y) = c\) for a constant \(c\) gives you the isocline for slope \(c\).

Nullcline (\(c = 0\))
The set where \(f(x,y) = 0\). All segments are horizontal along this curve.
General Isocline
For \(c \neq 0\), solving \(f(x,y) = c\) gives a curve of identical tilts: a powerful sketching shortcut.

Three Types of Dependence

Type \(f(x,y) = g(x)\) \(f(x,y) = h(y)\) \(f(x,y) = g(x,y)\)
Depends on \(x\) only \(y\) only Both
Identical slopes along Vertical lines Horizontal lines Curves (isoclines)
Example \(\frac{dy}{dx} = x\) \(\frac{dy}{dx} = y\) \(\frac{dy}{dx} = x + y\)
Quick check Scan columns Scan rows Trace isoclines

How to Sketch Step by Step

1
Set up a grid. Choose a window (e.g., \([-3,3] \times [-3,3]\)) and mark evenly spaced sample points.
2
Find the nullcline. Solve \(f(x,y)=0\) and draw horizontal segments along that curve first.
3
Identify key isoclines. Try \(c = \pm 1, \pm 2\) to see how slopes tilt away from the nullcline.
4
Compute slopes at remaining grid points by plugging into \(f(x,y)\).
5
Draw short, centered segments of consistent length. Steeper slopes tilt more, not lengthen.
6
Trace solution curves by following the flow of segments from any initial point.

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

x y \(y=0\) \(y = e^x\)

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

x y \(y=-x\)

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

x y \(x^2 + y^2 = 4\)

Tracing Solution Curves

To sketch a particular solution through the slope field:

1
Place your pencil at the initial condition \((x_0, y_0)\).
2
Follow the segments. Move in the direction they point, keeping your curve tangent to nearby segments at every point.
3
Extend both directions from \((x_0,y_0)\) unless the domain is restricted.
4
Never cross another solution curve: by the Existence and Uniqueness Theorem, solution curves for well-behaved \(f(x,y)\) do not intersect.

Equilibrium Solutions

An equilibrium solution (or constant solution) occurs where \(\frac{dy}{dx} = 0\) for all \(x\). If \(f(x,y)=0\) along a horizontal line \(y=c\), then \(y=c\) is an equilibrium.

Stable
Nearby solutions are attracted toward the equilibrium. Segments above point down; segments below point up.
Unstable
Nearby solutions are repelled away. Segments above point up; segments below point down.
Semi-stable
Attracted from one side, repelled from the other. Segments all point in one direction on both sides.

Autonomous vs Non-Autonomous

Autonomous
\(\frac{dy}{dx} = f(y)\) only. The slope field is horizontally translation-invariant: every row has identical segments. Solution curves are horizontal translates of each other.
Non-Autonomous
\(\frac{dy}{dx} = f(x,y)\) with explicit \(x\) dependence. The slope field varies column to column. Solutions are not mere translates.

Common Mistakes

✕ Varying Segment Length
Making steeper segments longer. All segments should be the same length: only the angle changes.
✕ Forgetting the Nullcline
Jumping straight to random points. Always find where \(f(x,y) = 0\) first: it anchors the entire field.
✕ Crossing Solution Curves
Drawing two solution curves that intersect. Under standard conditions, the Uniqueness Theorem forbids this.

Summary Cheat Sheet

Concept Key Point Visual Cue
Slope field Grid of tangent segments Short dashes at grid points
Isocline \(f(x,y) = c\) Curve of parallel segments
Nullcline \(f(x,y) = 0\) Horizontal segments
Autonomous Depends on \(y\) only Rows repeat identically
Equilibrium \(y = c\) where \(f = 0\) for all \(x\) Entire row is horizontal
Solution curve Tangent to every segment it crosses Smooth curve following flow

Question 1 of 5

For the differential equation \(\frac{dy}{dx} = x - 1\), what is true about the slope field along the vertical line \(x = 1\)?

Question 2 of 5

The slope field for \(\frac{dy}{dx} = y^2 - 4\) has horizontal segments along which curves?

Question 3 of 5

A slope field has identical segments in every row (horizontal lines of constant \(y\) have the same slope). Which type of equation is this?

Question 4 of 5

At the point \((2, 3)\) in the slope field for \(\frac{dy}{dx} = 2x - y\), what is the slope of the segment?

Question 5 of 5

Two solution curves of a first-order ODE \(\frac{dy}{dx} = f(x,y)\) (where \(f\) is continuous and \(\frac{\partial f}{\partial y}\) is continuous) are drawn on a slope field. Can they intersect?