7B

Slope fields

Drawing and reading slope fields (direction fields) for first-order differential equations, sketching solution curves through a point, matching DEs to slope fields, and spotting constant solutions.

Many differential equations can't be solved by integration at all. You can still see what their solutions look like. At every point, a first-order DE $\dfrac{dy}{dx} = f(x, y)$ tells you the gradient a solution curve must have there. Draw those gradients as short dashes and the shape of every solution appears.

The idea

A slope field (or direction field) is a grid of short line segments. The segment at $(x, y)$ has gradient $f(x, y)$. A solution curve passes through the field always running parallel to the nearby segments, like a leaf floating on a stream.

Example 1: a table of slopes●

Find the gradients for $\dfrac{dy}{dx} = x - y$ at a few points.

At $(0, 0)$: $0$. At $(1, 0)$: $1$. At $(0, 1)$: $-1$. At $(1, 1)$: $0$. At $(2, 1)$: $1$. At $(-1, 1)$: $-2$.
Substitute each point into x − y.
Every point on the line $y = x$ has gradient $0$; every point on $y = x - 1$ has gradient $1$. Draw a dash of that slope at each grid point.
Points with the same value of x − y share a gradient. Those points lie on a straight line.

A line or curve along which all the dashes have the same gradient is called an isocline. Drawing a few isoclines first is the quickest way to sketch a field by hand.

Reading a slope field

Slope field for dy/dx = x + y

Each segment has gradient x + y. The curve is the solution y = Ce^x − x − 1; the slider moves through the family.

Try this

Find the value of $C$ that makes the solution a straight line. Then check that line against the DE: what is its gradient, and what is $x + y$ at every point on it?

Constant solutions

If $\dfrac{dy}{dx} = g(y)$ and $g(c) = 0$, then every dash on the row $y = c$ is horizontal, and the horizontal line $y = c$ is itself a solution: a constant (or equilibrium) solution. Other solutions can approach these lines but never cross them.

Example 2●●

Describe the solutions of $\dfrac{dy}{dx} = y(2 - y)$.

Constant solutions: $y = 0$ and $y = 2$.
Set g(y) = 0.
For $0 \lt y \lt 2$ the gradient is positive, so solutions rise towards $y = 2$. For $y \gt 2$ it is negative, so solutions fall towards $y = 2$. For $y \lt 0$ it is negative, so solutions fall away from $y = 0$.
Test the sign of y(2 − y) in each band.
So $y = 2$ attracts nearby solutions (stable), and $y = 0$ repels them (unstable).
Slope field for dy/dx = y(2 − y)

The dashed rows y = 0 and y = 2 are constant solutions. The curve is the solution y = 2/(1 + Ce^(−2x)).

Try this

Work out which $C$ gives the solution through $(0, 0.5)$, then check it on the slider. Now predict what a solution starting at $y = 3$ does, and move $C$ below $0$ to see one.

Your turn

A slope field has horizontal dashes all along the line $y = -x$, and every dash in it depends on both $x$ and $y$. Which of $\dfrac{dy}{dx} = x - y$, $\dfrac{dy}{dx} = x + y$ and $\dfrac{dy}{dx} = xy$ could it be?

Show the working

Flat dashes need $\dfrac{dy}{dx} = 0$. On $y = -x$: $x - y = 2x$ (not always $0$), $x + y = 0$ (always $0$), and $xy = -x^2$ (not always $0$). So it is $\dfrac{dy}{dx} = x + y$.

Flashcards
Slope field
At each point $(x, y)$, a short segment with gradient $f(x, y)$.
Constant solution of $dfrac{dy}{dx} = g(y)$
$y = c$ wherever $g(c) = 0$.
Field of $dfrac{dy}{dx} = f(x)$
Dashes in each vertical column are parallel.
Practice
  1. Find the gradient of the slope field of $\dfrac{dy}{dx} = x - y$ at $(2, -1)$.

  2. Find the gradient of the slope field of $\dfrac{dy}{dx} = \dfrac{xy}{2}$ at $(1, 3)$.

  3. In a slope field, all dashes in each vertical column are parallel. The DE has the form:

  4. The constant solutions of $\dfrac{dy}{dx} = (y - 1)(y + 3)$ are:

  5. Find the gradient of the slope field of $\dfrac{dy}{dx} = y(2 - y)$ at any point on the line $y = 2.5$.

  6. For $\dfrac{dy}{dx} = x - 2y$, the dashes are horizontal along:

  7. Find the constant solutions of $\dfrac{dy}{dx} = y^2 - 4$. Enter the two values of $y$ separated by &.

  8. The solution of $\dfrac{dy}{dx} = y(2 - y)$ through $(0, 1)$, as $x \to \infty$:

  9. Exam style: $\dfrac{dy}{dx} = x + y$ has one straight-line solution $y = mx + c$. Find $c$.

  10. Exam style: the solution of $\dfrac{dy}{dx} = (y - 1)(y - 3)$ with $y = 2$ when $x = 0$ tends to a limit as $x \to \infty$. Find it.

Formula sheet