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
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

10 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 is a diagram of short line segments. Each segment shows the slope of a solution curve at a particular point on the coordinate plane. By looking at all the segments together, you can see the general shape of the curves that satisfy the differential equation.

Sketching slope fields

On the AP exam, you may be given a small grid (typically extending about 2 units in each direction from the origin) and asked to sketch a basic slope field. To do this:

  1. At each point (x,y), calculate the slope by plugging the values into the given dxdy​=f(x,y).

  2. Draw a short line segment at that point with the corresponding slope.

Examples

  1. Sketch a slope field of the differential equation:

dxdy​=x+y

This equation tells you that at any point (x,y) on the solution curve, the slope of the tangent line is the value of x+y. Calculating the slopes at a few points:

  • At (0,0), the slope is

dxdy​=0+0 =0

So we draw a short horizontal segment at the point (0,0).

  • At (0,1), the slope is

dxdy​=0+1=1

Draw a short segment with slope 1 at (0,1).

It may help to construct a table with a few points and their corresponding slopes:

(x,y) dxdy​=x+y
(0,−1) −1
(1,0) 1
(−1,0) −1
(1,1) 2

Here’s the slope field. The segment at each point has the slope calculated from the differential equation.

Slope field
Slope field
  1. Sketch a slope field of the differential equation:

dxdy​=2x

Solution

(spoiler)

Since the differential equation depends only on x, every point with the same x-coordinate has the same slope.

  • At x=−1, the slopes are

dxdy​=2(−1)=−2

Draw line segments with slope −2 at each point on the vertical line x=−1.

Let’s construct a table to organize a few of the values:

x-value dxdy​=2x
−2 −4
−1 −2
0 0
1 2
2 4

Below is the slope field for the differential equation:

Slope field for dy/dx = 2x
Slope field for dy/dx = 2x

Notice that the solution curves in the slope field follow a shape similar to a parabola. For differential equations that depend only on x, the solution curves are essentially the family of antiderivatives. In this example, the solutions to dxdy​=2x form the family of antiderivatives

y=x2+C

with different values of C corresponding to vertically shifted curves. This illustrates the purpose of slope fields: they let you visualize all possible solutions at once, even for equations that cannot be solved explicitly.

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

  1. dxdy​=1
  1. dxdy​=2−y
  1. dxdy​=yx​
  1. dxdy​=xy​
  1. dxdy​=x1​

Particular solutions and initial conditions

A slope field shows all possible solution curves for a differential equation. Given an initial condition, one specific curve is selected - the particular solution.

For example, the initial condition y(0)=1 means the solution curve must pass through the point (0,1).

To sketch the particular solution:

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

  2. Sketch a curve that is tangent to the slope segments as you move through the slope field. The curve should follow the “tilt” of the segments.

  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)

Reasoning with slope fields

Sometimes you’ll be given a slope field and asked to identify the matching equation. The answer choices could be either differential equations or specific solutions.

If the choices are differential equations, look for the following patterns on the slope field and confirm with test points:

1. Flat slopes (slope =0)

  • Horizontal lines occur where dxdy​=0.
  • Test points with any flat segments by plugging them into the differential equation to confirm the slope is 0.

2. Check slope signs

  • Pick test points in different quadrants that show positive or negative slopes.

  • Plug each point into the differential equations to confirm the signs. Use this to eliminate any slope-field options that don’t match.

  • Example: Given dxdy​=xy

    • Quadrant I (+x,+y)→ slopes are positive
    • Quadrant II (−x,+y)→ slopes are negative
    • Quadrant III (−x,−y)→ slopes are positive
    • Quadrant IV (+x,−y)→ slopes are negative

3. Vertical slopes or empty regions

  • If there are vertical line segments or certain regions in the field are empty, the derivative may be undefined at those points. Check the DE for division by zero or other restrictions.

4, Horizontal patterns

  • If slopes remain the same when moving left to right across the graph, it means the x-value does not affect the slope, so dxdy​ depends only on y.

5. Vertical patterns

  • Similarly, if slopes remain the same when moving up and down along vertical columns, then dxdy​ depends only on x.

Examples

Shown below is the slope field for which of the following differential equations?

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

(A) dxdy​=−x−2y​

(B) dxdy​=(x−2)3

(C) dxdy​=y2−2y

(D) dxdy​=xy(2−y)​

Solution

(spoiler)

