5.15 · AHL · HL onlyPaper 1Paper 2Paper 3

Slope fields

In a minute

A draws a short line at each grid point with the gradient that a gives there. Solution curves run along these lines, so you can sketch a solution and see its long-term behaviour without solving the equation. In a model, the field shows where a quantity rises, falls, peaks or levels off.

You'll be able to

  • Work out the segments of a slope field, and match a differential equation to its field.
  • Sketch the solution curve through a given point, with its turning points where the segments are flat.
  • Find the curve where the segments are horizontal, and any horizontal line that is itself a solution.
  • Interpret a slope field in context: where a quantity rises or falls, where it peaks, and the value it levels off towards.
Before you start3 quick questions on what this builds on
Check yourself
Which is the of dydx=2y\frac{\mathrm{d}y}{\mathrm{d}x} = 2y?
Check yourself
dydx=6x\frac{\mathrm{d}y}{\mathrm{d}x} = 6x and the curve passes through (1,7)(1, 7). Find yy.
Check yourself
A town's population PP is modelled by dPdt=0.035P\frac{\mathrm{d}P}{\mathrm{d}t} = 0.035P, with tt in years. Find the rate of change of PP when P=4800P = 4800.

Revise first: 5.14 Setting up and separating differential equations

What a slope field shows

In 5.14 you solved differential equations by separating the variables. Many can't be solved that way. But an equation dydx=f(x,y)\frac{\mathrm{d}y}{\mathrm{d}x} = f(x, y) still tells you the gradient of a solution at every point (x,y)(x, y).

So pick a grid of points. At each one, draw a short line with that gradient. Together the lines show which way a solution heads as it passes through each point.

A solution curve is tangent to every segment it passes through. You don't need its equation: you follow the segments.

To draw a segment, substitute the point into f(x,y)f(x, y). Then draw a short line with that gradient, centred on the point. A positive gradient rises to the right, a negative one falls, and 00 gives a horizontal segment.

Slope field of dy/dx equals x minus y for x and y from minus 2 to 4. Short segments sit on a grid of points. Along the dashed line y equals x every segment is horizontal. Above the line the segments slope downwards, more steeply further from the line. Below the line they slope upwards. -2 -1 1 2 3 4 -2 -1 1 2 3 4 x y y = x
The slope field of dydx=x−y\frac{\mathrm{d}y}{\mathrm{d}x} = x - y. The segments are horizontal on the dashed line y=xy = x, where x−y=0x - y = 0.
Worked exampleFor dydx=x−y\frac{\mathrm{d}y}{\mathrm{d}x} = x - y, find the gradients of the segments at A(3,1)A(3, 1), B(2,2)B(2, 2) and C(−1,1)C(-1, 1), in that order. Describe each segment.

Try it first, then reveal one step at a time.

  1. At AA: dydx=3−1=2\frac{\mathrm{d}y}{\mathrm{d}x} = 3 - 1 = 2. The segment rises steeply to the right.

Three features help you match an equation to its field.

1. If ff contains xx only, the gradient is the same all the way up each vertical column. The segments in a column are parallel.

2. If ff contains yy only, the segments along each horizontal row are parallel.

3. The segments are horizontal wherever f(x,y)=0f(x, y) = 0. Solve this to find where: it may be a horizontal line, a vertical line or a curve.

Three small slope fields labelled A, B and C, each for x and y from minus 1 to 3. In A the segments along each row are parallel, horizontal on the row y equals 1, rising above it and falling below it. In B the segments in each column are parallel, horizontal on the column x equals 1, rising to the left of it and falling to the right. In C the segments along each row are parallel, horizontal on the row y equals 1, falling above it and rising below it. 1 1 2 2 3 3 0 0 A 1 1 2 2 3 3 0 0 B 1 1 2 2 3 3 0 0 C
Three slope fields, each drawn for −1≤x≤3-1 \le x \le 3 and −1≤y≤3-1 \le y \le 3.
Worked exampleWhich of the slope fields AA, BB and CC in the figure belongs to dydx=1−y\frac{\mathrm{d}y}{\mathrm{d}x} = 1 - y? Give a reason.

Try it first, then reveal one step at a time.

  1. 1−y1 - y contains yy only, so each row of segments should be parallel. In BB the segments change along a row but not up a column, so BB belongs to an equation in xx. Rule it out.
Check yourself
A coffee's temperature TT °C after tt minutes is modelled by dTdt=−0.12(T−22)\frac{\mathrm{d}T}{\mathrm{d}t} = -0.12(T - 22). What does the slope field's segment at (5,72)(5, 72) tell you?
Check yourself
In the slope field of dydx=x2−4\frac{\mathrm{d}y}{\mathrm{d}x} = x^{2} - 4, which segments are parallel to each other?

Sketching solution curves

A solution through a given point is a . Its graph is called a solution curve. To sketch it on a slope field:

