Differential EquationsSecond-Order Linear Equations1 of 6
Second-Order Linear Equations · 1

Second-Order Linear Equations and Superposition

A second-order differential equation connects a function y(t)\pos{y(t)} with its velocity y′(t)\vel{y'(t)} and acceleration y′′(t)\accel{y''(t)}, and we need a way to build its general solution from simpler pieces.

1

Linearity and the Principle of Superposition

We are looking for functions y(t)\pos{y(t)} that satisfy the equation

y′′−3y′+2y\displaystyle \accel{y''} - 3\vel{y'} + 2\pos{y} =0\displaystyle = 0

at every time tt. Before solving for y(t)\pos{y(t)}, let's look at how y\pos{y}, y′\vel{y'}, and y′′\accel{y''} appear in the equation, because that determines whether we can combine two separate solutions y1(t)\yone{y_1(t)} and y2(t)\ytwo{y_2(t)} into a single family.

Linearity and the Principle of Superposition
y′′\htmlClass{lc-orange}{y''}
−-
3y′3\htmlClass{lc-pink}{y'}
++
2y2\htmlClass{lc-blue}{y}
=0= 0
acceleration\htmlClass{lc-orange}{\text{acceleration}}
velocity\htmlClass{lc-pink}{\text{velocity}}
position\htmlClass{lc-blue}{\text{position}}
y\htmlClass{lc-blue}{y}
y′\htmlClass{lc-pink}{y'}
y′′\htmlClass{lc-orange}{y''}

Because derivatives split across sums and constants factor straight out, plugging c1y1(t)+c2y2(t)\yone{c_1 y_1(t)} + \ytwo{c_2 y_2(t)} into y′′−3y′+2y=0\accel{y''} - 3\vel{y'} + 2\pos{y} = 0 regroups cleanly into the y1\yone{y_1} terms plus the y2\ytwo{y_2} terms, with no y1y2\yone{y_1} \ytwo{y_2} cross-terms:

(c1y1+c2y2)′′−3(c1y1+c2y2)′+2(c1y1+c2y2)=c1(y1′′−3y1′+2y1⏟0)+c2(y2′′−3y2′+2y2⏟0)=0\displaystyle \begin{aligned} &(\yone{c_1 y_1} + \ytwo{c_2 y_2})'' - 3(\yone{c_1 y_1} + \ytwo{c_2 y_2})' \\ &\qquad + 2(\yone{c_1 y_1} + \ytwo{c_2 y_2}) \\ &\qquad = \yone{c_1}(\underbrace{\yone{y_1''} - 3\yone{y_1'} + 2\yone{y_1}}_{0}) \\ &\qquad\qquad + \ytwo{c_2}(\underbrace{\ytwo{y_2''} - 3\ytwo{y_2'} + 2\ytwo{y_2}}_{0}) \\ &\qquad = 0 \end{aligned}

So for any constants c1\yone{c_1} and c2\ytwo{c_2}, the combined function is also a solution:

y(t)\displaystyle \pos{y(t)} =c1y1(t)+c2y2(t)⏟superposition\displaystyle = \underbrace{\yone{c_1 y_1(t)} + \ytwo{c_2 y_2(t)}}_{\text{superposition}}

For the linear equation y′′−3y′+2y=0\accel{y''} - 3\vel{y'} + 2\pos{y} = 0, the combined curve y(t)=c1y1(t)+y2(t)\pos{y(t)} = \yone{c_1 y_1(t)} + \ytwo{y_2(t)} makes the left-hand side equal 00 for every value of c1\yone{c_1}. In the nonlinear equation y′′+y2=0\accel{y''} + \pos{y}^2 = 0, squaring c1y1(t)+y2(t)\yone{c_1 y_1(t)} + \ytwo{y_2(t)} creates an extra 2c1y1(t)y2(t)2\yone{c_1 y_1(t)}\ytwo{y_2(t)} term, so the left-hand side no longer adds up to 00.

You can stretch one solution and add it to another and still solve the linear equation, while in the nonlinear equation, squaring the sum mixes the two curves and pushes the left side off 0.
2

Why Two Solutions Are Needed for Initial Conditions

If scaling a single solution y1(t)\yone{y_1(t)} already gives a family y(t)=c1y1(t)\pos{y(t)} = \yone{c_1 y_1(t)}, why do we need to find a second solution y2(t)\ytwo{y_2(t)}? In a second-order equation, a starting state at t=0t = 0 has two independent pieces of information: its starting position y(0)\pos{y(0)} and its starting velocity y′(0)\vel{y'(0)}.

t\htmlClass{lc-mute}{t}
y\htmlClass{lc-mute}{y}
(0,3)\htmlClass{lc-blue}{(0, 3)}
y′(0)=0\htmlClass{lc-pink}{y'(0)} = 0
from rest\text{from rest}
y′(0)=−10\htmlClass{lc-pink}{y'(0)} = -10
pushed down\text{pushed down}
Why Two Solutions Are Needed for Initial Conditions
t\htmlClass{lc-mute}{t}
y\htmlClass{lc-mute}{y}
t=0t = 0
y(0)=3\htmlClass{lc-blue}{y(0)} = 3

With only one solution y(t)=c1y1(t)\pos{y(t)} = \yone{c_1 y_1(t)}, choosing c1\yone{c_1} to match the starting height y(0)=3\pos{y(0)} = 3 uses up our only constant and fixes the starting slope at y′(0)=c1y1′(0)\vel{y'(0)} = \yone{c_1 y_1'(0)}. Adding a second solution gives us two constants, c1\yone{c_1} and c2\ytwo{c_2}, which we can choose at t=0t = 0 to match both the starting position and the starting velocity:

y(0)=c1y1(0)+c2y2(0)(starting position)y′(0)=c1y1′(0)+c2y2′(0)(starting velocity)\displaystyle \begin{aligned} \pos{y(0)} &= \yone{c_1 y_1(0)} + \ytwo{c_2 y_2(0)} \\ &\quad \text{(starting position)} \\[4pt] \vel{y'(0)} &= \yone{c_1 y_1'(0)} + \ytwo{c_2 y_2'(0)} \\ &\quad \text{(starting velocity)} \end{aligned}

While a single curve c1y1(t)\yone{c_1 y_1(t)} is locked at one slope through (0,3)\pos{(0, 3)}, we can adjust c1\yone{c_1} and c2\ytwo{c_2} in c1y1(t)+c2y2(t)\yone{c_1 y_1(t)} + \ytwo{c_2 y_2(t)} to keep y(0)=3\pos{y(0)} = 3 and tilt the curve to any starting velocity y′(0)\vel{y'(0)}.

Fixing the starting height at 3 locks a single solution to one starting slope, while adding a second solution lets the two trade starting height to match any starting slope.
3

Solving an Initial Value Problem and Linear Independence

Now let's find two solutions and use them to solve the initial value problem

y′′−3y′+2y\displaystyle \accel{y''} - 3\vel{y'} + 2\pos{y} =0,y(0)\displaystyle = 0, \quad \pos{y(0)} =4,y′(0)\displaystyle = 4, \quad \vel{y'(0)} =5\displaystyle = 5

Because the coefficients 11, −3-3, and 22 are constants, we look for a function whose derivatives have the same form as the function itself, so y′′\accel{y''}, y′\vel{y'}, and y\pos{y} can cancel out for all tt. Each derivative of an exponential y=ert\pos{y = e^{rt}} brings down a factor of rr while keeping erte^{rt} the same:

y=ert,y′=rert,y′′=r2ert\displaystyle \pos{y = e^{rt}}, \quad \vel{y' = r e^{rt}}, \quad \accel{y'' = r^2 e^{rt}}
Solving an Initial Value Problem and Linear Independence
y′′−3y′+2y\displaystyle \accel{y''} - 3\vel{y'} + 2\pos{y} =0\displaystyle = 0
y(0)=4,y′(0)=5y(t)=  ?\displaystyle \begin{alignedat}{2}\pos{y(0)} &= 4, &\quad \vel{y'(0)} &= 5\\[6pt]\pos{y(t)} &= \;?\end{alignedat}
Text solution
1. Substitute y=ert\pos{y = e^{rt}} and factor to find rrPlugging y=ert\pos{y = e^{rt}} and its derivatives into the differential equation lets us factor out erte^{rt} and solve for rr:
r2ert−3rert+2ert=0ert(r2−3r+2)=0ert(r−1)(r−2)=0  ⟹  r=1,  r=2\displaystyle \begin{aligned} \accel{r^2 e^{rt}} - 3\vel{r e^{rt}} + 2\pos{e^{rt}} &= 0 \\ e^{rt}(r^2 - 3r + 2) &= 0 \\ e^{rt}(r - 1)(r - 2) &= 0 \\ \implies &\quad \yone{r = 1}, \; \ytwo{r = 2} \end{aligned}
2. Write the general solution and differentiate itSuperposition combines y1=et\yone{y_1 = e^t} and y2=e2t\ytwo{y_2 = e^{2t}} into the position function y(t)\pos{y(t)}, and differentiating gives the velocity function y′(t)\vel{y'(t)}:
y(t)=c1et+c2e2ty′(t)=c1et+2c2e2t\displaystyle \begin{aligned} \pos{y(t)} &= \yone{c_1 e^t} + \ytwo{c_2 e^{2t}} \\ \vel{y'(t)} &= \yone{c_1 e^t} + \ytwo{2c_2 e^{2t}} \end{aligned}
3. Plug in t=0t = 0 to solve for c1\yone{c_1} and c2\ytwo{c_2}Since e0=1e^0 = 1, substituting t=0t = 0 into both equations turns the initial conditions y(0)=4\pos{y(0)} = 4 and y′(0)=5\vel{y'(0)} = 5 into two equations for c1\yone{c_1} and c2\ytwo{c_2}:
y(0)=c1+c2=4y′(0)=c1+2c2=5(c1+2c2)−(c1+c2)=5−4  ⟹  c2=1c1+1=4  ⟹  c1=3\displaystyle \begin{gathered} \begin{aligned} \pos{y(0)} &= \yone{c_1} + \ytwo{c_2} = 4 \\ \vel{y'(0)} &= \yone{c_1} + \ytwo{2c_2} = 5 \end{aligned} \\[8pt] \begin{aligned} (\yone{c_1} + \ytwo{2c_2}) - (\yone{c_1} + \ytwo{c_2}) &= 5 - 4 \\ \implies &\quad \ytwo{c_2} = 1 \\ \yone{c_1} + 1 &= 4 \\ \implies &\quad \yone{c_1} = 3 \end{aligned} \end{gathered}

So the unique curve that satisfies y′′−3y′+2y=0\accel{y''} - 3\vel{y'} + 2\pos{y} = 0 and starts at height 44 with slope 55 is y(t)=3et+e2t\pos{y(t)} = 3e^t + e^{2t}.

Notice that we could solve for c1\yone{c_1} and c2\ytwo{c_2} only because differentiating e2t\ytwo{e^{2t}} brings down a 2\ytwo{2}, giving us a second equation c1+2c2=5\yone{c_1} + \ytwo{2c_2} = 5 that is different from c1+c2=4\yone{c_1} + \ytwo{c_2} = 4. If we tried using y1=et\yone{y_1 = e^t} and a constant multiple like y2=5et\ytwo{y_2 = 5e^t}, both conditions at t=0t = 0 would involve the exact same combination c1+5c2\yone{c_1} + \ytwo{5c_2}:

y1=et,y2=e2t⏟linearly independent (not constant multiples)vs.y1=et,y2=5et⏟constant multiples: c1+5c2=4 and c1+5c2=5\displaystyle \begin{gathered} \underbrace{\yone{y_1 = e^t}, \quad \ytwo{y_2 = e^{2t}}}_{\text{linearly independent (not constant multiples)}} \\ \text{vs.} \\ \underbrace{\yone{y_1 = e^t}, \quad \ytwo{y_2 = 5e^t}}_{\text{constant multiples: } \yone{c_1} + \ytwo{5c_2} = 4 \text{ and } \yone{c_1} + \ytwo{5c_2} = 5} \end{gathered}
4

Variable Coefficients and Verifying Solutions

What changes when the coefficients in front of y′′\accel{y''}, y′\vel{y'}, and y\pos{y} depend on tt? Let's solve the initial value problem

t2y′′−2ty′+2y\displaystyle t^2 \accel{y''} - 2t \vel{y'} + 2\pos{y} =0,y(1)\displaystyle = 0, \quad \pos{y(1)} =3,y′(1)\displaystyle = 3, \quad \vel{y'(1)} =5\displaystyle = 5

Because the coefficients now contain tt, a single exponential erte^{rt} no longer cancels out across the equation. Instead, we check that the two given functions y1=t\yone{y_1 = t} and y2=t2\ytwo{y_2 = t^2} are solutions by plugging them in, and then combine them by superposition.

Variable Coefficients and Verifying Solutions
t2 y′′−2t y′+2y\displaystyle t^2\,\accel{y''} - 2t\,\vel{y'} + 2\pos{y} =0\displaystyle = 0
y1=t,y2=t2y(1)=3,y′(1)=5y(t)=  ?\displaystyle \begin{alignedat}{2}\yone{y_1} &\yone{{}= t}, &\quad \ytwo{y_2} &\ytwo{{}= t^2}\\[4pt]\pos{y(1)} &= 3, &\quad \vel{y'(1)} &= 5\\[6pt]\pos{y(t)} &= \;?\end{alignedat}
Text solution
1. Verify that y1=t\yone{y_1 = t} and y2=t2\ytwo{y_2 = t^2} satisfy the equationSubstitute each function and its first two derivatives into the left-hand side to check that both simplify to 00:
For y1=t,  y1′=1,  y1′′=0:t2(0)−2t(1)+2(t)=−2t+2t=0For y2=t2,  y2′=2t,  y2′′=2:t2(2)−2t(2t)+2(t2)=2t2−4t2+2t2=0\displaystyle \begin{aligned} &\text{For } \yone{y_1 = t}, \; \yone{y_1' = 1}, \; \yone{y_1'' = 0}: \\ &\quad t^2(\yone{0}) - 2t(\yone{1}) + 2(\yone{t}) \\ &\qquad = -2t + 2t = 0 \\[6pt] &\text{For } \ytwo{y_2 = t^2}, \; \ytwo{y_2' = 2t}, \; \ytwo{y_2'' = 2}: \\ &\quad t^2(\ytwo{2}) - 2t(\ytwo{2t}) + 2(\ytwo{t^2}) \\ &\qquad = 2t^2 - 4t^2 + 2t^2 = 0 \end{aligned}
2. Form the general solution and its derivativeSince t\yone{t} and t2\ytwo{t^2} are not constant multiples of each other, superposition gives y(t)\pos{y(t)} and differentiating gives y′(t)\vel{y'(t)}:
y(t)=c1t+c2t2y′(t)=c1+2c2t\displaystyle \begin{aligned} \pos{y(t)} &= \yone{c_1 t} + \ytwo{c_2 t^2} \\ \vel{y'(t)} &= \yone{c_1} + \ytwo{2c_2 t} \end{aligned}
3. Plug in t=1t = 1 to find c1\yone{c_1} and c2\ytwo{c_2}Plugging the starting time t=1t = 1 into the position and velocity equations gives us c1\yone{c_1} and c2\ytwo{c_2}:
y(1)=c1(1)+c2(1)2=c1+c2=3y′(1)=c1+2c2(1)=c1+2c2=5(c1+2c2)−(c1+c2)=5−3  ⟹  c2=2c1+2=3  ⟹  c1=1\displaystyle \begin{gathered} \begin{aligned} \pos{y(1)} &= \yone{c_1}(1) + \ytwo{c_2}(1)^2 \\ &= \yone{c_1} + \ytwo{c_2} = 3 \\[4pt] \vel{y'(1)} &= \yone{c_1} + \ytwo{2c_2}(1) \\ &= \yone{c_1} + \ytwo{2c_2} = 5 \end{aligned} \\[8pt] \begin{aligned} (\yone{c_1} + \ytwo{2c_2}) - (\yone{c_1} + \ytwo{c_2}) &= 5 - 3 \\ \implies &\quad \ytwo{c_2} = 2 \\ \yone{c_1} + 2 &= 3 \\ \implies &\quad \yone{c_1} = 1 \end{aligned} \end{gathered}

So the solution that satisfies t2y′′−2ty′+2y=0t^2 \accel{y''} - 2t \vel{y'} + 2\pos{y} = 0 with y(1)=3\pos{y(1)} = 3 and y′(1)=5\vel{y'(1)} = 5 is y(t)=t+2t2\pos{y(t)} = t + 2t^2.

5

Singularities and the Interval of Existence

In the previous example, why were the initial conditions given at t=1t = 1 instead of t=0t = 0? Plugging t=0t = 0 into y(t)=c1t+c2t2\pos{y(t)} = \yone{c_1 t} + \ytwo{c_2 t^2} gives y(0)=0\pos{y(0)} = 0 for every choice of c1\yone{c_1} and c2\ytwo{c_2}, so a condition like y(0)=3\pos{y(0)} = 3 is impossible to satisfy.

The Existence and Uniqueness Theorem tells us the largest open time interval around the starting time t0\interval{t_0} where an initial value problem is guaranteed to have a single unbroken solution. Without solving the equation, let's find that guaranteed interval for

(t−4)y′′+3y′+tt+2y=1t−7,y(1)=3,y′(1)=−2\displaystyle \begin{gathered} (t - 4)\accel{y''} + 3\vel{y'} + \frac{t}{t + 2}\pos{y} = \forced{\frac{1}{t - 7}}, \\ \pos{y(1)} = 3, \quad \vel{y'(1)} = -2 \end{gathered}
Singularities and the Interval of Existence
t2 y′′−2t y′+2y=0t^2\,\htmlClass{lc-orange}{y''} - 2t\,\htmlClass{lc-pink}{y'} + 2\htmlClass{lc-blue}{y} = 0
t\htmlClass{lc-mute}{t}
y\htmlClass{lc-mute}{y}
(1,3)\htmlClass{lc-blue}{(1, 3)}
5\htmlClass{lc-pink}{5}
(0,3)?\htmlClass{lc-blue}{(0, 3)}\kern0.3em ?
5\htmlClass{lc-pink}{5}

To see where the equation fails to define the acceleration y′′\accel{y''}, we first divide through by the leading coefficient so y′′\accel{y''} stands alone with a 11 in front:

y′′+p(t)y′+q(t)y=f(t)⏟standard form (leading coefficient = 1)\displaystyle \underbrace{\accel{y''} + p(t)\vel{y'} + q(t)\pos{y} = \forced{f(t)}}_{\text{standard form (leading coefficient } = \, 1\text{)}}

As long as p(t)p(t), q(t)q(t), and f(t)\forced{f(t)} are continuous on an open interval containing the starting time t0\interval{t_0}, a unique solution is guaranteed on that entire interval.

Text solution
1. Divide by the leading coefficient to put the equation in standard formDividing every term by t−4t - 4 isolates y′′\accel{y''} and puts t−4t - 4 into the denominators of the other terms:
y′′+3t−4y′+t(t−4)(t+2)y\displaystyle \accel{y''} + \frac{3}{t - 4}\vel{y'} + \frac{t}{(t - 4)(t + 2)}\pos{y} =1(t−4)(t−7)\displaystyle = \forced{\frac{1}{(t - 4)(t - 7)}}
2. Find all discontinuities of p(t)p(t), q(t)q(t), and f(t)\forced{f(t)}Set each denominator factor equal to zero to find where the coefficients or right-hand side divide by zero (ignoring the numerator zero at t=0t = 0):
t\displaystyle t =−2,t\displaystyle = -2, \quad t =4,t\displaystyle = 4, \quad t =7\displaystyle = 7
3. Select the open interval containing the initial time t0=1\interval{t_0 = 1}The three discontinuities split the tt-axis into four open intervals, and the starting time t0=1\interval{t_0 = 1} from y(1)=3\pos{y(1)} = 3 sits between −2-2 and 44:
(−∞,−2),(−2,4)⏟contains t0=1,(4,7),(7,∞)\displaystyle \begin{gathered}(-\infty, -2), \quad \underbrace{\interval{(-2, 4)}}_{\text{contains } \interval{t_0 = 1}}, \\ (4, 7), \quad (7, \infty)\end{gathered}
t\htmlClass{lc-mute}{t}
t=−2t = -2
t0=1\htmlClass{lc-blue}{t_0 = 1}
t=4t = 4
t=7t = 7
(−2,4)\htmlClass{lc-blue}{(-2, 4)}

So a unique solution passing through y(1)=3\pos{y(1)} = 3 with slope y′(1)=−2\vel{y'(1)} = -2 is guaranteed to exist on the open interval (−2,4)\interval{(-2, 4)}.

In the (t,y)(t, y) plane, the vertical lines at the discontinuities t=−2t = -2, t=4t = 4, and t=7t = 7 are where the theorem's guarantee stops, so the guaranteed interval of existence runs between the two discontinuities right next to the starting point (t0,y0)\pos{(t_0, y_0)}.

Breaks in the equation are where the theorem stops guaranteeing a solution, so the guarantee covers only the single open interval around the starting time.
6

Nonhomogeneous Equations and Particular Solutions

So far, when all the y\pos{y} terms were on the left, the right-hand side was 00. Now we want to find the general solution when the right-hand side is not 00:

y′′−3y′+2y=0⏟homogeneous(right side = 0)y′′−3y′+2y=10⏟nonhomogeneous(right side ≠ 0)\displaystyle \begin{aligned} &\underbrace{\accel{y''} - 3\vel{y'} + 2\pos{y} = \homog{0}}_{\begin{gathered}\text{homogeneous} \\[-2pt] \text{(right side } = \, \homog{0}\text{)}\end{gathered}} \\[10pt] &\underbrace{\accel{y''} - 3\vel{y'} + 2\pos{y} = \forced{10}}_{\begin{gathered}\text{nonhomogeneous} \\[-2pt] \text{(right side } \neq \, 0\text{)}\end{gathered}} \end{aligned}

(In linear equations, "homogeneous" just means the side without y\pos{y} is 0\homog{0}, not that the equation is written in terms of the ratio yt\tfrac{y}{t} as in first-order substitution.)

Nonhomogeneous Equations and Particular Solutions
y′′−3y′+2y=0y′′−3y′+2y=10y(t)=  ?\displaystyle \begin{aligned}\accel{y''} - 3\vel{y'} + 2\pos{y} &= \homog{0}\\[4pt]\accel{y''} - 3\vel{y'} + 2\pos{y} &= \forced{10}\\[8pt]\pos{y(t)} &= \;?\end{aligned}

If Y1\forced{Y_1} and Y2\forced{Y_2} both solve y′′−3y′+2y=10\accel{y''} - 3\vel{y'} + 2\pos{y} = \forced{10}, adding them together produces 10+10=20\forced{10} + \forced{10} = 20 on the right-hand side instead of 10\forced{10}. To keep the right-hand side at 10\forced{10} while still getting two constants c1\homog{c_1} and c2\homog{c_2}, we add a solution that gives 0\homog{0} to a solution that gives 10\forced{10}, since 0+10=10\homog{0} + \forced{10} = \forced{10}:

Text solution
1. Find the homogeneous general solution yh(t)\homog{y_h(t)} that makes the left-hand side 0\homog{0}From our earlier work on y′′−3y′+2y=0\accel{y''} - 3\vel{y'} + 2\pos{y} = \homog{0}, any linear combination of et\homog{e^t} and e2t\homog{e^{2t}} gives 0\homog{0} on the left-hand side:
yh(t)\displaystyle \homog{y_h(t)} =c1et+c2e2t\displaystyle = \homog{c_1 e^t + c_2 e^{2t}}
2. Find one particular solution yp\forced{y_p} that makes the left-hand side 10\forced{10}Since the right-hand side is the constant 10\forced{10}, try a constant yp=5\forced{y_p = 5}, whose derivatives are yp′=0\forced{y_p' = 0} and yp′′=0\forced{y_p'' = 0}:
(5)′′−3(5)′+2(5)\displaystyle (\forced{5})'' - 3(\forced{5})' + 2(\forced{5}) =0−3(0)+2(5)\displaystyle = 0 - 3(0) + 2(5) =10  ⟹  yp=5\displaystyle = \forced{10} \implies \forced{y_p = 5}
3. Add the homogeneous and particular solutions togetherBecause the left-hand side is linear, plugging in the sum splits cleanly into 0\homog{0} from yh(t)\homog{y_h(t)} plus 10\forced{10} from yp\forced{y_p}:
y(t)\displaystyle \pos{y(t)} =c1et+c2e2t⏟homogeneous solution yh(t)→0+5⏟particular solution yp→10\displaystyle = \underbrace{\homog{c_1 e^t + c_2 e^{2t}}}_{\text{homogeneous solution } \homog{y_h(t) \to 0}} + \underbrace{\forced{5}}_{\text{particular solution } \forced{y_p \to 10}}

So y(t)=c1et+c2e2t+5\pos{y(t)} = \homog{c_1 e^t + c_2 e^{2t}} + \forced{5} satisfies y′′−3y′+2y=10\accel{y''} - 3\vel{y'} + 2\pos{y} = \forced{10} for every choice of c1\homog{c_1} and c2\homog{c_2}.

As we change c1\homog{c_1} and c2\homog{c_2} to adjust the height and slope of yh(t)=c1et+c2e2t\homog{y_h(t)} = \homog{c_1 e^t + c_2 e^{2t}}, it still contributes 0\homog{0} to y′′−3y′+2y\accel{y''} - 3\vel{y'} + 2\pos{y}, so adding it to the particular solution yp=5\forced{y_p = 5} keeps the left-hand side equal to 0+10=10\homog{0} + \forced{10} = \forced{10}.

Because the homogeneous part always adds zero to the left side of the equation, adding it to the particular solution lets you change the curve's starting height and slope without changing the left side's total.

Key concepts

Everything here comes down to checking whether the y\pos{y} terms are linear, and then matching what the right-hand side adds up to:

Spotting linearity

Look only at y\pos{y}, y′\vel{y'}, and y′′\accel{y''}. Powers or functions of tt in the coefficients or on the right-hand side (like t2y′′−2ty′+2y=0t^2 \accel{y''} - 2t \vel{y'} + 2\pos{y} = 0) are still linear, so superposition applies whenever the right-hand side is 00. Powers or products of y\pos{y} and its derivatives (like y′′+y2=0\accel{y''} + \pos{y}^2 = 0 or y′′+3yy′−2y=0\accel{y''} + 3\pos{y}\vel{y'} - 2\pos{y} = 0) are nonlinear: cross-terms appear when you plug in a sum, so you cannot add solutions.

Homogeneous equations (=0= \homog{0})

Scale and add two linearly independent solutions (neither a constant multiple of the other, like et\yone{e^t} and e2t\ytwo{e^{2t}}, never et\yone{e^t} and 5et\ytwo{5e^t}):

y(t)\displaystyle \pos{y(t)} =c1y1(t)+c2y2(t)\displaystyle = \yone{c_1 y_1(t)} + \ytwo{c_2 y_2(t)}
Use the trial function y=ert\pos{y = e^{rt}} only when the coefficients are constants (y′′−3y′+2y=0  ⟹  (r−1)(r−2)=0\accel{y''} - 3\vel{y'} + 2\pos{y} = 0 \implies (r - 1)(r - 2) = 0). When the coefficients depend on tt (t2y′′−2ty′+2y=0t^2 \accel{y''} - 2t \vel{y'} + 2\pos{y} = 0), don't plug in erte^{rt}. Instead, verify the given solutions (y1=t,y2=t2\yone{y_1 = t}, \ytwo{y_2 = t^2}) by plugging them in directly and combine them as c1t+c2t2\yone{c_1 t} + \ytwo{c_2 t^2}.

Nonhomogeneous equations (≠0\neq 0)

Don't add two nonhomogeneous solutions together (10+10=20≠10\forced{10} + \forced{10} = 20 \neq \forced{10}). Instead, add the homogeneous general solution (which gives 0\homog{0}) to one particular solution (which gives the right-hand side), and write the full sum before plugging in y(t0)\pos{y(t_0)} and y′(t0)\vel{y'(t_0)} to solve for c1\homog{c_1} and c2\homog{c_2}:

y(t)\displaystyle \pos{y(t)} =c1et+c2e2t⏟yh(t)→0+5⏟yp→10\displaystyle = \underbrace{\homog{c_1 e^t + c_2 e^{2t}}}_{\homog{y_h(t) \to 0}} + \underbrace{\forced{5}}_{\forced{y_p \to 10}}

Interval of existence

Without solving the equation, divide by the leading coefficient so y′′\accel{y''} stands alone:

y′′+p(t)y′+q(t)y\displaystyle \accel{y''} + p(t)\vel{y'} + q(t)\pos{y} =f(t)\displaystyle = \forced{f(t)}
Mark every tt that makes a denominator 00 (ignoring numerator zeros), and pick the single open interval between adjacent discontinuities that contains the starting time t0\interval{t_0}.

7

Practice

1

Classify each differential equation as linear homogeneous, linear nonhomogeneous, or nonlinear: (a) t3y′′−4ty′+y=0t^3 \accel{y''} - 4t\vel{y'} + \pos{y} = 0 (b) y′′+3yy′−2y=0\accel{y''} + 3\pos{y}\vel{y'} - 2\pos{y} = 0 (c) y′′−t2y′+5y=et\accel{y''} - t^2 \vel{y'} + 5\pos{y} = e^t (d) y′′+4y′+y2=0\accel{y''} + 4\vel{y'} + \pos{y}^2 = 0

Ask two questions in order: first, are y\pos{y}, y′\vel{y'}, and y′′\accel{y''} free of powers and products with each other? Second, when all y\pos{y} terms are on the left, is the right-hand side 00?

(a) Linear homogeneousOnly tt is cubed (t3t^3), while y\pos{y}, y′\vel{y'}, and y′′\accel{y''} appear to the first power with no products, and the right-hand side is 0\homog{0}. (Watch out: calling this nonlinear because of t3t^3 confuses powers of tt with powers of y\pos{y}.)
(b) NonlinearThe term 3yy′3\pos{y}\vel{y'} multiplies y\pos{y} and y′\vel{y'} together.
(c) Linear nonhomogeneousy\pos{y}, y′\vel{y'}, and y′′\accel{y''} are not squared or multiplied together, and the term et\forced{e^t} depends only on tt, making the right-hand side nonzero. (Watch out: et\forced{e^t} is a function of tt, not eye^{\pos{y}}, so the equation is still linear.)
(d) Nonlineary\pos{y} is squared in the y2\pos{y}^2 term.
2

Use the trial function y=ert\pos{y = e^{rt}} to find two solutions to y′′+y′−6y=0\accel{y''} + \vel{y'} - 6\pos{y} = 0, write the general solution, and solve the initial value problem y(0)=3\pos{y(0)} = 3, y′(0)=1\vel{y'(0)} = 1.

Substitute y=ert\pos{y = e^{rt}}, y′=rert\vel{y' = r e^{rt}}, and y′′=r2ert\accel{y'' = r^2 e^{rt}}, factor out erte^{rt}, and differentiate your general solution before plugging in t=0t = 0.

Substituting y=ert\pos{y = e^{rt}} into y′′+y′−6y=0\accel{y''} + \vel{y'} - 6\pos{y} = 0 gives
ert(r2+r−6)\displaystyle e^{rt}(r^2 + r - 6) =ert(r−2)(r+3)\displaystyle = e^{rt}(r - 2)(r + 3) =0  ⟹  r=2,  r=−3\displaystyle = 0 \implies \yone{r = 2}, \; \ytwo{r = -3}
The two solutions are y1=e2t\yone{y_1 = e^{2t}} and y2=e−3t\ytwo{y_2 = e^{-3t}}, giving the general solution and its derivative:
y(t)=c1e2t+c2e−3ty′(t)=2c1e2t−3c2e−3t\displaystyle \begin{aligned} \pos{y(t)} &= \yone{c_1 e^{2t}} + \ytwo{c_2 e^{-3t}} \\ \vel{y'(t)} &= \yone{2c_1 e^{2t}} - \ytwo{3c_2 e^{-3t}} \end{aligned}
(Watch out: forgetting the negative sign when differentiating e−3t\ytwo{e^{-3t}} gives 2c1+3c2=1\yone{2c_1} + \ytwo{3c_2} = 1, which leads to the wrong constants c1=8,c2=−5\yone{c_1} = 8, \ytwo{c_2} = -5 and y(t)=8e2t−5e−3ty(t) = 8e^{2t} - 5e^{-3t}; also, don't set c1=3\yone{c_1} = 3 and c2=1\ytwo{c_2} = 1 directly from y(0)=3\pos{y(0)} = 3 and y′(0)=1\vel{y'(0)} = 1 without solving the two equations.)
Plugging in t=0t = 0 gives
c1+c2=32c1−3c2=1\displaystyle \begin{aligned} \yone{c_1} + \ytwo{c_2} &= 3 \\ \yone{2c_1} - \ytwo{3c_2} &= 1 \end{aligned}
Solving these two equations gives c1=2\yone{c_1} = 2 and c2=1\ytwo{c_2} = 1, so
y(t)\displaystyle \pos{y(t)} =2e2t+e−3t\displaystyle = 2e^{2t} + e^{-3t}
3

Verify that y1=e3t\yone{y_1 = e^{3t}} is a solution to y′′−3y′=0\accel{y''} - 3\vel{y'} = 0. Explain why a student cannot solve the initial value problem y(0)=2\pos{y(0)} = 2, y′(0)=9\vel{y'(0)} = 9 using y(t)=c1e3t+c2(4e3t)\pos{y(t)} = \yone{c_1 e^{3t}} + \ytwo{c_2(4e^{3t})}, then find a second linearly independent solution using y=ert\pos{y = e^{rt}} and solve the initial value problem.

When you factor the equation from y=ert\pos{y = e^{rt}}, notice that there is no y\pos{y} term so rr factors out; remember what e0te^{0t} simplifies to.

For y1=e3t\yone{y_1 = e^{3t}}, we have y1′=3e3t\yone{y_1' = 3e^{3t}} and y1′′=9e3t\yone{y_1'' = 9e^{3t}}, so
y1′′−3y1′\displaystyle \yone{y_1''} - 3\yone{y_1'} =9e3t−3(3e3t)\displaystyle = \yone{9e^{3t}} - 3(\yone{3e^{3t}}) =0\displaystyle = 0
Using y(t)=c1e3t+4c2e3t\pos{y(t)} = \yone{c_1 e^{3t}} + \ytwo{4c_2 e^{3t}} and y′(t)=3c1e3t+12c2e3t\vel{y'(t)} = \yone{3c_1 e^{3t}} + \ytwo{12c_2 e^{3t}} at t=0t = 0 gives c1+4c2=2\yone{c_1} + \ytwo{4c_2} = 2 for position and 3c1+12c2=3(c1+4c2)=9\yone{3c_1} + \ytwo{12c_2} = 3(\yone{c_1} + \ytwo{4c_2}) = 9 (so c1+4c2=3\yone{c_1} + \ytwo{4c_2} = 3) for velocity, which is impossible because 4e3t\ytwo{4e^{3t}} is a constant multiple of e3t\yone{e^{3t}}.
Substituting y=ert\pos{y = e^{rt}} into y′′−3y′=0\accel{y''} - 3\vel{y'} = 0 gives
ert(r2−3r)\displaystyle e^{rt}(r^2 - 3r) =ertr(r−3)\displaystyle = e^{rt} r(r - 3) =0  ⟹  r=0,  r=3\displaystyle = 0 \implies \ytwo{r = 0}, \; \yone{r = 3}
(Watch out: r=0\ytwo{r = 0} gives the constant solution y2=e0t=1\ytwo{y_2 = e^{0t} = 1}, not y2=0y_2 = 0; dropping the r=0\ytwo{r = 0} root leaves you with only c1e3t\yone{c_1 e^{3t}}, which cannot satisfy both initial conditions.)
The general solution is y(t)=c1e3t+c2\pos{y(t)} = \yone{c_1 e^{3t}} + \ytwo{c_2} with derivative y′(t)=3c1e3t\vel{y'(t)} = \yone{3c_1 e^{3t}}. At t=0t = 0:
y(0)=c1+c2=2y′(0)=3c1=9  ⟹  c1=3,  c2=−1\displaystyle \begin{aligned} \pos{y(0)} &= \yone{c_1} + \ytwo{c_2} = 2 \\ \vel{y'(0)} &= \yone{3c_1} = 9 \implies \yone{c_1} = 3, \; \ytwo{c_2} = -1 \end{aligned}
y(t)\displaystyle \pos{y(t)} =3e3t−1\displaystyle = 3e^{3t} - 1
4

Verify that y1(t)=t\yone{y_1(t) = t} and y2(t)=t3\ytwo{y_2(t) = t^3} are solutions to the variable-coefficient equation t2y′′−3ty′+3y=0t^2 \accel{y''} - 3t\vel{y'} + 3\pos{y} = 0, solve the initial value problem y(1)=5\pos{y(1)} = 5, y′(1)=9\vel{y'(1)} = 9, and explain why the initial value problem y(0)=5\pos{y(0)} = 5, y′(0)=9\vel{y'(0)} = 9 has no solution.

After verifying t\yone{t} and t3\ytwo{t^3} by plugging in their derivatives, form y(t)=c1t+c2t3\pos{y(t)} = \yone{c_1 t} + \ytwo{c_2 t^3}; for t=0t = 0, check both what y(0)\pos{y(0)} is forced to equal and what happens to the equation when you divide by t2t^2.

For y1=t\yone{y_1 = t} (y1′=1,y1′′=0\yone{y_1' = 1}, \yone{y_1'' = 0}) and y2=t3\ytwo{y_2 = t^3} (y2′=3t2,y2′′=6t\ytwo{y_2' = 3t^2}, \ytwo{y_2'' = 6t}):
t2(0)−3t(1)+3(t)=0t2(6t)−3t(3t2)+3(t3)=6t3−9t3+3t3=0\displaystyle \begin{aligned} t^2(\yone{0}) - 3t(\yone{1}) + 3(\yone{t}) &= 0 \\ t^2(\ytwo{6t}) - 3t(\ytwo{3t^2}) + 3(\ytwo{t^3}) &= 6t^3 - 9t^3 + 3t^3 = 0 \end{aligned}
By superposition, y(t)=c1t+c2t3\pos{y(t)} = \yone{c_1 t} + \ytwo{c_2 t^3} and y′(t)=c1+3c2t2\vel{y'(t)} = \yone{c_1} + \ytwo{3c_2 t^2}. (Watch out: forgetting the factor of 3\ytwo{3} when differentiating t3\ytwo{t^3} gives c1+c2=9\yone{c_1} + \ytwo{c_2} = 9 at t=1t = 1, which contradicts c1+c2=5\yone{c_1} + \ytwo{c_2} = 5.)
At t=1t = 1:
c1+c2=5c1+3c2=9  ⟹  2c2=4  ⟹  c2=2,  c1=3\displaystyle \begin{aligned} \yone{c_1} + \ytwo{c_2} &= 5 \\ \yone{c_1} + \ytwo{3c_2} &= 9 \implies \ytwo{2c_2} = 4 \implies \ytwo{c_2} = 2, \; \yone{c_1} = 3 \end{aligned}
At t=0t = 0, every function of the form y(t)=c1t+c2t3\pos{y(t)} = \yone{c_1 t} + \ytwo{c_2 t^3} gives y(0)=0≠5\pos{y(0)} = 0 \neq 5. In fact, setting t=0t = 0 in the equation itself leaves 3y(0)=03\pos{y(0)} = 0, so every solution has y(0)=0\pos{y(0)} = 0. The theorem gives no guarantee at t=0t = 0 because the leading coefficient t2t^2 is 00 there, causing division by zero in the standard form y′′−3ty′+3t2y=0\accel{y''} - \frac{3}{t}\vel{y'} + \frac{3}{t^2}\pos{y} = 0. For t=1t = 1, the solution is
y(t)\displaystyle \pos{y(t)} =3t+2t3\displaystyle = 3t + 2t^3
5

Without solving the equation, find the largest open interval on which the Existence and Uniqueness Theorem guarantees a unique solution to

(t−3)y′′+tt+1y′+t−2t−6y=1t+5,y(0)=4,y′(0)=−1\displaystyle \begin{aligned} &(t - 3)\accel{y''} + \frac{t}{t + 1}\vel{y'} \\ &\qquad + \frac{t - 2}{t - 6}\pos{y} = \forced{\frac{1}{t + 5}}, \\[4pt] &\pos{y(0)} = 4, \quad \vel{y'(0)} = -1 \end{aligned}

First divide every term by the coefficient in front of y′′\accel{y''}, then mark all values of tt that make any denominator zero and locate which interval contains the starting time t0\interval{t_0}.

Dividing by the leading coefficient t−3t - 3 puts the equation into standard form:
y′′+t(t−3)(t+1)y′+t−2(t−3)(t−6)y\displaystyle \accel{y''} + \frac{t}{(t - 3)(t + 1)}\vel{y'} + \frac{t - 2}{(t - 3)(t - 6)}\pos{y} =1(t−3)(t+5)\displaystyle = \forced{\frac{1}{(t - 3)(t + 5)}}
The denominators are zero at t=−5,−1,3,t = -5, -1, 3, and 66, splitting the tt-axis into (−∞,−5)(-\infty, -5), (−5,−1)(-5, -1), (−1,3)(-1, 3), (3,6)(3, 6), and (6,∞)(6, \infty). (Watch out: forgetting to divide by t−3t - 3 misses the barrier at t=3t = 3 and gives (−1,6)(-1, 6); treating the numerator zero t=2t = 2 as a discontinuity gives (−1,2)(-1, 2); using y0=4y_0 = 4 instead of the initial time t0=0\interval{t_0 = 0} gives (3,6)(3, 6).)
Since the initial time t0=0\interval{t_0 = 0} lies between −1-1 and 33, the largest guaranteed open interval is
(−1,3)\displaystyle \interval{(-1, 3)}
6

Solve the nonhomogeneous initial value problem y′′−4y′+3y=12\accel{y''} - 4\vel{y'} + 3\pos{y} = \forced{12} with y(0)=7\pos{y(0)} = 7 and y′(0)=5\vel{y'(0)} = 5 by finding the homogeneous general solution and a constant particular solution.

Solve y′′−4y′+3y=0\accel{y''} - 4\vel{y'} + 3\pos{y} = \homog{0} with y=ert\pos{y = e^{rt}}, find a constant yp=A\forced{y_p = A} that makes the left side equal 12\forced{12}, and add them together before using y(0)=7\pos{y(0)} = 7 and y′(0)=5\vel{y'(0)} = 5.

For the homogeneous equation y′′−4y′+3y=0\accel{y''} - 4\vel{y'} + 3\pos{y} = \homog{0}, trying y=ert\pos{y = e^{rt}} gives r2−4r+3=(r−1)(r−3)=0r^2 - 4r + 3 = (r - 1)(r - 3) = 0, so yh(t)=c1et+c2e3t\homog{y_h(t)} = \homog{c_1 e^t + c_2 e^{3t}}.
Trying a constant particular solution yp=A\forced{y_p = A} in y′′−4y′+3y=12\accel{y''} - 4\vel{y'} + 3\pos{y} = \forced{12} gives 0−4(0)+3A=120 - 4(0) + 3\forced{A} = \forced{12}, so yp=4\forced{y_p = 4}. Combining them gives
y(t)=c1et+c2e3t+4y′(t)=c1et+3c2e3t\displaystyle \begin{aligned} \pos{y(t)} &= \homog{c_1 e^t + c_2 e^{3t}} + \forced{4} \\ \vel{y'(t)} &= \homog{c_1 e^t + 3c_2 e^{3t}} \end{aligned}
(Watch out: plugging y(0)=7\pos{y(0)} = 7 into yh(t)\homog{y_h(t)} before adding +4+ \forced{4} sets c1+c2=7\homog{c_1} + \homog{c_2} = 7 instead of c1+c2+4=7\homog{c_1} + \homog{c_2} + \forced{4} = 7, which gives the wrong answer 8et−e3t+48e^t - e^{3t} + 4 with y(0)=11y(0) = 11.)
At t=0t = 0:
c1+c2+4=7  ⟹  c1+c2=3c1+3c2=5  ⟹  2c2=2  ⟹  c2=1,  c1=2\displaystyle \begin{aligned} \homog{c_1} + \homog{c_2} + \forced{4} &= 7 \implies \homog{c_1} + \homog{c_2} = 3 \\ \homog{c_1} + \homog{3c_2} &= 5 \implies \homog{2c_2} = 2 \implies \homog{c_2} = 1, \; \homog{c_1} = 2 \end{aligned}
y(t)\displaystyle \pos{y(t)} =2et+e3t+4\displaystyle = 2e^t + e^{3t} + 4
7

Suppose Y1(t)\forced{Y_1(t)} and Y2(t)\forced{Y_2(t)} are two different solutions to the nonhomogeneous linear equation y′′+p(t)y′+q(t)y=6\accel{y''} + p(t)\vel{y'} + q(t)\pos{y} = \forced{6}. Explain why Y1(t)+Y2(t)\forced{Y_1(t)} + \forced{Y_2(t)} is not a solution, show that Y1(t)−Y2(t)\forced{Y_1(t)} - \forced{Y_2(t)} is a solution to the corresponding homogeneous equation y′′+p(t)y′+q(t)y=0\accel{y''} + p(t)\vel{y'} + q(t)\pos{y} = \homog{0}, and use Y1(t)\forced{Y_1(t)}, Y2(t)\forced{Y_2(t)}, and an arbitrary constant cc to write a family of solutions to y′′+p(t)y′+q(t)y=6\accel{y''} + p(t)\vel{y'} + q(t)\pos{y} = \forced{6}.

Plug Y1+Y2\forced{Y_1} + \forced{Y_2} and Y1−Y2\forced{Y_1} - \forced{Y_2} into the left-hand side and regroup the Y1\forced{Y_1} terms and Y2\forced{Y_2} terms separately; then combine your homogeneous solution with one particular solution.

Because the left-hand side is linear, plugging in Y1+Y2\forced{Y_1} + \forced{Y_2} regroups into
(Y1′′+pY1′+qY1)+(Y2′′+pY2′+qY2)\displaystyle (\forced{Y_1''} + p \forced{Y_1'} + q \forced{Y_1}) + (\forced{Y_2''} + p \forced{Y_2'} + q \forced{Y_2}) =6+6\displaystyle = \forced{6} + \forced{6} =12≠6\displaystyle = 12 \neq \forced{6}
Plugging in Y1−Y2\forced{Y_1} - \forced{Y_2} regroups into
(Y1′′+pY1′+qY1)−(Y2′′+pY2′+qY2)\displaystyle (\forced{Y_1''} + p \forced{Y_1'} + q \forced{Y_1}) - (\forced{Y_2''} + p \forced{Y_2'} + q \forced{Y_2}) =6−6\displaystyle = \forced{6} - \forced{6} =0\displaystyle = \homog{0}
so Y1(t)−Y2(t)\homog{Y_1(t) - Y_2(t)} solves the homogeneous equation. Scaling this homogeneous solution by c\homog{c} (which still gives c(0)=0\homog{c(0) = 0}) and adding the particular solution Y1(t)\forced{Y_1(t)} (which gives 6\forced{6}) gives 0+6=6\homog{0} + \forced{6} = \forced{6}. (Watch out: leaving off +Y1(t)+ \forced{Y_1(t)} as c(Y1(t)−Y2(t))\homog{c(Y_1(t) - Y_2(t))} gives 0\homog{0} instead of 6\forced{6}, and multiplying the whole sum by cc as c(Y1(t)−Y2(t)+Y1(t))c(Y_1(t) - Y_2(t) + Y_1(t)) gives 6c6c instead of 6\forced{6}.)
y(t)\displaystyle \pos{y(t)} =c(Y1(t)−Y2(t))+Y1(t)\displaystyle = \homog{c(Y_1(t) - Y_2(t))} + \forced{Y_1(t)}