Dove's LibraryDove's Library

7.2 - Verifying Solutions for Differential Equations

Particular vs. General Solutions

With differential equations, there are two types of solutions.
General solution: contains an arbitrary constant CC from integration.
y=∫f(x) dx+Cy = \int f(x)\,dx + C
Particular solution: a specific solution where CC has been pinned down using an initial condition, which is a given point the function passes through.
Because CC can be any number, a differential equation usually has infinitely many solutions, one for each value of CC. Together they form a family of curves, and an initial condition picks out just one of them.

Verifying a Solution

To check whether a function is a solution, you don’t have to solve anything. Use derivatives:
  1. Find the derivative of the proposed function (or the derivatives, if the equation has d2ydx2\frac{d^2y}{dx^2})
  1. Substitute the function and its derivatives into both sides of the differential equation
  1. Simplify. If the two sides match for every xx, it’s a solution
Example: Show that y=2x+2+Cexy = 2x + 2 + Ce^x is a solution to dydx=y−2x\frac{dy}{dx} = y - 2x for any constant CC.
Left side:
dydx=2+Cex\frac{dy}{dx} = 2 + Ce^x
Right side:
y−2x=(2x+2+Cex)−2x=2+Cexy - 2x = (2x + 2 + Ce^x) - 2x = 2 + Ce^x
Both sides equal 2+Cex2 + Ce^x ✓. This works no matter what CC is, so this one differential equation has infinitely many solutions.
A function that fails: try y=2x+exy = 2x + e^x. The left side is dydx=2+ex\frac{dy}{dx} = 2 + e^x, but the right side is y−2x=exy - 2x = e^x. They’re off by 22, so it’s not a solution.

Example 1: Finding a Particular Solution with a First Derivative

Problem: Find the particular solution to dydx=e3x−4x2\frac{dy}{dx} = e^{3x} - 4x^2 that passes through the point (0,5)(0, 5).
Step 1: Integrate to find the general solution
We need to find yy by taking the antiderivative:
y=∫(e3x−4x2) dxy = \int \left(e^{3x} - 4x^2\right)\,dx
For the first term, use substitution with u=3xu = 3x, so du=3 dxdu = 3\,dx, meaning dx=du3dx = \frac{du}{3}:
y=∫eu⋅du3−∫4x2 dxy = \int e^u \cdot \frac{du}{3} - \int 4x^2\,dxy=13e3x−4x33+Cy = \frac{1}{3}e^{3x} - \frac{4x^3}{3} + C
Step 2: Use the initial condition to find CC
Substitute the point (0,5)(0, 5), so x=0x = 0 and y=5y = 5:
5=13e0−4(0)33+C5 = \frac{1}{3}e^{0} - \frac{4(0)^3}{3} + C5=13(1)−0+C5 = \frac{1}{3}(1) - 0 + C5=13+C5 = \frac{1}{3} + CC=5−13=153−13=143C = 5 - \frac{1}{3} = \frac{15}{3} - \frac{1}{3} = \frac{14}{3}
Step 3: Write the particular solution
y=13e3x−4x33+143y = \frac{1}{3}e^{3x} - \frac{4x^3}{3} + \frac{14}{3}
Verification: to check this, take the derivative:
dydx=13⋅3⋅e3x−4⋅3x23+0=e3x−4x2✓\frac{dy}{dx} = \frac{1}{3} \cdot 3 \cdot e^{3x} - \frac{4 \cdot 3x^2}{3} + 0 = e^{3x} - 4x^2 \quad \checkmark
That matches the original differential equation, so the solution is correct.

Alternative Problem Wording

Differential equations get stated in a bunch of different ways. These are all equivalent:
  1. Derivative notation: “Find yy if dydx=e3x−4x2\frac{dy}{dx} = e^{3x} - 4x^2 and y(0)=5y(0) = 5”
  1. Slope language: “A curve has slope e3x−4x2e^{3x} - 4x^2 at each point. Find the equation of the curve if it passes through (0,5)(0, 5)”
  1. Rate of change language: “The rate of change of yy with respect to xx is e3x−4x2e^{3x} - 4x^2. What is yy if y=5y = 5 when x=0x = 0?”
All three describe the same problem.

Example 2: Second Derivative Problem

