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=0
Why Higher-Order Equations Need More Solutions
y′′′−6y′′+11y′−6y=0
y=?
Solving the equation for y′′′ shows why a third-order equation needs three building-block solutions instead of two:
y′′′=6y′′−11y′+6y
The equation can only compute y′′′(0) after we give it three starting values at x=0: the starting height y(0), the starting slope y′(0), and the starting second derivative y′′(0). Matching three independent starting conditions requires three adjustable constants:
y=c1y1+c2y2+c3y3
In this family of solutions to y′′′−6y′′+11y′−6y=0, every curve starts at the same height y(0) with the same slope y′(0), yet changing the starting second derivative y′′(0) sends the curve along a completely different path for x>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=0 into y,y′, and y′′ gives three equations for c1,c2,c3. That system can match any starting state only when the determinant of its coefficient grid, called the Wronskian, is not zero:
W=y1y1′y1′′y2y2′y2′′y3y3′y3′′=0
1
Distinct Real Roots
Let's find the general solution of our third-order equation:
y′′′−6y′′+11y′−6y=0
Just as in second-order equations, trying y=erx turns each derivative into a power of r, leaving a cubic polynomial to factor.
Distinct Real Roots and Synthetic Division
y′′′−6y′′+11y′−6y=0
y=erx⟶r=?
Text solution
Turn derivatives into powers of rPlugging y=erx into the equation and factoring out erx replaces each derivative with the matching power of r:
r3−6r2+11r−6=0
Test divisors of −6 and divide out (r−1)Testing r=1 gives 1−6+11−6=0, so synthetic division by 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
Combine the three exponential solutionsThe roots r=1,2,3 give y1=ex,y2=e2x, and y3=e3x:
y=c1ex+c2e2x+c3e3x
So any linear combination of ex,e2x, and e3x is a solution to y′′′−6y′′+11y′−6y=0.
2
Checking Independence with a 3×3 Wronskian
To confirm that y1=ex,y2=e2x, and y3=e3x are genuinely independent building blocks, we evaluate their 3×3 Wronskian determinant.
A 2×2 determinant is the diagonal product ad minus the off-diagonal product bc:
acbd=ad−bc
A 3×3 determinant breaks into three 2×2 determinants across the top row using alternating signs +,−,+.
Evaluating a 3×3 Wronskian Determinant
y1y2y3=ex=e2x=e3x
W(y1,y2,y3)=?
Text solution
Stack the functions and their first two derivativesPlace y1,y2,y3 in the first row, y1′,y2′,y3′ in the second row, and y1′′,y2′′,y3′′ in the third row:
W=exexexe2x2e2x4e2xe3x3e3x9e3x
Expand across the top row with signs +,−,+Multiply each top-row entry by the 2×2 determinant left when its row and column are crossed out, adding exponents when multiplying exponentials:
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, each factor contributes its own building blocks:
Counting every root with its repetitions gives five independent terms for the fifth-order equation.
In the complex r-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 x 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′=4x+6e−x
The general solution is y=yh+yp, where yh solves the homogeneous equation (right side 0) and yp is one particular function that produces the right side. Finding yh first lets us check whether any piece of our guess for yp is already in yh.
Undetermined Coefficients with Root Overlap
y′′′−3y′′+2y′=4x+6e−x
y=yh+yp
yh=?,yp=?
Text solution
Find yh first to check for overlapBecause there is no y term on the left, r=0 is a root and e0x=1 puts a constant c1 into yh:
yhr3−3r2+2r=r(r−1)(r−2)=0=c1+c2ex+c3e2x
Multiply the overlapping polynomial guess by xThe constant C in the normal guess Bx+C for 4x overlaps c1 in yh, so we multiply the whole polynomial guess by x while keeping Ae−x as is:
yp=x(Bx+C)+Ae−x=Bx2+Cx+Ae−x
Differentiate yp and match coefficientsSubstituting yp′=2Bx+C−Ae−x,yp′′=2B+Ae−x, and yp′′′=−Ae−x into y′′′−3y′′+2y′=4x+6e−x gives A,B, and C:
Adding yp=x2+3x−e−x to yh gives the general solution y=c1+c2ex+c3e2x+x2+3x−e−x.
Whenever the left side has no plain y term, r=0 is a root and yh includes a constant c1, so any polynomial guess for the right side will need to be multiplied by at least x.
6
Repeated Root Overlap
What happens when multiplying our guess by a single x still gives a term inside yh? Let's solve:
y′′′−4y′′+4y′=12e2x
When the right side is a multiple of erx and r is a repeated root of the characteristic equation, multiplying by x once is not enough because xerx also makes the left side zero.
Undetermined Coefficients with Repeated Root Overlap
y′′′−4y′′+4y′=12e2x
yp=Ax?e2x
Text solution
Find yh and spot the repeated rootFactoring the characteristic equation gives r=0,2,2, so both e2x and xe2x are in yh:
yhr3−4r2+4r=r(r−2)2=0=c1+c2e2x+c3xe2x
Multiply the guess by x2 so neither term overlaps yhSince Ae2x and Axe2x both overlap yh, we multiply by x a second time:
yp=Ax2e2x
Plug the derivatives into the equation and solve for AUsing yp′=A(2x2+2x)e2x,yp′′=A(4x2+8x+2)e2x, and yp′′′=A(8x2+24x+12)e2x, all x2 and x terms cancel out:
Adding yp=61e2x to yh gives the general solution y=c1+c2ex+c3e−x+61e2x.
Key concepts
An n-th order linear differential equation needs n independent solutions to match n starting conditions at x=0, tested by an n×n Wronskian determinant W=0.
Homogeneous solution (yh)
Turn derivatives into powers of r. 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)=0. Every time a real root or complex pair α±iβ repeats, multiply the new copy by the next power of x:(r−2)3=0 gives c1e2x+c2xe2x+c3x2e2x, and (r2+4)2=0 gives c1cos(2x)+c2sin(2x)+c3xcos(2x)+c4xsin(2x).
Particular solution (yp)
Always write yh 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 x (or xm) only when a term in that piece matches yh: in y′′′−3y′′+2y′=4x+6e−x with yh=c1+c2ex+c3e2x, the polynomial guess Bx+C overlaps c1 and becomes x(Bx+C)=Bx2+Cx, whereas Ae−x does not overlap yh and stays Ae−x.
Variation of Parameters (yp=u1y1+u2y2+u3y3) works on any g(x) by solving the Wronskian system with right-hand side (0,0,g(x)) for u1′,u2′,u3′ 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.
How many times does the real root r=3 repeat, and what pair of roots comes from r2+16=0?
The factor (r−3)3=0 gives the triple real root r=3,3,3, which contributes c1e3x+c2xe3x+c3x2e3x. Setting r2+16=0 gives r2=−16, so r=±4i (watch out for treating r2+16=0 like r2−16=0 with real roots ±4, which would give c1e3x+c2xe3x+c3x2e3x+c4e4x+c5e−4x). Combining all five terms:
y=c1e3x+c2xe3x+c3x2e3x+c4cos(4x)+c5sin(4x)
2
Find the general solution of y′′′−2y′′−5y′+6y=0.
Test r=1 in the characteristic polynomial r3−2r2−5r+6=0, then divide out the corresponding factor.
The characteristic equation is r3−2r2−5r+6=0. Testing r=1 gives 1−2−5+6=0, so (r−1) is a factor. Synthetic division by r=1 leaves r2−r−6, which factors as (r+2)(r−3):
(r−1)(r+2)(r−3)=0
Reading the roots from each factor gives r=1,−2,3 (be careful not to copy the factor signs directly as r=−1,2,−3, which gives y=c1e−x+c2e2x+c3e−3x).
y=c1ex+c2e−2x+c3e3x
3
Compute the Wronskian W of y1=e−x,y2=ex, and y3=e2x to determine whether they are linearly independent.
Expand across the top row using signs +,−,+; pay close attention to the alternating signs when differentiating e−x.
Stack the functions and their first two derivatives into the 3×3 determinant:
W=e−x−e−xe−xexexexe2x2e2x4e2x
Expand across the top row using +,−,+ (forgetting the minus sign in front of the middle entry ex turns its piece +6e2x into −6e2x, which gives W=−6e2x):
W=6e2x=0, so the three functions are linearly independent everywhere.
4
Find the general solution of y(4)+18y′′+81y=0.
Rewrite r4+18r2+81=0 as a perfect square in r2.
The characteristic equation r4+18r2+81=0 factors as (r2+9)2=0. Solving r2+9=0 gives r=±3i repeated twice (don't forget to take the square root of 9 when finding β=3; using 9 directly gives y=c1cos(9x)+c2sin(9x)+c3xcos(9x)+c4xsin(9x)). Multiplying the second pair by x:
y=c1cos(3x)+c2sin(3x)+c3xcos(3x)+c4xsin(3x)
5
Solve the initial value problem y′′′−2y′′−y′+2y=0, given y(0)=2,y′(0)=5,y′′(0)=5.
Factor r3−2r2−r+2=0 to get y, and watch the sign of the e−x term when taking the first versus the second derivative.
Factoring r2(r−2)−1(r−2)=(r−1)(r+1)(r−2)=0 gives y=c1ex+c2e−x+c3e2x. Differentiating and plugging in x=0 gives:
(Watch the sign of c2 in y′′(0): leaving a minus sign as c1−c2+4c3=5 gives c3=0,c1=27,c2=−23 and y=27ex−23e−x.) Subtracting (1) from (3) immediately gives 3c3=3⟹c3=1. Then (1)+(2) gives 2c1+3c3=7⟹c1=2, and (1) gives 2+c2+1=2⟹c2=−1:
y=2ex−e−x+e2x
6
Use Undetermined Coefficients to find the general solution of y′′′−4y′′+3y′=18x+8e−x.
Check the lowest derivative on the left side first: which piece of your guess for yp overlaps yh, and which piece does not?
Factoring r3−4r2+3r=r(r−1)(r−3)=0 gives yh=c1+c2ex+c3e3x. Because c1 is in yh, we multiply the polynomial guess Bx+C by x to get Bx2+Cx, while Ae−x has no overlap (if you forget to multiply Bx+C by x, the left side becomes 3B−8Ae−x, with no x term to match 18x; if you drop the Cx term and only guess Bx2+Ae−x, matching the x terms gives B=3, but the left side then has a constant −24 with nothing to cancel it, so y=c1+c2ex+c3e3x+3x2−e−x does not solve the equation). Substituting yp=Bx2+Cx+Ae−x into y′′′−4y′′+3y′=18x+8e−x gives:
6Bx+(−8B+3C)−8Ae−x=18x+8e−x
Matching coefficients gives 6B=18⟹B=3,−8(3)+3C=0⟹C=8, and −8A=8⟹A=−1:
y=c1+c2ex+c3e3x+3x2+8x−e−x
7
Use Undetermined Coefficients to find the general solution of y′′′−6y′′+9y′=18e3x.
Factor r3−6r2+9r=0 completely to see how many times r=3 repeats in yh.
Factoring r(r−3)2=0 gives r=0,3,3, so yh=c1+c2e3x+c3xe3x. Since both e3x and xe3x are in yh, we multiply Ae3x by x2 to get yp=Ax2e3x. Computing derivatives gives yp′=A(3x2+2x)e3x,yp′′=A(9x2+12x+2)e3x, and yp′′′=A(27x2+54x+18)e3x. Plugging these in cancels all x2 and x terms and leaves the constant part (18−6(2)+0)Ae3x=6Ae3x=18e3x (forgetting the 2 from (x2)′′=2 in yp′′, and then differentiating A(9x2+12x)e3x to get yp′′′, leaves 12Ae3x=18e3x⟹A=23, which gives y=c1+c2e3x+c3xe3x+23x2e3x). Solving 6A=18 gives A=3:
y=c1+c2e3x+c3xe3x+3x2e3x
8
Use Variation of Parameters to find the general solution of y′′′−4y′=15e3x.
With y1=1,y2=e2x, and y3=e−2x, use the second and third Wronskian rows to solve for u2′ and u3′ first.
Factoring r3−4r=r(r−2)(r+2)=0 gives y1=1,y2=e2x,y3=e−2x. The Wronskian system is:
From (2) and (3),8u2′e2x=15e3x⟹u2′=815ex, and 8u3′e−2x=15e3x⟹u3′=815e5x. Then (1) gives u1′=−415e3x. Integrating each derivative (remember to divide by the exponent 3 and 5; forgetting to divide when integrating e3x and e5x gives u1=−415e3x and u3=815e5x, which cancels out to yp=0) gives: