Unit 7 · Topic 7.3 Beta

Sketching Slope Fields

4 min read · freeNot practiced

A differential equation such as dydx=x+y\frac{dy}{dx} = x + y does something remarkable: it tells you the slope of a solution curve at every point of the plane, before you know a single solution. Pick the point (1,2)(1, 2) and the equation says any solution passing there has slope 1+2=31 + 2 = 3. A slope field turns that information into a picture.

What a slope field is

At each point of a grid, draw a short segment centered on the point, tilted to the slope the differential equation gives there. That is all. The collection of segments is the slope field (also called a direction field). It is a map of directions: a solution curve passing through a point must run along the little segment there.

Short segments at the 25 integer points with x and y from −2 to 2. Each segment has slope x + y: slope 0 along the line y = −x, steep positive slopes up to 4 at (2, 2), and steep negative slopes down to −4 at (−2, −2). The nine points with x and y from −1 to 1 are labeled with their slopes.
Figure 1. The slope field of dydx=x+y\frac{dy}{dx} = x + y at the 25 integer points from −2-2 to 2. The crimson numbers are the slopes at the nine boxed points. LevlPrep original diagram.

How to sketch one

  1. List the points you are asked about. A point is (x,y)(x, y): the first number is xx.
  2. Substitute each point into the right side to get a number, the slope there.
  3. Draw a short segment through the point with that slope. Positive slopes rise to the right, negative slopes fall, slope 0 is horizontal. If the slope is undefined (a division by 0), draw a vertical segment.
  4. Make the size of the slope visible: a slope of 3 looks steeper than a slope of 1, and a slope of 12\frac{1}{2} looks gentle. Exact angles are not needed; the sign and the rough steepness are.

Worked example. Sketch the slope field of dydx=x+y\frac{dy}{dx} = x + y at the nine points with xx and yy in {−1,0,1}\{-1, 0, 1\}.

Compute x+yx + y at each point and organize the results in a grid, with yy going up the page:

x=−1x = -1x=0x = 0x=1x = 1
y=1y = 1012
y=0y = 0−1-101
y=−1y = -1−2-2−1-10

Now draw: flat segments on the diagonal from (−1,1)(-1, 1) to (1,−1)(1, -1), gentle rises of slope 1 at (0,1)(0, 1) and (1,0)(1, 0), a steeper rise of slope 2 at (1,1)(1, 1), and the mirror-image falls below the diagonal. The figure above shows the result.

Shortcuts that save time

Before computing 9 or 25 slopes, look at the equation's form. Three patterns cover most exam questions.

If dydx\frac{dy}{dx} depends onthenExample
xx alonesegments in each vertical column are paralleldydx=cos⁡x\frac{dy}{dx} = \cos x
yy alonesegments in each horizontal row are paralleldydx=y2−1\frac{dy}{dx} = y^2 - 1
bothlook for lines where the slope is 0 or constantdydx=2x−y\frac{dy}{dx} = 2x - y

Find where the slope is 0 first. For dydx=y2−1\frac{dy}{dx} = y^2 - 1 that is the rows y=1y = 1 and y=−1y = -1: every segment there is flat. For dydx=2x−y\frac{dy}{dx} = 2x - y it is the slanted line y=2xy = 2x. For dydx=x2(y−2)\frac{dy}{dx} = x^2(y - 2) it is both the row y=2y = 2 and the column x=0x = 0, because a product is 0 when either factor is.

Then look for undefined slopes. In dydx=xy\frac{dy}{dx} = \frac{x}{y}, every point on the xx-axis (except the origin) has y=0y = 0 in the denominator, so the segments there are vertical.

Matching an equation to a field

To decide which equation produced a given field, test a few easy points. Points on the axes make the arithmetic quick: at (0,1)(0, 1) and (1,0)(1, 0) most expressions are one short computation. Check the sign first, then the steepness. Also check where the field is flat: if the flat segments lie on y=2xy = 2x, the right side must be 0 whenever y=2xy = 2x.

Common slips

  • Swapping coordinates: at (0,2)(0, 2) the value of xx is 0, not 2.
  • Drawing a segment that is not centered on its point, or that runs into the next one: keep segments short.
  • Getting the sign right but ignoring steepness, so slopes of 0.5 and 4 look the same.
  • Forgetting that a factor of 0 makes the whole slope 0.

Spot a mistake on this page?