Differential EquationsSecond-Order Linear Equations6 of 6
Second-Order Linear Equations · 6
Repeated Roots and Reduction of Order
To solve a second-order differential equation and match two initial conditions, we need two linearly independent solutions, but sometimes our exponential guess only gives us one.
1
When a repeated root leaves us short a solution
Suppose we want to solve this initial value problem for y(t):
y′′−6y′+9y=0,y(0)=1,y′(0)=5
Trying y=ert gives the characteristic quadratic (r−3)2=0, which only gives us a single exponential solution, e3t. Why isn't y=Ce3t enough to match both initial conditions?
Why a repeated root leaves us short a solution
y′′−6y′+9y=0
y(0)=1,y′(0)=5
y(t)=?
Using e3t twice just combines the two constants into one:
Matching the starting position y(0)=1 forces C=1, which locks in y(t)=e3t with a starting slope of 3 and leaves no second constant to reach the target slope of 5.
2
Finding the second solution by Reduction of Order
Since y=Ce3t only gives us one solution, we need a second, linearly independent solution to y′′−6y′+9y=0.Reduction of Order is the method for finding a second independent solution whenever we already know one working solution: instead of multiplying e3t by a constant C, we multiply it by an unknown function u(t) and substitute it into the differential equation to see what u(t) must be:
y(t)=unknown functionu(t)⋅known solutione3t
Where the t in teʳᵗ comes from
Text solution
1. Differentiate y=ue3t twice using the product ruleSince both u(t) and e3t depend on t, we apply the product rule twice and factor out e3t at each step.
2. Substitute into y′′−6y′+9y=0 and group by u′′,u′, and uCollecting like terms shows that both the u terms and the u′ terms cancel completely to zero.
(u′′+6u′+9u)e3t−6(u′+3u)e3t+9(ue3t)[u′′+=0(slope at r=3)(6−6)u′+=0(height at r=3)(9−18+9)u]e3tu′′e3t=0=0=0
3. Divide out e3t and integrate twice for u(t)Because e3t is never zero, we can divide by it and integrate u′′=0 twice to get back both constants.
u′′u′u(t)=0=c2=c1+c2t
4. Multiply u(t) by e3t to form the general solutionPutting u(t)=c1+c2t back into y=u(t)e3t gives the two linearly independent solutions.
y(t)=(c1+c2t)e3t=c1e3t+c2te3t
So the missing second solution is te3t, where the factor of t comes from integrating u′′=0 twice after both the u and u′ terms cancel out.
When we plug y=u(t)e3t into the equation, the number in front of u is the characteristic parabola's height at r=3, and the number in front of u′ is its slope at r=3. Because r=3 is a root, the height is already zero. And when the second root moves to 3 as well, the parabola sits right on the axis at r=3, so its slope drops to zero too and only u′′=0 is left.
A root makes the parabola's height zero so the u term drops out, and a double root makes its slope zero too so the u′ term drops out as well.
3
Solving the initial value problem with a repeated root
Now that we have the general solution y(t)=c1e3t+c2te3t with two constants, we can finish solving our initial value problem:
y′′−6y′+9y=0,y(0)=1,y′(0)=5
Solving an initial value problem with a repeated root
Text solution
1. Plug t=0 into y(t) to match the starting position y(0)=1The factor of t makes the entire c2te3t term zero at t=0, giving c1 right away.
y(0)=c1e0+c2(0)e0=c1=1
2. Differentiate y(t) using the product rule on te3tBecause te3t is a product of t and e3t, differentiating the second term gives two terms.
y′(t)=3c1e3t+c2(1⋅e3t+t⋅3e3t)
3. Plug t=0 and c1=1 into y′(t) to match the starting velocity y′(0)=5When t=0, the 1⋅e0 part from the product rule doesn't become zero, so c2 stays in the equation and we can solve for it.
Putting c1=1 and c2=2 back into the general solution gives the unique solution that starts at height 1 with slope 5:
y(t)=e3t+2te3t
On an exam, watch out for the product rule when differentiating c2tert: if you forget the product rule and write 3c2te3t, plugging in t=0 makes the c2 term zero and leaves you with 3=5.
At t=0, the new piece c2te3t has height 0 and slope c2. Adding it to e3t lets us adjust the starting slope to 3+c2 (which reaches 5 when c2=2) without changing the starting height of 1.
Because the second curve starts at zero, adding it tilts the starting slope to any angle without moving the starting point.
For any constant-coefficient equation whose characteristic quadratic has a repeated root r, you can write down the general solution right away without redoing the u(t) steps:
Repeated root r:y(t)=c1ert+c2tert
4
Reduction of Order with variable coefficients
When the coefficients in the differential equation depend on t, we cannot write a characteristic quadratic ar2+br+c=0, and simply multiplying by t no longer gives a second solution. Instead, given one working solution y1(t)=et to the variable-coefficient equation
ty′′−(t+1)y′+y=0,t>0
we want to find a second linearly independent solution y2(t) and the general solution y(t) by setting y=u(t)y1(t)=u(t)et.
Reduction of order with variable coefficients
ty′′−(t+1)y′+y=0
t>0
y1(t)=et
y2(t)=?
Text solution
1. Differentiate y=uet twice with the product ruleUsing the product rule and factoring out et writes y′ and y′′ in terms of u and its derivatives.
yy′y′′=uet=(u′+u)et=(u′′+2u′+u)et
2. Substitute into ty′′−(t+1)y′+y=0, divide out et, and group by u′′,u′, and uBecause y1=et is already a solution to the equation, all the u terms (with no derivatives) add up to zero and cancel out.
t(u′′+2u′+u)−(t+1)(u′+u)+utu′′+[2t−(t+1)]u′+=0 since etis a solution[t−(t+1)+1]utu′′+(t−1)u′=0=0=0
3. Substitute w=u′ to reduce the equation to first order and separate variablesWith no u term left, replacing u′ with w and u′′ with w′=dtdw turns the equation into a first-order separable equation for w.
4. Integrate both sides for w and rewrite as u′Integrating both sides and raising e to both sides gives w=u′. We can wait until the final general solution to include the constants c1 and c2.
ln∣w∣wu′=ln∣t∣−t=elnt−t=elnt⋅e−t=te−t=te−t
5. Integrate u′ by parts to find u(t) and multiply by y1=etUsing integration by parts (∫te−tdt=−te−t−∫(−e−t)dt) gives u(t), and multiplying by et cancels e−t.
Dropping the −1 factor gives our second linearly independent solution y2(t)=t+1, so the general solution is:
y(t)=c1et+c2(t+1)
Use the cancellation of the u terms as a built-in check on exams: if the u terms do not add up to zero after you plug in y=uy1, stop and check your product-rule derivatives before going any further. And rather than memorizing the big integral formula y2(t)=y1(t)∫(y1(t))2e−∫P(t)dtdt, where a missed minus sign or leading coefficient ruins the whole answer, just set y=uy1, let the u terms cancel, and solve the first-order equation for w=u′.
Key concepts
Solving these second-order equations comes down to whether you have constant coefficients or variable coefficients:
Constant coefficients (ay′′+by′+cy=0)
Start with the characteristic equation ar2+br+c=0.
When not to use repeated-root or reduction-of-order steps: If the quadratic factors into two distinct roots r1=r2, such as (r−3)(r−1)=0, you already have two independent solutions (y(t)=c1e3t+c2et) and do not multiply by t.
When a root repeats (r1=r2=r): If the quadratic is a perfect square like (r−3)2=0, skip the u(t) steps and multiply the second exponential by t:
y(t)for r=3:y(t)=c1ert+c2tert=c1e3t+c2te3t
Initial conditions with tert: Plug in t=0 first so c2tert becomes zero and gives c1, then use the product rule on c2tert so c2ert doesn't become zero at t=0 and gives c2.
Variable coefficients with one known solution y1(t)
You cannot use a characteristic quadratic or just multiply y1(t) by t. Use Reduction of Order by setting y=u(t)y1(t) (such as y=u(t)et):
Differentiate y=uy1 twice with the product rule and plug into the differential equation.
Group by u′′,u′, and u, and check that the u coefficient cancels to 0.
Set w=u′ and w′=u′′ to get a first-order equation in w (such as tw′+(t−1)w=0), solve for w=u′, integrate once to find u(t), and multiply back by y1(t) to get y2(t)=u(t)y1(t).
5
Practice
1
Find the general solution to 4y′′+12y′+9y=0.
Write the characteristic quadratic in r and factor it as a perfect square (2r+?)2=0.
Substitute y=ert to get the characteristic equation and factor:
4r2+12r+9(2r+3)2r=0=0=−23,−23
Watch out: When solving 2r+3=0, forgetting to divide by the leading 2 gives r=−3 (and the wrong answer y(t)=c1e−3t+c2te−3t), and dropping the minus sign gives r=23 (and the wrong answer y(t)=c1e3t/2+c2te3t/2).
With the repeated root r=−23, include the factor of t on the second term:
y(t)=c1e−3t/2+c2te−3t/2
2
Solve the initial value problem y′′+4y′+4y=0,y(0)=3,y′(0)=−1.
Find the general solution from the repeated root first, plug in t=0 to get c1, and remember the product rule when differentiating c2tert.
Factor the characteristic equation to find the repeated root and write the general solution:
r2+4r+4=(r+2)2y(t)=0⟹r=−2,−2=c1e−2t+c2te−2t
Match the starting position y(0)=3:
y(0)=c1e0+c2(0)e0=c1=3
Differentiate y(t) using the product rule on te−2t and plug in t=0 and c1=3:
Watch out: Dropping the negative sign from the chain rule on e−2t gives 2c1+c2=−1 (or subtracting 6 instead of adding 6 to −1), which leads to c2=−7 and the wrong answer y(t)=3e−2t−7te−2t.
y(t)=3e−2t+5te−2t
3
Given that y1(t)=t2 is a solution to t2y′′−3ty′+4y=0 for t>0, use reduction of order to find a second linearly independent solution y2(t) and the general solution.
Substitute y=u(t)t2, check that the u terms cancel to zero, and set w=u′ in what remains.
Set y=ut2 and differentiate twice with the product rule:
Watch out: When differentiating y′=u′t2+2tu, forgetting the product rule on u′t2 gives 2tu′ instead of 4tu′, which changes the u′ term below to −t3u′ and leads to the wrong answer y2(t)=t4.
Substitute into t2y′′−3ty′+4y=0 and group by u′′,u′, and u:
Integrate u′=t1 once for u(t) and multiply by y1(t)=t2:
u(t)y2(t)=∫t1dt=ln(t)=u(t)t2=t2ln(t)
Watch out: Stopping at u(t)=ln(t) without multiplying back by y1(t)=t2 gives the wrong answer y2(t)=ln(t) and y(t)=c1t2+c2ln(t).
y2(t)=t2ln(t);y(t)=c1t2+c2t2ln(t)
4
Given that y1(t)=e−t is a solution to ty′′+(t−1)y′−y=0 for t>0, use reduction of order to find a second linearly independent solution y2(t) and the general solution.
Substitute y=u(t)e−t, keep track of the minus signs when differentiating e−t, and set w=u′ after the u terms cancel.
Set y=ue−t and differentiate twice with the product rule:
yy′y′′=ue−t=(u′−u)e−t=(u′′−2u′+u)e−t
Substitute into ty′′+(t−1)y′−y=0, divide out e−t, and group terms:
Watch out: Adding instead of subtracting the second part in integration by parts (∫tetdt=tet−∫etdt) gives u(t)=(t+1)et, which leads to the wrong answer y2(t)=t+1.
y2(t)=t−1;y(t)=c1e−t+c2(t−1)
5
Given that y1(t)=t is a solution to t2y′′−t(t+2)y′+(t+2)y=0 for t>0, use reduction of order to solve the initial value problem with y(1)=0 and y′(1)=e.
Find y2(t) first using y=u(t)t and w=u′, write the general solution y(t)=c1t+c2y2(t), and only then plug in the initial conditions at t=1.
Set y=ut and differentiate twice with the product rule:
yy′y′′=ut=u′t+u=u′′t+2u′
Substitute into t2y′′−t(t+2)y′+(t+2)y=0 and group terms:
Watch out: Because the initial conditions are at t=1 rather than t=0, the c2tet term does not become zero in y(1) and e1=e (not 1); treating e1 as 1 gives c1+c2=0 and c1+2c2=e, which leads to the wrong answer y(t)=etet−et.