5.15 Slope fields

5.15 Slope fields

IB Maths: Applications and Interpretation HL: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A slope field shows the gradient dydx=f(x,y)\dfrac{dy}{dx}=f(x,y) as a short segment at each point of a grid.
  • Substitute both coordinates to find the gradient: positive rises, negative falls, 00 is horizontal.
  • An isocline is a curve where all segments have the same gradient: set f(x,y)=cf(x,y)=c.
  • A solution curve follows the segments; an initial condition picks one, and curves never cross.
  • Horizontal segments mark equilibrium values in a model.

What a slope field shows

At each point the segment has gradient f(x,y)f(x,y), so you can see the shape of solutions without solving the equation.

A slope field (direction field) for dydx=f(x,y)\dfrac{dy}{dx}=f(x,y) is a grid of short segments. To use one, substitute the coordinates of a point into dydx\dfrac{dy}{dx} and draw the segment with that gradient. To draw one, work out the gradient at a grid of points.

The gradient comes only from the differential equation, not from the line to the origin.

Slope field for dy/dx = x − y at nine grid points: flat on y = x, steep where x is much larger than y

Worked example

For dydx=xy\dfrac{dy}{dx}=\dfrac xy, find the gradient at (−3,6)(-3,6).

For dydx=x+y\dfrac{dy}{dx}=x+y, what is the gradient at (1,2)(1,2)?

Isoclines and flat segments

Set f(x,y)f(x,y) equal to a constant: all points on that curve have segments of the same gradient.

An isocline is a curve on which all segments have the same gradient. Horizontal segments occur where f(x,y)=0f(x,y)=0: for dydx=x−y\dfrac{dy}{dx}=x-y that is the line y=xy=x.

For dydx=x+y\dfrac{dy}{dx}=x+y, segments on y=2−xy=2-x all have gradient 22 and those on y=−x−1y=-x-1 all have gradient −1-1. Where ff is undefined, the segment is vertical or missing.

−4−3−2−11234−4−224xyy = 2 − x (gradient 2)y = −x − 1 (gradient −1)
Isoclines of dy/dx = x + y

For dydx=x−y\dfrac{dy}{dx}=x-y, where are the segments horizontal?

Solution curves

A curve that is tangent to the segment at every point it passes through.

The general solution is the whole family of solution curves. An initial condition, such as passing through (0,1)(0,1), picks out one, with gradient f(0,1)f(0,1) at the start.

Solution curves do not cross, because the slope field gives only one gradient at each point. If a line is itself a solution, other curves stay on one side of it.

−3−2−1123−4−2246xy(0, 0)y = eˣ − x − 1y = −x − 1
y = eˣ − x − 1 solves dy/dx = x + y; the line y = −x − 1 is also a solution

Why can two solution curves not cross?

Slope fields in context

Horizontal segments mark equilibrium values, and the signs of the gradient show where the quantity grows or shrinks.

For dPdt=0.2P(5−P)\dfrac{dP}{dt}=0.2P(5-P), horizontal segments at P=0P=0 and P=5P=5 are equilibrium values where the population is constant. Between them the gradient is positive, so PP increases; above P=5P=5 it is negative, so PP decreases towards 55.

At P=1P=1, dPdt=0.8\dfrac{dP}{dt}=0.8; at P=6P=6, dPdt=−1.2\dfrac{dP}{dt}=-1.2. State what happens in the long term, with units.

−11234567−2−1123456xyP = 0P = 5(1, 0.8)(6, −1.2)dP/dt
dP/dt against P: zero at P = 0 and P = 5, positive between, negative above

Starting with P=8P=8 in this model, what happens to the population in the long term?

Try an exam question

A differential equation is given by dydx=x+y\dfrac{dy}{dx}=x+y. (a) Find the gradient of the slope field segment at (1,2)(1,2). (b) Find the equation of the isocline along which all segments have gradient 11. (c) Show that y=ex−x−1y=e^x-x-1 satisfies the differential equation.

[5 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the gradient of the line segment at the point (3,1)(3,1).

1 mark, marked against the mark scheme

Revision notes