Let’s check the patterns:

1. Flat slopes

Horizontal line segments appear along the lines y=0 and y=2, indicating that dxdy​=0 whenever y=0 or y=2.

Therefore, these choices can be eliminated:

(A) dxdy​=−x−2y​

  • It equals 0 only when y=0 and cannot produce horizontal segments at y=2.
  • Additionally, the slope field for this choice would show vertical line segments at x=2.

(B) dxdy​=(x−2)3

  • It equals 0 only when x=2.

2. Check slope signs

Observing the slope field:

  • All points below y=0 and above y=2 have positive slopes

  • All points along the line y=1 have negative slopes

  • To confirm, we can test specific points in the remaining answer choices:

(C) dxdy​=y2−2y

  • At (2,1), the slope is dxdy​=(1)2−2(1)=−1, which is indeed negative.

  • At (1,3), the slope is dxdy​=(3)2−2(3)=3, which is indeed positive.

(D) dxdy​=xy(2−y)​

  • At (2,1) results in dxdy​=21(2−1)​=21​, which does not match the negative slope shown on the graph.

Therefore, the differential equation that matches the slope field is answer choice

(C) dxdy​=y2−2y

Additional confirmation: the differential equation depends only on y, and all slopes when moving left to right across the graph remain the same.

MCQs may also give answer choices that are specific solutions of the form y=f(x). The slope field should resemble the family of curves f(x)+C. If it’s not clear which curve fits, differentiate each candidate y=f(x) to get dxdy​, then compare those slopes to the slope field.

Which of the following could be a specific solution to the differential equation whose slope field is shown below?

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 at x=1.

All of the answer choices are undefined at x=1 except for

(D) y=(x−1)2

which is a polynomial. So we can rule out this answer choice.

Differentiate each remaining answer choice to compare slopes:

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

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

(C) dxdy​=x−11​

We can check the signs of the slopes in a few regions.

  • Along x=0, the slopes shown are positive. Then we can eliminate choice (C), which gives a negative slope when x=0.

  • Along x=2, the slopes shown are also positive. Then we can eliminate choice (A) because plugging in x=2 results in a negative value.

Therefore the solution curve that matches the given slope field is the remaining answer choice

(B) y=−x−11​

  • 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 6 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.

Slope fields

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 is a diagram of short line segments. Each segment shows the slope of a solution curve at a particular point on the coordinate plane. By looking at all the segments together, you can see the general shape of the curves that satisfy the differential equation.

Sketching slope fields

On the AP exam, you may be given a small grid (typically extending about 2 units in each direction from the origin) and asked to sketch a basic slope field. To do this:

  1. At each point (x,y), calculate the slope by plugging the values into the given dxdy​=f(x,y).

  2. Draw a short line segment at that point with the corresponding slope.

Examples

  1. Sketch a slope field of the differential equation:

dxdy​=x+y

This equation tells you that at any point (x,y) on the solution curve, the slope of the tangent line is the value of x+y. Calculating the slopes at a few points:

  • At (0,0), the slope is

dxdy​=0+0 =0

So we draw a short horizontal segment at the point (0,0).

  • At (0,1), the slope is

dxdy​=0+1=1

Draw a short segment with slope 1 at (0,1).

It may help to construct a table with a few points and their corresponding slopes:

(x,y) dxdy​=x+y
(0,−1) −1
(1,0) 1
(−1,0) −1
(1,1) 2

Here’s the slope field. The segment at each point has the slope calculated from the differential equation.

  1. Sketch a slope field of the differential equation:

dxdy​=2x

Solution

(spoiler)

Since the differential equation depends only on x, every point with the same x-coordinate has the same slope.

  • At x=−1, the slopes are

dxdy​=2(−1)=−2

Draw line segments with slope −2 at each point on the vertical line x=−1.

Let’s construct a table to organize a few of the values:

x-value dxdy​=2x
−2 −4
−1 −2
0 0
1 2
2 4

Below is the slope field for the differential equation:

Notice that the solution curves in the slope field follow a shape similar to a parabola. For differential equations that depend only on x, the solution curves are essentially the family of antiderivatives. In this example, the solutions to dxdy​=2x form the family of antiderivatives

y=x2+C

with different values of C corresponding to vertically shifted curves. This illustrates the purpose of slope fields: they let you visualize all possible solutions at once, even for equations that cannot be solved explicitly.

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

  1. dxdy​=1
  1. dxdy​=2−y
  1. dxdy​=yx​
  1. dxdy​=xy​
  1. dxdy​=x1​

Particular solutions and initial conditions

A slope field shows all possible solution curves for a differential equation. Given an initial condition, one specific curve is selected - the particular solution.

For example, the initial condition y(0)=1 means the solution curve must pass through the point (0,1).

To sketch the particular solution:

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

  2. Sketch a curve that is tangent to the slope segments as you move through the slope field. The curve should follow the “tilt” of the segments.

  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):

Reasoning with slope fields

Sometimes you’ll be given a slope field and asked to identify the matching equation. The answer choices could be either differential equations or specific solutions.

If the choices are differential equations, look for the following patterns on the slope field and confirm with test points:

1. Flat slopes (slope =0)

  • Horizontal lines occur where dxdy​=0.
  • Test points with any flat segments by plugging them into the differential equation to confirm the slope is 0.

2. Check slope signs

  • Pick test points in different quadrants that show positive or negative slopes.

  • Plug each point into the differential equations to confirm the signs. Use this to eliminate any slope-field options that don’t match.

  • Example: Given dxdy​=xy

    • Quadrant I (+x,+y)→ slopes are positive
    • Quadrant II (−x,+y)→ slopes are negative
    • Quadrant III (−x,−y)→ slopes are positive
    • Quadrant IV (+x,−y)→ slopes are negative

3. Vertical slopes or empty regions

  • If there are vertical line segments or certain regions in the field are empty, the derivative may be undefined at those points. Check the DE for division by zero or other restrictions.

4, Horizontal patterns

  • If slopes remain the same when moving left to right across the graph, it means the x-value does not affect the slope, so dxdy​ depends only on y.

5. Vertical patterns

  • Similarly, if slopes remain the same when moving up and down along vertical columns, then dxdy​ depends only on x.

Examples

Shown below is the slope field for which of the following differential equations?

(A) dxdy​=−x−2y​

(B) dxdy​=(x−2)3

(C) dxdy​=y2−2y

(D) dxdy​=xy(2−y)​

Solution

(spoiler)

Let’s check the patterns:

1. Flat slopes

Horizontal line segments appear along the lines y=0 and y=2, indicating that dxdy​=0 whenever y=0 or y=2.

Therefore, these choices can be eliminated:

(A) dxdy​=−x−2y​

  • It equals 0 only when y=0 and cannot produce horizontal segments at y=2.
  • Additionally, the slope field for this choice would show vertical line segments at x=2.

(B) dxdy​=(x−2)3

  • It equals 0 only when x=2.

2. Check slope signs

Observing the slope field:

  • All points below y=0 and above y=2 have positive slopes

  • All points along the line y=1 have negative slopes

  • To confirm, we can test specific points in the remaining answer choices:

(C) dxdy​=y2−2y

  • At (2,1), the slope is dxdy​=(1)2−2(1)=−1, which is indeed negative.

  • At (1,3), the slope is dxdy​=(3)2−2(3)=3, which is indeed positive.

(D) dxdy​=xy(2−y)​

  • At (2,1) results in dxdy​=21(2−1)​=21​, which does not match the negative slope shown on the graph.

Therefore, the differential equation that matches the slope field is answer choice

(C) dxdy​=y2−2y

Additional confirmation: the differential equation depends only on y, and all slopes when moving left to right across the graph remain the same.

MCQs may also give answer choices that are specific solutions of the form y=f(x). The slope field should resemble the family of curves f(x)+C. If it’s not clear which curve fits, differentiate each candidate y=f(x) to get dxdy​, then compare those slopes to the slope field.

Which of the following could be a specific solution to the differential equation whose slope field is shown below?

(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 at x=1.

All of the answer choices are undefined at x=1 except for

(D) y=(x−1)2

which is a polynomial. So we can rule out this answer choice.

Differentiate each remaining answer choice to compare slopes:

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

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

(C) dxdy​=x−11​

We can check the signs of the slopes in a few regions.

  • Along x=0, the slopes shown are positive. Then we can eliminate choice (C), which gives a negative slope when x=0.

  • Along x=2, the slopes shown are also positive. Then we can eliminate choice (A) because plugging in x=2 results in a negative value.

Therefore the solution curve that matches the given slope field is the remaining answer choice

(B) y=−x−11​

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.