Differential EquationsSecond-Order Linear Equations3 of 6
Second-Order Linear Equations · 3
Constant Coefficients: Real Roots
We need to solve second-order differential equations with constant coefficients, where a mystery function y(t) and its first two derivatives must cancel out to zero for all t.
1
Finding Exponential Solutions
We want to find the functions y(t) that satisfy
y′′−5y′+6y=0
For y′′,−5y′, and 6y to cancel out across all time t, the easiest function to try is one that taking derivatives doesn't turn into a different kind of curve: differentiating leaves the shape of the function unchanged and only multiplies it by a constant.
Why Guess an Exponential Function?
y′′−5y′+6y=0
y(t)=?
Because differentiating y=ert pulls down a factor of r without changing the exponential itself,
yy′y′′=ert,=rert,=r2ert
plugging y=ert into y′′−5y′+6y=0 turns the differential equation into an algebra equation for the exponent r.
The Characteristic Equation
y′′−5y′+6y=0
yy′y′′=ert=rert=r2ert
r=?
Text solution
Substitute y=ert and factor out ertEvery term shares the same exponential ert, so we can factor it out.
r2ert−5rert+6ert=(r2−5r+6)ert=0
Divide by ert and factor the quadraticBecause an exponential ert never equals zero, we divide it out and factor the remaining polynomial for r.
So y1=e2t and y2=e3t are two solutions whose derivatives cancel out in y′′−5y′+6y=0 for all t.
In practice, you can write the characteristic equation straight from the differential equation by matching derivatives to powers of r (y′′→r2,y′→r, and y→1), though you are often expected to write down y=ert first. Watch the last term: dividing 6ert by ert leaves 6, not 6r.
Because y′′,−5y′, and 6y all share the shape ert, their sum (r2−5r+6)ert is zero across the entire t-axis whenever r is a root of the parabola r2−5r+6.
An exponential curve and its derivatives always share the exact same shape, and the sum y′′−5y′+6y flattens onto the axis everywhere right where the parabola crosses zero.
2
The General Solution and the Wronskian
Now that we have two solutions y1=e2t and y2=e3t, we want the general solution that captures every possible solution to y′′−5y′+6y=0.
Because the equation is linear and equals zero, we can multiply any two solutions by constants and add them together, y=c1y1+c2y2, and the y1 pieces and y2 pieces will still cancel to zero on their own (this is called superposition). That combination gives the full general solution as long as the two functions are linearly independent, which we check by making sure their Wronskian determinant is never zero:
Combine the two exponentialsMultiplying e2t and e3t by constants c1 and c2 forms our candidate for the general solution.
y=c1e2t+c2e3t
Put e2t and e3t into the Wronskian determinantMultiplying the diagonals and adding the exponents 2t+3t=5t tests whether the two functions are independent.
W=e2t2e2te3t3e3t=3e5t−2e5t=e5t=0
So e2t and e3t are linearly independent, and y=c1e2t+c2e3t gives every solution to y′′−5y′+6y=0.
Doing the same check for any two roots r1 and r2 of ar2+br+c=0 gives
Because e(r1+r2)t is never zero, the Wronskian is nonzero whenever the two real roots are different numbers, guaranteeing the general solution to ay′′+by′+cy=0:
y=c1er1t+c2er2t(r1=r2)
3
Solving an Initial Value Problem
We want to find the one solution to y′′−5y′+6y=0 that starts at position 2 with velocity 5:
y′′−5y′+6y=0,y(0)=2,y′(0)=5
The differential equation gives us the exponential building blocks e2t and e3t, while the two starting conditions at t=0 give two linear equations for c1 and c2.
Solving an Initial Value Problem
Text solution
Plug t=0 into y(t)Using e0=1 in the general solution y=c1e2t+c2e3t turns the initial position y(0)=2 into our first equation.
y(0)=c1e0+c2e0=c1+c2=2
Differentiate y(t) and plug in t=0Taking the derivative brings down the exponents 2 and 3 so we can match the initial velocity y′(0)=5.
y′(t)⟹y′(0)=2c1e2t+3c2e3t=2c1+3c2=5
Substitute c1=2−c2 and solveReplacing c1 in the velocity equation gives us both constants.
2(2−c2)+3c2=5⟹4+c2=5⟹c2=1,c1=1
So y=e2t+e3t is the single solution curve that passes through (0,2) with starting slope 5.
4
Long-Term Behavior from the Signs of the Roots
Often we want to know what happens to a solution y(t) as t→∞, whether it blows up to infinity or settles back to zero, without solving for c1 and c2 first.
Because ert grows without bound when r>0 and shrinks to zero when r<0, the signs of the roots r1 and r2 tell us what can happen to the solution in the long run.
Long-Term Behavior from the Signs of the Roots
Text solution
Both roots positive (y′′−5y′+6y=0)Both exponentials grow as t increases, so every solution other than y=0 (c1=c2=0) blows up to +∞ or −∞.
r2−5r+6=(r−2)(r−3)=0⟹y=c1e2t+c2e3t→±∞
Both roots negative (y′′+5y′+6y=0)Negative exponents turn both exponentials into fractions that shrink to zero, so every solution decays to 0 regardless of c1 and c2.
r2+5r+6=(r+2)(r+3)=0⟹y=e2tc1+e3tc2→0
One positive root and one negative root (y′′+y′−6y=0)The decaying term c2e−3t dies out while c1e2t grows without bound, so the solution blows up unless the initial conditions set c1=0.
r2+r−6=(r−2)(r+3)=0⟹y=c1e2t+c2e−3t
In the combined curve y=c1er1t+c2er2t, both pieces shrink to the t-axis only when r1 and r2 are both negative, while a positive root pulls the curve away to infinity.
The solution settles to zero only when both roots sit to the left of zero, because as soon as either root crosses to the right, its growing piece takes over.
5
Preventing Blow-Up When Roots Have Opposite Signs
For the opposite-sign equation y′′+y′−6y=0 starting at y(0)=4, we want to find the exact initial velocity y′(0)=v0 that keeps the solution from blowing up so that y(t)→0 as t→∞.
Finding the Initial Velocity That Prevents Blow-Up
Text solution
Write the initial conditions at t=0Plugging t=0 into y=c1e2t+c2e−3t and y′=2c1e2t−3c2e−3t connects c1 and c2 to the starting position 4 and unknown velocity v0.
c1+c22c1−3c2=4,=v0
Set the growing term's coefficient to zeroFor y(t) to approach 0 as t→∞, the growing e2t term must drop out, which fixes c1 and c2.
c1=0⟹0+c2=4⟹c2=4
Plug c1=0 and c2=4 into the velocity equationSubstituting both constants gives the exact starting velocity needed.
v0=2(0)−3(4)=−12
So starting at y(0)=4 with velocity y′(0)=−12 eliminates the e2t term completely, leaving only the decaying term y=4e−3t that approaches 0 as t→∞.
Starting from (0,4), any initial slope other than −12 leaves some of the growing e2t piece and pulls the curve to +∞ or −∞, while y′(0)=−12 lands right on 4e−3t and rides it down to zero.
Only one starting slope wipes out the growing piece so the curve can settle down to zero.
6
When Does This Method Run Out?
We want to know when ay′′+by′+cy=0 has a general solution of the form y=c1er1t+c2er2t with two independent real exponentials, and what happens when the quadratic ar2+br+c=0 does not give two different real roots.
What About Complex or Repeated Roots?
By the quadratic formula, the roots of ar2+br+c=0 are
r=2a−b±b2−4ac
Getting two independent real exponentials requires a positive number under the square root (b2−4ac>0) so that r1=r2:
When b2−4ac<0, the number under the square root is negative, producing complex roots that give sines and cosines.
When b2−4ac=0, such as (r−3)2=0, both roots are the same number r1=r2=3. That produces only one exponential e3t, and the Wronskian equals zero:
W=(r2−r1)e(r1+r2)t=(3−3)e6t=0
Key concepts
To solve a constant-coefficient equation ay′′+by′+cy=0, try y=ert to turn derivatives into powers of r and solve the characteristic equation ar2+br+c=0. When b2−4ac>0, the quadratic has two different real roots r1=r2, and the Wronskian of er1t and er2t,W=(r2−r1)e(r1+r2)t, is never zero, giving the general solution y=c1er1t+c2er2t (for y′′−5y′+6y=0,(r−2)(r−3)=0 gives y=c1e2t+c2e3t). Always check that the roots are two different real numbers before writing this form: if b2−4ac=0, as in (r−3)2=0, then r1=r2=3 makes W=0 and leaves only one exponential solution e3t, while b2−4ac<0 gives complex roots instead of real exponentials.
Once you have y=c1er1t+c2er2t, what you do next depends on the question. To solve an initial value problem, plug t=0 into both y(t) and y′(t) to get c1+c2=y(0) and r1c1+r2c2=y′(0) (for y=c1e2t+c2e3t with y(0)=2 and y′(0)=5, solve c1+c2=2 and 2c1+3c2=5). To find the long-term behavior as t→∞, look straight at the signs of r1 and r2 without solving for the constants: two negative roots (r=−2,−3) always decay to 0, two positive roots (r=2,3) blow up for any nonzero start, and opposite-sign roots (y=c1e2t+c2e−3t) blow up unless the initial conditions set the positive root's coefficient to zero (c1=0, which at y(0)=4 gives y=4e−3t and y′(0)=−12).
7
Practice
1
Find the general solution to y′′−7y′+10y=0.
Watch out: 10y becomes 10, not 10r; writing r2−7r+10r=0 gives the wrong roots 0 and −3.Don't forget to flip the signs when solving (r−2)(r−5)=0, or you will get y=c1e−2t+c2e−5t.
Replace y′′,y′, and y with powers of r: what two numbers multiply to 10 and add to −7?
Write and factor the characteristic equationMatching derivatives to powers of r gives a quadratic in r. (Watch out: 10y becomes 10, not 10r; writing r2−7r+10r=0 gives the wrong roots 0 and −3. Also don't forget to flip the signs when solving (r−2)(r−5)=0, or you will get y=c1e−2t+c2e−5t.)
r2−7r+10=(r−2)(r−5)=0⟹r=2,r=5
Build the general solutionCombine the two independent exponentials e2t and e5t.
y=c1e2t+c2e5t
2
Find two exponential solutions to 2y′′+5y′−3y=0 and compute their Wronskian to verify that they are linearly independent.
Factor 2r2+5r−3=0 to find the two exponents, then set up the 2×2 determinant with the functions in the top row and their derivatives in the bottom row.
Solve the characteristic equation for rFactor the quadratic to find the two real roots.
Compute the Wronskian determinantSubtract the product of the second diagonal from the main diagonal and add the exponents 21t+(−3t)=−25t. (Watch the minus sign between the diagonals and add the exponents rather than multiplying them: forgetting to subtract the second diagonal gives −25e−5t/2, and multiplying exponents gives −23t2.)
Solve the initial value problem y′′+3y′−4y=0,y(0)=3,y′(0)=−2.
After finding y=c1er1t+c2er2t, differentiate y(t) first so you can plug t=0 into both y and y′.
Find the general solutionFactor the characteristic equation to get the two exponentials.
r2+3r−4=(r−1)(r+4)=0⟹y=c1et+c2e−4t
Plug t=0 into y(t) and y′(t)Differentiate y(t) and evaluate both equations at t=0. (Don't plug the initial numbers straight in as c1=3,c2=−2, and watch the negative exponent when differentiating c2e−4t: writing c1+4c2=−2 instead of c1−4c2=−2 leads to the wrong answer y=314et−35e−4t.)
c1+c2c1−4c2=3,=−2
Solve for c1 and c2Subtract the second equation from the first to get 5c2=5.
c2=1,c1=2⟹y=2et+e−4t
4
Without solving for c1 and c2, determine what happens as t→∞ to the solution of y′′+6y′+8y=0 with y(0)=50 and y′(0)=200.
Find the signs of the roots of r2+6r+8=0: what happens to ert as t→∞ when r is negative?
Factor the characteristic equation to check the signs of the rootsBoth roots are negative, so both e−2t and e−4t decay to zero regardless of the initial conditions. (Don't be fooled by the large positive starting values y(0)=50 and y′(0)=200 or the plus signs in r2+6r+8=0 into thinking y(t)→∞:(r+2)(r+4)=0 gives negative roots r=−2 and r=−4, and decaying exponentials always shrink to zero.)
r2+6r+8=(r+2)(r+4)=0⟹r=−2,r=−4⟹y(t)→0
5
For y′′−y′−6y=0 with initial position y(0)=5, find the initial velocity y′(0)=v0 so that the solution approaches 0 as t→∞, and write that solution y(t).
Make sure you set the coefficient of the positive root e3t to zero rather than e−2t, which would give y=5e3t and v0=15.
After finding the two roots, identify which exponential term blows up as t→∞ and set its coefficient to zero.
Find the general solution and set conditions at t=0Factor the characteristic equation and evaluate y(0)=5 and y′(0)=v0.
Eliminate the growing exponential termSet c1=0 so e3t drops out, then solve for c2 and v0. (Make sure you set the coefficient of the positive root e3t to zero rather than e−2t, which would give y=5e3t and v0=15; and remember to multiply c2=5 by the exponent −2 when finding v0.)
c1=0⟹c2=5⟹y(t)=5e−2t,v0=−2(5)=−10
6
For which values of the constant k does y′′−6y′+ky=0 have a general solution of the form y=c1er1t+c2er2t with two independent real exponentials, and what happens to the Wronskian at the boundary value of k?
Write the discriminant b2−4ac of r2−6r+k=0: when is the expression under the square root strictly positive?
Set the discriminant of r2−6r+k=0 greater than zeroTwo different real roots require b2−4ac>0. (Remember to flip the inequality sign when dividing by −4 so you don't get k>9, and use < rather than ≤ because k=9 repeats the same root.)
(−6)2−4(1)(k)=36−4k>0⟹k<9
Check the Wronskian at the boundary k=9At k=9,(r−3)2=0 gives r1=r2=3, so the Wronskian equals zero.