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)\ysol{y(t)}:

y′′−6y′+9y=0,y(0)=1,y′(0)=5\displaystyle \begin{gathered}\ydd{y''} - 6\yd{y'} + 9\ysol{y} = 0, \\ \ysol{y(0)} = 1, \quad \yd{y'(0)} = 5\end{gathered}

Trying y=ert\ysol{y} = \ysol{e^{rt}} gives the characteristic quadratic (r−3)2=0(r - 3)^2 = 0, which only gives us a single exponential solution, e3t\bone{e^{3t}}. Why isn't y=Ce3t\ysol{y} = \bone{Ce^{3t}} enough to match both initial conditions?

Why a repeated root leaves us short a solution
y′′−6y′+9y\displaystyle \htmlClass{lc-orange}{y''} - 6\htmlClass{lc-pink}{y'} + 9\htmlClass{lc-blue}{y} =0\displaystyle = 0
y(0)\displaystyle \htmlClass{lc-blue}{y(0)} =1,y′(0)\displaystyle = 1,\qquad \htmlClass{lc-pink}{y'(0)} =5\displaystyle = 5
y(t)\displaystyle \htmlClass{lc-blue}{y(t)} =  ?\displaystyle = \;?

Using e3t\bone{e^{3t}} twice just combines the two constants into one:

y(t)\displaystyle \ysol{y(t)} =c1e3t+c2e3t\displaystyle = \bone{c_1 e^{3t}} + \btwo{c_2 e^{3t}} =(c1+c2)⏟single constant Ce3t\displaystyle = \underbrace{(\bone{c_1} + \btwo{c_2})}_{\text{single constant } \bone{C}} \bone{e^{3t}} =Ce3t\displaystyle = \bone{Ce^{3t}}

Matching the starting position y(0)=1\ysol{y(0)} = 1 forces C=1\bone{C} = 1, which locks in y(t)=e3t\ysol{y(t)} = \bone{e^{3t}} with a starting slope of 3\yd{3} and leaves no second constant to reach the target slope of 5\yd{5}.

t\htmlClass{lc-mute}{t}
y\htmlClass{lc-mute}{y}
(0, 1)\htmlClass{lc-blue}{(0,\ 1)}
desired slope\text{desired slope}
y′(0)=5\htmlClass{lc-pink}{y'(0)} = \htmlClass{lc-pink}{5}
y=e3t\htmlClass{lc-blue}{y} = \htmlClass{lc-green}{e^{3t}}
locked slope\text{locked slope}
y′(0)=3\htmlClass{lc-pink}{y'(0)} = \htmlClass{lc-pink}{3}
y=53e3t\htmlClass{lc-blue}{y} = \htmlClass{lc-green}{\tfrac{5}{3}e^{3t}}
(0, 53)\htmlClass{lc-green}{\left(0,\ \tfrac{5}{3}\right)}
5\htmlClass{lc-pink}{5}
2

Finding the second solution by Reduction of Order

Since y=Ce3t\ysol{y} = \bone{Ce^{3t}} only gives us one solution, we need a second, linearly independent solution to y′′−6y′+9y=0\ydd{y''} - 6\yd{y'} + 9\ysol{y} = 0. Reduction of Order is the method for finding a second independent solution whenever we already know one working solution: instead of multiplying e3t\bone{e^{3t}} by a constant C\bone{C}, we multiply it by an unknown function u(t)\ysol{u(t)} and substitute it into the differential equation to see what u(t)\ysol{u(t)} must be:

y(t)\displaystyle \ysol{y(t)} =u(t)⏟unknown function⋅e3t⏟known solution\displaystyle = \underbrace{\ysol{u(t)}}_{\text{unknown function}} \cdot \underbrace{\bone{e^{3t}}}_{\text{known solution}}
Where the t in teʳᵗ comes from
y′′−6y′+9y=0\htmlClass{lc-orange}{y''} - 6\htmlClass{lc-pink}{y'} + 9\htmlClass{lc-blue}{y} = 0
(r−3)2=0(r - 3)^2 = 0
0\htmlClass{lc-mute}{0}
3\htmlClass{lc-mute}{3}
r\htmlClass{lc-mute}{r}
y=c1e3t+c2\htmlClass{lc-blue}{y} = \htmlClass{lc-green}{c_1e^{3t}} + \htmlClass{lc-violet}{c_2}
?\htmlClass{lc-violet}{?}
Text solution
1. Differentiate y=ue3t\ysol{y} = \ysol{u}\bone{e^{3t}} twice using the product ruleSince both u(t)\ysol{u(t)} and e3t\bone{e^{3t}} depend on tt, we apply the product rule twice and factor out e3t\bone{e^{3t}} at each step.
y=ue3ty′=u′e3t+3ue3t=(u′+3u)e3ty′′=(u′′+3u′)e3t+(u′+3u)⋅3e3t=(u′′+6u′+9u)e3t\displaystyle \begin{aligned} \ysol{y} &= \ysol{u}\bone{e^{3t}} \\ \yd{y'} &= \yd{u'}\bone{e^{3t}} + 3\ysol{u}\bone{e^{3t}} = (\yd{u'} + 3\ysol{u})\bone{e^{3t}} \\ \ydd{y''} &= (\ydd{u''} + 3\yd{u'})\bone{e^{3t}} \\ &\quad + (\yd{u'} + 3\ysol{u}) \cdot 3\bone{e^{3t}} \\ &= (\ydd{u''} + 6\yd{u'} + 9\ysol{u})\bone{e^{3t}} \end{aligned}
2. Substitute into y′′−6y′+9y=0\ydd{y''} - 6\yd{y'} + 9\ysol{y} = 0 and group by u′′\ydd{u''}, u′\yd{u'}, and u\ysol{u}Collecting like terms shows that both the u\ysol{u} terms and the u′\yd{u'} terms cancel completely to zero.
(u′′+6u′+9u)e3t−6(u′+3u)e3t+9(ue3t)=0[u′′+(6−6)⏟=0(slope at r=3)u′+(9−18+9)⏟=0(height at r=3)u]e3t=0u′′e3t=0\displaystyle \begin{aligned} (\ydd{u''} + 6\yd{u'} + 9\ysol{u})\bone{e^{3t}} - 6(\yd{u'} + 3\ysol{u})\bone{e^{3t}} + 9(\ysol{u}\bone{e^{3t}}) &= 0 \\ \bigl[\ydd{u''} + \underbrace{(6 - 6)}_{\begin{gathered}\scriptstyle =\,0 \\ \scriptstyle \text{(slope at }r=3\text{)}\end{gathered}}\yd{u'} + \underbrace{(9 - 18 + 9)}_{\begin{gathered}\scriptstyle =\,0 \\ \scriptstyle \text{(height at }r=3\text{)}\end{gathered}}\ysol{u}\bigr]\bone{e^{3t}} &= 0 \\ \ydd{u''}\bone{e^{3t}} &= 0 \end{aligned}
3. Divide out e3t\bone{e^{3t}} and integrate twice for u(t)\ysol{u(t)}Because e3t\bone{e^{3t}} is never zero, we can divide by it and integrate u′′=0\ydd{u''} = 0 twice to get back both constants.
u′′=0u′=c2u(t)=c1+c2t\displaystyle \begin{aligned} \ydd{u''} &= 0 \\ \yd{u'} &= \btwo{c_2} \\ \ysol{u(t)} &= \bone{c_1} + \btwo{c_2 t} \end{aligned}
4. Multiply u(t)\ysol{u(t)} by e3t\bone{e^{3t}} to form the general solutionPutting u(t)=c1+c2t\ysol{u(t)} = \bone{c_1} + \btwo{c_2 t} back into y=u(t)e3t\ysol{y} = \ysol{u(t)}\bone{e^{3t}} gives the two linearly independent solutions.
y(t)\displaystyle \ysol{y(t)} =(c1+c2t)e3t\displaystyle = (\bone{c_1} + \btwo{c_2 t})\bone{e^{3t}} =c1e3t+c2te3t\displaystyle = \bone{c_1 e^{3t}} + \btwo{c_2 t e^{3t}}

So the missing second solution is te3t\btwo{te^{3t}}, where the factor of t\btwo{t} comes from integrating u′′=0\ydd{u''} = 0 twice after both the u\ysol{u} and u′\yd{u'} terms cancel out.

When we plug y=u(t)e3t\ysol{y} = \ysol{u(t)}\bone{e^{3t}} into the equation, the number in front of u\ysol{u} is the characteristic parabola's height at r=3r = 3, and the number in front of u′\yd{u'} is its slope at r=3r = 3. Because r=3r = 3 is a root, the height is already zero. And when the second root moves to 33 as well, the parabola sits right on the axis at r=3r = 3, so its slope drops to zero too and only u′′=0\ydd{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\ysol{y(t)} = \bone{c_1 e^{3t}} + \btwo{c_2 t e^{3t}} with two constants, we can finish solving our initial value problem:

y′′−6y′+9y=0,y(0)=1,y′(0)=5\displaystyle \begin{gathered}\ydd{y''} - 6\yd{y'} + 9\ysol{y} = 0, \\ \ysol{y(0)} = 1, \quad \yd{y'(0)} = 5\end{gathered}
Solving an initial value problem with a repeated root
y′′−6y′+9y=0\htmlClass{lc-orange}{y''} - 6\htmlClass{lc-pink}{y'} + 9\htmlClass{lc-blue}{y} = 0
y(0)=1,y′(0)=5\htmlClass{lc-blue}{y(0)} = 1,\qquad \htmlClass{lc-pink}{y'(0)} = 5
y(t)=c1e3t+c2te3t\htmlClass{lc-blue}{y(t)} = \htmlClass{lc-green}{c_1e^{3t}} + \htmlClass{lc-violet}{c_2te^{3t}}
(0, 1)\htmlClass{lc-blue}{(0,\,1)}
5\htmlClass{lc-pink}{5}
c1=  ?\htmlClass{lc-green}{c_1} = \;?
c2=  ?\htmlClass{lc-violet}{c_2} = \;?
t\htmlClass{lc-mute}{t}
y\htmlClass{lc-mute}{y}
Text solution
1. Plug t=0t = 0 into y(t)\ysol{y(t)} to match the starting position y(0)=1\ysol{y(0)} = 1The factor of t\btwo{t} makes the entire c2te3t\btwo{c_2 t e^{3t}} term zero at t=0t = 0, giving c1\bone{c_1} right away.
y(0)\displaystyle \ysol{y(0)} =c1e0+c2(0)e0\displaystyle = \bone{c_1 e^0} + \btwo{c_2(0)e^0} =c1\displaystyle = \bone{c_1} =1\displaystyle = 1
2. Differentiate y(t)\ysol{y(t)} using the product rule on te3t\btwo{te^{3t}}Because te3t\btwo{te^{3t}} is a product of t\btwo{t} and e3t\btwo{e^{3t}}, differentiating the second term gives two terms.
y′(t)\displaystyle \yd{y'(t)} =3c1e3t+c2(1⋅e3t+t⋅3e3t)\displaystyle = \bone{3c_1 e^{3t}} + \btwo{c_2(1 \cdot e^{3t} + t \cdot 3e^{3t})}
3. Plug t=0t = 0 and c1=1\bone{c_1} = 1 into y′(t)\yd{y'(t)} to match the starting velocity y′(0)=5\yd{y'(0)} = 5When t=0t = 0, the 1⋅e0\btwo{1 \cdot e^0} part from the product rule doesn't become zero, so c2\btwo{c_2} stays in the equation and we can solve for it.
y′(0)=3c1e0+c2(1⋅e0+0)=3c1+c23(1)+c2=5c2=2\displaystyle \begin{aligned} \yd{y'(0)} &= \bone{3c_1 e^0} + \btwo{c_2(1 \cdot e^0 + 0)} \\ &= \bone{3c_1} + \btwo{c_2} \\ \bone{3(1)} + \btwo{c_2} &= 5 \\ \btwo{c_2} &= 2 \end{aligned}

Putting c1=1\bone{c_1} = 1 and c2=2\btwo{c_2} = 2 back into the general solution gives the unique solution that starts at height 1\ysol{1} with slope 5\yd{5}:

y(t)\displaystyle \ysol{y(t)} =e3t+2te3t\displaystyle = \bone{e^{3t}} + \btwo{2te^{3t}}

On an exam, watch out for the product rule when differentiating c2tert\btwo{c_2 t e^{rt}}: if you forget the product rule and write 3c2te3t3c_2 t e^{3t}, plugging in t=0t = 0 makes the c2\btwo{c_2} term zero and leaves you with 3=53 = 5.

At t=0t = 0, the new piece c2te3t\btwo{c_2 t e^{3t}} has height 0\ysol{0} and slope c2\btwo{c_2}. Adding it to e3t\bone{e^{3t}} lets us adjust the starting slope to 3+c2\yd{3} + \btwo{c_2} (which reaches 5\yd{5} when c2=2\btwo{c_2} = 2) without changing the starting height of 1\ysol{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 rr, you can write down the general solution right away without redoing the u(t)\ysol{u(t)} steps:

Repeated root r:y(t)\displaystyle \text{Repeated root } r: \quad \ysol{y(t)} =c1ert+c2tert\displaystyle = \bone{c_1 e^{rt}} + \btwo{c_2 t e^{rt}}
4

Reduction of Order with variable coefficients

When the coefficients in the differential equation depend on tt, we cannot write a characteristic quadratic ar2+br+c=0a\ydd{r^2} + b\yd{r} + c = 0, and simply multiplying by tt no longer gives a second solution. Instead, given one working solution y1(t)=et\bone{y_1(t)} = \bone{e^t} to the variable-coefficient equation

ty′′−(t+1)y′+y\displaystyle t\ydd{y''} - (t + 1)\yd{y'} + \ysol{y} =0,t>0\displaystyle = 0, \quad t > 0

we want to find a second linearly independent solution y2(t)\btwo{y_2(t)} and the general solution y(t)\ysol{y(t)} by setting y=u(t)y1(t)=u(t)et\ysol{y} = \ysol{u(t)}\bone{y_1(t)} = \ysol{u(t)}\bone{e^t}.

Reduction of order with variable coefficients
t y′′−(t+1) y′+y\displaystyle t\,\htmlClass{lc-orange}{y''} - (t + 1)\,\htmlClass{lc-pink}{y'} + \htmlClass{lc-blue}{y} =0\displaystyle = 0
t>0\displaystyle t > 0
y1(t)\displaystyle \htmlClass{lc-green}{y_1(t)} =et\displaystyle = \htmlClass{lc-green}{e^t}
y2(t)\displaystyle \htmlClass{lc-violet}{y_2(t)} =  ?\displaystyle = \;?
Text solution
1. Differentiate y=uet\ysol{y} = \ysol{u}\bone{e^t} twice with the product ruleUsing the product rule and factoring out et\bone{e^t} writes y′\yd{y'} and y′′\ydd{y''} in terms of u\ysol{u} and its derivatives.
y=uety′=(u′+u)ety′′=(u′′+2u′+u)et\displaystyle \begin{aligned} \ysol{y} &= \ysol{u}\bone{e^t} \\ \yd{y'} &= (\yd{u'} + \ysol{u})\bone{e^t} \\ \ydd{y''} &= (\ydd{u''} + 2\yd{u'} + \ysol{u})\bone{e^t} \end{aligned}
2. Substitute into ty′′−(t+1)y′+y=0t\ydd{y''} - (t + 1)\yd{y'} + \ysol{y} = 0, divide out et\bone{e^t}, and group by u′′\ydd{u''}, u′\yd{u'}, and u\ysol{u}Because y1=et\bone{y_1} = \bone{e^t} is already a solution to the equation, all the u\ysol{u} terms (with no derivatives) add up to zero and cancel out.
t(u′′+2u′+u)−(t+1)(u′+u)+u=0tu′′+[2t−(t+1)]u′+[t−(t+1)+1]⏟=0 since etis a solutionu=0tu′′+(t−1)u′=0\displaystyle \begin{aligned} t(\ydd{u''} + 2\yd{u'} + \ysol{u}) - (t + 1)(\yd{u'} + \ysol{u}) + \ysol{u} &= 0 \\ t\ydd{u''} + \bigl[2t - (t + 1)\bigr]\yd{u'} + \underbrace{\bigl[t - (t + 1) + 1\bigr]}_{\begin{gathered}\scriptstyle =\,0\text{ since }\bone{e^t} \\ \scriptstyle \text{is a solution}\end{gathered}}\ysol{u} &= 0 \\ t\ydd{u''} + (t - 1)\yd{u'} &= 0 \end{aligned}
3. Substitute w=u′\yd{w} = \yd{u'} to reduce the equation to first order and separate variablesWith no u\ysol{u} term left, replacing u′\yd{u'} with w\yd{w} and u′′\ydd{u''} with w′=dwdt\ydd{w'} = \ydd{\frac{dw}{dt}} turns the equation into a first-order separable equation for w\yd{w}.
tw′+(t−1)w=0tdwdt=(1−t)w1w dw=1−tt dt=(1t−1)dt\displaystyle \begin{aligned} t\ydd{w'} + (t - 1)\yd{w} &= 0 \\ t\ydd{\frac{dw}{dt}} &= (1 - t)\yd{w} \\ \frac{1}{\yd{w}}\,\yd{dw} &= \frac{1 - t}{t}\,dt \\ &= \left(\frac{1}{t} - 1\right)dt \end{aligned}
4. Integrate both sides for w\yd{w} and rewrite as u′\yd{u'}Integrating both sides and raising ee to both sides gives w=u′\yd{w} = \yd{u'}. We can wait until the final general solution to include the constants c1\bone{c_1} and c2\btwo{c_2}.
ln⁡∣w∣=ln⁡∣t∣−tw=eln⁡t−t=eln⁡t⋅e−t=te−tu′=te−t\displaystyle \begin{aligned} \ln|\yd{w}| &= \ln|t| - t \\ \yd{w} &= e^{\ln t - t} = e^{\ln t} \cdot e^{-t} = te^{-t} \\ \yd{u'} &= te^{-t} \end{aligned}
5. Integrate u′\yd{u'} by parts to find u(t)\ysol{u(t)} and multiply by y1=et\bone{y_1} = \bone{e^t}Using integration by parts (∫te−t dt=−te−t−∫(−e−t) dt\int te^{-t}\,dt = -te^{-t} - \int (-e^{-t})\,dt) gives u(t)\ysol{u(t)}, and multiplying by et\bone{e^t} cancels e−te^{-t}.
u(t)=∫te−t dt=−te−t−e−t=−(t+1)e−ty2(t)=u(t)et=−(t+1)e−t⋅et=−(t+1)\displaystyle \begin{aligned} \ysol{u(t)} &= \int te^{-t}\,dt = -te^{-t} - e^{-t} \\ &= -(t + 1)e^{-t} \\ \btwo{y_2(t)} &= \ysol{u(t)}\bone{e^t} = -(t + 1)e^{-t} \cdot \bone{e^t} \\ &= -\btwo{(t + 1)} \end{aligned}

Dropping the −1-1 factor gives our second linearly independent solution y2(t)=t+1\btwo{y_2(t)} = \btwo{t + 1}, so the general solution is:

y(t)\displaystyle \ysol{y(t)} =c1et+c2(t+1)\displaystyle = \bone{c_1 e^t} + \btwo{c_2(t + 1)}
t\htmlClass{lc-mute}{t}
y\htmlClass{lc-mute}{y}
1\htmlClass{lc-mute}{1}
2\htmlClass{lc-mute}{2}
2\htmlClass{lc-mute}{2}
4\htmlClass{lc-mute}{4}
6\htmlClass{lc-mute}{6}
8\htmlClass{lc-mute}{8}
y1(t)=et\htmlClass{lc-green}{y_1(t)} = \htmlClass{lc-green}{e^t}
y2(t)=t+1\htmlClass{lc-violet}{y_2(t)} = \htmlClass{lc-violet}{t + 1}

Use the cancellation of the u\ysol{u} terms as a built-in check on exams: if the u\ysol{u} terms do not add up to zero after you plug in y=uy1\ysol{y} = \ysol{u} \bone{y_1}, stop and check your product-rule derivatives before going any further. And rather than memorizing the big integral formula y2(t)=y1(t)∫e−∫P(t) dt(y1(t))2 dt\btwo{y_2(t)} = \bone{y_1(t)}\int \frac{e^{-\int P(t)\,dt}}{(\bone{y_1(t)})^2}\,dt, where a missed minus sign or leading coefficient ruins the whole answer, just set y=uy1\ysol{y} = \ysol{u} \bone{y_1}, let the u\ysol{u} terms cancel, and solve the first-order equation for w=u′\yd{w} = \yd{u'}.

Key concepts

Solving these second-order equations comes down to whether you have constant coefficients or variable coefficients:

Constant coefficients (ay′′+by′+cy=0a\ydd{y''} + b\yd{y'} + c\ysol{y} = 0)

Start with the characteristic equation ar2+br+c=0a\ydd{r^2} + b\yd{r} + c = 0.

  • When not to use repeated-root or reduction-of-order steps: If the quadratic factors into two distinct roots r1≠r2\bone{r_1} \neq \btwo{r_2}, such as (r−3)(r−1)=0\bone{(r - 3)}\btwo{(r - 1)} = 0, you already have two independent solutions (y(t)=c1e3t+c2et\ysol{y(t)} = \bone{c_1 e^{3t}} + \btwo{c_2 e^t}) and do not multiply by tt.
  • When a root repeats (r1=r2=r\bone{r_1} = \btwo{r_2} = r): If the quadratic is a perfect square like (r−3)2=0(r - 3)^2 = 0, skip the u(t)\ysol{u(t)} steps and multiply the second exponential by t\btwo{t}:
    y(t)=c1ert+c2tertfor r=3:  y(t)=c1e3t+c2te3t\displaystyle \begin{aligned}\ysol{y(t)} &= \bone{c_1 e^{rt}} + \btwo{c_2 t e^{rt}} \\ \text{for } r = 3:\; & \\ \ysol{y(t)} &= \bone{c_1 e^{3t}} + \btwo{c_2 t e^{3t}}\end{aligned}
  • Initial conditions with tert\btwo{t e^{rt}}: Plug in t=0t = 0 first so c2tert\btwo{c_2 t e^{rt}} becomes zero and gives c1\bone{c_1}, then use the product rule on c2tert\btwo{c_2 t e^{rt}} so c2ert\btwo{c_2 e^{rt}} doesn't become zero at t=0t = 0 and gives c2\btwo{c_2}.
Variable coefficients with one known solution y1(t)\bone{y_1(t)}

You cannot use a characteristic quadratic or just multiply y1(t)\bone{y_1(t)} by tt. Use Reduction of Order by setting y=u(t)y1(t)\ysol{y} = \ysol{u(t)}\bone{y_1(t)} (such as y=u(t)et\ysol{y} = \ysol{u(t)}\bone{e^t}):

  • Differentiate y=uy1\ysol{y} = \ysol{u} \bone{y_1} twice with the product rule and plug into the differential equation.
  • Group by u′′\ydd{u''}, u′\yd{u'}, and u\ysol{u}, and check that the u\ysol{u} coefficient cancels to 00.
  • Set w=u′\yd{w} = \yd{u'} and w′=u′′\ydd{w'} = \ydd{u''} to get a first-order equation in w\yd{w} (such as tw′+(t−1)w=0t\ydd{w'} + (t - 1)\yd{w} = 0), solve for w=u′\yd{w} = \yd{u'}, integrate once to find u(t)\ysol{u(t)}, and multiply back by y1(t)\bone{y_1(t)} to get y2(t)=u(t)y1(t)\btwo{y_2(t)} = \ysol{u(t)}\bone{y_1(t)}.
5

Practice

1

Find the general solution to 4y′′+12y′+9y=04\ydd{y''} + 12\yd{y'} + 9\ysol{y} = 0.

Write the characteristic quadratic in rr and factor it as a perfect square (2r+?)2=0(2r + \text{?})^2 = 0.

Substitute y=ert\ysol{y} = \ysol{e^{rt}} to get the characteristic equation and factor:
4r2+12r+9=0(2r+3)2=0r=−32,−32\displaystyle \begin{aligned} 4\ydd{r^2} + 12\yd{r} + 9 &= 0 \\ (2r + 3)^2 &= 0 \\ r &= \bone{-\frac{3}{2}}, \btwo{-\frac{3}{2}} \end{aligned}
Watch out: When solving 2r+3=02r + 3 = 0, forgetting to divide by the leading 22 gives r=−3r = -3 (and the wrong answer y(t)=c1e−3t+c2te−3ty(t) = c_1 e^{-3t} + c_2 t e^{-3t}), and dropping the minus sign gives r=32r = \tfrac{3}{2} (and the wrong answer y(t)=c1e3t/2+c2te3t/2y(t) = c_1 e^{3t/2} + c_2 t e^{3t/2}).
With the repeated root r=−32r = -\tfrac{3}{2}, include the factor of t\btwo{t} on the second term:
y(t)\displaystyle \ysol{y(t)} =c1e−3t/2+c2te−3t/2\displaystyle = \bone{c_1 e^{-3t/2}} + \btwo{c_2 t e^{-3t/2}}
2

Solve the initial value problem y′′+4y′+4y=0\ydd{y''} + 4\yd{y'} + 4\ysol{y} = 0, y(0)=3\ysol{y(0)} = 3, y′(0)=−1\yd{y'(0)} = -1.

Find the general solution from the repeated root first, plug in t=0t = 0 to get c1\bone{c_1}, and remember the product rule when differentiating c2tert\btwo{c_2 t e^{rt}}.

Factor the characteristic equation to find the repeated root and write the general solution:
r2+4r+4=(r+2)2=0  ⟹  r=−2,−2y(t)=c1e−2t+c2te−2t\displaystyle \begin{aligned} \ydd{r^2} + 4\yd{r} + 4 = (r + 2)^2 &= 0 \implies r = \bone{-2}, \btwo{-2} \\ \ysol{y(t)} &= \bone{c_1 e^{-2t}} + \btwo{c_2 t e^{-2t}} \end{aligned}
Match the starting position y(0)=3\ysol{y(0)} = 3:
y(0)\displaystyle \ysol{y(0)} =c1e0+c2(0)e0\displaystyle = \bone{c_1 e^0} + \btwo{c_2(0)e^0} =c1\displaystyle = \bone{c_1} =3\displaystyle = 3
Differentiate y(t)\ysol{y(t)} using the product rule on te−2t\btwo{te^{-2t}} and plug in t=0t = 0 and c1=3\bone{c_1} = 3:
y′(t)=−2c1e−2t+c2(1⋅e−2t−2te−2t)y′(0)=−2c1+c2=−1−2(3)+c2=−1  ⟹  c2=5\displaystyle \begin{aligned} \yd{y'(t)} &= \bone{-2c_1 e^{-2t}} + \btwo{c_2(1 \cdot e^{-2t} - 2te^{-2t})} \\ \yd{y'(0)} &= \bone{-2c_1} + \btwo{c_2} = -1 \\ \bone{-2(3)} + \btwo{c_2} &= -1 \implies \btwo{c_2} = 5 \end{aligned}
Watch out: Dropping the negative sign from the chain rule on e−2t\bone{e^{-2t}} gives 2c1+c2=−12c_1 + c_2 = -1 (or subtracting 66 instead of adding 66 to −1-1), which leads to c2=−7c_2 = -7 and the wrong answer y(t)=3e−2t−7te−2ty(t) = 3e^{-2t} - 7te^{-2t}.
y(t)\displaystyle \ysol{y(t)} =3e−2t+5te−2t\displaystyle = \bone{3e^{-2t}} + \btwo{5te^{-2t}}
3

Given that y1(t)=t2\bone{y_1(t)} = \bone{t^2} is a solution to t2y′′−3ty′+4y=0t^2 \ydd{y''} - 3t\yd{y'} + 4\ysol{y} = 0 for t>0t > 0, use reduction of order to find a second linearly independent solution y2(t)\btwo{y_2(t)} and the general solution.

Substitute y=u(t)t2\ysol{y} = \ysol{u(t)}\bone{t^2}, check that the u\ysol{u} terms cancel to zero, and set w=u′\yd{w} = \yd{u'} in what remains.

Set y=ut2\ysol{y} = \ysol{u}\bone{t^2} and differentiate twice with the product rule:
y=ut2y′=u′t2+2tuy′′=u′′t2+2tu′+2tu′+2u=u′′t2+4tu′+2u\displaystyle \begin{aligned} \ysol{y} &= \ysol{u}\bone{t^2} \\ \yd{y'} &= \yd{u'}\bone{t^2} + 2t\ysol{u} \\ \ydd{y''} &= \ydd{u''}\bone{t^2} + 2t\yd{u'} + 2t\yd{u'} + 2\ysol{u} \\ &= \ydd{u''}\bone{t^2} + 4t\yd{u'} + 2\ysol{u} \end{aligned}
Watch out: When differentiating y′=u′t2+2tu\yd{y'} = \yd{u'}\bone{t^2} + 2t\ysol{u}, forgetting the product rule on u′t2\yd{u'}\bone{t^2} gives 2tu′2tu' instead of 4tu′4t\yd{u'}, which changes the u′\yd{u'} term below to −t3u′-t^3 u' and leads to the wrong answer y2(t)=t4y_2(t) = t^4.
Substitute into t2y′′−3ty′+4y=0t^2 \ydd{y''} - 3t\yd{y'} + 4\ysol{y} = 0 and group by u′′\ydd{u''}, u′\yd{u'}, and u\ysol{u}:
t2(u′′t2+4tu′+2u)−3t(u′t2+2tu)+4(ut2)=0t4u′′+(4t3−3t3)u′+(2t2−6t2+4t2)⏟= 0u=0t4u′′+t3u′=0\displaystyle \begin{aligned} t^2(\ydd{u''}\bone{t^2} + 4t\yd{u'} + 2\ysol{u}) - 3t(\yd{u'}\bone{t^2} + 2t\ysol{u}) + 4(\ysol{u}\bone{t^2}) &= 0 \\ t^4 \ydd{u''} + (4t^3 - 3t^3)\yd{u'} + \underbrace{(2t^2 - 6t^2 + 4t^2)}_{=\,0}\ysol{u} &= 0 \\ t^4 \ydd{u''} + t^3 \yd{u'} &= 0 \end{aligned}
Divide by t3t^3, set w=u′\yd{w} = \yd{u'}, and separate variables:
tw′+w=01w dw=−1t dtln⁡∣w∣=−ln⁡t=ln⁡(t−1)  ⟹  w=u′=1t\displaystyle \begin{aligned} t\ydd{w'} + \yd{w} &= 0 \\ \frac{1}{\yd{w}}\,\yd{dw} &= -\frac{1}{t}\,dt \\ \ln|\yd{w}| &= -\ln t = \ln(t^{-1}) \implies \yd{w} = \yd{u'} = \frac{1}{t} \end{aligned}
Integrate u′=1t\yd{u'} = \tfrac{1}{t} once for u(t)\ysol{u(t)} and multiply by y1(t)=t2\bone{y_1(t)} = \bone{t^2}:
u(t)=∫1t dt=ln⁡(t)y2(t)=u(t)t2=t2ln⁡(t)\displaystyle \begin{aligned} \ysol{u(t)} &= \int \frac{1}{t}\,dt = \ln(t) \\ \btwo{y_2(t)} &= \ysol{u(t)}\bone{t^2} = \btwo{t^2 \ln(t)} \end{aligned}
Watch out: Stopping at u(t)=ln⁡(t)\ysol{u(t)} = \ln(t) without multiplying back by y1(t)=t2\bone{y_1(t)} = \bone{t^2} gives the wrong answer y2(t)=ln⁡(t)y_2(t) = \ln(t) and y(t)=c1t2+c2ln⁡(t)y(t) = c_1 t^2 + c_2 \ln(t).
y2(t)\displaystyle \btwo{y_2(t)} =t2ln⁡(t);y(t)\displaystyle = \btwo{t^2 \ln(t)}; \quad \ysol{y(t)} =c1t2+c2t2ln⁡(t)\displaystyle = \bone{c_1 t^2} + \btwo{c_2 t^2 \ln(t)}
4

Given that y1(t)=e−t\bone{y_1(t)} = \bone{e^{-t}} is a solution to ty′′+(t−1)y′−y=0t\ydd{y''} + (t - 1)\yd{y'} - \ysol{y} = 0 for t>0t > 0, use reduction of order to find a second linearly independent solution y2(t)\btwo{y_2(t)} and the general solution.

Substitute y=u(t)e−t\ysol{y} = \ysol{u(t)}\bone{e^{-t}}, keep track of the minus signs when differentiating e−t\bone{e^{-t}}, and set w=u′\yd{w} = \yd{u'} after the u\ysol{u} terms cancel.

Set y=ue−t\ysol{y} = \ysol{u}\bone{e^{-t}} and differentiate twice with the product rule:
y=ue−ty′=(u′−u)e−ty′′=(u′′−2u′+u)e−t\displaystyle \begin{aligned} \ysol{y} &= \ysol{u}\bone{e^{-t}} \\ \yd{y'} &= (\yd{u'} - \ysol{u})\bone{e^{-t}} \\ \ydd{y''} &= (\ydd{u''} - 2\yd{u'} + \ysol{u})\bone{e^{-t}} \end{aligned}
Substitute into ty′′+(t−1)y′−y=0t\ydd{y''} + (t - 1)\yd{y'} - \ysol{y} = 0, divide out e−t\bone{e^{-t}}, and group terms:
t(u′′−2u′+u)+(t−1)(u′−u)−u=0tu′′+[−2t+(t−1)]u′+[t−(t−1)−1]⏟= 0u=0tu′′−(t+1)u′=0\displaystyle \begin{aligned} t(\ydd{u''} - 2\yd{u'} + \ysol{u}) + (t - 1)(\yd{u'} - \ysol{u}) - \ysol{u} &= 0 \\ t\ydd{u''} + \bigl[-2t + (t - 1)\bigr]\yd{u'} + \underbrace{\bigl[t - (t - 1) - 1\bigr]}_{=\,0}\ysol{u} &= 0 \\ t\ydd{u''} - (t + 1)\yd{u'} &= 0 \end{aligned}
Substitute w=u′\yd{w} = \yd{u'} and separate variables:
tw′=(t+1)w1w dw=t+1t dt=(1+1t)dtln⁡∣w∣=t+ln⁡t  ⟹  w=et+ln⁡t=et⋅eln⁡t=tet\displaystyle \begin{aligned} t\ydd{w'} &= (t + 1)\yd{w} \\ \frac{1}{\yd{w}}\,\yd{dw} &= \frac{t + 1}{t}\,dt = \left(1 + \frac{1}{t}\right)dt \\ \ln|\yd{w}| &= t + \ln t \implies \yd{w} = e^{t + \ln t} = e^t \cdot e^{\ln t} = te^t \end{aligned}
Integrate u′=tet\yd{u'} = te^t by parts and multiply by y1(t)=e−t\bone{y_1(t)} = \bone{e^{-t}}:
u(t)=∫tet dt=tet−et=(t−1)ety2(t)=(t−1)et⋅e−t=t−1\displaystyle \begin{aligned} \ysol{u(t)} &= \int te^t\,dt = te^t - e^t = (t - 1)e^t \\ \btwo{y_2(t)} &= (t - 1)e^t \cdot \bone{e^{-t}} = \btwo{t - 1} \end{aligned}
Watch out: Adding instead of subtracting the second part in integration by parts (∫tet dt=tet−∫et dt\int te^t\,dt = te^t - \int e^t\,dt) gives u(t)=(t+1)etu(t) = (t + 1)e^t, which leads to the wrong answer y2(t)=t+1y_2(t) = t + 1.
y2(t)\displaystyle \btwo{y_2(t)} =t−1;y(t)\displaystyle = \btwo{t - 1}; \quad \ysol{y(t)} =c1e−t+c2(t−1)\displaystyle = \bone{c_1 e^{-t}} + \btwo{c_2(t - 1)}
5

Given that y1(t)=t\bone{y_1(t)} = \bone{t} is a solution to t2y′′−t(t+2)y′+(t+2)y=0t^2 \ydd{y''} - t(t + 2)\yd{y'} + (t + 2)\ysol{y} = 0 for t>0t > 0, use reduction of order to solve the initial value problem with y(1)=0\ysol{y(1)} = 0 and y′(1)=e\yd{y'(1)} = e.

Find y2(t)\btwo{y_2(t)} first using y=u(t)t\ysol{y} = \ysol{u(t)}\bone{t} and w=u′\yd{w} = \yd{u'}, write the general solution y(t)=c1t+c2y2(t)\ysol{y(t)} = \bone{c_1 t} + \btwo{c_2 y_2(t)}, and only then plug in the initial conditions at t=1t = 1.

Set y=ut\ysol{y} = \ysol{u}\bone{t} and differentiate twice with the product rule:
y=uty′=u′t+uy′′=u′′t+2u′\displaystyle \begin{aligned} \ysol{y} &= \ysol{u}\bone{t} \\ \yd{y'} &= \yd{u'}\bone{t} + \ysol{u} \\ \ydd{y''} &= \ydd{u''}\bone{t} + 2\yd{u'} \end{aligned}
Substitute into t2y′′−t(t+2)y′+(t+2)y=0t^2 \ydd{y''} - t(t + 2)\yd{y'} + (t + 2)\ysol{y} = 0 and group terms:
t2(u′′t+2u′)−t(t+2)(u′t+u)+(t+2)(ut)=0t3u′′+[2t2−t2(t+2)]u′+[−t(t+2)+t(t+2)]⏟= 0u=0t3u′′−t3u′=0\displaystyle \begin{aligned} t^2(\ydd{u''}\bone{t} + 2\yd{u'}) - t(t + 2)(\yd{u'}\bone{t} + \ysol{u}) + (t + 2)(\ysol{u}\bone{t}) &= 0 \\ t^3 \ydd{u''} + \bigl[2t^2 - t^2(t + 2)\bigr]\yd{u'} + \underbrace{\bigl[-t(t + 2) + t(t + 2)\bigr]}_{=\,0}\ysol{u} &= 0 \\ t^3 \ydd{u''} - t^3 \yd{u'} &= 0 \end{aligned}
Divide by t3t^3, set w=u′\yd{w} = \yd{u'}, solve for u(t)\ysol{u(t)}, and multiply by y1(t)=t\bone{y_1(t)} = \bone{t}:
w′−w=0  ⟹  w=u′=etu(t)=∫et dt=ety2(t)=tety(t)=c1t+c2tet\displaystyle \begin{aligned} \ydd{w'} - \yd{w} = 0 \implies \yd{w} &= \yd{u'} = e^t \\ \ysol{u(t)} = \int e^t\,dt &= e^t \\ \btwo{y_2(t)} &= \btwo{te^t} \\ \ysol{y(t)} &= \bone{c_1 t} + \btwo{c_2 te^t} \end{aligned}
Differentiate y(t)\ysol{y(t)} with the product rule on tet\btwo{te^t} and plug in the initial conditions at t=1t = 1:
y(1)=c1(1)+c2(1)e1=c1+c2e=0  ⟹  c1=−c2ey′(t)=c1+c2(et+tet)y′(1)=c1+c2(e+e)=c1+2c2e=e\displaystyle \begin{aligned} \ysol{y(1)} &= \bone{c_1(1)} + \btwo{c_2(1)e^1} = \bone{c_1} + \btwo{c_2 e} = 0 \implies \bone{c_1} = -\btwo{c_2 e} \\ \yd{y'(t)} &= \bone{c_1} + \btwo{c_2(e^t + te^t)} \\ \yd{y'(1)} &= \bone{c_1} + \btwo{c_2(e + e)} = \bone{c_1} + \btwo{2c_2 e} = e \end{aligned}
Watch out: Because the initial conditions are at t=1t = 1 rather than t=0t = 0, the c2tet\btwo{c_2 te^t} term does not become zero in y(1)\ysol{y(1)} and e1=ee^1 = e (not 11); treating e1e^1 as 11 gives c1+c2=0c_1 + c_2 = 0 and c1+2c2=ec_1 + 2c_2 = e, which leads to the wrong answer y(t)=etet−ety(t) = ete^t - et.
Substitute c1=−c2e\bone{c_1} = -\btwo{c_2 e} into c1+2c2e=e\bone{c_1} + \btwo{2c_2 e} = e:
−c2e+2c2e=c2e=e  ⟹  c2=1c1=−e\displaystyle \begin{aligned} -\btwo{c_2 e} + \btwo{2c_2 e} = \btwo{c_2 e} &= e \implies \btwo{c_2} = 1 \\ \bone{c_1} &= -e \end{aligned}
y(t)\displaystyle \ysol{y(t)} =tet−et\displaystyle = \btwo{te^t} - \bone{et}