AP® CALCULUS AB & BC · UNIT 7

Verifying Solutions for Differential Equations

Differentiate the proposed function, substitute into the original equation, and justify whether the equality holds on an interval. Check initial conditions separately.

Topic 7.2 study notes8 worked examples · 8 practice questionsUpdated 11 November 2026
Calculus notebook with limit and integral symbols, a compass and pencil on an olive and cream study desk

1. What it means to verify a solution

A proposed solution is a function, not merely a number or a point on a graph. To verify it, differentiate the function and substitute it into the original differential equation. The resulting equality must hold at every point of the interval being considered, with all required derivatives and expressions defined.

AP Calculus AB and BC · Topic 7.2. The course framework identifies FUN-7.B, FUN-7.B.1–2 and skill 3.G: use derivatives to confirm solutions and recognize that a differential equation may have infinitely many solutions.

For the equation and candidate

dydx=F(x,y),y=f(x),

the check is

f′(x)=F(x,f(x))for every x∈I.

Here I is an interval where the candidate is differentiable and the original equation is defined. You can verify a supplied function without finding a general solution. A numerical mismatch at one valid input disproves a claim on an interval containing that input; a match at one input does not prove an identity.

2. A reliable verification process

  1. Identify the equation, candidate and interval. Note any denominator, logarithm, root or other restriction before simplifying.
  2. Differentiate the proposed function. Calculate each derivative that actually appears. Use the chain or product rule where needed.
  3. Substitute completely. Replace every occurrence of the dependent variable and its derivatives. Keep the independent variable as the input.
  4. Simplify and compare. Show that both sides agree identically on the stated interval, or provide a valid counterexample.
  5. State the conclusion. Specify whether the candidate solves the equation and on which interval.
  6. For an initial value problem, check the initial condition separately. A correct starting value cannot compensate for a failed differential equation.

Both y′ and dydx are standard derivative notation when the independent variable is clear. Use either consistently; a prime is not an error. For a second derivative, use y″ or d2ydx2.

3. Functions, families and initial value problems

What each verification task requires
TaskCandidate or dataWhat to check
A specific functiony=3e2xDifferentiate and substitute the full candidate into the specified equation.
A family with a constanty=CekxTreat C and k as constants; establish which values are permitted by the original equation.
An initial value problemdydx=2y,y(0)=5Check the equation and the initial value independently.
Several candidatesy=x and y=x2Test each function against the same specified equation; one result does not decide the other.
A constant functiony=cThe derivative is zero. Substitute the constant into the equation to test whether it is an equilibrium solution.
A restricted domainy=11−xPreserve the excluded input x=1. Verify on an interval that avoids it.

Two independent checks for an initial value problem

A function can satisfy the differential equation but fail the initial condition. It can also pass through the initial point while failing the equation. To verify the whole initial value problem, both tests must pass on an appropriate interval containing the initial input.

For example, y=e3x satisfies dydx=3y, but it does not satisfy y(0)=2, because e0=1. The function y=2e3x passes both checks, as Example 6 shows.

4. Eight colorful worked examples

Example 1 · Verify an exponential solution

Verify y=e3x for dydx=3y.

1 · Differentiate the candidate

dydx=3e3x

The factor 3 comes from the derivative of the exponent.

2 · Substitute into the right side

3y=3(e3x)=3e3x

3 · Compare on the whole interval

dydx−3y=0

Both sides agree for every real input. Therefore y=e3x solves the equation on R.

Example 2 · Verify a polynomial solution

Verify y=x2+2x−1 for dydx=2x+2.

1 · Find the derivative

dydx=2x+2

The constant term differentiates to zero.

2 · Compare with the prescribed rate

dydx−(2x+2)=0

The equality holds on R. The candidate is a solution. In fact, every member y=x2+2x+C, with a real constant C, has this derivative.

Example 3 · Use the product rule before substituting

Verify y=x2ex for dydx=y+2xex.

1 · Differentiate the full product

dydx=2xex+x2ex

Differentiate both factors through the product rule.

2 · Replace the dependent variable

y+2xex=x2ex+2xex

3 · Reorder matching terms

2xex+x2ex=x2ex+2xex

The expressions are identical for every real input. Thus the candidate solves the equation on R.

Example 4 · Verify a second-order equation

Verify y=sin(2x) for d2ydx2+4y=0. Higher-order extension: the same substitution method works with a second derivative; the main Unit 7 sequence emphasizes first-order equations. Trigonometric inputs are in radians.

1 · Differentiate twice

dydx=2cos(2x)
d2ydx2=−4sin(2x)

2 · Substitute both terms

Substituting into the full left side gives

−4sin(2x)+4sin(2x)=0