1. Mark the given point.

2. Move right from the point a little at a time, always in the direction of the nearby segments. Never cut across them.

3. Go back to the point and do the same to the left, unless the question asks for only part of the curve.

4. Check the turning points: the curve is flat exactly where the segments are flat.

To tell a maximum from a minimum, check the gradient just before and just after. Rising then falling is a maximum. Falling then rising is a minimum.

Worked exampleOn the slope field of dydx=x−y\frac{\mathrm{d}y}{\mathrm{d}x} = x - y, sketch the solution curve through (0,2)(0, 2) and describe its shape.

Try it first, then reveal one step at a time.

  1. Mark (0,2)(0, 2). There dydx=0−2=−2\frac{\mathrm{d}y}{\mathrm{d}x} = 0 - 2 = -2, so the curve starts by falling.
The slope field of dy/dx equals x minus y with one solution curve drawn through the marked point (0, 2). Going right, the curve falls to a minimum on the dashed line y equals x, at about (1.1, 1.1), then rises and runs just above the dotted line y equals x minus 1, getting closer to it. Going left from (0, 2), the curve climbs steeply off the top of the diagram. -2 -1 1 2 3 4 -2 -1 1 2 3 4 x y (0, 2) y = x y = x − 1
The solution through (0,2)(0, 2): a minimum on the dashed line y=xy = x, then it closes in on the dotted line y=x−1y = x - 1.
Worked exampleThe concentration of a medicine in a patient's blood is CC mg per litre, tt hours after a tablet is taken. It is modelled by dCdt=8e−t−C\frac{\mathrm{d}C}{\mathrm{d}t} = 8\mathrm{e}^{-t} - C, with C=0C = 0 when t=0t = 0. This solution curve has a stationary point when t=1t = 1. Find CC there, decide whether it is a maximum or a minimum, and interpret it. Give CC to 3 s.f.

Try it first, then reveal one step at a time.

  1. At a stationary point dCdt=0\frac{\mathrm{d}C}{\mathrm{d}t} = 0, so 8e−t−C=08\mathrm{e}^{-t} - C = 0 and C=8e−tC = 8\mathrm{e}^{-t}. The point lies on this curve, dashed in the figure.
Slope field of dC/dt equals 8 e to the minus t minus C, for t and C from 0 to 4. A dashed curve C equals 8 e to the minus t falls from the top left towards the t-axis. The solution curve starts at the origin, rises steeply, reaches a maximum where it meets the dashed curve at about t equals 1 and C equals 2.94, then falls slowly towards the t-axis. 1 2 3 4 1 2 3 4 t C C = 8e−t
The field of dCdt=8e−t−C\frac{\mathrm{d}C}{\mathrm{d}t} = 8\mathrm{e}^{-t} - C. The solution from (0,0)(0, 0) peaks where it meets the dashed curve C=8e−tC = 8\mathrm{e}^{-t}.
Check yourself
A solution curve of dydx=x+y−4\frac{\mathrm{d}y}{\mathrm{d}x} = x + y - 4 has a minimum point. On which line must the minimum lie?
Check yourself
Which line is itself a solution curve of dydx=(y−3)(x+1)\frac{\mathrm{d}y}{\mathrm{d}x} = (y - 3)(x + 1)?

Interpreting slope fields in context

In a model the horizontal axis is usually time tt. The slope field then shows how the quantity changes from any starting value: where it rises or falls, how fast, and where it levels off.

Look for rows of flat segments. If dydt=f(y)\frac{\mathrm{d}y}{\mathrm{d}t} = f(y) and f(c)=0f(c) = 0, then y=cy = c is a solution: a quantity that starts at cc stays at cc.

If instead the segments point away from y=cy = c on both sides, solutions that start near cc move away from it.

Slope field of dN/dt equals 0.0005 N times 1200 minus N, for t from 0 to 15 years and N from 0 to 1600. Segments along each row are parallel. They are horizontal on the dashed line N equals 1200, rise between N equals 0 and 1200, steepest near N equals 600, and fall above 1200. One solution starts at N equals 300, rises in an S shape and levels off just below 1200. Another starts at N equals 1500 and falls, levelling off just above 1200. 5 10 15 400 800 1200 1600 t N N = 1200
The field of dNdt=0.0005N(1200−N)\frac{\mathrm{d}N}{\mathrm{d}t} = 0.0005N(1200 - N), with the solutions that start at N=300N = 300 and at N=1500N = 1500.
Worked exampleThe number of fish NN in a lake, tt years after it is restocked, is modelled by dNdt=0.0005N(1200−N)\frac{\mathrm{d}N}{\mathrm{d}t} = 0.0005N(1200 - N). Use the slope field to describe what happens to the population if it starts at 300300 fish, and if it starts at 15001500 fish.

