28 Chapter 1
Check: Using Maple dsolve command.
> restart:ode:=diff(y(t),t,t)+gamma*diff(y(t),t)+cˆ2*lambda*y(t)=0:dsolve(ode);
y(t) = _C1 e
−
1
2
γ+
1
2
√
γ
2
−4 c
2
λ
t
+_C2 e
−
1
2
γ−
1
2
√
γ
2
−4 c
2
λ
t
(1.55)
For the case where γ is very small, the discriminant given is negative, and we end up with
complex roots. For this situation, it is more convenient to express this set of basis vectors in the
(linearly dependent) equivalent form:
> y1(t):=exp(−gamma/2*t)*cos(sqrt(lambda*cˆ2−gammaˆ2/4)*t);
y1(t) := e
−
1
2
γt
cos
1
2
−γ
2
+4c
2
λt
(1.56)
> y2(t):=exp(−gamma/2*t)*sin(sqrt(lambda*cˆ2−gammaˆ2/4)*t);
y2(t) := e
−
1
2
γt
sin
1
2
−γ
2
+4c
2
λt
(1.57)
In the preceding paragraphs, we considered the special case of differential equations with
constant coefficients. In general, the coefficients of linear differential equations are not
constants and are functionally dependent on the independent variable. We now look at the
general case of variable coefficients.
1.5 Second-Order Linear Differential Equations with
Variable Coefficients
We now consider second-order linear nonhomogeneous differential equations with variable
coefficients on a finite interval I. The equation written in standard form reads as
a2(t)
d
2
dt
2
y(t)
+a1(t)
d
dt
y(t)
+a0(t)y(t) = f(t)
We note that the generalized coefficients a2(t), a1(t), and a0(t) are not constant. They are
functionally dependent on the independent variable t; thus, the method of undetermined
coefficients cannot be used here to find the basis vectors.
Since the order of the differential equation is two, we must first find two basis vectors of the
corresponding homogeneous differential equation.
a2(t)
d
2
dt
2
y(t)
+a1(t)
d
dt
y(t)
+a0(t)y(t) = 0
Different types of variable coefficient differential equations demand their own peculiar
technique for solution. We now consider a prominent example of such an equation.