AP Calculus AB and BC · Unit 7 · Topic 7.2

    7.2 Verifying Solutions for Differential Equations

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    A solution of a differential equation is a function that makes the equation true for every input in an interval. To verify one, differentiate the function, substitute it and its derivatives into both sides, and show they are equal. A general solution contains an arbitrary constant; a particular solution has the constant fixed by a given point.

    What you need to know

    • Verify that a given function satisfies a differential equation.
    • Distinguish general and particular solutions.
    • Use substitution to find an unknown constant in a proposed solution.
    • Explain why a function fails to be a solution.

    Substitute and compare

    Show that y=Ce3xy = Ce^{3x} solves dydx=3y\frac{dy}{dx} = 3y. Left side: dydx=3Ce3x\frac{dy}{dx} = 3Ce^{3x}. Right side: 3y=3Ce3x3y = 3Ce^{3x}. They match for every xx and every constant CC, so this is a solution, and in fact the general solution.

    Show that y=x−1+2e−xy = x - 1 + 2e^{-x} solves dydx=x−y\frac{dy}{dx} = x - y. Left: dydx=1−2e−x\frac{dy}{dx} = 1 - 2e^{-x}. Right: x−(x−1+2e−x)=1−2e−xx - (x - 1 + 2e^{-x}) = 1 - 2e^{-x}. Equal, so it is a solution. Since y(0)=−1+2=1y(0) = -1 + 2 = 1, it is the particular solution through (0,1)(0, 1).

    Second-order equations

    Some equations involve y′′y''. To check that y=3cos⁡x+2sin⁡xy = 3\cos x + 2\sin x satisfies y′′+y=0y'' + y = 0: y′=−3sin⁡x+2cos⁡xy' = -3\sin x + 2\cos x, y′′=−3cos⁡x−2sin⁡xy'' = -3\cos x - 2\sin x, and y′′+y=0y'' + y = 0. Every function of the form Acos⁡x+Bsin⁡xA\cos x + B\sin x works, which is why springs and pendulums oscillate.

    To find unknown constants, substitute a general form. If y=erxy = e^{rx} solves y′′−y′−6y=0y'' - y' - 6y = 0, then r2erx−rerx−6erx=0r^2e^{rx} - re^{rx} - 6e^{rx} = 0, so r2−r−6=0r^2 - r - 6 = 0 and r=3r = 3 or r=−2r = -2.

    When a function is not a solution

    Does y=x2y = x^2 solve dydx=2y\frac{dy}{dx} = 2y? Left: 2x2x. Right: 2x22x^2. These agree only at x=0x = 0 and x=1x = 1, not on an interval, so y=x2y = x^2 is not a solution. A single matching point is never enough.

    General and particular

    A first-order equation usually has a whole family of solutions, one for each value of the constant. Graphically, they are curves that never cross, filling the plane like the contour lines of a map. An initial condition, such as y(0)=5y(0) = 5, picks out exactly one curve: for dydx=3y\frac{dy}{dx} = 3y, that is y=5e3xy = 5e^{3x}. Topic 7.7 shows how to find these particular solutions directly.

    Verification is also a quick way to check your own work later in the unit. After solving a differential equation by separation of variables, differentiate your answer and substitute it back. If the two sides agree and the initial condition holds, the solution is right; if not, the error is usually a lost constant or a sign slip in the integration.

    On the exam, verification questions are short but precise. Graders look for the derivative of the proposed function, the substitution into both sides, and a clear statement that the sides are equal. Skipping the final sentence can cost the point, even if all the algebra is correct.

    Key terms

    Solution of a differential equation
    A function that makes the equation true for every input in an interval.
    General solution
    A family of solutions containing an arbitrary constant.
    Particular solution
    The single solution satisfying a given initial condition.
    Initial condition
    A known point such as y(0) = 5 that fixes the constant.

    Common mistakes

    • Checking only one point.

      The equation must hold for all x in an interval.

    • Substituting y but forgetting to differentiate it first.

      Compute dy/dx from the proposed function, then substitute.

    • Treating C as a specific number.

      Keep C general when verifying a general solution.

    How this topic is tested

    • Write 'LHS =' and 'RHS =' and simplify each.
    • Conclude with a sentence: the two sides are equal for all x.
    • Use the initial condition to identify the particular solution.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 3 · Justification

      Which function solves dydx=3y\frac{dy}{dx} = 3y?

    2. Question 2 · MP 3 · Justification

      Is y=x−1+2e−xy = x - 1 + 2e^{-x} a solution of dydx=x−y\frac{dy}{dx} = x - y?

    3. Question 3 · MP 1 · Implementing Mathematical Processes

      For what values of rr does y=erxy = e^{rx} solve y′′−y′−6y=0y'' - y' - 6y = 0?

    4. Question 4 · MP 3 · Justification

      Why is y=x2y = x^2 not a solution of dydx=2y\frac{dy}{dx} = 2y?

    5. Question 5 · MP 1 · Implementing Mathematical Processes

      Which is the particular solution of dydx=3y\frac{dy}{dx} = 3y with y(0)=5y(0) = 5?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (no calculator) · 3 points

    Consider dydx=2yx\frac{dy}{dx} = \frac{2y}{x} for x>0x > 0.

    1. (a) Verify that y=Cx2y = Cx^2 is a solution for any constant CC.
    2. (b) Find the particular solution with y(1)=4y(1) = 4.

    Connected topics

    Frequently asked questions

    How many solutions does a differential equation have?

    Usually infinitely many, one for each value of the constant.

    Can I verify by graphing?

    A graph can suggest it, but the exam expects algebraic substitution.

    Are second-order equations on AB?

    Verifying them can appear; solving them in general is beyond the course.

    How this shows up on the exam42 multiple-choice and 6 free-response questions, with and without a calculator. See how the exam is laid out.

    Free Unit 7 cheat sheet

    Every topic in Unit 7: Differential Equations on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Calculus AB practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Calculus AB practice examsUnit 7 is one of 8 units on the exam. Two timed exams in the 2027 format (42 MCQ + 6 FRQ, with calculator and no-calculator parts), worked explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Related lessons in other AP courses

    All topics in Unit 7: Differential Equations

    1. 7.1 Modeling Situations with Differential Equations
    2. 7.2 Verifying Solutions for Differential Equations
    3. 7.3 Sketching Slope Fields
    4. 7.4 Reasoning Using Slope Fields
    5. 7.6 Finding General Solutions Using Separation of Variables
    6. 7.7 Finding Particular Solutions Using Initial Conditions and Separation of Variables
    7. 7.8 Exponential Models with Differential Equations

    Other units in AP Calculus AB

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.