Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
3. Advanced differentiation
4. Contextual uses
5. Analytical uses
6. Integration
7. Differential equations
7.1 Modeling & verifying solutions
7.2 Slope fields
7.3 Separation of variables
7.4 Exponential models
8. Applications of integrals
9. Testing details tag
10. test
Wrapping up
Achievable logoAchievable logo
7.2 Slope fields
Achievable AP Calculus AB
7. Differential equations
Our AP Calculus AB course is currently in development and is a work-in-progress.

Slope fields

7 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • What slope fields represent
  • How to sketch a slope field from a differential equation
  • How to interpret and match slope fields to differential equations and solutions

A slope field shows how solution curves behave without having to solve the differential equation. Essentially, these look like the family of antiderivatives for a given derivative.

Sketching slope fields

A slope field is a diagram that shows many short line segments, each representing the slope of a solution curve at a grid of points.

Suppose we have a differential equation

dxdy​=x+y

This tells us that the slope of the solution curve at any point (x,y) is equal to x+y.

To construct the slope field:

  1. Pick a set of points (x,y) (the graph provided will usually be small, roughly 5 units or fewer in every direction from the origin).

  2. At each point, calculate the slope using the given dxdy​=f(x,y).

  3. Draw a small line segment at that point with the calculated slope.

For example, at point (0,0), the slope dxdy​=0. So at that point on the grid, you would draw a horizontal line segment (with a slope of 0).

Picking another point such as (0,1), the slope dxdy​=1. So at that point, you’d draw a slanted line segment with a slope of 1.

Here’s the slope field for the given differential equation - notice the horizontal line segment at (0,0) and the slanted one at (0,1):

Slope field
Slope field

Particular solutions and initial conditions

Once a slope field is drawn, you can sketch a particular solution that satisfies a specific initial condition, such as y(0)=1. To do this:

  1. Locate the point that corresponds to the initial condition e.g. y(0)=1 means the point (0,1).

  2. Sketch a curve that is tangent to the slope segments as you move through the slope field. It should “flow” with the direction of the field.

  3. This curve represents the unique solution to the differential equation that passes through the given point and helps you visualize how the solution behaves.

Using the slope field for dxdy​=x+y, shown below is the solution curve that passes through (0,1):

Particular solution through (0,1)
Particular solution through (0,1)

Practice sketching the slope fields for the following differential equations and check it on this slope field plotter in Desmos by changing the differential equation F(x,y).

  1. dy/dx=2x
  2. dy/dx=1
  3. dy/dx=1−y
  4. dy/dx=x/y
  5. dy/dx=y/x

You may notice that for y′=2x, the slope field resembles the family of parabolas y=x2+C, and for the 2nd problem y′=1, the solution curves appear as straight lines of the form y=x+C.

This illustrates the purpose of slope fields - they visually represent the family of antiderivatives and show how solution curves behave, even for functions that cannot be written explicitly.

Reasoning with slope fields

You may be shown a slope field and asked to identify the matching equation. The choices could be differential equations or specific solutions.

If the choices are differential equations, select 2-3 points (especially where the line segments are horizontal or vertical line segments) and plug the coordinates into the choices to see which one gives the correct slope.

If the answer choices are specific solutions of the form y=f(x), the slope field will resemble the family of curves f(x)+C. But if it’s not immediately obvious which is the correct solution curve, differentiating each function can help you match the slopes to the slope field.

Match the differential equation to the slope field shown.

Matching a differential equation to a slope field
Matching a differential equation to a slope field

a)dy/dx=−y/x
b)dy/dx=(x−2)3
c)dy/dx=y2−2y
d)dy/dx=y+2

Solution

(spoiler)

The key features of this slope field are the horizontal line segments along the lines y=0 and y=2, indicating that dxdy​=0 as long as y=0 or y=2 for any value of x.

Additionally, the slopes don’t change moving horizontally (as x changes), which suggests that the differential equation does not depend on x. This rules out choices a)dy/dx=−y/x and b) dy/dx=(x−2)3, both of which have x.

Between the remaining answer choices, only choice c) gives slope 0 for both y=0 or y=2 (factor into dy/dx=y(y−2)). Choice d) gives slope 0 only when y=−2 instead.

The slope field from a certain differential equation is shown. Which of the following could be a specific solution to the differential equation?

Reasoning with slope fields
Reasoning with slope fields

a)y=(x−1)21​
b)y=−x−11​
c)y=ln∣x−1∣
d)y=(x−1)2

Solution

(spoiler)

The key feature of this slope field is the empty region along x=1, suggesting the slope is undefined there, possibly due to an asymptote. On the AP exam, this area would generally be depicted with vertical line segments.

As such, choice d)y=(x−1)2 can be eliminated because this solution curve is a smooth and continuous polynomial and cannot explain the undefined slope behavior at x=1.

Since the remaining answer choices all have the vertical asymptote x=1, we can differentiate each to see if the corresponding dxdy​ matches the slope field pattern.

The corresponding differential equations are:

a)dxdy​=−(x−1)32​

b)dxdy​=(x−1)21​

c)dxdy​=x−11​

Now pick any point on the slope field to check. For example, the line segments along the line x=0 have positive slope. This means choice c)dxdy​=x−11​ can be eliminated because when x=0, dy/dx=−1.

Next, the line segments along the line x=2 also have positive slope. However, plugging x=2 into choice a)dxdy​=−(x−1)32​ gives a slope of −2.

This leaves choice b)y=−x−11​ as the solution curve that matches the given slope field.

Key points
  • Slope fields show solution behavior for differential equations
  • To draw a slope field from a differential equation, calculate the slope at each point (x,y) and draw a line segment at that point with the specified slope.
  • Use patterns (horizontal or vertical lines) to recognize equation types.

Sign up for free to take 5 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.