Problem: Find the particular solution to d2ydx2=x−2+(1−3x)2\frac{d^2y}{dx^2} = x^{-2} + (1 - 3x)^2, given that dydx=8\frac{dy}{dx} = 8 when x=1x = 1, and y=0y = 0 when x=1x = 1.
Step 1: Find the first derivative dydx\frac{dy}{dx}
Integrate the second derivative:
dydx=∫x−2 dx+∫(1−3x)2 dx\frac{dy}{dx} = \int x^{-2}\,dx + \int (1-3x)^2\,dx
For the second integral, use substitution with u=1−3xu = 1 - 3x, so du=−3 dxdu = -3\,dx, meaning dx=−du3dx = -\frac{du}{3}:
dydx=x−1−1+∫u2⋅(−du3)\frac{dy}{dx} = \frac{x^{-1}}{-1} + \int u^2 \cdot \left(-\frac{du}{3}\right)dydx=−1x−13⋅u33+C1\frac{dy}{dx} = -\frac{1}{x} - \frac{1}{3} \cdot \frac{u^3}{3} + C_1dydx=−1x−(1−3x)39+C1\frac{dy}{dx} = -\frac{1}{x} - \frac{(1-3x)^3}{9} + C_1
Step 2: Use the first initial condition to find C1C_1
When x=1x = 1, dydx=8\frac{dy}{dx} = 8:
8=−11−(1−3)39+C18 = -\frac{1}{1} - \frac{(1-3)^3}{9} + C_18=−1−(−2)39+C18 = -1 - \frac{(-2)^3}{9} + C_18=−1−−89+C18 = -1 - \frac{-8}{9} + C_18=−1+89+C18 = -1 + \frac{8}{9} + C_1C1=8+1−89=9−89=81−89=739C_1 = 8 + 1 - \frac{8}{9} = 9 - \frac{8}{9} = \frac{81 - 8}{9} = \frac{73}{9}
Step 3: Find yy by integrating again
y=∫(−1x−(1−3x)39+739) dxy = \int \left(-\frac{1}{x} - \frac{(1-3x)^3}{9} + \frac{73}{9}\right)\,dxy=−ln⁡∣x∣−19⋅(1−3x)44⋅1−3+73x9+C2y = -\ln|x| - \frac{1}{9} \cdot \frac{(1-3x)^4}{4} \cdot \frac{1}{-3} + \frac{73x}{9} + C_2y=−ln⁡∣x∣+(1−3x)4108+73x9+C2y = -\ln|x| + \frac{(1-3x)^4}{108} + \frac{73x}{9} + C_2
Step 4: Use the second initial condition to find C2C_2
When x=1x = 1, y=0y = 0:
0=−ln⁡(1)+(1−3)4108+739+C20 = -\ln(1) + \frac{(1-3)^4}{108} + \frac{73}{9} + C_20=0+16108+739+C20 = 0 + \frac{16}{108} + \frac{73}{9} + C_20=427+21927+C20 = \frac{4}{27} + \frac{219}{27} + C_2C2=−22327C_2 = -\frac{223}{27}
Step 5: Write the particular solution
y=−ln⁡∣x∣+(1−3x)4108+73x9−22327y = -\ln|x| + \frac{(1-3x)^4}{108} + \frac{73x}{9} - \frac{223}{27}

Important: Trig Derivatives and Antiderivatives

When you’re working with differential equations that involve trig functions, keep these straight.

Derivatives

ddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x] = \cos xddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x
Memory tip: if it starts with C (cosine), the derivative has a negative sign in front.

Antiderivatives

∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + C
Memory tip: if the answer starts with C (cosine), it has a negative sign in front.

Example 3: Finding an Unknown Constant

Problem: Given that y=ke−2x+3sin⁡(4x)y = ke^{-2x} + 3\sin(4x) is a solution to the differential equation d2ydx2+16y=−68e−2x\frac{d^2y}{dx^2} + 16y = -68e^{-2x}, find the value of kk.
Step 1: Find the first derivative
dydx=k(−2)e−2x+3(4)cos⁡(4x)\frac{dy}{dx} = k(-2)e^{-2x} + 3(4)\cos(4x)dydx=−2ke−2x+12cos⁡(4x)\frac{dy}{dx} = -2ke^{-2x} + 12\cos(4x)
Step 2: Find the second derivative
d2ydx2=−2k(−2)e−2x+12(−4)sin⁡(4x)\frac{d^2y}{dx^2} = -2k(-2)e^{-2x} + 12(-4)\sin(4x)d2ydx2=4ke−2x−48sin⁡(4x)\frac{d^2y}{dx^2} = 4ke^{-2x} - 48\sin(4x)
Step 3: Substitute into the differential equation
d2ydx2+16y=−68e−2x\frac{d^2y}{dx^2} + 16y = -68e^{-2x}[4ke−2x−48sin⁡(4x)]+16[ke−2x+3sin⁡(4x)]=−68e−2x\left[4ke^{-2x} - 48\sin(4x)\right] + 16\left[ke^{-2x} + 3\sin(4x)\right] = -68e^{-2x}
Step 4: Expand and simplify
4ke−2x−48sin⁡(4x)+16ke−2x+48sin⁡(4x)=−68e−2x4ke^{-2x} - 48\sin(4x) + 16ke^{-2x} + 48\sin(4x) = -68e^{-2x}
Notice the sine terms cancel:
20ke−2x=−68e−2x20ke^{-2x} = -68e^{-2x}
Step 5: Solve for kk
Divide both sides by e−2xe^{-2x}:
20k=−6820k = -68k=−6820=−175k = -\frac{68}{20} = -\frac{17}{5}

Key Takeaways

  • Particular solution: use initial conditions to solve for the constant CC
  • Verify solutions by taking the derivatives and checking that you get back the original differential equation
  • Infinitely many solutions: a differential equation usually has a whole family of solutions, one for each value of CC, and an initial condition picks one
  • Second derivatives: integrate twice, using an initial condition after each integration
  • Multiple initial conditions: you need one condition for each integration you perform
  • Trig derivatives: ddx[sin⁡x]=cos⁡x\frac{d}{dx}[\sin x] = \cos x and ddx[cos⁡x]=−sin⁡x\frac{d}{dx}[\cos x] = -\sin x
  • Trig antiderivatives: ∫sin⁡x dx=−cos⁡x+C\int \sin x\,dx = -\cos x + C and ∫cos⁡x dx=sin⁡x+C\int \cos x\,dx = \sin x + C
  • Finding constants in solutions: substitute the given function and its derivatives into the differential equation, then solve algebraically

AP® is a registered trademark of the College Board, which is not affiliated with Dove's Library and was not involved in the production of, and does not endorse, this website.

Providing free, high-quality AP notes to help students succeed, earn college credit, and reach their educational goals, ensuring everyone has access to the resources they need.

© 2026 Standard Learning Group, Inc., which operates Dove's Library. All rights reserved.