Linear Differential Equations Overview
Linear Differential Equations Overview
Module 5, Part I
25
General form of an nth -order linear differential equation:
20
dn y d n−1 y d n−2 y dy
al
n
+ p 1 (x) n−1
+ p 2 (x) n−2
+ · · · + pn−1 (x) + pn (x) y = r(x).
dx dx dx dx
op
Dn y + p1 (x)Dn−1 y + p2 (x)Dn−2 y + · · · + pn−1 (x)Dy + pn (x)y = r(x),
Bh
d
where D = .
IT
dx
If r(x) = 0, the equation is called homogeneous. II
I-
If r(x) ̸= 0, the equation is called non-homogeneous.
ics
Standard form:
in
er
General Form The general second–order linear differential equation with constant
coefficients is
d2 y dy
a 2 +b + c y = f (x),
dx dx
where a, b, c are constants.
When f (x) = 0, the equation becomes homogeneous:
d2 y dy
a2
+b + c y = 0.
dx dx
Dividing through by a (if a ̸= 0):
d2 y dy b c
+ p + q y = 0, where p = , q = .
dx2 dx a a
1
1. Linear Differential Equations of Second Order with Constant
Coefficients
The general form of the linear differential equation of second order is
d2 y dy
2
+P + Qy = R,
dx dx
where P and Q are constants and R is a function of x or a constant.
The symbol D stands for the operation of differentiation, i.e.,
dy d2 y
Dy = , D2 y = .
dx dx2
25
20
1 1
The operator stands for the operation of integration, and 2 stands for the oper-
D D
al
ation of integration twice.
op
Therefore, the given equation
Bh
d2 y dy
+ P + Qy = R
IT
dx2 dx
can be written in the operator form as II
I-
ics
D2 y + P Dy + Qy = R,
at
or equivalently,
em
(D2 + P D + Q) y = R.
h
at
dy
g
+ P y = Q. (1)
in
dx
er
Its solution is
ne
R
Z R
P dx P dx
ye = Qe dx + C,
gi
En
or equivalently, Z
V:
R R R
− P dx − P dx P dx
y = Ce +e Qe dx.
CK
Let R R
Z R
− P dx − P dx P dx
u=e , v=e Qe dx.
2
dy
+ P y = 0.
dx
Hence, cu is the solution of the differential equation whose R.H.S. is zero. cu is known
as complementary function.
(ii) Particular Integral
R R
Differentiating v = e− P dx Qe P dx dx with respect to x,
R
Z
dv R
− P dx
R dv
= −P e Qe P dx dx + Q ⇒ = −P v + Q,
dx dx
or
dv
25
+ P v = Q.
dx
20
This shows that y = v is the solution of the non-homogeneous equation
al
op
dy
+ P y = Q.
Bh
dx
IT
1.1. Interpretation of the Complete Solution
II
The solution of the differential equation (1), consisting of two parts:
I-
ics
y = cu + v.
at
The term cu is the solution of the differential equation whose right-hand side is
em
The term v is free from any arbitrary constant and represents the Particular
M
Integral (P.I.).
g
in
er
d2 y dy
2
+P + Qy = 0, (1)
dx dx
we find the C.F.
(2) Let y = C1 emx be the complementary function.
Putting these values in (1):
dy d2 y
= C1 memx , = C1 m2 emx .
dx dx2
Substituting,
C1 emx (m2 + P m + Q) = 0.
3
Hence,
m2 + P m + Q = 0
is called the Auxiliary Equation.
Case I: Roots Real and Distinct
If m1 and m2 are the distinct real roots of the auxiliary equation
m2 + P m + Q = 0,
yc = C1 em1 x + C2 em2 x .
25
Case II: Roots Real and Equal
20
If both roots are equal, i.e., m1 = m2 = m, then the complementary function is of the
form
al
yc = (C1 + C2 x)emx .
op
Bh
Case III: Complex conjugate roots
That is if roots are m = α ± iβ
IT
yc = eαx C1 cos βx + C2 sin βx .
II
I-
d2 y dy
h
+ p + q y = 0.
at
dx2 dx
M
m2 + pm + q = 0.
er
ne
Write the complementary function (yc ) depending on the nature of the roots:
V:
yc = C1 e2x + C2 e3x .
Example 2: y ′′ − 4y ′ + 4y = 0 ⇒ (r − 2)2 = 0
yc = (C1 + C2 x)e2x .
4
Example 3: y ′′ + 9y = 0 ⇒ r = ±3i
yc = C1 cos 3x + C2 sin 3x.
Example: y (4) − a4 y = 0
Step 1: Operator Form
(D4 − a4 )y = 0.
Step 2: Auxiliary (Characteristic) Equation
m4 − a4 = 0 ⇒ (m2 − a2 )(m2 + a2 ) = 0.
Hence,
m = ±a, ±ia.
25
Step 3: Complementary Function (C.F.) The four linearly independent solutions
20
are:
al
eax , e−ax , cos ax, sin ax.
op
Therefore,
Bh
y = C1 eax + C2 e−ax + C3 cos ax + C4 sin ax.
IT
Example: y (3) − 9y ′′ + 23y ′ − 15y = 0
Operator Form
II
I-
(D3 − 9D2 + 23D − 15)y = 0.
ics
Auxiliary Equation
at
m3 − 9m2 + 23m − 15 = 0.
em
⇒ (m − 1)(m − 3)(m − 5) = 0.
in
er
Roots
ne
m = 1, 3, 5.
gi
Complementary Function
En
y = C1 ex + C2 e3x + C3 e5x .
V:
CK
Example: Solve
d2 y dy
2
+ 4 + 5y = 0,
dx dx
2
dy dy
with the conditions y(0) = 2 and = 2 at x = 0.
dx dx
The complementary function (general solution) is
5
2. Particular Integral (P.I.) — f (x) ̸= 0
Non-homogeneous second–order linear differential equation For a non-homogeneous
second–order linear differential equation with constant coefficients,
d2 y dy
2
+p + q y = f (x),
dx dx
where p and q are constants and f (x) is a given function of x.
d
Let D = . Then the above equation can be written compactly as
dx
(D2 + pD + q)y = f (x).
25
20
The complete solution of this equation is
al
y = y c + yp ,
op
Bh
where:
IT
yp is the particular integral (P.I.), given by II
I-
1
ics
d2 y dy
g
+p + q y = f (x),
in
dx 2 dx
er
ne
proceed as follows:
gi
Compute
1
yp = f (x).
P (D)
Apply the operator rules appropriate to the form of f (x) (e.g. exponential, trigono-
metric, or polynomial).
6
Case (i): f (x) = eax
We have
P (D)y = eax .
Then the particular integral is
1 ax
yp = e .
P (D)
Since Deax = aeax , we get
P (D)eax = P (a)eax .
Hence,
eax
if P (a) ̸= 0.
25
yp = ,
P (a)
20
If P (a) = 0, then
al
eax
op
yp = x · .
P ′ (a)
Bh
If also P ′ (a) = 0, then
IT
eax
yp = x2 · .
P ′′ (a) II
I-
(These are called resonance cases, when the operator has a repeated root a of multi-
ics
plicity 1 or 2.)
at
Hence, P (D) = D2 + 3D + 2.
Complementary Function (C.F.)
g
in
r2 + 3r + 2 = 0 ⇒ (r + 1)(r + 2) = 0.
er
ne
yc = C1 e−x + C2 e−2x .
gi
En
1 2x 1 2x
yp = e = e , P (2) = 22 + 3(2) + 2 = 12.
CK
P (D) P (2)
1 2x
yp = 12
e .
General Solution
y = C1 e−x + C2 e−2x + 1 2x
12
e .
Example: y ′′ − 4y ′ + 4y = e3x Step 1: Operator Form
r2 − 4r + 4 = 0 ⇒ (r − 2)2 = 0.
7
Repeated root r = 2:
yc = (C1 + C2 x)e2x .
Step 3: Particular Integral (P.I.)
1 3x e3x
yp = e = , P (3) = 32 − 4(3) + 4 = 1.
P (D) P (3)
yp = e3x .
General Solution
y = (C1 + C2 x)e2x + e3x .
25
20
Rule:
1 sin ax 1 cos ax
al
sin ax = and cos ax = .
op
2
f (D ) f (−a2 ) 2
f (D ) f (−a2 )
Bh
Proof:
D(sin ax) = a cos ax, D2 (sin ax) = −a2 sin ax.
IT
Thus,
II
D4 (sin ax) = D2 (D2 sin ax) = D2 (−a2 sin ax) = (−a2 )2 sin ax,
I-
and in general,
ics
Hence,
f (D2 ) sin ax = f (−a2 ) sin ax.
h
at
Special Cases:
M
1 sin ax
er
sin ax = x .
f (D2 ) f ′ (−a2 )
ne
gi
If f ′ (−a2 ) = 0, then
En
1 sin ax
sin ax = x2 ′′ .
V:
2
f (D ) f (−a2 )
CK
d
Example: y ′′ + y = sin 2x Operator form. Let D = . The equation is
dx
P (D)y = (D2 + 1)y = sin 2x.
yc = C1 cos x + C2 sin x.
8
General solution
y = C1 cos x + C2 sin x − 13 sin 2x.
Example 55: Solution of a Higher–Order Equation Example 55. Solve:
d3 y d2 y dy
3
− 3 2 + 4 − 2y = ex + cos x
dx dx dx
Solution. Given:
(D3 − 3D2 + 4D − 2)y = ex + cos x
A.E. is m3 − 3m2 + 4m − 2 = 0
⇒ (m − 1)(m2 − 2m + 2) = 0 ⇒ m = 1, 1 ± i
25
∴ C.F. = C1 ex + ex (C2 cos x + C3 sin x)
20
al
op
P.I. =
1 1
Bh
ex + cos x
(D − 1)(D2 − 2D + 2) D3 − 3D2 + 4D − 2
IT
1 1
= ex + cos x
(D − 1)(1 − 2 + 2) II
(−1)D − 3(−1)2 + 4D − 2
I-
1 1 3D − 1
= ex + cos x = ex · x + cos x
ics
(D − 1) 3D + 1 9D2 − 1
at
−9 − 1 10
h
(3 sin x + cos x)
in
10
er
ne
General rule:
En
1
xn = [f (D)]−1 xn ,
f (D)
V:
Each successive derivative reduces the degree of the polynomial, so only a finite num-
ber of terms are required. Hence, for the differential equation
(D2 + pD + q)y = xn ,
9
the particular integral is obtained as
1
yp = xn = [ (D2 + pD + q)−1 ]xn ,
D2 + pD + q
25
r2 − 1 = 0 ⇒ r = ±1 ⇒ yc = C1 ex + C2 e−x .
20
Particular Integral (P.I.)
al
1 1
op
yp = x2 = − x2 = −(1 + D2 + D4 + · · · )x2 .
D2 −1 1 − D2
Bh
Since D4 x2 = 0,
IT
yp = −(x2 + D2 x2 ) = −(x2 + 2) = −x2 − 2.
General Solution
II
I-
y = C1 ex + C2 e−x − x2 − 2.
ics
r2 − 5r + 6 = 0 ⇒ r = 2, 3.
g
in
Hence
er
yc = C1 e2x + C2 e3x .
ne
gi
1 1 1
yp = (x2 + ex ) = x2 + ex .
V:
10
Simplify:
19 2
1 + 65 D + 36
D .
Thus,
1
x2 = 16 (1 + 56 D + 19 2 2
36
D )x .
(D − 2)(D − 3)
Since Dx2 = 2x, D2 x2 = 2, we get
yp1 = 61 (x2 + 35 x + 19
18
) = 16 x2 + 5
18
x + 19
108
.
25
(D − 2)(D − 3) (1 − 2)(1 − 3)
20
Now, the General Solution is given by
al
y = C1 e2x + C2 e3x + 61 x2 + 5 19
+ 21 ex .
op
18
x + 108
Bh
Example: y ′′ + y ′ − 2y = x + sin x Operator Form:
IT
(D2 + D − 2)y = x + sin x, P (D) = D2 + D − 2.
r2 + r − 2 = 0 ⇒ (r + 2)(r − 1) = 0.
at
Hence
em
r = 1, −2, yc = C1 ex + C2 e−2x .
h
at
1 1 1
yp = (x + sin x) = x+ sin x.
g
1 1 1
yp1 = x = D2
x.
D2 + D − 2 −2 (1 + D − )
V:
2 2
CK
11
Since
P (D) = (−1) + D − 2 = D − 3.
Thus,
1 D+3 D+3
yp2 = sin x = sin x = 2 sin x
D−3 (D − 3)(D + 3) D −9
D+3 1
= sin x = (D + 3) sin x
−10 −10
1
=−(cos x + 3 sin x)
10
1 3
= − cos x − sin x.
25
10 10
20
Step 4. General Solution:
al
1 3
y = C1 ex + C2 e−2x − 12 x + 41 −
op
cos x − sin x.
10 10
Bh
Case (iv): f (x) = eax V (x)
IT
When the RHS is of the form eax V (x), II
I-
1 ax 1
e V (x) = eax
ics
V (x).
P (D) P (D + a)
at
em
P (D) = D2 − 2D + 2.
M
g
1 1
ne
yp = ex sin x = ex sin x.
P (D + 1) (D + 1)2 − 2(D + 1) + 2
gi
En
(D2 + 2D + 1) − 2D − 2 + 2 = D2 + 1.
CK
Thus,
1
yp = ex sin x = ex · 12 sin x.
D2 +1
Hence,
y = ex C1 cos x + C2 sin x + 21 sin x .
Solve:
(D2 − 4D + 4)y = x3 e2x
Solution.
(D2 − 4D + 4)y = x3 e2x
A.E. is m2 − 4m + 4 = 0 ⇒ (m − 2)2 = 0 ⇒ m = 2, 2
12
∴ C.F. = (C1 + C2 x)e2x
P.I.
1 1
yp = x3 e2x = e2x x3
D2 − 4D + 4 2
(D + 2) − 4(D + 2) + 4
1 x4 5
2x 1 3 2x 2x x
=e x = e = e
D2 D 4 20
Hence, the complete solution is:
x5
y = (C1 + C2 x)e2x + e2x
20
25
20
3. Summary
al
op
Summary of Procedure
Bh
1. Write the ODE as P (D)y = f (x).
IT
2. Solve P (r) = 0 to find the C.F.
f (x) = eax
at
f (x) = xn
h
4. Combine: y = yc + yp .
g
in
er
1
gi
When evaluating yp = f (x), the operator inverse can often be expanded by the
P (D)
En
Binomial Theorem:
V:
(1 − D)−1 = 1 + D + D2 + D3 + · · · ,
(1 + D)−1 = 1 − D + D2 − D3 + · · · ,
(1 − D2 )−1 = 1 + D2 + D4 + D6 + · · · ,
(1 − aD)−1 = 1 + aD + a2 D2 + a3 D3 + · · · .
13
3. Useful Identity for Operator Inverses
1 1 1 1 1
= = − .
D 2 − a2 (D − a)(D + a) 2a D − a D + a
Then expand each term by the binomial series if needed.
25
20
Note:
If W (y1 , y2 ) ̸= 0 on an interval, then y1 , y2 are linearly independent.
al
op
If W (y1 , y2 ) = 0 everywhere, then y1 , y2 are linearly dependent.
Bh
IT
4. Method of Variation of Parameters (Second–Order ODE)
Given:
II
I-
y ′′ + P (x)y ′ + Q(x)y = R(x)
ics
y ′′ + P (x)y ′ + Q(x)y = 0
h
Complementary Function:
M
yc = C1 y1 + C2 y2
g
in
Integrate to obtain:
V:
Z Z
y2 R(x) y1 R(x)
u1 = − dx, u2 = dx, where
CK
W W
y1 y2
W (y1 , y2 ) = = y1 y2′ − y2 y1′
y1′ y2′
is the Wronskian.
Hence, Particular Integral:
Z Z
y2 R(x) y1 R(x)
yp = −y1 dx + y2 dx
W W
Complete Solution:
Z Z
y2 R(x) y1 R(x)
y = yc + yp = C1 y1 + C2 y2 − y1 dx + y2 dx
W W
14
Remarks, when W = 0
If the Wronskian is zero:
1. The functions y1 , y2 are linearly dependent.
25
e2x 3e2x
20
W = = 0,
2e2x 6e2x
al
hence y2 = 3y1 ⇒ dependent. Therefore:
op
Bh
W = 0 ⇒ we cannot apply variation of parameters.
IT
Fundamental Theorem II
I-
Theorem: For an nth -order linear homogeneous differential equation
ics
at
Their Wronskian
in
er
y1 y2 ··· yn
ne
W (y1 , y2 , . . . , yn ) = .. .. .. ..
. . . .
En
Hence: The solution space of an nth -order homogeneous linear ODE is n-dimensional.
y = A cos x + B sin x.
Here,
y1 = cos x, y2 = sin x.
Wronskian:
25
Now for, Particular Integral (P.I.):
20
−y2 R
Z Z
y1 R
al
P.I. = u y1 + v y2 , u= dx, v= dx,
W W
op
Bh
where R = tan x.
IT
− sin x tan x sin2 x
Z Z
u=
1
dx = −
cos x
dx II
I-
1 − cos2 x
Z Z
ics
Hence,
u = sin x − log(sec x + tan x).
h
at
Similarly,
M
Z Z Z
y1 R
v= dx = cos x tan x dx = sin x dx = − cos x.
g
W
in
Therefore,
er
ne
P.I. = u y1 + v y2
gi
Complete Solution:
References
Boyce & DiPrima — Elementary Differential Equations and Boundary Value Prob-
lems.
16