Particular vs. General Solutions
With differential equations, there are two types of solutions.
General solution: contains an arbitrary constant
C from integration.
y=∫f(x)dx+CParticular solution: a specific solution where
C has been pinned down using an initial condition, which is a given point the function passes through.
Because
C can be any number, a differential equation usually has
infinitely many solutions, one for each value of
C. 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:
- Find the derivative of the proposed function (or the derivatives, if the equation has dx2d2y)
- Substitute the function and its derivatives into both sides of the differential equation
- Simplify. If the two sides match for every x, it’s a solution
Example: Show that
y=2x+2+Cex is a solution to
dxdy=y−2x for any constant
C.
Left side:
dxdy=2+CexRight side:
y−2x=(2x+2+Cex)−2x=2+CexBoth sides equal
2+Cex ✓. This works no matter what
C is, so this one differential equation has infinitely many solutions.
A function that fails: try
y=2x+ex. The left side is
dxdy=2+ex, but the right side is
y−2x=ex. They’re off by
2, so it’s
not a solution.
Example 1: Finding a Particular Solution with a First Derivative
Problem: Find the particular solution to
dxdy=e3x−4x2 that passes through the point
(0,5).
Step 1: Integrate to find the general solution
We need to find
y by taking the antiderivative:
y=∫(e3x−4x2)dxFor the first term, use substitution with
u=3x, so
du=3dx, meaning
dx=3du:
y=∫eu⋅3du−∫4x2dxy=31e3x−34x3+CStep 2: Use the initial condition to find C Substitute the point
(0,5), so
x=0 and
y=5:
5=31e0−34(0)3+C5=31(1)−0+C5=31+CC=5−31=315−31=314Step 3: Write the particular solution
y=31e3x−34x3+314Verification: to check this, take the derivative:
dxdy=31⋅3⋅e3x−34⋅3x2+0=e3x−4x2✓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:
- Derivative notation: “Find y if dxdy=e3x−4x2 and y(0)=5”
- Slope language: “A curve has slope e3x−4x2 at each point. Find the equation of the curve if it passes through (0,5)”
- Rate of change language: “The rate of change of y with respect to x is e3x−4x2. What is y if y=5 when x=0?”
All three describe the same problem.
Example 2: Second Derivative Problem
Problem: Find the particular solution to
dx2d2y=x−2+(1−3x)2, given that
dxdy=8 when
x=1, and
y=0 when
x=1.
Step 1: Find the first derivative dxdy Integrate the second derivative:
dxdy=∫x−2dx+∫(1−3x)2dxFor the second integral, use substitution with
u=1−3x, so
du=−3dx, meaning
dx=−3du:
dxdy=−1x−1+∫u2⋅(−3du)dxdy=−x1−31⋅3u3+C1dxdy=−x1−9(1−3x)3+C1Step 2: Use the first initial condition to find C1 When
x=1,
dxdy=8:
8=−11−9(1−3)3+C18=−1−9(−2)3+C18=−1−9−8+C18=−1+98+C1C1=8+1−98=9−98=981−8=973Step 3: Find y by integrating again y=∫(−x1−9(1−3x)3+973)dxy=−ln∣x∣−91⋅4(1−3x)4⋅−31+973x+C2y=−ln∣x∣+108(1−3x)4+973x+C2Step 4: Use the second initial condition to find C2 When
x=1,
y=0:
0=−ln(1)+108(1−3)4+973+C20=0+10816+973+C20=274+27219+C2C2=−27223Step 5: Write the particular solution
y=−ln∣x∣+108(1−3x)4+973x−27223
Important: Trig Derivatives and Antiderivatives
When you’re working with differential equations that involve trig functions, keep these straight.
Derivatives
dxd[sinx]=cosxdxd[cosx]=−sinxMemory tip: if it starts with C (cosine), the derivative has a negative sign in front.
Antiderivatives
∫sinxdx=−cosx+C∫cosxdx=sinx+CMemory 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) is a solution to the differential equation
dx2d2y+16y=−68e−2x, find the value of
k.
Step 1: Find the first derivative
dxdy=k(−2)e−2x+3(4)cos(4x)dxdy=−2ke−2x+12cos(4x)Step 2: Find the second derivative
dx2d2y=−2k(−2)e−2x+12(−4)sin(4x)dx2d2y=4ke−2x−48sin(4x)Step 3: Substitute into the differential equation
dx2d2y+16y=−68e−2x[4ke−2x−48sin(4x)]+16[ke−2x+3sin(4x)]=−68e−2xStep 4: Expand and simplify
4ke−2x−48sin(4x)+16ke−2x+48sin(4x)=−68e−2xNotice the sine terms cancel:
20ke−2x=−68e−2xDivide both sides by
e−2x:
20k=−68k=−2068=−517
Key Takeaways
- Particular solution: use initial conditions to solve for the constant C
- 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 C, 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: dxd[sinx]=cosx and dxd[cosx]=−sinx
- Trig antiderivatives: ∫sinxdx=−cosx+C and ∫cosxdx=sinx+C
- Finding constants in solutions: substitute the given function and its derivatives into the differential equation, then solve algebraically