Differential EquationsNonhomogeneous and Higher-Order Equations4 of 4
Nonhomogeneous and Higher-Order Equations · 4

Higher-Order Linear Equations

We know how to solve second-order linear equations, and now we want to solve linear differential equations with third, fourth, and higher derivatives:

y′′′−6y′′+11y′−6y\displaystyle \unknown{y'''} - 6\unknown{y''} + 11\unknown{y'} - 6\unknown{y} =0\displaystyle = 0
Why Higher-Order Equations Need More Solutions
y′′′−6y′′+11y′−6y\displaystyle \unknown{y'''} - 6\unknown{y''} + 11\unknown{y'} - 6\unknown{y} =0\displaystyle = 0
y\displaystyle \unknown{y} =  ?\displaystyle = \;?

Solving the equation for y′′′\unknown{y'''} shows why a third-order equation needs three building-block solutions instead of two:

y′′′\displaystyle \unknown{y'''} =6y′′−11y′+6y\displaystyle = 6\unknown{y''} - 11\unknown{y'} + 6\unknown{y}

The equation can only compute y′′′(0)y'''(0) after we give it three starting values at x=0x = 0: the starting height y(0)\unknown{y(0)}, the starting slope y′(0)\slope{y'(0)}, and the starting second derivative y′′(0)\bend{y''(0)}. Matching three independent starting conditions requires three adjustable constants:

y\displaystyle \unknown{y} =c1y1+c2y2+c3y3\displaystyle = c_1 y_1 + c_2 y_2 + c_3 y_3

In this family of solutions to y′′′−6y′′+11y′−6y=0\unknown{y'''} - 6\unknown{y''} + 11\unknown{y'} - 6\unknown{y} = 0, every curve starts at the same height y(0)\unknown{y(0)} with the same slope y′(0)\slope{y'(0)}, yet changing the starting second derivative y′′(0)\bend{y''(0)} sends the curve along a completely different path for x>0x > 0.

Even when every curve starts at the same height and slope, changing the starting bend still sends the solution along a different path.

Plugging x=0x = 0 into y\unknown{y}, y′\slope{y'}, and y′′\bend{y''} gives three equations for c1,c2,c3c_1, c_2, c_3. That system can match any starting state only when the determinant of its coefficient grid, called the Wronskian, is not zero:

W=∣y1y2y3y1′y2′y3′y1′′y2′′y3′′∣≠0\displaystyle W = \begin{vmatrix} y_1 & y_2 & y_3 \\ y_1' & y_2' & y_3' \\ y_1'' & y_2'' & y_3'' \end{vmatrix} \neq 0
1

Distinct Real Roots

Let's find the general solution of our third-order equation:

y′′′−6y′′+11y′−6y\displaystyle \unknown{y'''} - 6\unknown{y''} + 11\unknown{y'} - 6\unknown{y} =0\displaystyle = 0

Just as in second-order equations, trying y=erx\unknown{y} = \unknown{e^{rx}} turns each derivative into a power of rr, leaving a cubic polynomial to factor.

Distinct Real Roots and Synthetic Division
y′′′−6y′′+11y′−6y\displaystyle \unknown{y'''} - 6\unknown{y''} + 11\unknown{y'} - 6\unknown{y} =0\displaystyle = 0
y\displaystyle \unknown{y} =erx⟶r\displaystyle = \unknown{e^{rx}} \quad\longrightarrow\quad r =  ?\displaystyle = \;?
Text solution
Turn derivatives into powers of rrPlugging y=erx\unknown{y} = \unknown{e^{rx}} into the equation and factoring out erx\unknown{e^{rx}} replaces each derivative with the matching power of rr:
r3−6r2+11r−6\displaystyle r^3 - 6r^2 + 11r - 6 =0\displaystyle = 0
Test divisors of −6-6 and divide out (r−1)\blockone{(r - 1)}Testing r=1r = \blockone{1} gives 1−6+11−6=01 - 6 + 11 - 6 = 0, so synthetic division by r−1\blockone{r - 1} reduces the cubic to a quadratic we can factor directly:
r3−6r2+11r−6=(r−1)(r2−5r+6)=(r−1)(r−2)(r−3)=0\displaystyle \begin{aligned} &r^3 - 6r^2 + 11r - 6 \\ &= \blockone{(r - 1)}(r^2 - 5r + 6) \\ &= \blockone{(r - 1)}\blocktwo{(r - 2)}\blockthree{(r - 3)} = 0 \end{aligned}
Combine the three exponential solutionsThe roots r=1,2,3r = \blockone{1}, \blocktwo{2}, \blockthree{3} give y1=ex\blockone{y_1 = e^x}, y2=e2x\blocktwo{y_2 = e^{2x}}, and y3=e3x\blockthree{y_3 = e^{3x}}:
y\displaystyle \unknown{y} =c1ex+c2e2x+c3e3x\displaystyle = \blockone{c_1 e^x} + \blocktwo{c_2 e^{2x}} + \blockthree{c_3 e^{3x}}

So any linear combination of ex\blockone{e^x}, e2x\blocktwo{e^{2x}}, and e3x\blockthree{e^{3x}} is a solution to y′′′−6y′′+11y′−6y=0\unknown{y'''} - 6\unknown{y''} + 11\unknown{y'} - 6\unknown{y} = 0.

2

Checking Independence with a 3×33 \times 3 Wronskian

To confirm that y1=ex\blockone{y_1 = e^x}, y2=e2x\blocktwo{y_2 = e^{2x}}, and y3=e3x\blockthree{y_3 = e^{3x}} are genuinely independent building blocks, we evaluate their 3×33 \times 3 Wronskian determinant.

A 2×22 \times 2 determinant is the diagonal product adad minus the off-diagonal product bcbc:

∣abcd∣=ad−bc\displaystyle \begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

A 3×33 \times 3 determinant breaks into three 2×22 \times 2 determinants across the top row using alternating signs +,−,++, -, +.

W=W =
++
−-
++
ex\htmlClass{lc-green}{e^{x}}
e2x\htmlClass{lc-violet}{e^{2x}}
e3x\htmlClass{lc-orange}{e^{3x}}
ex\htmlClass{lc-green}{e^{x}}
2e2x\htmlClass{lc-violet}{2e^{2x}}
3e3x\htmlClass{lc-orange}{3e^{3x}}
ex\htmlClass{lc-green}{e^{x}}
4e2x\htmlClass{lc-violet}{4e^{2x}}
9e3x\htmlClass{lc-orange}{9e^{3x}}
==
ex\htmlClass{lc-green}{e^{x}}
2e2x\htmlClass{lc-violet}{2e^{2x}}
3e3x\htmlClass{lc-orange}{3e^{3x}}
4e2x\htmlClass{lc-violet}{4e^{2x}}
9e3x\htmlClass{lc-orange}{9e^{3x}}
− ⋯+⋯-\:\cdots + \cdots
Evaluating a 3×3 Wronskian Determinant
y1=exy2=e2xy3=e3x\displaystyle \begin{aligned} \blockone{y_1} &= \blockone{e^{x}} \\ \blocktwo{y_2} &= \blocktwo{e^{2x}} \\ \blockthree{y_3} &= \blockthree{e^{3x}} \end{aligned}
W(y1,y2,y3)\displaystyle W(\blockone{y_1}, \blocktwo{y_2}, \blockthree{y_3}) =  ?\displaystyle = \;?
Text solution
Stack the functions and their first two derivativesPlace y1,y2,y3\blockone{y_1}, \blocktwo{y_2}, \blockthree{y_3} in the first row, y1′,y2′,y3′\blockone{y_1'}, \blocktwo{y_2'}, \blockthree{y_3'} in the second row, and y1′′,y2′′,y3′′\blockone{y_1''}, \blocktwo{y_2''}, \blockthree{y_3''} in the third row:
W=∣exe2xe3xex2e2x3e3xex4e2x9e3x∣\displaystyle W = \begin{vmatrix} \blockone{e^x} & \blocktwo{e^{2x}} & \blockthree{e^{3x}} \\ \blockone{e^x} & \blocktwo{2e^{2x}} & \blockthree{3e^{3x}} \\ \blockone{e^x} & \blocktwo{4e^{2x}} & \blockthree{9e^{3x}} \end{vmatrix}
Expand across the top row with signs +,−,++, -, +Multiply each top-row entry by the 2×22 \times 2 determinant left when its row and column are crossed out, adding exponents when multiplying exponentials:
W=ex∣2e2x3e3x4e2x9e3x∣−e2x∣ex3e3xex9e3x∣+e3x∣ex2e2xex4e2x∣=ex(18e5x−12e5x)−e2x(9e4x−3e4x)+e3x(4e3x−2e3x)=6e6x−6e6x+2e6x=2e6x\displaystyle \begin{aligned} W &= \blockone{e^x} \begin{vmatrix} \blocktwo{2e^{2x}} & \blockthree{3e^{3x}} \\ \blocktwo{4e^{2x}} & \blockthree{9e^{3x}} \end{vmatrix} \\ &\quad - \blocktwo{e^{2x}} \begin{vmatrix} \blockone{e^x} & \blockthree{3e^{3x}} \\ \blockone{e^x} & \blockthree{9e^{3x}} \end{vmatrix} \\ &\quad + \blockthree{e^{3x}} \begin{vmatrix} \blockone{e^x} & \blocktwo{2e^{2x}} \\ \blockone{e^x} & \blocktwo{4e^{2x}} \end{vmatrix} \\ &= \blockone{e^x}(18e^{5x} - 12e^{5x}) \\ &\quad - \blocktwo{e^{2x}}(9e^{4x} - 3e^{4x}) \\ &\quad + \blockthree{e^{3x}}(4e^{3x} - 2e^{3x}) \\ &= 6e^{6x} - 6e^{6x} + 2e^{6x} \\ &= 2e^{6x} \end{aligned}

Because e6xe^{6x} is never zero, W=2e6x≠0W = 2e^{6x} \neq 0, which proves ex\blockone{e^x}, e2x\blocktwo{e^{2x}}, and e3x\blockthree{e^{3x}} are linearly independent everywhere.

3

Solving a Third-Order Initial Value Problem

Now let's find the single curve from y=c1ex+c2e2x+c3e3x\unknown{y} = \blockone{c_1 e^x} + \blocktwo{c_2 e^{2x}} + \blockthree{c_3 e^{3x}} that starts at x=0x = 0 with

y(0)\displaystyle \unknown{y(0)} =2,y′(0)\displaystyle = 2, \quad \unknown{y'(0)} =3,y′′(0)\displaystyle = 3, \quad \unknown{y''(0)} =7\displaystyle = 7

Plugging x=0x = 0 into y\unknown{y}, y′\unknown{y'}, and y′′\unknown{y''} gives three equations for c1,c2,c3\blockone{c_1}, \blocktwo{c_2}, \blockthree{c_3}.

Solving a Third-Order Initial Value Problem
y(0)\displaystyle \unknown{y(0)} =2,y′(0)\displaystyle = 2,\quad \unknown{y'(0)} =3,y′′(0)\displaystyle = 3,\quad \unknown{y''(0)} =7\displaystyle = 7
y(x)\displaystyle \unknown{y(x)} =c1ex+c2e2x+c3e3x\displaystyle = \blockone{c_1e^{x}} + \blocktwo{c_2e^{2x}} + \blockthree{c_3e^{3x}}
c1, c2, c3\displaystyle \blockone{c_1},\ \blocktwo{c_2},\ \blockthree{c_3} =  ?\displaystyle = \;?
Text solution
Differentiate twice and plug in x=0x = 0Evaluating y\unknown{y}, y′\unknown{y'}, and y′′\unknown{y''} at x=0x = 0 (where e0=1e^0 = 1) gives three linear equations:
y(0)=c1+c2+c3=2(1)y′(0)=c1+2c2+3c3=3(2)y′′(0)=c1+4c2+9c3=7(3)\displaystyle \begin{aligned} \unknown{y(0)} &= \blockone{c_1} + \blocktwo{c_2} + \blockthree{c_3} = 2 && (1) \\ \unknown{y'(0)} &= \blockone{c_1} + \blocktwo{2c_2} + \blockthree{3c_3} = 3 && (2) \\ \unknown{y''(0)} &= \blockone{c_1} + \blocktwo{4c_2} + \blockthree{9c_3} = 7 && (3) \end{aligned}
Eliminate c1\blockone{c_1} using equations (1)(1), (2)(2), and (3)(3)Subtracting equation (1)(1) from equations (2)(2) and (3)(3) drops the system down to two unknowns:
(2)−(1):c2+2c3=1(3)−(1):3c2+8c3=5\displaystyle \begin{aligned} (2) - (1): \quad \blocktwo{c_2} + \blockthree{2c_3} &= 1 \\ (3) - (1): \quad \blocktwo{3c_2} + \blockthree{8c_3} &= 5 \end{aligned}
Solve for c3\blockthree{c_3}, then back-substitute for c2\blocktwo{c_2} and c1\blockone{c_1}Subtracting 3(c2+2c3=1)3(\blocktwo{c_2} + \blockthree{2c_3} = 1) from 3c2+8c3=5\blocktwo{3c_2} + \blockthree{8c_3} = 5 isolates c3\blockthree{c_3}:
(3c2+8c3)−(3c2+6c3)=5−32c3=2  ⟹  c3=1c2+2(1)=1  ⟹  c2=−1c1+(−1)+1=2  ⟹  c1=2\displaystyle \begin{aligned} (\blocktwo{3c_2} + \blockthree{8c_3}) - (\blocktwo{3c_2} + \blockthree{6c_3}) &= 5 - 3 \\ \blockthree{2c_3} &= 2 \\ \implies \blockthree{c_3} &= 1 \\ \blocktwo{c_2} + 2(1) &= 1 \\ \implies \blocktwo{c_2} &= -1 \\ \blockone{c_1} + (-1) + 1 &= 2 \\ \implies \blockone{c_1} &= 2 \end{aligned}

Putting c1=2\blockone{c_1} = 2, c2=−1\blocktwo{c_2} = -1, and c3=1\blockthree{c_3} = 1 into the general solution gives y=2ex−e2x+e3x\unknown{y} = \blockone{2e^x} - \blocktwo{e^{2x}} + \blockthree{e^{3x}} as the exact curve matching all three starting conditions.

4

Repeated Real and Complex Roots

Higher-order equations can have a real root repeated three or more times, or even a repeated pair of complex roots:

y′′′−6y′′+12y′−8y\displaystyle \unknown{y'''} - 6\unknown{y''} + 12\unknown{y'} - 8\unknown{y} =0andy(4)+8y′′+16y\displaystyle = 0 \qquad \text{and} \qquad \unknown{y^{(4)}} + 8\unknown{y''} + 16\unknown{y} =0\displaystyle = 0

Whether a root is real or a complex pair r=α±iβr = \alpha \pm i\beta, each repetition multiplies the new solution by another factor of xx.

Repeated Real and Complex Roots
y′′′−6y′′+12y′−8y=0y(4)+8y′′+16y=0\displaystyle \begin{aligned} \unknown{y'''} - 6\unknown{y''} + 12\unknown{y'} - 8\unknown{y} &= 0 \\ \unknown{y^{(4)}} + 8\unknown{y''} + 16\unknown{y} &= 0 \end{aligned}
y\displaystyle \unknown{y} =  ?\displaystyle = \;?
Text solution
Multiply by x\blocktwo{x} and x2\blockthree{x^2} for a triple real rootFor y′′′−6y′′+12y′−8y=0\unknown{y'''} - 6\unknown{y''} + 12\unknown{y'} - 8\unknown{y} = 0, the characteristic equation has r=2r = 2 repeated three times:
r3−6r2+12r−8=(r−2)3=0y=c1e2x+c2xe2x+c3x2e2x\displaystyle \begin{aligned} &r^3 - 6r^2 + 12r - 8 \\ &= (r - 2)^3 = 0 \\ \unknown{y} &= \blockone{c_1 e^{2x}} + \blocktwo{c_2 x e^{2x}} + \blockthree{c_3 x^2 e^{2x}} \end{aligned}
Multiply both sine and cosine by x\blocktwo{x} for a repeated complex pairFor y(4)+8y′′+16y=0\unknown{y^{(4)}} + 8\unknown{y''} + 16\unknown{y} = 0, the characteristic polynomial is a square with r=±2ir = \pm 2i twice:
r4+8r2+16=(r2+4)2=0y=c1cos⁡(2x)+c2sin⁡(2x)+c3xcos⁡(2x)+c4xsin⁡(2x)\displaystyle \begin{aligned} &r^4 + 8r^2 + 16 \\ &= (r^2 + 4)^2 = 0 \\ \unknown{y} &= \blockone{c_1 \cos(2x)} + \blockone{c_2 \sin(2x)} \\ &\quad + \blocktwo{c_3 x\cos(2x)} + \blocktwo{c_4 x\sin(2x)} \end{aligned}
Read off mixed factors from left to rightWhen the characteristic equation of a fifth-order equation factors as (r−4)(r+1)2(r2+9)=0(r - 4)(r + 1)^2(r^2 + 9) = 0, each factor contributes its own building blocks:
y=c1e4x⏟r=4+c2e−x+c3xe−x⏟r=−1,−1+c4cos⁡(3x)+c5sin⁡(3x)⏟r=±3i\displaystyle \begin{aligned} \unknown{y} = {}&\underbrace{\blockone{c_1 e^{4x}}}_{r = \blockone{4}} + \underbrace{\blockone{c_2 e^{-x}} + \blocktwo{c_3 x e^{-x}}}_{r = \blockone{-1}, \blocktwo{-1}} \\ &+ \underbrace{\blockone{c_4 \cos(3x)} + \blockone{c_5 \sin(3x)}}_{r = \blockone{\pm 3i}} \end{aligned}

Counting every root with its repetitions gives five independent terms for the fifth-order equation.

In the complex rr-plane, roots off the real axis give sine and cosine waves, and when two roots merge at the same spot, the second solution gets multiplied by xx instead of repeating the first.

Moving a root off the real axis turns its exponential curve into a wave, and stacking roots at the same spot makes a new curve instead of a duplicate.
5

Undetermined Coefficients with Root Overlap

Now let's solve a nonhomogeneous equation with a forcing term on the right side:

y′′′−3y′′+2y′\displaystyle \unknown{y'''} - 3\unknown{y''} + 2\unknown{y'} =4x+6e−x\displaystyle = \force{4x + 6e^{-x}}

The general solution is y=yh+yp\unknown{y} = \homog{y_h} + \force{y_p}, where yh\homog{y_h} solves the homogeneous equation (right side 00) and yp\force{y_p} is one particular function that produces the right side. Finding yh\homog{y_h} first lets us check whether any piece of our guess for yp\force{y_p} is already in yh\homog{y_h}.

Undetermined Coefficients with Root Overlap
y′′′−3y′′+2y′\displaystyle \unknown{y'''} - 3\unknown{y''} + 2\unknown{y'} =4x+6e−x\displaystyle = \force{4x + 6e^{-x}}
y\displaystyle \unknown{y} =yh+yp\displaystyle = \homog{y_h} + \force{y_p}
yh\displaystyle \homog{y_h} =  ?,yp\displaystyle = \;?,\qquad \force{y_p} =  ?\displaystyle = \;?
Text solution
Find yh\homog{y_h} first to check for overlapBecause there is no y\unknown{y} term on the left, r=0r = 0 is a root and e0x=1e^{0x} = 1 puts a constant c1\homog{c_1} into yh\homog{y_h}:
r3−3r2+2r=r(r−1)(r−2)=0yh=c1+c2ex+c3e2x\displaystyle \begin{aligned} &r^3 - 3r^2 + 2r \\ &= r(r - 1)(r - 2) = 0 \\ \homog{y_h} &= \homog{c_1} + \homog{c_2 e^x} + \homog{c_3 e^{2x}} \end{aligned}
Multiply the overlapping polynomial guess by xxThe constant C\force{C} in the normal guess Bx+C\force{Bx + C} for 4x\force{4x} overlaps c1\homog{c_1} in yh\homog{y_h}, so we multiply the whole polynomial guess by xx while keeping Ae−x\force{Ae^{-x}} as is:
yp\displaystyle \force{y_p} =x(Bx+C)+Ae−x\displaystyle = x(\force{Bx + C}) + \force{Ae^{-x}} =Bx2+Cx+Ae−x\displaystyle = \force{Bx^2 + Cx} + \force{Ae^{-x}}
Differentiate yp\force{y_p} and match coefficientsSubstituting yp′=2Bx+C−Ae−x\force{y_p'} = 2\force{B}x + \force{C} - \force{A}e^{-x}, yp′′=2B+Ae−x\force{y_p''} = 2\force{B} + \force{A}e^{-x}, and yp′′′=−Ae−x\force{y_p'''} = -\force{A}e^{-x} into y′′′−3y′′+2y′=4x+6e−x\unknown{y'''} - 3\unknown{y''} + 2\unknown{y'} = \force{4x + 6e^{-x}} gives A\force{A}, B\force{B}, and C\force{C}:
(−Ae−x)−3(2B+Ae−x)+2(2Bx+C−Ae−x)=4x+6e−x4Bx+(−6B+2C)−6Ae−x=4x+6e−x4B=4  ⟹  B=1−6(1)+2C=0  ⟹  C=3−6A=6  ⟹  A=−1\displaystyle \begin{gathered} \begin{aligned} &(-\force{A}e^{-x}) - 3(2\force{B} + \force{A}e^{-x}) \\ &\quad + 2(2\force{B}x + \force{C} - \force{A}e^{-x}) \\ &= \force{4x + 6e^{-x}} \\[8pt] &4\force{B}x + (-6\force{B} + 2\force{C}) - 6\force{A}e^{-x} \\ &= \force{4x + 6e^{-x}} \end{aligned} \\[8pt] \begin{aligned} 4\force{B} = 4 \implies \force{B} &= 1 \\ -6(1) + 2\force{C} = 0 \implies \force{C} &= 3 \\ -6\force{A} = 6 \implies \force{A} &= -1 \end{aligned} \end{gathered}

Adding yp=x2+3x−e−x\force{y_p} = \force{x^2 + 3x - e^{-x}} to yh\homog{y_h} gives the general solution y=c1+c2ex+c3e2x+x2+3x−e−x\unknown{y} = \homog{c_1 + c_2 e^x + c_3 e^{2x}} + \force{x^2 + 3x - e^{-x}}.

Whenever the left side has no plain y\unknown{y} term, r=0r = 0 is a root and yh\homog{y_h} includes a constant c1\homog{c_1}, so any polynomial guess for the right side will need to be multiplied by at least xx.

6

Repeated Root Overlap

What happens when multiplying our guess by a single xx still gives a term inside yh\homog{y_h}? Let's solve:

y′′′−4y′′+4y′\displaystyle \unknown{y'''} - 4\unknown{y''} + 4\unknown{y'} =12e2x\displaystyle = \force{12e^{2x}}

When the right side is a multiple of erxe^{rx} and rr is a repeated root of the characteristic equation, multiplying by xx once is not enough because xerxxe^{rx} also makes the left side zero.

Undetermined Coefficients with Repeated Root Overlap
y′′′−4y′′+4y′\displaystyle \unknown{y'''} - 4\unknown{y''} + 4\unknown{y'} =12e2x\displaystyle = \force{12e^{2x}}
yp\displaystyle \force{y_p} =Ax?e2x\displaystyle = \force{A}x^{?}\force{e^{2x}}
Text solution
Find yh\homog{y_h} and spot the repeated rootFactoring the characteristic equation gives r=0,2,2r = 0, 2, 2, so both e2x\homog{e^{2x}} and xe2x\homog{xe^{2x}} are in yh\homog{y_h}:
r3−4r2+4r=r(r−2)2=0yh=c1+c2e2x+c3xe2x\displaystyle \begin{aligned} &r^3 - 4r^2 + 4r \\ &= r(r - 2)^2 = 0 \\ \homog{y_h} &= \homog{c_1} + \homog{c_2 e^{2x}} + \homog{c_3 x e^{2x}} \end{aligned}
Multiply the guess by x2x^2 so neither term overlaps yh\homog{y_h}Since Ae2x\force{Ae^{2x}} and Axe2x\force{Axe^{2x}} both overlap yh\homog{y_h}, we multiply by xx a second time:
yp\displaystyle \force{y_p} =Ax2e2x\displaystyle = \force{A}x^2 \force{e^{2x}}
Plug the derivatives into the equation and solve for A\force{A}Using yp′=A(2x2+2x)e2x\force{y_p'} = \force{A}(2x^2 + 2x)e^{2x}, yp′′=A(4x2+8x+2)e2x\force{y_p''} = \force{A}(4x^2 + 8x + 2)e^{2x}, and yp′′′=A(8x2+24x+12)e2x\force{y_p'''} = \force{A}(8x^2 + 24x + 12)e^{2x}, all x2x^2 and xx terms cancel out:
A[(8x2+24x+12)−4(4x2+8x+2)+4(2x2+2x)]e2x=12e2x4Ae2x=12e2x  ⟹  A=3\displaystyle \begin{aligned} &\force{A}\big[(8x^2 + 24x + 12) \\ &\quad - 4(4x^2 + 8x + 2) \\ &\quad + 4(2x^2 + 2x)\big]e^{2x} \\ &= \force{12e^{2x}} \\ 4\force{A}e^{2x} &= \force{12e^{2x}} \implies \force{A} = 3 \end{aligned}

Combining yp=3x2e2x\force{y_p} = \force{3x^2 e^{2x}} with yh\homog{y_h} gives the full solution y=c1+c2e2x+c3xe2x+3x2e2x\unknown{y} = \homog{c_1 + c_2 e^{2x} + c_3 x e^{2x}} + \force{3x^2 e^{2x}}.

7

Variation of Parameters

To find a particular solution yp\force{y_p} for any right-hand side g(x)\force{g(x)}, we replace the constants in yhy_h with unknown functions u1(x),u2(x),u3(x)\vpone{u_1(x)}, \vptwo{u_2(x)}, \vpthree{u_3(x)}:

yp\displaystyle \force{y_p} =u1y1+u2y2+u3y3\displaystyle = \vpone{u_1 y_1} + \vptwo{u_2 y_2} + \vpthree{u_3 y_3}

Let's use this method to solve:

y′′′−y′\displaystyle \unknown{y'''} - \unknown{y'} =e2x\displaystyle = \force{e^{2x}}

To find u1,u2,u3\vpone{u_1}, \vptwo{u_2}, \vpthree{u_3}, we first solve a 3×33 \times 3 system for their derivatives u1′,u2′,u3′\vpone{u_1'}, \vptwo{u_2'}, \vpthree{u_3'}.

Variation of Parameters for Higher-Order Equations
y′′′+⋯\displaystyle \unknown{y'''} + \cdots =g(x)\displaystyle = \force{g(x)}
yp\displaystyle \force{y_p} =u1y1+u2y2+u3y3\displaystyle = \vpone{u_1y_1} + \vptwo{u_2y_2} + \vpthree{u_3y_3}
u1, u2, u3\displaystyle \vpone{u_1},\ \vptwo{u_2},\ \vpthree{u_3} =  ?\displaystyle = \;?

When the coefficient of y′′′\unknown{y'''} is 11, the derivatives u1′,u2′,u3′\vpone{u_1'}, \vptwo{u_2'}, \vpthree{u_3'} satisfy:

u1′y1+u2′y2+u3′y3=0u1′y1′+u2′y2′+u3′y3′=0u1′y1′′+u2′y2′′+u3′y3′′=g(x)\displaystyle \begin{aligned} \vpone{u_1' y_1} + \vptwo{u_2' y_2} + \vpthree{u_3' y_3} &= 0 \\ \vpone{u_1' y_1'} + \vptwo{u_2' y_2'} + \vpthree{u_3' y_3'} &= 0 \\ \vpone{u_1' y_1''} + \vptwo{u_2' y_2''} + \vpthree{u_3' y_3''} &= \force{g(x)} \end{aligned}
Text solution
Find the homogeneous building blocks y1,y2,y3\vpone{y_1}, \vptwo{y_2}, \vpthree{y_3}Factoring r3−r=r(r−1)(r+1)=0r^3 - r = r(r - 1)(r + 1) = 0 gives roots r=0,1,−1r = 0, 1, -1:
y1=1,y2=ex,y3=e−x\displaystyle \vpone{y_1 = 1}, \quad \vptwo{y_2 = e^x}, \quad \vpthree{y_3 = e^{-x}}
Set up the Wronskian system for u1′,u2′,u3′\vpone{u_1'}, \vptwo{u_2'}, \vpthree{u_3'}Put y1,y2,y3\vpone{y_1}, \vptwo{y_2}, \vpthree{y_3} and their first two derivatives on the left, with 0,0,e2x0, 0, \force{e^{2x}} on the right:
u1′(1)+u2′ex+u3′e−x=0(1)u1′(0)+u2′ex−u3′e−x=0(2)u1′(0)+u2′ex+u3′e−x=e2x(3)\displaystyle \begin{aligned} \vpone{u_1'(1)} + \vptwo{u_2' e^x} + \vpthree{u_3' e^{-x}} &= 0 && (1) \\ \vpone{u_1'(0)} + \vptwo{u_2' e^x} - \vpthree{u_3' e^{-x}} &= 0 && (2) \\ \vpone{u_1'(0)} + \vptwo{u_2' e^x} + \vpthree{u_3' e^{-x}} &= \force{e^{2x}} && (3) \end{aligned}
Solve for u2′,u3′,u1′\vptwo{u_2'}, \vpthree{u_3'}, \vpone{u_1'} by eliminationAdding and subtracting equations (2)(2) and (3)(3) gives u2′\vptwo{u_2'} and u3′\vpthree{u_3'}, and substituting into (1)(1) gives u1′\vpone{u_1'}:
(2)+(3):2u2′ex=e2x  ⟹  u2′=12ex(3)−(2):2u3′e−x=e2x  ⟹  u3′=12e3x(1):u1′+12e2x+12e2x=0  ⟹  u1′=−e2x\displaystyle \begin{aligned} (2) + (3): \quad \vptwo{2u_2' e^x} &= \force{e^{2x}} \\ \implies \vptwo{u_2'} &= \tfrac{1}{2}e^x \\ (3) - (2): \quad \vpthree{2u_3' e^{-x}} &= \force{e^{2x}} \\ \implies \vpthree{u_3'} &= \tfrac{1}{2}e^{3x} \\ (1): \quad \vpone{u_1'} + \vptwo{\tfrac{1}{2}e^{2x}} + \vpthree{\tfrac{1}{2}e^{2x}} &= 0 \\ \implies \vpone{u_1'} &= -e^{2x} \end{aligned}
Integrate each u′u' and assemble yp\force{y_p}Integrating gives u1=−12e2x\vpone{u_1} = -\tfrac{1}{2}e^{2x}, u2=12ex\vptwo{u_2} = \tfrac{1}{2}e^x, and u3=16e3x\vpthree{u_3} = \tfrac{1}{6}e^{3x}, which combine into yp\force{y_p}:
yp=u1y1+u2y2+u3y3=(−12e2x)(1)+(12ex)(ex)+(16e3x)(e−x)=−12e2x+12e2x+16e2x=16e2x\displaystyle \begin{aligned} \force{y_p} &= \vpone{u_1 y_1} + \vptwo{u_2 y_2} + \vpthree{u_3 y_3} \\ &= \vpone{\left(-\tfrac{1}{2}e^{2x}\right)(1)} + \vptwo{\left(\tfrac{1}{2}e^x\right)(e^x)} \\ &\quad + \vpthree{\left(\tfrac{1}{6}e^{3x}\right)(e^{-x})} \\ &= \vpone{-\tfrac{1}{2}e^{2x}} + \vptwo{\tfrac{1}{2}e^{2x}} + \vpthree{\tfrac{1}{6}e^{2x}} \\ &= \force{\tfrac{1}{6}e^{2x}} \end{aligned}

Adding yp=16e2x\force{y_p} = \force{\tfrac{1}{6}e^{2x}} to yhy_h gives the general solution y=c1+c2ex+c3e−x+16e2x\unknown{y} = \vpone{c_1} + \vptwo{c_2 e^x} + \vpthree{c_3 e^{-x}} + \force{\tfrac{1}{6}e^{2x}}.

Key concepts

An nn-th order linear differential equation needs nn independent solutions to match nn starting conditions at x=0x = 0, tested by an n×nn \times n Wronskian determinant W≠0W \neq 0.

Homogeneous solution (yh\homog{y_h})

Turn derivatives into powers of rr. Test small divisors of the constant term and use synthetic division to factor higher-degree polynomials like r3−6r2+11r−6=(r−1)(r−2)(r−3)=0r^3 - 6r^2 + 11r - 6 \\ = \blockone{(r - 1)}\blocktwo{(r - 2)}\blockthree{(r - 3)} = 0. Every time a real root or complex pair α±iβ\alpha \pm i\beta repeats, multiply the new copy by the next power of xx: (r−2)3=0(r - 2)^3 = 0 gives c1e2x+c2xe2x+c3x2e2x\blockone{c_1 e^{2x}} + \blocktwo{c_2 x e^{2x}} + \blockthree{c_3 x^2 e^{2x}}, and (r2+4)2=0(r^2 + 4)^2 = 0 gives c1cos⁡(2x)+c2sin⁡(2x)+c3xcos⁡(2x)+c4xsin⁡(2x)\blockone{c_1 \cos(2x)} + \blockone{c_2 \sin(2x)} \\ {}+ \blocktwo{c_3 x\cos(2x)} + \blocktwo{c_4 x\sin(2x)}.

Particular solution (yp\force{y_p})

Always write yh\homog{y_h} first.

  • Undetermined Coefficients is the fast choice when the right side is built from polynomials, exponentials, or sines and cosines. Multiply a piece of your guess by xx (or xmx^m) only when a term in that piece matches yh\homog{y_h}: in y′′′−3y′′+2y′=4x+6e−x\unknown{y'''} - 3\unknown{y''} + 2\unknown{y'} = \force{4x + 6e^{-x}} with yh=c1+c2ex+c3e2x\homog{y_h} = \homog{c_1} + \homog{c_2 e^x} + \homog{c_3 e^{2x}}, the polynomial guess Bx+C\force{Bx + C} overlaps c1\homog{c_1} and becomes x(Bx+C)=Bx2+Cxx(\force{Bx + C}) = \force{Bx^2 + Cx}, whereas Ae−x\force{Ae^{-x}} does not overlap yh\homog{y_h} and stays Ae−x\force{Ae^{-x}}.
  • Variation of Parameters (yp=u1y1+u2y2+u3y3\force{y_p} = \vpone{u_1 y_1} + \vptwo{u_2 y_2} + \vpthree{u_3 y_3}) works on any g(x)\force{g(x)} by solving the Wronskian system with right-hand side (0,0,g(x))(0, 0, \force{g(x)}) for u1′,u2′,u3′\vpone{u_1'}, \vptwo{u_2'}, \vpthree{u_3'} and integrating.
8

Practice

1

Write the general solution of the fifth-order differential equation whose characteristic equation factors as (r−3)3(r2+16)=0(r - 3)^3(r^2 + 16) = 0.

How many times does the real root r=3r = 3 repeat, and what pair of roots comes from r2+16=0r^2 + 16 = 0?

The factor (r−3)3=0(r - 3)^3 = 0 gives the triple real root r=3,3,3r = \blockone{3}, \blocktwo{3}, \blockthree{3}, which contributes c1e3x+c2xe3x+c3x2e3x\blockone{c_1 e^{3x}} + \blocktwo{c_2 x e^{3x}} + \blockthree{c_3 x^2 e^{3x}}. Setting r2+16=0r^2 + 16 = 0 gives r2=−16r^2 = -16, so r=±4ir = \pm 4i (watch out for treating r2+16=0r^2 + 16 = 0 like r2−16=0r^2 - 16 = 0 with real roots ±4\pm 4, which would give c1e3x+c2xe3x+c3x2e3x+c4e4x+c5e−4x\blockone{c_1 e^{3x}} + \blocktwo{c_2 x e^{3x}} + \blockthree{c_3 x^2 e^{3x}} + \blockone{c_4 e^{4x}} + \blockone{c_5 e^{-4x}}). Combining all five terms:
y\displaystyle \unknown{y} =c1e3x+c2xe3x+c3x2e3x+c4cos⁡(4x)+c5sin⁡(4x)\displaystyle = \blockone{c_1e^{3x}} + \blocktwo{c_2xe^{3x}} + \blockthree{c_3x^2e^{3x}} + \blockone{c_4\cos(4x)} + \blockone{c_5\sin(4x)}
2

Find the general solution of y′′′−2y′′−5y′+6y=0\unknown{y'''} - 2\unknown{y''} - 5\unknown{y'} + 6\unknown{y} = 0.

Test r=1r = 1 in the characteristic polynomial r3−2r2−5r+6=0r^3 - 2r^2 - 5r + 6 = 0, then divide out the corresponding factor.

The characteristic equation is r3−2r2−5r+6=0r^3 - 2r^2 - 5r + 6 = 0. Testing r=1r = \blockone{1} gives 1−2−5+6=01 - 2 - 5 + 6 = 0, so (r−1)\blockone{(r - 1)} is a factor. Synthetic division by r=1r = \blockone{1} leaves r2−r−6r^2 - r - 6, which factors as (r+2)(r−3)\blocktwo{(r + 2)}\blockthree{(r - 3)}:
(r−1)(r+2)(r−3)\displaystyle \blockone{(r - 1)}\blocktwo{(r + 2)}\blockthree{(r - 3)} =0\displaystyle = 0
Reading the roots from each factor gives r=1,−2,3r = \blockone{1}, \blocktwo{-2}, \blockthree{3} (be careful not to copy the factor signs directly as r=−1,2,−3r = -1, 2, -3, which gives y=c1e−x+c2e2x+c3e−3x\unknown{y} = \blockone{c_1e^{-x}} + \blocktwo{c_2e^{2x}} + \blockthree{c_3e^{-3x}}).
y\displaystyle \unknown{y} =c1ex+c2e−2x+c3e3x\displaystyle = \blockone{c_1e^x} + \blocktwo{c_2e^{-2x}} + \blockthree{c_3e^{3x}}
3

Compute the Wronskian WW of y1=e−x\blockone{y_1 = e^{-x}}, y2=ex\blocktwo{y_2 = e^x}, and y3=e2x\blockthree{y_3 = e^{2x}} to determine whether they are linearly independent.

Expand across the top row using signs +,−,++, -, +; pay close attention to the alternating signs when differentiating e−xe^{-x}.

Stack the functions and their first two derivatives into the 3×33 \times 3 determinant:
W=∣e−xexe2x−e−xex2e2xe−xex4e2x∣\displaystyle W = \begin{vmatrix} \blockone{e^{-x}} & \blocktwo{e^x} & \blockthree{e^{2x}} \\ \blockone{-e^{-x}} & \blocktwo{e^x} & \blockthree{2e^{2x}} \\ \blockone{e^{-x}} & \blocktwo{e^x} & \blockthree{4e^{2x}} \end{vmatrix}
Expand across the top row using +,−,++, -, + (forgetting the minus sign in front of the middle entry ex\blocktwo{e^x} turns its piece +6e2x+6e^{2x} into −6e2x-6e^{2x}, which gives W=−6e2xW = -6e^{2x}):
W=e−x(4e3x−2e3x)−ex(−4ex−2ex)+e2x(−1−1)=2e2x+6e2x−2e2x=6e2x\displaystyle \begin{aligned} W &= \blockone{e^{-x}}(4e^{3x} - 2e^{3x}) &&- \blocktwo{e^x}(-4e^x - 2e^x) &&+ \blockthree{e^{2x}}(-1 - 1) \\ &= 2e^{2x} &&+ 6e^{2x} &&- 2e^{2x} \\ &= 6e^{2x} \end{aligned}
W=6e2x≠0W = 6e^{2x} \neq 0, so the three functions are linearly independent everywhere.
4

Find the general solution of y(4)+18y′′+81y=0\unknown{y^{(4)}} + 18\unknown{y''} + 81\unknown{y} = 0.

Rewrite r4+18r2+81=0r^4 + 18r^2 + 81 = 0 as a perfect square in r2r^2.

The characteristic equation r4+18r2+81=0r^4 + 18r^2 + 81 = 0 factors as (r2+9)2=0(r^2 + 9)^2 = 0. Solving r2+9=0r^2 + 9 = 0 gives r=±3ir = \pm 3i repeated twice (don't forget to take the square root of 99 when finding β=3\beta = 3; using 99 directly gives y=c1cos⁡(9x)+c2sin⁡(9x)+c3xcos⁡(9x)+c4xsin⁡(9x)\unknown{y} = \blockone{c_1\cos(9x)} + \blockone{c_2\sin(9x)} + \blocktwo{c_3x\cos(9x)} + \blocktwo{c_4x\sin(9x)}). Multiplying the second pair by x\blocktwo{x}:
y\displaystyle \unknown{y} =c1cos⁡(3x)+c2sin⁡(3x)+c3xcos⁡(3x)+c4xsin⁡(3x)\displaystyle = \blockone{c_1\cos(3x)} + \blockone{c_2\sin(3x)} + \blocktwo{c_3x\cos(3x)} + \blocktwo{c_4x\sin(3x)}
5

Solve the initial value problem y′′′−2y′′−y′+2y=0\unknown{y'''} - 2\unknown{y''} - \unknown{y'} + 2\unknown{y} = 0, given y(0)=2\unknown{y(0)} = 2, y′(0)=5\unknown{y'(0)} = 5, y′′(0)=5\unknown{y''(0)} = 5.

Factor r3−2r2−r+2=0r^3 - 2r^2 - r + 2 = 0 to get y\unknown{y}, and watch the sign of the e−xe^{-x} term when taking the first versus the second derivative.

Factoring r2(r−2)−1(r−2)=(r−1)(r+1)(r−2)=0r^2(r - 2) - 1(r - 2) = \blockone{(r - 1)}\blocktwo{(r + 1)}\blockthree{(r - 2)} = 0 gives y=c1ex+c2e−x+c3e2x\unknown{y} = \blockone{c_1 e^x} + \blocktwo{c_2 e^{-x}} + \blockthree{c_3 e^{2x}}. Differentiating and plugging in x=0x = 0 gives:
y(0)=c1+c2+c3=2(1)y′(0)=c1−c2+2c3=5(2)y′′(0)=c1+c2+4c3=5(3)\displaystyle \begin{aligned} \unknown{y(0)} &= \blockone{c_1} + \blocktwo{c_2} + \blockthree{c_3} = 2 && (1) \\ \unknown{y'(0)} &= \blockone{c_1} - \blocktwo{c_2} + \blockthree{2c_3} = 5 && (2) \\ \unknown{y''(0)} &= \blockone{c_1} + \blocktwo{c_2} + \blockthree{4c_3} = 5 && (3) \end{aligned}
(Watch the sign of c2\blocktwo{c_2} in y′′(0)\unknown{y''(0)}: leaving a minus sign as c1−c2+4c3=5\blockone{c_1} - \blocktwo{c_2} + \blockthree{4c_3} = 5 gives c3=0,c1=72,c2=−32\blockthree{c_3} = 0, \blockone{c_1} = \tfrac{7}{2}, \blocktwo{c_2} = -\tfrac{3}{2} and y=72ex−32e−x\unknown{y} = \blockone{\tfrac{7}{2}e^x} - \blocktwo{\tfrac{3}{2}e^{-x}}.) Subtracting (1)(1) from (3)(3) immediately gives 3c3=3  ⟹  c3=1\blockthree{3c_3} = 3 \implies \blockthree{c_3} = 1. Then (1)+(2)(1) + (2) gives 2c1+3c3=7  ⟹  c1=2\blockone{2c_1} + \blockthree{3c_3} = 7 \implies \blockone{c_1} = 2, and (1)(1) gives 2+c2+1=2  ⟹  c2=−12 + \blocktwo{c_2} + 1 = 2 \implies \blocktwo{c_2} = -1:
y\displaystyle \unknown{y} =2ex−e−x+e2x\displaystyle = \blockone{2e^x} - \blocktwo{e^{-x}} + \blockthree{e^{2x}}
6

Use Undetermined Coefficients to find the general solution of y′′′−4y′′+3y′=18x+8e−x\unknown{y'''} - 4\unknown{y''} + 3\unknown{y'} = \force{18x + 8e^{-x}}.

Check the lowest derivative on the left side first: which piece of your guess for yp\force{y_p} overlaps yh\homog{y_h}, and which piece does not?

Factoring r3−4r2+3r=r(r−1)(r−3)=0r^3 - 4r^2 + 3r = r(r - 1)(r - 3) = 0 gives yh=c1+c2ex+c3e3x\homog{y_h} = \homog{c_1} + \homog{c_2 e^x} + \homog{c_3 e^{3x}}. Because c1\homog{c_1} is in yh\homog{y_h}, we multiply the polynomial guess Bx+C\force{Bx + C} by xx to get Bx2+Cx\force{Bx^2 + Cx}, while Ae−x\force{Ae^{-x}} has no overlap (if you forget to multiply Bx+C\force{Bx + C} by xx, the left side becomes 3B−8Ae−x3\force{B} - 8\force{A}e^{-x}, with no xx term to match 18x\force{18x}; if you drop the Cx\force{Cx} term and only guess Bx2+Ae−x\force{Bx^2} + \force{Ae^{-x}}, matching the xx terms gives B=3\force{B} = 3, but the left side then has a constant −24-24 with nothing to cancel it, so y=c1+c2ex+c3e3x+3x2−e−x\unknown{y} = \homog{c_1 + c_2e^x + c_3e^{3x}} + \force{3x^2 - e^{-x}} does not solve the equation). Substituting yp=Bx2+Cx+Ae−x\force{y_p} = \force{Bx^2 + Cx + Ae^{-x}} into y′′′−4y′′+3y′=18x+8e−x\unknown{y'''} - 4\unknown{y''} + 3\unknown{y'} = \force{18x + 8e^{-x}} gives:
6Bx+(−8B+3C)−8Ae−x\displaystyle 6\force{B}x + (-8\force{B} + 3\force{C}) - 8\force{A}e^{-x} =18x+8e−x\displaystyle = \force{18x + 8e^{-x}}
Matching coefficients gives 6B=18  ⟹  B=36\force{B} = 18 \implies \force{B} = 3, −8(3)+3C=0  ⟹  C=8-8(3) + 3\force{C} = 0 \implies \force{C} = 8, and −8A=8  ⟹  A=−1-8\force{A} = 8 \implies \force{A} = -1:
y\displaystyle \unknown{y} =c1+c2ex+c3e3x+3x2+8x−e−x\displaystyle = \homog{c_1 + c_2e^x + c_3e^{3x}} + \force{3x^2 + 8x - e^{-x}}
7

Use Undetermined Coefficients to find the general solution of y′′′−6y′′+9y′=18e3x\unknown{y'''} - 6\unknown{y''} + 9\unknown{y'} = \force{18e^{3x}}.

Factor r3−6r2+9r=0r^3 - 6r^2 + 9r = 0 completely to see how many times r=3r = 3 repeats in yh\homog{y_h}.

Factoring r(r−3)2=0r(r - 3)^2 = 0 gives r=0,3,3r = 0, 3, 3, so yh=c1+c2e3x+c3xe3x\homog{y_h} = \homog{c_1} + \homog{c_2 e^{3x}} + \homog{c_3 x e^{3x}}. Since both e3x\homog{e^{3x}} and xe3x\homog{xe^{3x}} are in yh\homog{y_h}, we multiply Ae3x\force{Ae^{3x}} by x2x^2 to get yp=Ax2e3x\force{y_p} = \force{A}x^2 \force{e^{3x}}. Computing derivatives gives yp′=A(3x2+2x)e3x\force{y_p'} = \force{A}(3x^2 + 2x)e^{3x}, yp′′=A(9x2+12x+2)e3x\force{y_p''} = \force{A}(9x^2 + 12x + 2)e^{3x}, and yp′′′=A(27x2+54x+18)e3x\force{y_p'''} = \force{A}(27x^2 + 54x + 18)e^{3x}. Plugging these in cancels all x2x^2 and xx terms and leaves the constant part (18−6(2)+0)Ae3x=6Ae3x=18e3x(18 - 6(2) + 0)\force{A}e^{3x} = 6\force{A}e^{3x} = \force{18e^{3x}} (forgetting the 22 from (x2)′′=2(x^2)'' = 2 in yp′′\force{y_p''}, and then differentiating A(9x2+12x)e3x\force{A}(9x^2 + 12x)e^{3x} to get yp′′′\force{y_p'''}, leaves 12Ae3x=18e3x  ⟹  A=3212\force{A}e^{3x} = \force{18e^{3x}} \implies \force{A} = \tfrac{3}{2}, which gives y=c1+c2e3x+c3xe3x+32x2e3x\unknown{y} = \homog{c_1 + c_2e^{3x} + c_3xe^{3x}} + \force{\tfrac{3}{2}x^2e^{3x}}). Solving 6A=186\force{A} = 18 gives A=3\force{A} = 3:
y\displaystyle \unknown{y} =c1+c2e3x+c3xe3x+3x2e3x\displaystyle = \homog{c_1 + c_2e^{3x} + c_3xe^{3x}} + \force{3x^2e^{3x}}
8

Use Variation of Parameters to find the general solution of y′′′−4y′=15e3x\unknown{y'''} - 4\unknown{y'} = \force{15e^{3x}}.

With y1=1\vpone{y_1 = 1}, y2=e2x\vptwo{y_2 = e^{2x}}, and y3=e−2x\vpthree{y_3 = e^{-2x}}, use the second and third Wronskian rows to solve for u2′\vptwo{u_2'} and u3′\vpthree{u_3'} first.

Factoring r3−4r=r(r−2)(r+2)=0r^3 - 4r = r(r - 2)(r + 2) = 0 gives y1=1\vpone{y_1 = 1}, y2=e2x\vptwo{y_2 = e^{2x}}, y3=e−2x\vpthree{y_3 = e^{-2x}}. The Wronskian system is:
u1′(1)+u2′e2x+u3′e−2x=0(1)2u2′e2x−2u3′e−2x=0(2)4u2′e2x+4u3′e−2x=15e3x(3)\displaystyle \begin{aligned} \vpone{u_1'(1)} + \vptwo{u_2' e^{2x}} + \vpthree{u_3' e^{-2x}} &= 0 && (1) \\ \vptwo{2u_2' e^{2x}} - \vpthree{2u_3' e^{-2x}} &= 0 && (2) \\ \vptwo{4u_2' e^{2x}} + \vpthree{4u_3' e^{-2x}} &= \force{15e^{3x}} && (3) \end{aligned}
From (2)(2) and (3)(3), 8u2′e2x=15e3x  ⟹  u2′=158ex\vptwo{8u_2' e^{2x}} = \force{15e^{3x}} \implies \vptwo{u_2'} = \tfrac{15}{8}e^x, and 8u3′e−2x=15e3x  ⟹  u3′=158e5x\vpthree{8u_3' e^{-2x}} = \force{15e^{3x}} \implies \vpthree{u_3'} = \tfrac{15}{8}e^{5x}. Then (1)(1) gives u1′=−154e3x\vpone{u_1'} = -\tfrac{15}{4}e^{3x}. Integrating each derivative (remember to divide by the exponent 33 and 55; forgetting to divide when integrating e3xe^{3x} and e5xe^{5x} gives u1=−154e3x\vpone{u_1} = -\tfrac{15}{4}e^{3x} and u3=158e5x\vpthree{u_3} = \tfrac{15}{8}e^{5x}, which cancels out to yp=0\force{y_p} = 0) gives:
u1=−54e3x,u2=158ex,u3=38e5x,giving yp=e3xand y=c1+c2e2x+c3e−2x+e3x\displaystyle \begin{aligned} \vpone{u_1} &= -\frac{5}{4}e^{3x}, \\ \vptwo{u_2} &= \frac{15}{8}e^x, \\ \vpthree{u_3} &= \frac{3}{8}e^{5x}, \\ \text{giving } \force{y_p} &= \force{e^{3x}} \\ \text{and } \unknown{y} &= \vpone{c_1} + \vptwo{c_2e^{2x}} + \vpthree{c_3e^{-2x}} + \force{e^{3x}} \end{aligned}