Course scope. This topic is shared by Calculus AB and Calculus BC. Everything here is examinable for both.
What “solution” means here
In Topic 7.1 you wrote differential equations such as dy/dt = 0.5(4 − y). The unknown in such an equation is a function. A solution is a function that makes the equation true.
Definition. A function y = f(x) is a solution of a differential equation on an interval if, when you substitute f and its derivatives into the equation, the two sides are equal for every x in that interval.
Compare this with an algebra equation. The equation 2x + 3 = 11 is true for one number, x = 4. A differential equation such as dy/dx = 3y must be true as an identity: the left side and the right side must be the same expression, whatever x is.
The verification method
You are given a differential equation and a function. To check it:
- Differentiate. Find every derivative that appears in the equation (y′, and y″ if needed).
- Substitute. Put y, y′ (and y″) into the left side, and separately into the right side.
- Simplify each side on its own. Do not move terms across the equals sign; you are testing whether it is true, so you cannot assume it.
- Compare. If the two sides are identical for all x in the interval, the function is a solution. If they differ for some x, it is not.
A short example. Is y = 5e^(3x) a solution of dy/dx = 3y?
- Left side: dy/dx = 15e^(3x) (chain rule: the derivative of 3x is 3).
- Right side: 3y = 3 × 5e^(3x) = 15e^(3x).
- The two sides are identical for every x. So yes, y = 5e^(3x) is a solution.
Write it like this. Exam answers are clearer if you set the work out as “Left side = … ; Right side = … ; these are equal for all x, so y is a solution.” A line of algebra with “= “ between the two sides from the start looks like you assumed what you were asked to show.
Why one point is not enough
A common shortcut is to pick one value, such as x = 0, and check that both sides agree there. This can give the wrong answer.
Take the equation dy/dx = 2y + 2 − 2x² and the candidate y = x² − 1.
- Left side: dy/dx = 2x.
- Right side: 2(x² − 1) + 2 − 2x² = 2x² − 2 + 2 − 2x² = 0.
At x = 0 both sides are 0, so a one-point check would “pass”. But the left side is 2x and the right side is 0, so they only agree at x = 0. At x = 1 the left side is 2 and the right side is 0. So y = x² − 1 is not a solution.
One point can show a function is not a solution (if the sides disagree there). It can never show a function is a solution.
Infinitely many solutions
Differentiating loses information about starting values: y = x² + 7 and y = x² − 3 have the same derivative. In the same way, a differential equation often has a whole family of solutions, with an arbitrary constant C. Every value of C gives a different solution, so there are infinitely many solutions.
For example, y = Ce^(3x) solves dy/dx = 3y for every constant C:
- Left side: dy/dx = 3Ce^(3x).
- Right side: 3y = 3Ce^(3x).
C = 5 gives the solution checked above; C = −2, C = 0.1 and C = 0 are solutions too. (C = 0 gives y = 0, a constant solution: its derivative is 0 and 3 × 0 = 0.)
Figure 1 shows five members of the family that solves dy/dt = 0.5(4 − y), which you will verify in Worked example 1.
Two things to notice:
- The curves never cross. For this equation, through each starting point there is exactly one solution curve. That is why one extra fact, such as “y = 6 when t = 0”, picks out exactly one solution (here C = 2). Using such a fact to find C is the subject of Topic 7.7.
- The shapes match the equation. Above y = 4, the right side 0.5(4 − y) is negative, so the curves fall. Below y = 4 it is positive, so they rise. You will draw this kind of picture as a slope field in Topic 7.3.
Second-order equations
Some differential equations involve y″. The method is the same: find y′ and y″, substitute, and simplify each side.
For example, check that y = sin(2x) solves y″ + 4y = 0:
- y′ = 2cos(2x), y″ = −4sin(2x).
- Left side: y″ + 4y = −4sin(2x) + 4sin(2x) = 0. Right side: 0. Equal for all x, so it is a solution.
For second-order equations, families often have two arbitrary constants. Here y = A sin(2x) + B cos(2x) works for any A and B.
Worked example 1: a family with a constant C
Question. Show that y = 4 + Ce^(−t/2) is a solution of dy/dt = 0.5(4 − y) for every constant C. Then decide whether y = 4 + e^(t/2) is a solution.
Part 1.
- Differentiate. The 4 is constant, so its derivative is 0. By the chain rule, the derivative of e^(−t/2) is −(1/2)e^(−t/2). So dy/dt = −0.5Ce^(−t/2).
- Right side. Substitute y: 0.5(4 − y) = 0.5(4 − 4 − Ce^(−t/2)) = 0.5(−Ce^(−t/2)) = −0.5Ce^(−t/2).
- Compare. Left side = right side = −0.5Ce^(−t/2) for every t, and C was never given a value. So the function is a solution for every constant C.
Conclusion. The equation has infinitely many solutions, one for each value of C, including the constant solution y = 4 (C = 0).
Part 2. For y = 4 + e^(t/2):
- Left side: dy/dt = 0.5e^(t/2).
- Right side: 0.5(4 − 4 − e^(t/2)) = −0.5e^(t/2).
These are negatives of each other. They are never equal, because e^(t/2) > 0 for all t. So y = 4 + e^(t/2) is not a solution.
Interpretation. This is the Topic 7.1 cooling-type model: the rate is proportional to the gap between y and 4. A true solution moves towards 4. The rejected function moves away from 4, so it was never going to fit the story.
Worked example 2: finding a constant that makes it work
Question. For which values of r is y = e^(rx) a solution of y″ − 2y′ − 8y = 0? Then show that y = 3e^(4x) − 5e^(−2x) is also a solution.
Part 1.
- Differentiate. y′ = re^(rx), y″ = r²e^(rx).
- Substitute into the left side. r²e^(rx) − 2re^(rx) − 8e^(rx) = e^(rx)(r² − 2r − 8).
- Make it zero for all x. e^(rx) is never 0, so the left side is 0 for every x exactly when r² − 2r − 8 = 0, that is (r − 4)(r + 2) = 0.
- Answer. r = 4 or r = −2. So y = e^(4x) and y = e^(−2x) are both solutions.
Part 2. Let y = 3e^(4x) − 5e^(−2x).
- y′ = 12e^(4x) + 10e^(−2x).
- y″ = 48e^(4x) − 20e^(−2x).
- Left side: y″ − 2y′ − 8y = (48e^(4x) − 20e^(−2x)) − (24e^(4x) + 20e^(−2x)) − (24e^(4x) − 40e^(−2x)) = (48 − 24 − 24)e^(4x) + (−20 − 20 + 40)e^(−2x) = 0.
- Right side: 0. Equal for all x, so it is a solution.
Check a near miss. y = e^(4x) + 1 is not a solution. The e^(4x) terms still cancel, but the constant 1 contributes −8 × 1 = −8, so the left side is −8, not 0. Adding a constant to a solution does not always give another solution: it depends on the equation.
Worked example 3: watch the interval
Question. Show that y = 2/(x² + C) satisfies dy/dx = −xy² for every constant C. What happens when C = −4?
- Differentiate. Write y = 2(x² + C)^(−1). By the chain rule, dy/dx = −2(x² + C)^(−2) × 2x = −4x/(x² + C)².
- Right side. y² = 4/(x² + C)², so −xy² = −4x/(x² + C)².
- Compare. The two sides are identical wherever y is defined. So the function is a solution for every C.
When C = −4, y = 2/(x² − 4) is undefined at x = 2 and x = −2. It is a solution only on an interval that avoids those values, such as x > 2 or −2 < x < 2. A solution must be differentiable on the whole interval you claim.
One more solution. y = 0 is also a solution (left side 0, right side −x × 0 = 0), but no value of C gives y = 0. So a family with a constant does not always list every solution.
Common misconceptions
- “It works at x = 0, so it is a solution.” Equality at one point proves nothing. Show the sides are identical for all x in the interval.
- Assuming what you are checking. Do not start with “y′ = 3y” and manipulate both sides. Simplify each side separately, then compare.
- Treating C as a variable. C is a constant, so the derivative of Ce^(3x) is 3Ce^(3x), and the derivative of a lone C is 0.
- “A differential equation has one solution.” Usually there are infinitely many. An extra condition picks out one.
- Forgetting the chain rule. The derivative of e^(−t/2) is −(1/2)e^(−t/2), not e^(−t/2).
- Checking only y′ in a second-order equation. If y″ appears, you must find y″ and substitute it.
- Ignoring where the function is defined. A formula that blows up at x = 2 is only a solution on intervals that avoid x = 2.
- Mixing up the variables. If the equation uses t, differentiate with respect to t.
Where this leads
Verifying solutions is the check you will use throughout Unit 7. In Topic 7.3 you draw slope fields, which show the whole family of solution curves at once, as in Figure 1. In Topics 7.6 and 7.7 you find solutions yourself, and then use an initial condition to choose one member of the family. After solving, substituting back is the best way to check your answer. Students in either course can return to the Calculus AB roadmap or the Calculus BC roadmap.
Try the practice questions now, then use the revision notes and the checklist to consolidate.
Quick questions
Is this page for Calculus AB or Calculus BC?
Both. Topic 7.2 is common content, so the same page serves AB and BC students.
Do I need to know how the solution was found?
No. To verify, you only need to differentiate the given function and substitute. Finding solutions from scratch comes in Topics 7.6 and 7.7.
How can there be more than one solution?
A differential equation only describes how the function changes, not where it starts. Many functions can change in the same way from different starting values. One extra condition, such as a starting value, usually picks out one of them.