2.2 Second Order Linear Homogeneous ODE With Constant Coefficients
2.2 Second Order Linear Homogeneous ODE With Constant Coefficients
ψ(x)
ϕ0 = , i.e., y12 ϕ0 = ψ.
y1 (x)2
Hence
y12 ϕ00 + 2y1 y10 ϕ0 = ψ 0 i.e., y1 (y1 ϕ00 + 2y10 ϕ0 ) = ψ 0
so that
ψ0 aψ ψ 0 + aψ
y200 + ay 0 + by2 = y1 ϕ00 + 2y10 ϕ0 + ay1 ϕ0 = + = = 0.
y1 y1 y1
Clearly, y1 and y2 are linearly independent.
Hence, Rx !
Z − a(t)dt
Ce x0
y2 = y1 dx.
y12
where p, q are real constants. Let us look for a solution (1) in the form y = eλx for some λ, real or
complex. Assuming that such a solution exists, from (1) we have
(λ2 + pλ + q)eλx = 0
λ2 + pλ + q = 0. (2)
• In case 2, eαx cos βx, eαx sin βx are linearly independent solutions.
17
• In case 1, eλx , xeλx are linearly independent solutions.
Example 2.10.
y 00 + y 0 − 2y = 0
Example 2.11.
y 00 + 2y 0 + 5y = 0
Example 2.12.
y 00 − 4y 0 + 4y = 0
y = y0 + y ∗
is a solution of the nonhomogeneous equation (1). Also, if y ∗ is a particular solution of the nonho-
mogeneous equation (1) and if y is any solution of the nonhomogeneous equation (1), then y − y ∗ is
a solution of the homogeneous equation (2). Thus, knowing a particular solution y ∗ of the nonho-
mogeneous equation (1) and a general solution ȳ of homogeneous equation (2), we obtain a general
solution of the nonhomogeneous equation (1) as
y = ȳ + y ∗ .
If the coefficients are constants, then we know a method of obtaining two linearly independent solutions
for the homogeneous equation (2), and thus we obtain a general solution for the homogeneous equation
(2).
18
2.3.1 Method of variation of parameters
y = u1 y1 + u2 y2
where u1 and u2 are unctions to be determined. Assume for a moment that such a solution exists.
Then
y 0 = u1 y10 + u2 y20 + u01 y1 + u02 y2 .
Then, we have
y 0 = u1 y10 + u2 y20 , (4)
(u1 y100 + u2 y200 + u01 y10 + u02 y20 ) + a(x)(u1 y10 + u2 y20 ) + b(x)(u1 y1 + u2 y2 ) = f (x),
i.e.,
u1 [y100 + a(x)y10 b(x)y1 ] + u2 [y200 + a(x)y20 b(x)y2 ] + u01 y10 + u02 y20 = f (x),
i.e.,
u01 y10 + u02 y20 = f (x). (6)
19
THEOREM 2.13. If y1 , y2 are linearly independent solutions of the homogeneous equation (2), and
if W (x) is their Wronskian, then a general solution of the nonhomogeneous equation (1) is given by
y = u1 y1 + u2 y2 ,
where Z Z
y2 f y1 f
u1 = − + C1 , u2 = + C2 .
W W
where a1 , a2 , . . . , an are continuous functions on an interval I, and if W (x) is their Wronskian, i.e.,
y1 y2 ··· yn
0
y20 yn0
y1 ···
W (x) = det
···
,
··· ··· ···
(n−1) (n−1) (n−1)
y1 y2 · · · yn
is given by
y = (u1 + C1 )y1 + (u2 + C2 )y2 + · · · + (un + Cn )yn ,
Remark 2.15. Suppose the right hand side of (1) is of the form f (x) = f1 (x) + f2 (x). Then it can
be easily seen that:
20
2.3.2 Method of undetermined coefficients
This method is when the coefficients of (1) are constants and f is of certain special forms. So, consider
y 00 + py 0 + qy = f, (1)
where Q is a polynomial of degree n Substituting the above expression in the DE, we obtain:
Note that, the above equation is an identity only if α2 + pα + q 6= 0, i.e., α is not a root of the auxiliary
equation λ2 + pλ + q = 0. In such case, we can determine Q by comparing coefficients of powers of xk
for k = 0, 1, . . . , n.
If α is a root of the auxiliary equation λ2 + pλ + q = 0, then we must look for a solution of the
form
αx
y = Q(x)e
e ,
where Q
e is a polynomial of degree n + 1, or we must look for a solution of the form
y = xQ(x)eαx ,
If α is a double root of the auxiliary equation λ2 + pλ + q = 0, then we must look for a solution
of the form
αx
y = Q(x)e
b ,
where Q
b is a polynomial of degree n + 2, or we must look for a solution of the form
y = x2 Q(x)eαx ,
Case (ii): f (x) = P1 (x)eαx cos βx + P1 (x)eαx sin βx, where P1 and P2 are polynomials and α, β are
real numbers:
21
We look for a solution of the form
Substituting the above expression in the DE, we obtain the coefficients of Q1 , Q2 if α + iβ is not a
root of the auxiliary equation λ2 + pλ + q = 0.
where Q1 and Q2 are polynomials with degQj (x) = max{P1 (x), P2 (x)}, j ∈ {1, 2}.
The following example illustrates the second part of case (ii) above:
2
Example 2.16. We find the general solution of
y 00 + 4y = x sin 2x.
λ2 + 4 = 0.
Its solutions are λ = ±2i. Hence, the general solution of the homogenous equation is:
Note that the non-homogenous term, f (x) = x sin 2x, is of the form
where Q1 and Q2 are polynomials with degQj (x) = max{P1 (x), P2 (x)} = 1. Thus, a a particular
solution is of the form
y = x[(A0 + A1 x) cos 2x + (B0 + B1 x) sin 2x].
Differentiating:
y 0 = [A0 + (2A1 + 2B0 )x + 2B1 x2 ] cos 2x + [B0 + (2B1 − 2A0 )x − 2A1 x2 ] sin 2x,
2 This example is included in the notes on November 23, 2012 – mtnair.
22
y 00 + 4y = 2[B0 + (2B1 − 2A0 )x − 2A1 x2 ] cos 2x
−2[A0 + (2A1 + 2B0 )x + 2B1 x2 ] sin 2x
+[(2B1 − 2A0 ) − 4A1 x] sin 2x + [(2A1 + 2B0 ) + 4B1 x] cos 2x
+4x[(A0 + A1 x) cos 2x + (B0 + B1 x) sin 2x].
⇐⇒
1 1
A0 = 0, A1 = − , B0 = , B1 = 0,
8 16
so that
x2 x
y = x[(A0 + A1 x) cos 2x + (B0 + B1 x) sin 2x] = − cos 2x + sin 2x.
8 16
Thus, the general solution of the equation is:
x2 x
A cos 2x + B sin 2x − cos 2x + sin 2x.
8 16
♦
Remark 2.17. The above method can be generalized, in a natural way, to higher order equation
A particular type of equations with non-constant coefficients can be reduced to the ones with constant
coefficients. here it is: Consider
x = ez .
d
Dn y + b1 Dn−1 y + · · · + bn−1 Dy + an y = f (ez ), D := ,
dz
23