Mathwords logoMathwords

Slope Field — Definition, Formula & Examples

A slope field (also called a direction field) is a graph filled with short line segments, where each segment's slope equals the value of dy/dx at that point. It gives you a visual picture of all possible solution curves to a differential equation without solving it algebraically.

Given a first-order differential equation dydx=f(x,y)\frac{dy}{dx} = f(x, y), a slope field is a collection of line segments drawn at sample points (x,y)(x, y) in the plane, each having slope f(x,y)f(x, y). The integral curves of the differential equation are tangent to these segments at every point.

How It Works

To sketch a slope field, choose a grid of points in the xyxy-plane. At each point (x,y)(x, y), compute f(x,y)f(x, y) to get the slope, then draw a small line segment with that slope. Steep positive values produce nearly vertical segments tilting upward; values near zero produce nearly horizontal segments. Once the field is drawn, you can trace solution curves by following the segments like a current — any curve that stays tangent to every segment it passes through is an approximate solution. If you are given an initial condition, start at that point and follow the flow to sketch the particular solution.

Worked Example

Problem: Sketch the slope field for dy/dx = x + y and determine the slope at the points (0, 0), (1, -1), and (1, 1).
Step 1: Evaluate f(x, y) = x + y at the point (0, 0).
f(0,0)=0+0=0f(0,0) = 0 + 0 = 0
Step 2: Evaluate at the point (1, -1).
f(1,1)=1+(1)=0f(1,-1) = 1 + (-1) = 0
Step 3: Evaluate at the point (1, 1).
f(1,1)=1+1=2f(1,1) = 1 + 1 = 2
Answer: At (0, 0) and (1, -1), you draw horizontal segments (slope 0). At (1, 1), you draw a segment with slope 2, steeply rising to the right. Repeating this across a grid reveals the overall flow of solutions.

Why It Matters

Slope fields appear on every AP Calculus BC exam and are foundational in differential equations courses. They let you analyze the qualitative behavior of solutions — such as whether curves converge, diverge, or level off — even when no closed-form solution exists.

Common Mistakes

Mistake: Drawing segments using only x or only y when the equation depends on both variables.
Correction: Always substitute both the x-coordinate and the y-coordinate of each grid point into f(x, y). A slope field for dy/dx = x + y is different from one for dy/dx = x.