Watch on Instagram

Math Bytes · Calculus · Episode 22 · Differential equations (intro)

Slope fields

A slope field draws a tiny segment at many points, each with the slope a differential equation gives there. Follow the segments from a starting point and you sketch the solution: for dy/dx = y starting at (0, 1), the path is y = eˣ.

Posted · About a 1 minute watch, 3 minute read · Take the quiz

A slope at every point

A differential equation like dy/dx = y doesn't give a formula for y. It gives something else: the slope of the solution at every point. Plug in a point and you get the slope there.

For dy/dx = y, only the height matters:

| Where | Slope dy/dx = y | Segment | |---|---|---| | y = 2 | 2 | steep, going up | | y = 1 | 1 | up at 45° | | y = 0 (the x-axis) | 0 | flat | | y = −1 | −1 | going down |

Draw the field

Draw a short segment with that slope at lots of grid points and the picture fills in: flat along the x-axis, tilting up more and more above it, tilting down below it. That picture is the slope field. Slope fields are usually drawn as plain segments, without arrowheads.

A worked example: follow the flow from (0, 1)

Put a point at (0, 1). The slope there is 1, so step a little up and to the right. Now you're higher, so the slope is bigger, so the next step is steeper. The path curves up faster and faster to the right. Going left, the slope keeps shrinking, so the path flattens toward the x-axis without ever reaching it.

That curve is the solution through (0, 1): y = eˣ.

Check: the derivative of eˣ is eˣ, which is y, so dy/dx = y ✓. And e⁰ = 1, so it passes through (0, 1) ✓.

Following the field gives you a sketch of the solution. Getting the exact formula takes solving the equation, which is the next lesson.

Try it yourself

  1. For dy/dx = 2x, what slope does the field show at (3, 5)?
  2. For dy/dx = y, which way do the segments tilt at (4, −1): up, flat or down?

(Answers: 1. 2 × 3 = 6; for this equation only x matters. 2. Down: the slope is −1.)

Good to know

  • Slope fields are in AP Calculus AB and BC (Unit 7, Differential Equations): you may be asked to sketch one, match one to its equation, or sketch the solution through a given point.
  • If dy/dx depends only on y (like dy/dx = y), every row has the same slopes. If it depends only on x (like dy/dx = 2x), every column does.
  • Different starting points give different solution curves. For dy/dx = y, they are all y = C eˣ; starting at (0, 1) picks C = 1.
  • Solution curves follow the segments; they don't cross each other for nice equations like these.

Answer to the comment question

For dy/dx = x − y, what slope does the field show at (5, 2)? 3. Plug the point into the equation: x − y = 5 − 2 = 3. So the segment at (5, 2) goes up with slope 3.

Test your knowledge

Quick quiz: Slope fields

4 multiple-choice questions. Pick one answer for each, then check how you did.

1What does a slope field show?
2For dy/dx = y, what is the slope along the x-axis?
3For dy/dx = y, what is the slope at the point (3, 2)?
4Which curve follows the slope field of dy/dx = y through (0, 1)?

Sources

Video transcript

Can tiny arrows show you the answer before you solve anything?

Take d y d x equals y. It gives the slope at every point, with no formula for y.

At height one, the slope is one. At height two, it's two. On the x-axis, it's flat. Below, slopes point down.

Draw that tiny slope at lots of points, and you get a slope field.

Drop a point at zero, one, and follow the segments like a leaf on a stream. It curves up faster and faster.

That path is the solution, y equals e to the x, found just by following arrows.

Your turn. For d y d x equals x minus y, what slope does the field show at five, two? Comment your answer below!

That's your byte.

More from Calculus

All Calculus lessons