Lesson 4 of 7 · 16 min

Slope fields

Draw and read slope fields, sketch solution curves through given points, spot equilibrium solutions, and match a field to its differential equation.

What you will be able to do

  • Explain what each segment of a slope field represents and calculate the gradient at a point.
  • Sketch the solution curve through a given point by following the field.
  • Recognise the patterns of dydx=f(x)\frac{dy}{dx} = f(x) and dydx=g(y)\frac{dy}{dx} = g(y), including equilibrium solutions, and match fields to equations.

A first-order differential equation gives the gradient at every point of the plane: put in xx and yy, and out comes dydx\frac{dy}{dx}. Draw a short segment with that gradient at each point of a grid and you get a slope field (also called a direction field or gradient field).

You can see the shape of every solution in it before you solve anything. A solution curve must be tangent to the field everywhere it goes, like a leaf floating on a current.

Interactive

Follow the field

Click or tap to start a solution curve anywhere. Whatever the starting point, the curves are drawn towards the line y=x−1y = x - 1, which is itself a solution.

Key idea

Reading a slope field

  • The segment at (a,b)(a, b) has gradient dydx\frac{dy}{dx} evaluated at x=ax = a, y=by = b.
  • A solution curve passes through the given point and is tangent to the segments along its path. Curves never cross, because each point has only one gradient.
  • An initial condition picks out one curve: the particular solution.

In the slope field of dydx=x2−y\frac{dy}{dx} = x^2 - y, what is the gradient of the segment drawn at (2,1)(2, 1)?

Patterns worth recognising
FormWhat the field looks likeWhat the solutions do
dydx=f(x)\frac{dy}{dx} = f(x)Every segment in a vertical column is parallel (the gradient depends on xx only).Each solution is a vertical translation of the others: y=F(x)+cy = F(x) + c.
dydx=g(y)\frac{dy}{dx} = g(y)Every segment in a horizontal row is parallel (the gradient depends on yy only).Each solution is a horizontal translation of the others. Rows where g(y)=0g(y) = 0 are flat.
dydx=f(x)g(y)\frac{dy}{dx} = f(x)g(y)Segments are flat along any row where g(y)=0g(y) = 0 and any column where f(x)=0f(x) = 0.Flat rows are constant solutions; flat columns mark turning points.

Definition

Equilibrium solutions

If g(a)=0g(a) = 0, then y=ay = a is a constant solution of dydx=g(y)\frac{dy}{dx} = g(y): its gradient is 00, and g(y)=0g(y) = 0 along it. On the slope field it is a row of horizontal segments. Nearby curves either approach it (a stable equilibrium) or move away from it (an unstable one).

Interactive

Two equilibria

The rows y=0y = 0 and y=2y = 2 are flat, so they are solutions. Start curves above, between and below them: which equilibrium attracts nearby curves, and which repels them?

In the slope field of one of these equations, the segments along every horizontal line are parallel to one another. Which equation is it?

Choose one answer

Worked example

Reading the slope field of dydx=x−y\frac{dy}{dx} = x - y

  • Complex familiar
  • Technology free

The slope field of dydx=x−y\frac{dy}{dx} = x - y is shown, with two solution curves.

(a) Calculate the gradient of the segments at (0,0)(0, 0), (2,1)(2, 1) and (1,3)(1, 3).

(b) Show that y=x−1y = x - 1 is a solution.

(c) Describe the solution curve through (0,2)(0, 2).

Slope field of dydx=x−y\frac{dy}{dx} = x - y with the solutions y=x−1y = x - 1 and the curve through (0,2)(0, 2).

5 steps

Try it yourself first, then check the working one step at a time.

Method

  1. Gradient at a point: substitute it into dydx\frac{dy}{dx}.

  2. Zero-gradient points (here y=xy = x) locate turning points of solution curves.

  3. Straight-line or constant solutions act as guides: other curves do not cross them.

Watch out for

  • Drawing the solution curve through the segments rather than along them.

  • Letting the curve cross y=x−1y = x - 1: solution curves never cross.

Determine all the equilibrium (constant) solutions of dydx=(y−1)(y+2)\frac{dy}{dx} = (y - 1)(y + 2).

y =

Press Enter or type a comma after each value.

Tip

Sketching a solution curve by hand

Start at the given point and move a short way along its segment, then adjust to the next segment, and so on in both directions. Keep the curve smooth, tangent to the field, and never let it cross another solution or an equilibrium line. (Stepping along the field in short straight pieces is called Euler's method. You won't be examined on it, but it is exactly how the widget below builds its approximate curve.)

Interactive

Small steps along the field

The straight pieces follow the segment at the start of each step. Smaller steps track the exact curve more closely.

Exam tip

Sketches on a slope field

When asked to sketch a solution on a given slope field, make sure the curve passes through the stated point, is tangent to the segments, and shows the long-run behaviour (approaching an equilibrium or an asymptote). Label any equilibrium solutions.

Summary

  • Each segment of a slope field has the gradient given by the differential equation at that point.

  • A solution curve is tangent to the field everywhere; an initial condition chooses which curve.

  • If dydx\frac{dy}{dx} depends only on xx, columns are parallel; if only on yy, rows are parallel.

  • Where g(y)=0g(y) = 0, the row is flat and y=y = constant is an equilibrium solution.

  • Use the field to predict long-run behaviour before, or instead of, solving.

Finished the lesson?

Try the 3 quick checks above and the lesson completes itself, or mark it complete now.

Lesson 4 of 70% read

Save your progress with a free account