The left side equals the required zero for every real input. The candidate is a solution on R.

Example 5 · Reject a match that occurs at only one input

Is y=x2 a solution to dydx=3x?

1 · Compare the actual and required derivatives

dydx=2x

The equation instead requires 3x. Their equality reduces to

2x=3x⟺x=0.

2 · Give a valid counterexample

At x=1, the actual derivative is 2, whereas the required value is 3.

2≠3

The equality holds only at an isolated input, not on a nontrivial interval. Therefore y=x2 is not a solution on any nontrivial interval. Agreement at x=0 is insufficient.

Example 6 · Verify the equation and the initial condition

Verify y=2e3x for the initial value problem dydx=3y, y(0)=2.

1 · Check the differential equation

dydx=6e3x
3y=3(2e3x)=6e3x

The equation holds for every real input.

2 · Check the initial value independently

y(0)=2e3·0=2

The candidate satisfies the initial condition as well as the equation. It solves the initial value problem on R.

Example 7 · Verify infinitely many solutions

Check the family y=Ce3x for dydx=3y, where C is any real constant.

1 · Keep the constant while differentiating

dydx=3Ce3x
3y=3Ce3x

2 · Include the zero and negative cases

The same identity holds for every real C, including C=0, which gives the zero solution. Negative constants also give solutions. Do not divide by C or y and accidentally discard zero.

y(0)=C

There are infinitely many distinct solutions in this family. If the initial value is y(0)=2, it selects C=2 within the family.

Example 8 · Preserve the interval of a rational solution

Verify y=11−x for dydx=y2. If y(0)=1 is also given, identify the maximal interval containing the initial input.

1 · Record the original restriction

The candidate is undefined at x=1. Work on an interval excluding this input.

dydx=1(1−x)2

2 · Substitute and check the initial point

y2=(11−x)2=1(1−x)2
y(0)=1

3 · State the valid interval

The candidate solves the equation on each of (−∞,1) and (1,∞). For the initial value at zero, the maximal interval is (−∞,1). The original function is not a solution across its undefined input, even though the differential equation itself is defined there.

5. Graphs of solution families and derivative checks

These graphs illustrate two different checks. They support the algebraic reasoning; a visual match does not replace an identity proof.

One equation, several verified solutions

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −0.5 0.0 0.5 x 0 2 4 6 8 y Zero Base Double
The zero, base and double curves represent y=0, y=e3x and y=2e3x. All satisfy dydx=3y. Their marked initial points are (0,0), (0,1) and (0,2). Only the double curve meets the initial condition y(0)=2.

One matching slope does not verify an interval

image/svg+xml Matplotlib v3.11.2, https://matplotlib.org/ −1 0 1 x −4 −2 0 2 4 Rate Actual Required
For the candidate y=x2, the solid line is its derivative 2x; the dashed line is the required rate 3x. They meet at (0,0). At x=1, the marked values are 2 and 3, so the candidate fails the differential equation.

The axes use independent scales. These abstract examples have no physical units. Filled dots mark comparison values, not domain endpoints. Window edges are viewing limits; the solution-family curves and both rate lines continue beyond the windows. The second panel shows derivatives, not the original parabola.

6. Derivative rules and constant parameters

Derivative rules used in verification
RuleFormulaCheck
Product ruleddx(uv)=dudxv+udvdxUse both terms when the candidate is a product.
Chain ruleddxf(g(x))=f′(g(x))g′(x)Multiply by the derivative of the inner function.
Exponentialddxekx=kekxTreat k as constant.
Sineddxsin(kx)=kcos(kx)Use radians and include the factor k.
Cosineddxcos(kx)=−ksin(kx)Use radians and retain the minus sign.

For second-order extensions: calculate both derivatives explicitly before substitution. For example, sin(2x) has first derivative 2cos(2x) and second derivative −4sin(2x). The second derivative is not the square of the first derivative.

For a family: differentiate the arbitrary constant correctly and check all parameter values allowed by the equation. Showing a family consists of solutions does not, by itself, prove that it contains every possible solution.

7. Eight practice questions with complete solutions

1. Exponential decay

Is y=4e−2x a solution to dydx=−2y?

Show complete solution

1 · Differentiate and substitute

dydx=−8e−2x
−2y=−8e−2x

2 · Conclude on an interval

Yes. The two sides agree identically on R.

2. A polynomial candidate

Is y=x3−3x a solution to dydx=3x2−3?

Show complete solution

1 · Find the derivative

dydx=3x2−3

2 · Compare with the original equation

Yes. This is exactly the prescribed right side, for every real input. The candidate solves the equation on R.

3. Second-order verification extension

Is y=cos(3x) a solution to d2ydx2+9y=0? Use radians.

