Skip to content
Marlbridge

AP® Calculus AB · Unit 7 · Topic 7.2

Verifying Solutions for Differential Equations: Study Guide (Calculus AB 7.2)

Learn how to check that a function solves a differential equation by differentiating and substituting, why one point is not enough, and why there can be infinitely many solutions.

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:

  1. Differentiate. Find every derivative that appears in the equation (y′, and y″ if needed).
  2. Substitute. Put y, y′ (and y″) into the left side, and separately into the right side.
  3. 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.
  4. 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.

Five solution curves of dy/dt = 0.5(4 − y), one for each of C = 4, 2, 0, −2 and −4 Graph of y against t for t from 0 to 6 and y from 0 to 8. Five curves of the form y = 4 + C e to the power minus t over 2. The curve for C = 4 starts at y = 8 and falls towards 4. The curve for C = 2 starts at 6 and falls towards 4. The curve for C = 0 is the horizontal line y = 4. The curve for C = −2 starts at 2 and rises towards 4. The curve for C = −4 starts at 0 and rises towards 4. The curves never cross. Each curve has a different line style and is labelled at its right-hand end. 0123456 t 02468 y C = 4C = 2C = 0C = −2C = −4 y = 4 + Ce^(−t/2)
Figure 1. Five solutions of dy/dt = 0.5(4 − y). Each curve starts at y = 4 + C when t = 0, so C = 4, 2, 0, −2, −4 start at 8, 6, 4, 2, 0. Line styles differ so the curves can be told apart without colour. Every curve heads towards y = 4, and the horizontal line y = 4 (C = 0) is itself a solution. Axes are unitless.

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.

  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).
  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).
  3. 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.

  1. Differentiate. y′ = re^(rx), y″ = r²e^(rx).
  2. Substitute into the left side. r²e^(rx) − 2re^(rx) − 8e^(rx) = e^(rx)(r² − 2r − 8).
  3. 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.
  4. 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?

  1. Differentiate. Write y = 2(x² + C)^(−1). By the chain rule, dy/dx = −2(x² + C)^(−2) × 2x = −4x/(x² + C)².
  2. Right side. y² = 4/(x² + C)², so −xy² = −4x/(x² + C)².
  3. 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.

AP® and Advanced Placement® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website. Marlbridge is an independent tuition provider. It is not an authorized AP course provider, an AP school or an exam centre, and these resources are not official College Board materials. Reading them or doing simulations does not meet the laboratory requirement of an AP science course.