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) with its velocity y′(t) and acceleration 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) that satisfy the equation
y′′−3y′+2y=0
at every time t. Before solving for y(t), let's look at how y,y′, and y′′ appear in the equation, because that determines whether we can combine two separate solutions y1(t) and y2(t) into a single family.
Linearity and the Principle of Superposition
Because derivatives split across sums and constants factor straight out, plugging c1y1(t)+c2y2(t) into y′′−3y′+2y=0 regroups cleanly into the y1 terms plus the y2 terms, with no y1y2 cross-terms:
So for any constants c1 and c2, the combined function is also a solution:
y(t)=superpositionc1y1(t)+c2y2(t)
For the linear equation y′′−3y′+2y=0, the combined curve y(t)=c1y1(t)+y2(t) makes the left-hand side equal 0 for every value of c1. In the nonlinear equation y′′+y2=0, squaring c1y1(t)+y2(t) creates an extra 2c1y1(t)y2(t) term, so the left-hand side no longer adds up to 0.
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) already gives a family y(t)=c1y1(t), why do we need to find a second solution y2(t)? In a second-order equation, a starting state at t=0 has two independent pieces of information: its starting position y(0) and its starting velocity y′(0).
Why Two Solutions Are Needed for Initial Conditions
With only one solution y(t)=c1y1(t), choosing c1 to match the starting height y(0)=3 uses up our only constant and fixes the starting slope at y′(0)=c1y1′(0). Adding a second solution gives us two constants, c1 and c2, which we can choose at t=0 to match both the starting position and the starting velocity:
While a single curve c1y1(t) is locked at one slope through (0,3), we can adjust c1 and c2 in c1y1(t)+c2y2(t) to keep y(0)=3 and tilt the curve to any starting velocity 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=0,y(0)=4,y′(0)=5
Because the coefficients 1,−3, and 2 are constants, we look for a function whose derivatives have the same form as the function itself, so y′′,y′, and y can cancel out for all t. Each derivative of an exponential y=ert brings down a factor of r while keeping ert the same:
y=ert,y′=rert,y′′=r2ert
Solving an Initial Value Problem and Linear Independence
y′′−3y′+2y=0
y(0)y(t)=4,=?y′(0)=5
Text solution
1. Substitute y=ert and factor to find rPlugging y=ert and its derivatives into the differential equation lets us factor out ert and solve for r:
2. Write the general solution and differentiate itSuperposition combines y1=et and y2=e2t into the position function y(t), and differentiating gives the velocity function y′(t):
y(t)y′(t)=c1et+c2e2t=c1et+2c2e2t
3. Plug in t=0 to solve for c1 and c2Since e0=1, substituting t=0 into both equations turns the initial conditions y(0)=4 and y′(0)=5 into two equations for c1 and c2:
So the unique curve that satisfies y′′−3y′+2y=0 and starts at height 4 with slope 5 is y(t)=3et+e2t.
Notice that we could solve for c1 and c2 only because differentiating e2t brings down a 2, giving us a second equation c1+2c2=5 that is different from c1+c2=4. If we tried using y1=et and a constant multiple like y2=5et, both conditions at t=0 would involve the exact same combination c1+5c2:
linearly independent (not constant multiples)y1=et,y2=e2tvs.constant multiples: c1+5c2=4 and c1+5c2=5y1=et,y2=5et
4
Variable Coefficients and Verifying Solutions
What changes when the coefficients in front of y′′,y′, and y depend on t? Let's solve the initial value problem
t2y′′−2ty′+2y=0,y(1)=3,y′(1)=5
Because the coefficients now contain t, a single exponential ert no longer cancels out across the equation. Instead, we check that the two given functions y1=t and y2=t2 are solutions by plugging them in, and then combine them by superposition.
Variable Coefficients and Verifying Solutions
t2y′′−2ty′+2y=0
y1y(1)y(t)=t,=3,=?y2y′(1)=t2=5
Text solution
1. Verify that y1=t and y2=t2 satisfy the equationSubstitute each function and its first two derivatives into the left-hand side to check that both simplify to 0:
2. Form the general solution and its derivativeSince t and t2 are not constant multiples of each other, superposition gives y(t) and differentiating gives y′(t):
y(t)y′(t)=c1t+c2t2=c1+2c2t
3. Plug in t=1 to find c1 and c2Plugging the starting time t=1 into the position and velocity equations gives us c1 and c2:
So the solution that satisfies t2y′′−2ty′+2y=0 with y(1)=3 and y′(1)=5 is y(t)=t+2t2.
5
Singularities and the Interval of Existence
In the previous example, why were the initial conditions given at t=1 instead of t=0? Plugging t=0 into y(t)=c1t+c2t2 gives y(0)=0 for every choice of c1 and c2, so a condition like y(0)=3 is impossible to satisfy.
The Existence and Uniqueness Theorem tells us the largest open time interval around the starting time t0 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′+t+2ty=t−71,y(1)=3,y′(1)=−2
Singularities and the Interval of Existence
To see where the equation fails to define the acceleration y′′, we first divide through by the leading coefficient so y′′ stands alone with a 1 in front:
standard form (leading coefficient =1)y′′+p(t)y′+q(t)y=f(t)
As long as p(t),q(t), and f(t) are continuous on an open interval containing the starting time t0, 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−4 isolates y′′ and puts t−4 into the denominators of the other terms:
y′′+t−43y′+(t−4)(t+2)ty=(t−4)(t−7)1
2. Find all discontinuities of p(t),q(t), and 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=0):
t=−2,t=4,t=7
3. Select the open interval containing the initial time t0=1The three discontinuities split the t-axis into four open intervals, and the starting time t0=1 from y(1)=3 sits between −2 and 4:
(−∞,−2),contains t0=1(−2,4),(4,7),(7,∞)
So a unique solution passing through y(1)=3 with slope y′(1)=−2 is guaranteed to exist on the open interval (−2,4).
In the (t,y) plane, the vertical lines at the discontinuities t=−2,t=4, and t=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).
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 terms were on the left, the right-hand side was 0. Now we want to find the general solution when the right-hand side is not 0:
homogeneous(right side =0)y′′−3y′+2y=0nonhomogeneous(right side =0)y′′−3y′+2y=10
(In linear equations, "homogeneous" just means the side without y is 0, not that the equation is written in terms of the ratio ty as in first-order substitution.)
Nonhomogeneous Equations and Particular Solutions
y′′−3y′+2yy′′−3y′+2yy(t)=0=10=?
If Y1 and Y2 both solve y′′−3y′+2y=10, adding them together produces 10+10=20 on the right-hand side instead of 10. To keep the right-hand side at 10 while still getting two constants c1 and c2, we add a solution that gives 0 to a solution that gives 10, since 0+10=10:
Text solution
1. Find the homogeneous general solution yh(t) that makes the left-hand side 0From our earlier work on y′′−3y′+2y=0, any linear combination of et and e2t gives 0 on the left-hand side:
yh(t)=c1et+c2e2t
2. Find one particular solution yp that makes the left-hand side 10Since the right-hand side is the constant 10, try a constant yp=5, whose derivatives are yp′=0 and yp′′=0:
(5)′′−3(5)′+2(5)=0−3(0)+2(5)=10⟹yp=5
3. Add the homogeneous and particular solutions togetherBecause the left-hand side is linear, plugging in the sum splits cleanly into 0 from yh(t) plus 10 from yp:
So y(t)=c1et+c2e2t+5 satisfies y′′−3y′+2y=10 for every choice of c1 and c2.
As we change c1 and c2 to adjust the height and slope of yh(t)=c1et+c2e2t, it still contributes 0 to y′′−3y′+2y, so adding it to the particular solution yp=5 keeps the left-hand side equal to 0+10=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 terms are linear, and then matching what the right-hand side adds up to:
Spotting linearity
Look only at y,y′, and y′′. Powers or functions of t in the coefficients or on the right-hand side (like t2y′′−2ty′+2y=0) are still linear, so superposition applies whenever the right-hand side is 0. Powers or products of y and its derivatives (like y′′+y2=0 or y′′+3yy′−2y=0) are nonlinear: cross-terms appear when you plug in a sum, so you cannot add solutions.
Homogeneous equations (=0)
Scale and add two linearly independent solutions (neither a constant multiple of the other, like et and e2t, never et and 5et):
y(t)=c1y1(t)+c2y2(t)
Use the trial function y=ert only when the coefficients are constants (y′′−3y′+2y=0⟹(r−1)(r−2)=0). When the coefficients depend on t (t2y′′−2ty′+2y=0), don't plug in ert. Instead, verify the given solutions (y1=t,y2=t2) by plugging them in directly and combine them as c1t+c2t2.
Nonhomogeneous equations (=0)
Don't add two nonhomogeneous solutions together (10+10=20=10). Instead, add the homogeneous general solution (which gives 0) to one particular solution (which gives the right-hand side), and write the full sum before plugging in y(t0) and y′(t0) to solve for c1 and c2:
y(t)=yh(t)→0c1et+c2e2t+yp→105
Interval of existence
Without solving the equation, divide by the leading coefficient so y′′ stands alone:
y′′+p(t)y′+q(t)y=f(t)
Mark every t that makes a denominator 0 (ignoring numerator zeros), and pick the single open interval between adjacent discontinuities that contains the starting time t0.
7
Practice
1
Classify each differential equation as linear homogeneous, linear nonhomogeneous, or nonlinear: (a) t3y′′−4ty′+y=0 (b) y′′+3yy′−2y=0 (c) y′′−t2y′+5y=et (d) y′′+4y′+y2=0
Ask two questions in order: first, are y,y′, and y′′ free of powers and products with each other? Second, when all y terms are on the left, is the right-hand side 0?
(a) Linear homogeneousOnly t is cubed (t3), while y,y′, and y′′ appear to the first power with no products, and the right-hand side is 0.(Watch out: calling this nonlinear because of t3 confuses powers of t with powers of y.)
(b) NonlinearThe term 3yy′ multiplies y and y′ together.
(c) Linear nonhomogeneousy,y′, and y′′ are not squared or multiplied together, and the term et depends only on t, making the right-hand side nonzero. (Watch out: et is a function of t, not ey, so the equation is still linear.)
(d) Nonlineary is squared in the y2 term.
2
Use the trial function y=ert to find two solutions to y′′+y′−6y=0, write the general solution, and solve the initial value problem y(0)=3,y′(0)=1.
Substitute y=ert,y′=rert, and y′′=r2ert, factor out ert, and differentiate your general solution before plugging in t=0.
Substituting y=ert into y′′+y′−6y=0 gives
ert(r2+r−6)=ert(r−2)(r+3)=0⟹r=2,r=−3
The two solutions are y1=e2t and y2=e−3t, giving the general solution and its derivative:
y(t)y′(t)=c1e2t+c2e−3t=2c1e2t−3c2e−3t
(Watch out: forgetting the negative sign when differentiating e−3t gives 2c1+3c2=1, which leads to the wrong constants c1=8,c2=−5 and y(t)=8e2t−5e−3t; also, don't set c1=3 and c2=1 directly from y(0)=3 and y′(0)=1 without solving the two equations.)
Plugging in t=0 gives
c1+c22c1−3c2=3=1
Solving these two equations gives c1=2 and c2=1, so
y(t)=2e2t+e−3t
3
Verify that y1=e3t is a solution to y′′−3y′=0. Explain why a student cannot solve the initial value problem y(0)=2,y′(0)=9 using y(t)=c1e3t+c2(4e3t), then find a second linearly independent solution using y=ert and solve the initial value problem.
When you factor the equation from y=ert, notice that there is no y term so r factors out; remember what e0t simplifies to.
For y1=e3t, we have y1′=3e3t and y1′′=9e3t, so
y1′′−3y1′=9e3t−3(3e3t)=0
Using y(t)=c1e3t+4c2e3t and y′(t)=3c1e3t+12c2e3t at t=0 gives c1+4c2=2 for position and 3c1+12c2=3(c1+4c2)=9 (so c1+4c2=3) for velocity, which is impossible because 4e3t is a constant multiple of e3t.
Substituting y=ert into y′′−3y′=0 gives
ert(r2−3r)=ertr(r−3)=0⟹r=0,r=3
(Watch out: r=0 gives the constant solution y2=e0t=1, not y2=0; dropping the r=0 root leaves you with only c1e3t, which cannot satisfy both initial conditions.)
The general solution is y(t)=c1e3t+c2 with derivative y′(t)=3c1e3t. At t=0:
y(0)y′(0)=c1+c2=2=3c1=9⟹c1=3,c2=−1
y(t)=3e3t−1
4
Verify that y1(t)=t and y2(t)=t3 are solutions to the variable-coefficient equation t2y′′−3ty′+3y=0, solve the initial value problem y(1)=5,y′(1)=9, and explain why the initial value problem y(0)=5,y′(0)=9 has no solution.
After verifying t and t3 by plugging in their derivatives, form y(t)=c1t+c2t3; for t=0, check both what y(0) is forced to equal and what happens to the equation when you divide by t2.
For y1=t (y1′=1,y1′′=0) and y2=t3 (y2′=3t2,y2′′=6t):
By superposition, y(t)=c1t+c2t3 and y′(t)=c1+3c2t2.(Watch out: forgetting the factor of 3 when differentiating t3 gives c1+c2=9 at t=1, which contradicts c1+c2=5.)
At t=1:
c1+c2c1+3c2=5=9⟹2c2=4⟹c2=2,c1=3
At t=0, every function of the form y(t)=c1t+c2t3 gives y(0)=0=5. In fact, setting t=0 in the equation itself leaves 3y(0)=0, so every solution has y(0)=0. The theorem gives no guarantee at t=0 because the leading coefficient t2 is 0 there, causing division by zero in the standard form y′′−t3y′+t23y=0. For t=1, the solution is
y(t)=3t+2t3
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′′+t+1ty′+t−6t−2y=t+51,y(0)=4,y′(0)=−1
Watch out: forgetting to divide by t−3 misses the barrier at t=3 and gives (−1,6); treating the numerator zero t=2 as a discontinuity gives (−1,2); using y0=4 instead of the initial time t0=0 gives (3,6).
First divide every term by the coefficient in front of y′′, then mark all values of t that make any denominator zero and locate which interval contains the starting time t0.
Dividing by the leading coefficient t−3 puts the equation into standard form:
y′′+(t−3)(t+1)ty′+(t−3)(t−6)t−2y=(t−3)(t+5)1
The denominators are zero at t=−5,−1,3, and 6, splitting the t-axis into (−∞,−5),(−5,−1),(−1,3),(3,6), and (6,∞).(Watch out: forgetting to divide by t−3 misses the barrier at t=3 and gives (−1,6); treating the numerator zero t=2 as a discontinuity gives (−1,2); using y0=4 instead of the initial time t0=0 gives (3,6).)
Since the initial time t0=0 lies between −1 and 3, the largest guaranteed open interval is
(−1,3)
6
Solve the nonhomogeneous initial value problem y′′−4y′+3y=12 with y(0)=7 and y′(0)=5 by finding the homogeneous general solution and a constant particular solution.
Solve y′′−4y′+3y=0 with y=ert, find a constant yp=A that makes the left side equal 12, and add them together before using y(0)=7 and y′(0)=5.
For the homogeneous equation y′′−4y′+3y=0, trying y=ert gives r2−4r+3=(r−1)(r−3)=0, so yh(t)=c1et+c2e3t.
Trying a constant particular solution yp=A in y′′−4y′+3y=12 gives 0−4(0)+3A=12, so yp=4. Combining them gives
y(t)y′(t)=c1et+c2e3t+4=c1et+3c2e3t
(Watch out: plugging y(0)=7 into yh(t) before adding +4 sets c1+c2=7 instead of c1+c2+4=7, which gives the wrong answer 8et−e3t+4 with y(0)=11.)
Suppose Y1(t) and Y2(t) are two different solutions to the nonhomogeneous linear equation y′′+p(t)y′+q(t)y=6. Explain why Y1(t)+Y2(t) is not a solution, show that Y1(t)−Y2(t) is a solution to the corresponding homogeneous equation y′′+p(t)y′+q(t)y=0, and use Y1(t),Y2(t), and an arbitrary constant c to write a family of solutions to y′′+p(t)y′+q(t)y=6.
Plug Y1+Y2 and Y1−Y2 into the left-hand side and regroup the Y1 terms and Y2 terms separately; then combine your homogeneous solution with one particular solution.
Because the left-hand side is linear, plugging in Y1+Y2 regroups into
(Y1′′+pY1′+qY1)+(Y2′′+pY2′+qY2)=6+6=12=6
Plugging in Y1−Y2 regroups into
(Y1′′+pY1′+qY1)−(Y2′′+pY2′+qY2)=6−6=0
so Y1(t)−Y2(t) solves the homogeneous equation. Scaling this homogeneous solution by c (which still gives c(0)=0) and adding the particular solution Y1(t) (which gives 6) gives 0+6=6.(Watch out: leaving off +Y1(t) as c(Y1(t)−Y2(t)) gives 0 instead of 6, and multiplying the whole sum by c as c(Y1(t)−Y2(t)+Y1(t)) gives 6c instead of 6.)