Show complete solution

1 · Differentiate twice

dydx=−3sin(3x)
d2ydx2=−9cos(3x)

2 · Substitute into the full equation

−9cos(3x)+9cos(3x)=0

Yes. The equality holds on R.

4. Passing through an initial point is not enough

Does y=ex+1 solve dydx=y with y(0)=2?

Show complete solution

1 · Test the equation

dydx=ex
y=ex+1
ex−(ex+1)=−1≠0

The extra constant disappears when differentiated, but remains in the original right side. The differential equation fails.

2 · Test the initial condition

y(0)=e0+1=2

The initial condition passes. The full initial value problem does not: both checks are required.

5. Find a parameter by checking a family

For which real A does y=Ae2x+1 satisfy dydx=2y−2? Which member satisfies y(0)=5?

Show complete solution

1 · Verify the family first

dydx=2Ae2x
2y−2=2(Ae2x+1)−2=2Ae2x

Every real A passes the equation check on R.

2 · Apply the initial condition

A+1=5⟹A=4

The selected member is y=4e2x+1, and it passes both checks.

6. Substitute every occurrence of the function

Verify y=x+1 for dydx=y−x, y(0)=1.

Show complete solution

1 · Compare both sides

dydx=1
y−x=(x+1)−x=1

2 · Check the starting value

y(0)=1

The candidate satisfies the equation and the initial condition on R.

7. A constant solution must not be lost

Check y=3 for dydx=y(y−3), y(0)=3.

Show complete solution

1 · Substitute the constant

dydx=0
y(y−3)=3(3−3)=0

2 · Verify the initial condition

y(0)=3

Yes. This is an equilibrium solution on R. Dividing by y−3 would discard it; direct substitution into the original equation preserves it.

8. Check differentiability before claiming an identity

Does y=|x| solve (dydx)2=1 on an open interval containing zero?

Show complete solution

1 · Check each side of zero

For x<0, the derivative is −1; for x>0, it is 1. Its square is 1 on either of those separate intervals.

2 · Check the joining input

At zero, the left and right difference-quotient limits are −1 and 1. The derivative does not exist there.

Therefore the candidate is not a solution on an open interval containing zero. It does solve the equation separately on (−∞,0) and (0,∞).

8. Common mistakes and AP-style explanations

  • Chain-rule factors: differentiate the exponent or inner trigonometric argument; keep its multiplier.
  • Complete substitution: replace the dependent variable on the right as well as the derivative on the left.
  • Equivalent expressions: rearrange, factor or expand before deciding two expressions differ.
  • Point checks: an isolated agreement is not a solution on an interval. A valid mismatch is enough to reject the claimed interval.
  • Initial values: report the equation result and the initial-condition result separately.
  • Domains and derivatives: an algebraic cancellation cannot make an undefined function value or missing derivative valid.
  • Constants: retain the constant during differentiation and test zero or equilibrium values directly.

A clear AP-style justification

State the derivative, show the substituted right side, establish the equality on the stated interval, then give the conclusion. For an initial value problem, also show the initial-value calculation. This is a communication checklist, not a guarantee of a particular examination score.

Quick reference: identify → differentiate → substitute → simplify → compare → state the interval and conclusion. Add the initial-condition check whenever one is supplied.

9. Questions about verifying differential equations

Do I need to solve the differential equation first?

No. A proposed function is already supplied. Differentiate it and substitute into the original equation; finding a general solution is a different task.

Is one matching value enough?

No. The equality must hold throughout the interval. In Example 5, 2x and 3x agree at zero but differ at every other input.

Can I disprove a candidate using one value?

Yes, if the input belongs to the claimed interval and all expressions are defined there. A mismatch at that input disproves a universal equality on that interval.

Can the differential equation have infinitely many solutions?

Yes. For instance, every real constant C gives a solution y=Ce3x to dydx=3y. The initial condition can select a member of this verified family.

Can the initial condition be true while the equation is false?

Yes. The preserved candidate y=ex+1 has y(0)=2, but its derivative is ex, not ex+1. It fails dydx=y.

Is prime notation acceptable?

Yes. The notations y′ and dydx both describe the derivative with respect to x, when that variable is clear. A second derivative can be written y″ or d2ydx2.

Why do intervals matter?

A solution must have the required derivatives throughout its interval, and the original equation must be defined there. The rational candidate in Example 8 cannot be verified across x=1, where the function is undefined.

10. Continue through Unit 7

Topic 7.1 builds an equation from a situation; this topic checks whether a given function satisfies it. Next, slope fields connect a differential equation with the local directions of its solution curves.

Keep the distinction clear: verifying an equation, verifying an initial value, and finding a solution are related tasks with different requirements.