AP Calculus AB · Topic 7.2 · Reading guide, about 4 min

Plugging in to test a proposed solution

Check that a function solves a differential equation by differentiating and substituting; general, particular, constant solutions.

In one minute

A solution of a differential equation is a function that makes the equation true for every input in its domain. You do not need any new technique to check a proposed solution: differentiate it, substitute, and see whether both sides match.

This test shows up constantly, and it also gives you a way to check your own work in later topics. If you solve an equation and the answer fails this test, something went wrong.

Key terms

Solution
A function that satisfies the differential equation: when you substitute y and dydx\frac{dy}{dx}, both sides are equal for all x in its domain.
General solution
The whole family of solutions, written with an arbitrary constant such as C, for example y=Ce2xy=Ce^{2x}.
Particular solution
The one member of the family that also meets a given condition such as y(0)=5y(0)=5.
Initial condition
A given point on the solution, like y(0)=5y(0)=5, used to determine C.
Constant solution
A solution such as y=0y=0 that never changes. It makes dydx=0\frac{dy}{dx}=0.
Equilibrium solution
Another name for a constant solution: the value of y where the rate of change is zero.
Verify
To differentiate the proposed function and substitute both y and dydx\frac{dy}{dx} into the equation.

The verification routine

Given an equation and a candidate function, follow the same three moves each time. First, differentiate the candidate to get dydx\frac{dy}{dx}. Second, substitute the candidate in for y (and for dydx\frac{dy}{dx}) on both sides. Third, simplify and see whether the left and right sides are identical for all x.

If they match, the function is a solution. If they differ by anything that is not zero for every x, it is not. A function that works only at a single x is not a solution, because a solution must work everywhere on an interval.

Example of a failure: is y=x2y=x^2 a solution of dydx=yx\frac{dy}{dx}=\frac{y}{x}? The derivative is 2x2x. The right side is x2x=x\frac{x^2}{x}=x. Since 2x≠x2x\neq x for x≠0x\neq0, no. But y=xy=x works: the derivative is 1 and xx=1\frac{x}{x}=1. So does y=Cxy=Cx for any constant C, since dydx=C\frac{dy}{dx}=C and Cxx=C\frac{Cx}{x}=C.

General and particular solutions

Because integration brings in a constant, most differential equations have infinitely many solutions. The equation dydx=2y\frac{dy}{dx}=2y is solved by y=Ce2xy=Ce^{2x} for every value of C. Check one: if y=Ce2xy=Ce^{2x} then dydx=2Ce2x=2y\frac{dy}{dx}=2Ce^{2x}=2y.

A particular solution picks one member using an initial condition. If y(0)=5y(0)=5, then 5=Ce0=C5=Ce^{0}=C, so y=5e2xy=5e^{2x}. Notice what the condition does: it forces the curve through one point, and only one curve in the family passes through that point.

Always substitute the initial condition at the value of x given. Substituting into y=Ce2xy=Ce^{2x} at x=0x=0 is easy because e0=1e^0=1, but with another point such as y(1)=3y(1)=3 you would write 3=Ce23=Ce^{2} and keep C=3e−2C=3e^{-2} exact.

What you compare in a verification
PieceWhere it comes fromWhat to do
Left sideDifferentiate the candidate ySimplify fully
Right sideSubstitute the candidate into the formula for dydx\frac{dy}{dx}Simplify fully
Initial conditionPlug the given x into the candidate functionCompare to the given y value
Constant solutionPut y equal to a number, so dydx=0\frac{dy}{dx}=0Right side must also be 0

Worked example: verify, then pin down C

Show that y=x+1+Cexy=x+1+Ce^{x} is a general solution of dydx=y−x\frac{dy}{dx}=y-x, then find the particular solution with y(0)=3y(0)=3.

Step 1. Differentiate: dydx=1+Cex\frac{dy}{dx}=1+Ce^{x}.

Step 2. Compute the right side: y−x=(x+1+Cex)−x=1+Cexy-x=(x+1+Ce^{x})-x=1+Ce^{x}.

Step 3. Compare. Both sides equal 1+Cex1+Ce^{x} for every x and every C, so the family is a general solution.

Step 4. Use the condition: at x=0x=0, y=0+1+Ce0=1+Cy=0+1+Ce^{0}=1+C. Set 1+C=31+C=3, so C=2C=2.

Step 5. The particular solution is y=x+1+2exy=x+1+2e^{x}. Check by differentiating: dydx=1+2ex\frac{dy}{dx}=1+2e^{x}, and y−x=1+2exy-x=1+2e^{x}. Also y(0)=1+2=3y(0)=1+2=3.

Constant solutions need a separate look. For dydx=xy\frac{dy}{dx}=xy, the function y=0y=0 gives dydx=0\frac{dy}{dx}=0 and xy=0xy=0. It works, even though it is easy to lose when solving by algebra. On a graph it is the x-axis, a flat line lying along every row of the field where y is zero, and every other solution stays on one side of it.

How it connects

  • Back to 7.1: the equations you wrote there are the ones you now test candidates against.
  • Forward to 7.3 and 7.4: a slope field shows the whole family of solutions at once without formulas.
  • Forward to 7.7: solving with an initial condition produces the particular solution you will check here.

Common mistakes

  • Skipping the derivative. Plugging y into the equation without computing dydx\frac{dy}{dx} checks nothing.
  • Checking one point. A match at a single x does not prove a function is a solution. The sides must agree for every x.
  • Forgetting C is arbitrary. In a general solution C stays a symbol. Choose its value only when an initial condition is given.
  • Missing constant solutions. If dydx\frac{dy}{dx} has a factor of y, test y=0y=0 directly.

How it shows up on the exam

  • A multiple-choice item lists several functions and asks which satisfies a given differential equation and initial condition.
  • A free-response part asks you to show that a stated function is a solution by substituting and simplifying.
  • A question gives a family with a constant and asks for the constant from an initial condition.

Check yourself

  1. Is y=3e−xy=3e^{-x} a solution of dydx=−y\frac{dy}{dx}=-y? What would change if the constant were 7?
  2. Why does y=5y=5 solve dydx=y(y−5)\frac{dy}{dx}=y(y-5) even though it has no x in it?
  3. If a family is y=Ce2xy=Ce^{2x} and the curve passes through (1, 3)(1,\,3), what is C in exact form?

Practice this topic. AP Practice questions on exactly what this lesson covers, with an explanation for every answer.