Introduction to Differential Equations
A differential equation is an equation that involves a derivative, like . Instead of telling you what a quantity is, it tells you how the quantity changes. That is often exactly what we know about the real world: populations grow faster when there are more animals, and hot soup cools faster when it is much hotter than the room. This page shows how to turn words into a differential equation and how to check whether a function solves one.
Key ideas
Section titled “Key ideas”What a differential equation is
Section titled “What a differential equation is”A differential equation (often shortened to “DE”) relates a function to one or more of its derivatives. Some examples:
The unknown is a function, not a number. Solving a DE means finding a function (or a whole family of functions) that makes the equation true for every value of the input.
Writing a differential equation from words
Section titled “Writing a differential equation from words”The phrase “the rate of change of ” means the derivative (if changes with time ). “Is proportional to” means “equals a constant times”.
| Words | Differential equation |
|---|---|
| The rate of change of is proportional to . | |
| The rate of change of with respect to is proportional to the square of . | |
| The rate of change of is proportional to the difference between and . | |
| The rate of change of is inversely proportional to . | |
| The rate of change of is jointly proportional to and . |
The sign of carries meaning: if the quantity is increasing, ; if it is decreasing, . Some books write a decreasing quantity as with instead. Either way is fine, as long as you say which.
Verifying a solution
Section titled “Verifying a solution”To check whether a function is a solution, substitute it into the differential equation:
- Find the derivatives the equation needs (, and if it appears).
- Substitute and its derivatives into both sides.
- Simplify. If the two sides are equal for every , the function is a solution.
You don’t need to know how to solve the equation to check a solution. Checking is just differentiating and simplifying.
General and particular solutions
Section titled “General and particular solutions”A differential equation usually has infinitely many solutions. For example, every function solves , because the derivative of any constant is .
- The general solution is the whole family, written with an arbitrary constant: .
- A particular solution is one specific member, picked out by an initial condition such as . Here gives , so the particular solution is .
A differential equation together with an initial condition is called an initial value problem. You will learn to find general and particular solutions yourself in separation of variables.
Worked examples
Section titled “Worked examples”Example 1: From words to an equation
Section titled “Example 1: From words to an equation”Water drains from a tank so that the rate of change of the depth (in metres) with respect to time (in minutes) is proportional to the square root of the depth. Write a differential equation for .
Solution. “The rate of change of the depth” is . “Proportional to the square root of the depth” means :
The tank is draining, so is decreasing and . (Equivalently, with .)
Example 2: Verifying a solution
Section titled “Example 2: Verifying a solution”Show that is a solution of .
Solution. Find the derivative of the proposed solution:
Now substitute into the right side:
Both sides equal for every , so is a solution.
Example 3: A second-order equation
Section titled “Example 3: A second-order equation”Show that solves . (Angles are in radians, as always in calculus.)
Solution. Differentiate twice using the chain rule:
Substitute into the left side:
The left side equals the right side, , so it is a solution. The same steps show that and are solutions too: this equation has infinitely many solutions.
Example 4: Finding a constant that works
Section titled “Example 4: Finding a constant that works”For which values of is a solution of ?
Solution. With , we have and . Substitute:
Since is never , we need
Check : . ✓
Common mistakes
Section titled “Common mistakes”Checking only one side, or only one point. A function is a solution only if both sides agree for every in an interval. Plugging in and getting a match is not enough. Simplify both sides into the same expression.
Forgetting the chain rule. The derivative of is , and the derivative of is . Missing the inner derivative makes a true solution look wrong.
Mixing up “proportional to” and “equal to”. “The rate is proportional to ” is , not . Always include the constant .
Writing the quantity instead of its rate. “The rate of change of is proportional to ” describes , so the equation is , not .
Thinking a DE has only one answer. Without an initial condition, there is a whole family of solutions. Write the general solution with its constant, and only find the constant when you are given a point.
Practice
Section titled “Practice”1. (Warm-up) The rate of change of the mass of a radioactive sample with respect to time is proportional to the mass. Write a differential equation. What is the sign of the constant?
Solution
The sample is decaying, so is decreasing and .
2. (Warm-up) Show that is a solution of .
Solution
Left side: .
Right side: .
The sides are equal for every , so it is a solution.
3. (Core) A cup of coffee cools in a room kept at . The rate of change of the coffee’s temperature (in degrees Celsius) with respect to time (in minutes) is proportional to the difference between and the room temperature. Write a differential equation, and explain the sign of the constant while the coffee is hotter than the room.
Solution
While the coffee is hotter than the room, and the coffee is cooling, so . A positive number times is negative, so .
4. (Core) Show that is a solution of for every constant . Then find the particular solution with .
Solution
Write . Then
So it is a solution for every . For the initial condition:
The particular solution is .
5. (Core) Show that is a solution of .
6. (Core) Which of these are solutions of (for )?
- (a)
- (b)
- (c)
Solution
(a) and . Yes, a solution.
(b) but , which is not . Not a solution.
(c) and . Yes, a solution.
7. (Core) Show that solves for every constant . Then find the particular solution through the point .
Solution
Left side: .
Right side: .
The sides match, so it is a solution for every . At :
The particular solution is .
8. (Challenge) Find all values of for which is a solution of (for ).
Solution
With : and . Substitute:
Since for , we need , so or .
Check : . ✓
9. (Challenge) Show that solves for every constant (radians). Find the particular solution with , and give the largest open interval containing on which it is defined.
Solution
using the identity . So it is a solution for every .
For : , so and .
Tangent is defined between consecutive vertical asymptotes, so we need , which gives