17.6: Second Order Linear Equations
( \newcommand{\kernel}{\mathrm{null}\,}\)
Now we consider second order equations of the form a¨y+b˙y+cy=f(t), with a, b, and c constant. Of course, if a=0 this is really a first order equation, so we assume a≠0. Also, much as in exercise 20 of section 17.5, if c=0 we can solve the related first order equation a˙h+bh=f(t), and then solve h=˙y for y. So we will only examine examples in which c≠0.
Suppose that y1(t) and y2(t) are solutions to a¨y+b˙y+cy=f(t), and consider the function h=y1−y2. We substitute this function into the left hand side of the differential equation and simplify:
a(y1−y2)″+b(y1−y2)′+c(y1−y2)=ay″1+by′1+cy1−(ay″2+by′2+cy2)=f(t)−f(t)=0.
So h is a solution to the homogeneous equation a¨y+b˙y+cy=0. Since we know how to find all such h, then with just one particular solution y2 we can express all possible solutions y1, namely, y1=h+y2, where now h is the general solution to the homogeneous equation. Of course, this is exactly how we approached the first order linear equation.
To make use of this observation we need a method to find a single solution y2. This turns out to be somewhat more difficult than the first order case, but if f(t) is of a certain simple form, we can find a solution using the method of undetermined coefficients, sometimes more whimsically called the method of judicious guessing.
Solve the differential equation ¨y−˙y−6y=18t2+5.
Solution
The general solution of the homogeneous equation is Ae3t+Be−2t. We guess that a solution to the non-homogeneous equation might look like f(t) itself, namely, a quadratic y=at2+bt+c. Substituting this guess into the differential equation we get
¨y−˙y−6y=2a−(2at+b)−6(at2+bt+c)=−6at2+(−2a−6b)t+(2a−b−6c).
We want this to equal 18t2+5, so we need
−6a=18−2a−6b=02a−b−6c=5
This is a system of three equations in three unknowns and is not hard to solve: a=−3, b=1, c=−2. Thus the general solution to the differential equation is Ae3t+Be−2t−3t2+t−2.
So the "judicious guess'' is a function with the same form as f(t) but with undetermined (or better, yet to be determined) coefficients. This works whenever f(t) is a polynomial.
Consider the initial value problem m¨y+ky=−mg, y(0)=2, ˙y(0)=50. The left hand side represents a mass-spring system with no damping, i.e., b=0. Unlike the homogeneous case, we now consider the force due to gravity, −mg, assuming the spring is vertical at the surface of the earth, so that g=980. To be specific, let us take m=1 and k=100. The general solution to the homogeneous equation is Acos(10t)+Bsin(10t). For the solution to the non-homogeneous equation we guess simply a constant y=a, since −mg=−980 is a constant. Then ¨y+100y=100a so a=−980/100=−9.8. The desired general solution is then Acos(10t)+Bsin(10t)−9.8. Substituting the initial conditions we get
2=A−9.850=10B
so A=11.8 and B=5 and the solution is 11.8cos(10t)+5sin(10t)−9.8.
More generally, this method can be used when a function similar to f(t) has derivatives that are also similar to f(t); in the examples so far, since f(t) was a polynomial, so were its derivatives. The method will work if f(t) has the form p(t)eαtcos(βt)+q(t)eαtsin(βt), where p(t) and q(t) are polynomials; when α=β=0 this is simply p(t), a polynomial. In the most general form it is not simple to describe the appropriate judicious guess; we content ourselves with some examples to illustrate the process.
Find the general solution to ¨y+7˙y+10y=e3t. The characteristic equation is r2+7r+10=(r+5)(r+2), so the solution to the homogeneous equation is Ae−5t+Be−2t. For a particular solution to the inhomogeneous equation we guess Ce3t. Substituting we get
9Ce3t+21Ce3t+10Ce3t=e3t40C.
When C=1/40 this is equal to f(t)=e3t, so the solution is Ae−5t+Be−2t+(1/40)e3t.
Find the general solution to ¨y+7˙y+10y=e−2t. Following the last example we might guess Ce−2t, but since this is a solution to the homogeneous equation it cannot work. Instead we guess Cte−2t. Then
(−2Ce−2t−2Ce−2t+4Cte−2t)+7(Ce−2t−2Cte−2t)+10Cte−2t=e−2t(−3C).
Then C=−1/3 and the solution is Ae−5t+Be−2t−(1/3)te−2t.
In general, if f(t)=ekt and k is one of the roots of the characteristic equation, then we guess Ctekt instead of Cekt. If k is the only root of the characteristic equation, then Ctekt will not work, and we must guess Ct2ekt.
Find the general solution to ¨y−6˙y+9y=e3t. The characteristic equation is r2−6r+9=(r−3)2, so the general solution to the homogeneous equation is Ae3t+Bte3t. Guessing Ct2e3t for the particular solution, we get
(9Ct2e3t+6Cte3t+6Cte3t+2Ce3t)−6(3Ct2e3t+2Cte3t)+9Ct2e3t=e3t2C.
The solution is thus Ae3t+Bte3t+(1/2)t2e3t.
It is common in various physical systems to encounter an f(t) of the form acos(ωt)+bsin(ωt).
Find the general solution to ¨y+6˙y+25y=cos(4t). The roots of the characteristic equation are −3±4i, so the solution to the homogeneous equation is e−3t(Acos(4t)+Bsin(4t)). For a particular solution, we guess Ccos(4t)+Dsin(4t). Substituting as usual:
(−16Ccos(4t)+−16Dsin(4t))+6(−4Csin(4t)+4Dcos(4t))+25(Ccos(4t)+Dsin(4t))=(24D+9C)cos(4t)+(−24C+9D)sin(4t).
To make this equal to cos(4t) we need
24D+9C=19D−24C=0
which gives C=1/73 and D=8/219. The full solution is then
e−3t(Acos(4t)+Bsin(4t))+(1/73)cos(4t)+(8/219)sin(4t).
The function e−3t(Acos(4t)+Bsin(4t)) is a damped oscillation as in example 17.5.3, while (1/73)cos(4t)+(8/219)sin(4t) is a simple undamped oscillation. As t increases, the sum e−3t(Acos(4t)+Bsin(4t)) approaches zero, so the solution \[e^{-3t}(A\cos(4t)+B\sin(4t))+(1/73)\cos(4t)+(8/219)\sin(4t)\[ becomes more and more like the simple oscillation (1/73)cos(4t)+(8/219)sin(4t)---notice that the initial conditions don't matter to this long term behavior. The damped portion is called the transient part of solution, and the simple oscillation is called the steady state part of solution. A physical example is a mass-spring system. If the only force on the mass is due to the spring, then the behavior of the system is a damped oscillation. If in addition an external force is applied to the mass, and if the force varies according to a function of the form acos(ωt)+bsin(ωt), then the long term behavior will be a simple oscillation determined by the steady state part of the general solution; the initial position of the mass will not matter.
As with the exponential form, such a simple guess may not work.
Find the general solution to ¨y+16y=−sin(4t). The roots of the characteristic equation are ±4i, so the solution to the homogeneous equation is Acos(4t)+Bsin(4t). Since both cos(4t) and sin(4t) are solutions to the homogeneous equation, Ccos(4t)+Dsin(4t) is also, so it cannot be a solution to the non-homogeneous equation. Instead, we guess Ctcos(4t)+Dtsin(4t). Then substituting:
(−16Ctcos(4t)−16Dsin(4t)+8Dcos(4t)−8Csin(4t)))+16(Ctcos(4t)+Dtsin(4t))=8Dcos(4t)−8Csin(4t).
Thus C=1/8, D=0, and the solution is Ccos(4t)+Dsin(4t)+(1/8)tcos(4t).
In general, if f(t)=acos(ωt)+bsin(ωt), and ±ωi are the roots of the characteristic equation, then instead of Ccos(ωt)+Dsin(ωt) we guess Ctcos(ωt)+Dtsin(ωt).
Contributors
Integrated by Justin Marshall.