Calculus · Grade 12 and undergraduate
Differential Equations and Slope Fields
Quick answer
A differential equation relates a function to its derivatives, as dy/dx = 2y does. A solution is a function that makes the equation true, which can be checked by substituting it in. Most equations have a whole family of solutions, the general solution; an initial condition picks one particular solution. A slope field draws the slope the equation assigns at each point, so every solution curve can be seen threading through it, and horizontal rows of flat marks reveal equilibrium solutions.
What you'll learn
- Write differential equations that model rates of change
- Verify that a function solves a differential equation
- Find a particular solution from an initial condition
- Sketch and read slope fields, including equilibrium solutions
Equations about rates
Many laws describe how a quantity changes rather than what it is:
- A population grows at a rate proportional to its size: .
- A falling object’s velocity changes at a constant rate: .
- A cup of coffee cools at a rate proportional to its difference from the room’s temperature: .
Each is a differential equation: an equation involving an unknown function and its derivatives. Solving it means finding the function.
Solutions and how to check them
A solution is a function that makes the equation true. To check one, substitute it and its derivative.
For , try : the left side is and the right side is . They agree for every and every constant .
So is the general solution, a whole family. An initial condition such as picks out one particular solution: gives , so .
Slope fields
A differential equation gives a slope at every point of the plane. A slope field draws that slope as a short segment at each point of a grid.
- through (0, 2)
- through (0, −2)
Why one picture shows every solution
A solution curve through a point must have, at that point, exactly the slope the equation prescribes. So wherever it goes, it runs along the marks, like a leaf carried by a current.
The field does not favor any one curve. Start anywhere, follow the marks, and you trace the solution through that starting point. The slope field is the differential equation drawn out, and every solution is a path along it. An initial condition is the choice of where to start.
Reading a slope field
- Zero slopes: where , the marks are flat. For , that happens along the line .
- Equilibrium solutions: if a whole horizontal row of marks is flat, the constant function there is a solution. For , the row is flat, so is an equilibrium.
- Patterns: if the slope depends only on , every mark in a horizontal row is the same. If it depends only on , every mark in a vertical column is the same.
Worked examples
Common mistakes
Practice problems
-
Verify that solves .
Answer
It does: both sides equal .
Full solution
, and . They agree for every .
-
Find the particular solution of with .
Answer
Full solution
The general solution is , and .
-
Is a solution of ?
Answer
Yes
Full solution
and .
-
For , find the slope of the solution curve at .
Answer
Full solution
Substitute: .
-
Find the equilibrium solutions of .
Answer
and
Full solution
The slope is for every exactly when .
-
Which equation has a slope field whose marks are the same across each horizontal row: or ?
Answer
Full solution
Along a horizontal row, is fixed. If the slope depends only on , the whole row shares one slope.
-
A population satisfies . How fast is it growing when ?
Answer
per unit of time
Full solution
.
-
For , where are the slope field’s marks flat?
Answer
Along the line
Full solution
The slope is when .
-
Show that solves with .
Answer
Both sides equal , and .
Full solution
. And . At , .
-
A student says the slope field of shows that the solution is the line . What went wrong?
Hint
Is the height or the slope?
Answer
The equation gives the slope, not the height. The solutions are .
Full solution
A solution must have slope at each point. The line has slope everywhere, so it fails except where .
Antidifferentiating gives the family of parabolas .
Frequently asked questions
What is a differential equation?
An equation that involves an unknown function and its derivatives, such as dy/dx = 2y or dT/dt = −k(T − 20).
How do I check a solution?
Substitute the function and its derivative into the equation. If both sides agree for every x, it is a solution.
What is the difference between a general and a particular solution?
The general solution is the whole family, with an arbitrary constant such as C. A particular solution is the one member that also satisfies an initial condition.
What is a slope field?
A grid of short segments, each drawn with the slope the differential equation gives at that point. Solution curves follow the segments.
What is an equilibrium solution?
A constant solution, where dy/dx = 0 for every x. In a slope field it shows up as a horizontal row of flat marks.