Try it first, then reveal one step at a time.

  1. The right-hand side contains NN only, so each row of segments is parallel.
Check yourself
For the fish model dNdt=0.0005N(1200−N)\frac{\mathrm{d}N}{\mathrm{d}t} = 0.0005N(1200 - N), the segments that rise most steeply lie along one horizontal line. Find the value of NN on that line.
Worked exampleA parcel is dropped from a hovering drone. Its speed is v m s−1v\text{ m s}^{-1}, tt seconds after release, and dvdt=9.8−0.28v\frac{\mathrm{d}v}{\mathrm{d}t} = 9.8 - 0.28v, with v=0v = 0 when t=0t = 0. Draw the slope field and this solution curve, using technology if your GDC can. Describe how the speed changes, and find the value it approaches.

Try it first, then reveal one step at a time.

  1. Enter the equation with tt as xx and vv as yy, and the starting point (0,0)(0, 0). The steps for each GDC are below.

On the TI-Nspire, tt is xx and vv is y1. The TI-84 Plus CE and the fx-CG50 can't draw a slope field, so on those you work out a few gradients and sketch.

Slope field of dv/dt equals 9.8 minus 0.28 v, for t from 0 to 20 seconds and v from 0 to 50. Segments along each row are parallel, steep near v equals 0, horizontal on the dashed line v equals 35 and falling above it. The solution curve starts at the origin, rises steeply, then flattens and levels off just below v equals 35. 5 10 15 20 10 20 30 40 50 t v v = 35
The field of dvdt=9.8−0.28v\frac{\mathrm{d}v}{\mathrm{d}t} = 9.8 - 0.28v and the solution from (0,0)(0, 0), levelling off towards v=35v = 35.
Check yourself
A drip feeds a drug into a patient. The concentration is CC mg per litre after tt hours, with dCdt=2−0.5C\frac{\mathrm{d}C}{\mathrm{d}t} = 2 - 0.5C. The concentration starts at 66 mg per litre. What does the slope field show?

Common mistakes

  • Sketching the solution only to the right of the given point. Unless the question gives a domain, draw it across the whole diagram, left and right.
  • Drawing a curve that cuts across the segments, or misses the given point. Keep it tangent to the segments it passes, and start it exactly on the point.
  • Putting a turning point in the wrong place. A solution curve is flat exactly where it meets the curve f(x,y)=0f(x, y) = 0, so its maxima and minima lie on that curve.
  • Mixing up x=cx = c and y=cy = c. For dydx=2−x\frac{\mathrm{d}y}{\mathrm{d}x} = 2 - x the flat segments lie on the vertical line x=2x = 2, not on the horizontal line y=2y = 2.
  • Answering an interpretation question with a number only. Say what happens to the quantity, with its units, such as ‘the population decreases towards 12001200 fish’.

Exam tips

  • Sketch: the curve must pass through the given point, follow the segments, run across the diagram in both directions, and have its turning points where the segments are flat. Each of these features can earn a mark.
  • Identify the slope field and give a reason: state one feature, checked at a point, that the other diagrams don't share. For example, ‘at (0,0)(0, 0) the gradient is 11, so the segments there rise’.
  • Find the curve where dydx=0\frac{\mathrm{d}y}{\mathrm{d}x} = 0: write f(x,y)=0f(x, y) = 0 first, then rearrange it. Show that line before your answer, so a slip later still leaves your method visible.
  • Describe or interpret long-term behaviour: give the value the quantity approaches, say whether it rises or falls towards it, and include units.

Key takeaways

Learn thisThe slope field of dydx=f(x,y)\frac{\mathrm{d}y}{\mathrm{d}x} = f(x, y) has a short segment at each grid point (a,b)(a, b) with gradient f(a,b)f(a, b). A solution curve is tangent to every segment it passes through.
Learn thisIn the slope field of dydx=f(x,y)\frac{\mathrm{d}y}{\mathrm{d}x} = f(x, y): if ff contains xx only, the segments in each vertical column are parallel. If ff contains yy only, the segments along each horizontal row are parallel.
Learn thisThe segments of dydx=f(x,y)\frac{\mathrm{d}y}{\mathrm{d}x} = f(x, y) are horizontal where f(x,y)=0f(x, y) = 0. A solution curve has a stationary point exactly where it meets this curve.
Learn thisTo sketch a solution on a slope field: go through the given point, follow the segments in both directions across the diagram, and put the turning points where the segments are flat.
Learn thisFor dydt=f(y)\frac{\mathrm{d}y}{\mathrm{d}t} = f(y) with f(c)=0f(c) = 0, the line y=cy = c is a solution. If the segments just below it rise and those just above it fall, solutions that start close to cc move towards cc as tt increases.

Practise this

32 past-paper questions on Differential equations in the AI HL bank, each with a mark scheme and a worked explanation.

Practise Differential equations →