Differential Equations Module 1
Differential Equations Module 1
TRANSFORMS
Dr. M. Chandru
Assistant Professor, Department of Mathematics, SAS,
Vellore Institute of Technology, Vellore, TN, INDIA.
March 3, 2022
Course Objectives:
The aim of this course is to
To impart the knowledge of Laplace transform, an important trans-
form techniques for Engineers which requires knowledge of integra-
tion.
Presenting the elementary notions of Fourier series, this is vital in
practical harmonic analysis.
Enriching the skills in solving initial and boundary value problems.
Impart the knowledge and application of difference equations and
the Z-transform in discrete systems that are inherent in natural and
physical processes.
Text Book(s):
1 Erwin Kreyszig, Advanced Engineering Mathematics, 2015, 10th
Edition, John Wiley India.
2 B.S. Grewal, Higher Engineering Mathematics, 2020, 44th Edition,
Khanna Publishers.
Reference Books:
1 Michael D. Greenberg, Advanced Engineering Mathematics, 2006,
2nd Edition, Pearson Education, Indian edition.
2 A First Course in Differential Equations with Modelling Applica-
tions, Dennis Zill, 2018, 11th Edition, Cengage Publishers.
Mode of Evaluation: Digital Assignments, Continuous Assessment
Tests, Quiz, Final Assessment Test.
Learning Outcomes
Introduction: Differential Equations.
Basics of ordinary differential equations.
Formation of ordinary differential equations by eliminating arbi-
trary constants.
Solutions of ODEs: General, Particular, Complete and Singular
integrals.
Second-order non-homogenous differential equations with constant
coefficients.
Differential equations with variable coefficients.
Method of undetermined coefficients.
Method of variation of parameters.
Solving Damped forced oscillations and LCR circuit theory prob-
lems.
Differential Equation
Differential equations arise from many problems in oscillations of
mechanical and electrical systems, bending of beams, conduction of
heat, velocity of chemical reactions, etc., and as such play a very vital
role in all modern scientific and engineering studies.
Types of variables:
Consider y = f (x), y-dependent variable and x- independent variable.
Derivative:
Rate of change of dependent variable with respect to independent vari-
dy
able. For instance, dx .
Order of DE :
The order of the highest derivative term in DE.
Example:
∂2z ∂z
∂x2
= C 2 ∂y ⇒ Order of DE is 2.
Degree of DE :
The highest power of the highest order derivative term in a DE.
Example:
3
∂2z 2 ∂z
∂x 2 = C ∂y ⇒ Degree of DE is 1.
Homogeneous DE :
If all the terms of a DE contains the dependent variable or its partial
derivatives.
Example:
2 2
∂2z ∂ z
∂x2 + ∂y 2
= 0.
Non-homogeneous DE :
Anyone of the term of a DE doesn’t contains the dependent variable or
its partial derivatives.
Example:
2 2
∂2z ∂ z
∂x2
+ ∂y 2
= x2 + a.
Classification of ODEs
Linear of Ordinary Differential Equations:
A ODE is said to be linear if F is linear in the unknown function y
and its derivatives with coefficients depending on the independent vari-
able x.
Example:
d2 y dy
x2 dx 2 − 2x dx = −2 ⇒ Linear of ODE.
Formation of ODEs
An ordinary differential equation is formed in an attempt to eliminate
certain arbitrary constant from a relation in the variables and
constants.
Examples:
Form the differential equations from the following equations:
1 y = ax3 + bx2 .
2 y = ex (A cos x + B sin x).
3 y = ae2x + be−3x + cex .
A family of circles passing through the origin and having centres
on the x-axis.
All the parabolas with x-axis as the axis and (a, 0) as focus.
Separation of Variables
In an equation
all the y terms (including dy) can be moved to one side of the
equation, and
all the x terms (including dx) to the other side
then the variables are said to be separable.
Thus, the general form of such an equation be
f (y)dy = g(x)dx.
x2 1 x2 x2
Z Z
− cos y + y sin y − sin ydy = 2 log x − dx + +c
2 x 2 2
x2 1 x2 x2
− cos y + y sin y − (− cos y) = 2 log x − + +c
2 2 2 2
x2 x2
− cos y + y sin y + cos y = x2 log x − + + c.
2 2
Hence, the solution is
x2 log x − y sin y = c.
Rb Rb
Note: Integral by parts: a udv = [uv]ba − a vdu.
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 30 / 117
Solution of First-order ODEs Variable Separable: Example
dy
Example: Solve dx = sin(x + y) + cos(x + y).
Solution: Given
dy
= sin(x + y) + cos(x + y). (1)
dx
Since, it is not possible directly so we assume x + y = t which gives
dy dt
= − 1.
dx dx
Now, the equation (1) becomes
dt
= 1 + sin t + cos t.
dx
This can be write as
dt
= dx.
(1 + sin t + cos t)
Examples:
dy
= e3x−2y + x2 e−2y . 3e2y = 2 e3x + x3 + 6c.
Solve dx
√ p
Solve y 1 − x2 dy + x 1 − y 2 dx = 0.
dy
Solve (x + 1) dx + 1 = 2e−y .
Solve 3ex tan ydx + (1 − ex ) sec2 ydy = 0.
dy
Solve x dx + cot y = 0, if y(0) = 0.
Homogeneous Equations
Homogeneous equations are of the form
dy f (x, y)
= ,
dx g(x, y)
dy (x2 − y 2 )
= , (1)
dx xy
which is homogeneous in x and y.
dy dv
Assume y = vx, then dx = v + x dx .
dv 1 − v2
(1) ⇒ v + x =
dx v
dv 1 − v2 1 − 2v 2
x = −v =
dx v v
Separating the variables, we obtain
vdv dx
2
= .
1 − 2v x
x4 1 − 2v 2 = e−4c .
Put v = xy , we have
2y 2
x 1 − 2 = e−4c = c1
4
x
2y 2
4
x 1 − 2 = c1 .
x
Linear Equations
A differential equation is said to be linear if the dependent variable
and its differential co-efficients occur only in the first degree and not
multiplied together. The standard form of the linear equation of the
first order be
dy
+ P (x)y = Q(x).
dx
It is also known as Leibnitz’s linear equation in y. R
To solve the linear equation, multiply integrating factor e P dx on both
sides, we get
dy R P dx R R d R P dx R
e + y e P dx P = Qe P dx ⇒ ye = Qe P dx .
dx dx
Integrating on both sides,
R
we have
Z R
P dx
ye = Qe P dx dx + c,
Examples:
dy
Solve (1 + x) dx − y = e3x (1 + x)2 .
dy
Solve 3x(1 − x2 )y 2 dx + (2x2 − 1)y 3 = ax3 .
Solve (1 + y 2 )dx = (tan−1 y − x)dy.
dy
Solve x log x dx + y = log x2 .
dy 2y
Solve dx − x+1 = (x + 1)2 .
Bernoulli’s Equation
A differential equation is of the form
dy
+ P (x)y = Q(x)y n . (1)
dx
It is also known as Leibnitz’s linear equation in y or Bernoulli’s
equation.
To solve the linear equation, divide by y n on both sides, so that
dy
y −n + P (x)y 1−n = Q(x). (2)
dx
dy
Now, assume y 1−n = z gives (1 − n)y −n dx = dz
dx .
1 dz dz
(2) ⇒ + P z = Q or + P (1 − n)z = Q(1 − n),
(1 − n) dy dy
dy
Example: Solve x dx + y = x3 y 6 .
Solution: Given equation can be written as
dy
x + y = x3 y 6 . (1)
dx
Equation (1) divided by xy 6 , we have
dy y −5
y −6 + = x2 . (2)
dx x
dy
Now, assume y −5 = z gives −5y −6 dx = dz
dx .
−1 dz z dz 5z
(2) ⇒ + = x2 or − = −5x2 ,
5 dy x dy x
which is a linear equation in z.R
−5dx
Integrating factor be (IF) = e x = e−5 log x = x−5 .
x−2
+c = −5
−2
x−2
y −5 x−5 = −5 + c.
−2
Hence the solution of the given equation is
5x−2
y −5 x−5 = + c.
2
Examples:
Solve xy(1 + xy 2 )y 0 = 1.
Solve y 0 + x sin 2y = x3 cos2 y.
Solve y 0 = y tan x − y 2 sec x.
Solve 2xy 0 = 10x3 y 5 + y.
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 48 / 117
Solution of First-order ODEs Exact Differential Equations
du = M dx + N dy = 0 ⇒ u(x, y) = c,
Note:
The necessary and sufficient condition for the differential equation
M dx + N dy = 0 to be exact is
∂M ∂N
= .
∂y ∂x
The solution of M dx + N dy = 0 be
Z Z
M dx + (terms of N not containing x)dy = c.
y constant
2
2
Example: Solve y 2 exy + 4x3 dx + 2xyexy − 3y 2 dy = 0.
Solution: Given equation be
2
2
y 2 exy + 4x3 dx + 2xyexy − 3y 2 dy = 0.
Here,
2 2
M (x, y) = y 2 exy + 4x3 and N (x, y) = 2xyexy − 3y 2 .
∂N 2 2
= 2yexy + y 2 exy (2xy)
∂x
So,
∂M ∂N
= .
∂y ∂x
Hence, the equation is exact. Then, its solution be
Z Z
M dx + (terms of N not containing x)dy = c
y constant
Z Z
2 xy 2
y e + 4x dx + (−3y 2 )dy = c
3
y constant
2
exy x4 y3
y2 + 4 − 3 =c
y2 4 3
2
exy + x4 − y 3 = c.
Therefore, the solution of the given equation is
2
exy + x4 − y 3 = c.
Examples:
2
2 2
Solve y 2 exy + 4x3 dx + 2xyexy −3y dy = 0.
Solve 2x2 + 3y 2 − 7 xdx − 3x2 + 2y 2 − 8 ydy = 0.
dn y dn−1 y dn−2 y
a0 n
+ a1 n−1 + a2 n−2 + · · · + an y = X, → (1)
dx dx dx
where, a0 , a1 , a2 , a3 , · · · , an and X are functions of x only.
Note:
If a0 , a1 , a2 , a3 , · · · , an are constants then such equations are
linear differential equations with constant co-efficients which are
most important in the study of electro-mechanical vibrations and
other engineering problems.
If a0 , a1 , a2 , a3 , · · · , an are function of x or variable then such
equations are linear differential equations with variable
co-efficients.
d d 2 d 3 dn
2 3 = Dn , where D is a
Let dx = D, dx 2 = D , dx3 = D , · · · , dxn
differential operator.
Then, the equation (1) becomes
a0 Dn + a1 Dn−1 + a2 Dn−2 + · · · + an y = X
→ (2)
or
f (D)y = X,
where, f (D) = a0 Dn + a1 Dn−1 + a2 Dn−2 + · · · + an is a polynomial in
D, which may be treated as an algebraic quantity.
Assume X = 0, we obtain
f (D)y = 0. → (3)
y = u + v, → (4)
where
y = u is the general solution of (3) which contains n arbitrary
constants and
y = v is a particular solution of (2) which has no arbitrary
constants.
Here, u is denoted as a Complementary Function(CF) and v is denoted
as a Particular Integral(PI) of the solution of the equation (2).
Complementary Function
Consider the homogeneous equation
f (D)y = 0.
f (m) = 0, → (5)
Roots are real and some of which are equal: Let the roots
of the A.E. be m1 = m2 = m, m3 , · · · , mn , the first two roots are
equal. Then, the solution of the equation (3) be
C.F.= eαx [(c1 + xc2 ) cos βx + (c3 + xc4 ) sin βx] + c5 em5 x
+ · · · + cn emn x .
Examples:
d2 ydy
Solve − 7 dx
dx2
− 44y = 0.
4 2
Solve D − 5D + 4 y = 0.
d3 y d y2 dy
Solve dx3
− 2 dx2 − 4 dx + 8y = 0.
d4 y
Solve − c4 y = 0.
dx4
Solve D4 + a4 y = 0.
d4 y d y3 d y 2 dy
Solve dx4
+ 4 dx3 − 5 dx2 − 36 dx + −36y = 0.
Particular Integral
Consider the differential equation
f (D)y = X.
Therefore,
1 1
P.I. = X= eax
f (D) (D − a)φ(D)
eax eax 1
Z
1 1
= = ∵ = dx
φ(a) ((D + a) − a) φ(a) D D
xeax
P.I.= , φ(a) 6= 0
φ(a)
eax 1 eax xp
P.I. = = , φ(a) 6= 0.
φ(a) Dp φ(a) p!
Note:
1
sin(x) cos(y) = 2 (sin(x + y) + sin(x − y))
1
cos(x) sin(y) = 2 (sin(x + y) − sin(x − y))
cos(x) cos(y) = 12 (cos(x + y) + cos(x − y))
sin(x) sin(y) = −1 2 (cos(x + y) − cos(x − y))
eix −e−ix
sin x = 2i
eix +e−ix
cos x = 2
ex −e−x
sinh x = 2
x −x
cosh x = e +e 2
D2 + 3D + 5 y = e2x .
→ (1)
m2 + 3m + 5 = 0.
Now
1
P.I. = e2x .
D2 + 3D + 5
Put D = 2 in f (D), we have
1 e2x
P.I. = e2x = . → (3)
42 + 3(2) + 5 15
2 e2x − e−2x
2
= e2x − e−2x .
D + 4D + 4 y = 2 sinh 2x = → (1)
2
The corresponding A.E. of the form be
m2 + 4m + 4 = 0.
(m + 2)2 = 0 ⇒ m = −2, − 2.
Now
1
e2x − e−2x
P.I. =
D2 + 4D + 4
1 1
= 2
e2x − e−2x
(D + 2) (D + 2)2
1 1
= 2
e2x − e−2x
(2 + 2) (−2 + 2)2
e2x 1 −2x
= − e .
16 0
Then, the method fails. So we replace D by (D − 2) in f (D) and take
out e−2x
e2x 1
P.I. = − e−2x
16 ((D − 2) + 2)2
e2x e2x
Z Z
−2x 1 −2x
= −e = −e dxdx
16 D2 16
e2x x2
P.I.= − e−2x . → (3)
16 2
e2x x2 e−2x
y = C.F. + P.I. = (c1 + xc2 ) e−2x + − .
16 2
Examples:
d3 yd y dy2
−x .
Solve + 3 dx
dx3 2 + 3 dx + y = e
Solve D2 + 4D + 3 y = 3 cosh x.
d3 yd y dy2
−3x .
Solve − 2 dx
dx3 2 − 4 dx + 8y = 3e
Type-II:
Let X = sin ax or cos as, where a is any constant.
1 1
P.I. = 2
X= sin ax (or) cos ax
f (D ) f (D2 )
1
P.I. =sin ax (or) cos ax , f (−a2 ) 6= 0.
f (−a2 )
Note:
Nothing can be substituted for the derivative D.
The other powers of derivatives can be considered as D3 = D2 .D,
D5 = D2 .D2 .D and so on.
If f (−a2 ) = 0 then the method fails.
1 x
P.I. = 2 2
sin ax (or) cos ax = sin ax (or) cos ax
(D + a ) 2D
Z
x1 x
P.I. = sin ax (or) cos ax = sin ax (or) cos ax dx.
2D 2
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 68 / 117
Solution of Second-order ODEs P.I. Type-II: Example
D2 + D + 1 y = sin x.
→ (1)
m2 + m + 1 = 0.
Now
1 1
P.I. = sin 2x = sin 2x
D2
+D+1 2
−2 + D + 1
1 1
= sin 2x = sin 2x
−4 + D + 1 D−3
(D + 3) (D + 3)
= 2 2
sin 2x = 2 sin 2x
D −3 D −9
(D + 3) −1
= 2
sin 2x = (D + 3) sin 2x
−2 − 9 13
−1 −1
= (D sin 2x + 3 sin 2x) = (2 cos 2x + 3 sin 2x)
13 13
−(2 cos 2x + 3 sin 2x)
P.I.= . → (3)
13
From (2) and (3), we obtain
√ √ !
−x 3 3 (2 cos 2x + 3 sin 2x)
y = C.F. + P.I. = e 2 c1 cos x + c2 sin x − .
2 2 13
Examples:
Solve D2 − 5D + 6 y = cos 3x.
Type-III:
Let X = xn , where n is a positive integer.
1 1
P.I. = X= xn .
f (D) f (D)
To find the P.I. of this type one should remember binomial expansion
n
X n
X
n n−k k
(x + y) = nCk x y = nCk xk y n−k
k=0 k=0
n(n − 1) n−2 2
(x + y)n = xn + nxn−1 y + x y + · · · + yn.
2!
Note:
(1 − D)−1 = 1 + D + D 2 + D 3 + · · ·
(1 + D)−1 = 1 − D + D 2 − D 3 + · · ·
(1 − D)−2 = 1 + 2D + 3D 2 + 4D 3 + · · ·
(1 + D)−2 = 1 − 2D + 3D 2 − 4D 3 + · · ·
(1 − D)−3 = 1 + 3D + 6D 2 + 10D 3 + · · ·
(1 + D)−3 = 1 − 3D + 6D 2 − 10D 3 + · · ·
2D2 + 5D + 2 y = 5 + 2x.
→ (1)
2m2 + 5m + 2 = 0.
Now
−1
(2D2 + 5D)
1 1
P.I. = (5 + 2x) = 1+ (5 + 2x)
2D2 + 5D + 2 2 2
" 2 #
(2D2 + 5D) (2D2 + 5D)
1
= 1− + − · · · (5 + 2x)
2 2 2
1 1 2
= (5 + 2x) − 2D (5 + 2x) + 5D(5 + 2x)
2 2
1 1
= (5 + 2x) − (0 + 5(2))
2 2
1
= (5 + 2x − 5) = x
2
P.I.= x. → (3)
Examples:
Solve D2 + 2D + 1 y = x2 + 1.
x
Solve D2 + 4D + 4 y = 2x . Note: 2x = elog2 = exlog2 .
Type-IV:
Let X = eax V , where V is any function of x.
1 1 ax
P.I. = X= e V
f (D) f (D)
1
P.I. =eax V.
f (D + a)
Note:
For every D replaced by D + a in f (D) and take out eax so that
1 1
the inverse operator f (D) becomes f (D+a) .
1
Then, the new inverse operator f (D+1) can alone operate the
function V (x) by any of the previous method.
m2 − 4m + 3 = 0.
(m − 1)(m − 3) = 0 ⇒ m = 1, 3.
Now
1
P.I. = e2x sin 3x
D2
−
4D + 3
2x 1
=e sin 3x
(D + 2)2 − 4(D + 2) + 3
2x 1
=e sin 3x
D2 + 4D + 4 − 4D + 8 + 3
2x 1
=e sin 3x
D2 − 1
1
= e2x sin 3x
−32 − 1
1 2x
P.I.= e sin 3x. → (3)
−10
From (2) and (3), we obtain
1 2x
y = C.F. + P.I. = c1 ex + c2 e3x + e sin 3x.
−10
D2 + 2D + 1 y = xe−x sin x.
→ (1)
m2 + 2m + 1 = 0.
(m + 1)2 = 0 ⇒ m = −1, − 1.
Now
1
P.I. = xe−x sin x
(D + 1)2
−x 1
=e x sin x
((D − 1) + 1)2
Z
1 1
= e−x 2 x sin x = e−x x sin xdx
D D
Z
−x 1
=e x(− cos x) − (− cos x)dx
D
Z
= e−x [−x cos x + sin x] dx
Z
= e−x −(x sin x − sin xdx) − cos x
Examples:
Solve D2 − 5D + 6 y = x(x + ex ).
Type-V:
Let X = xn V , where V is any function of x.
1 1
P.I. = xn V (x) = xn sin ax (or) cos ax
f (D) f (D)
1
xn I.P. of (eiax ) (or) R.P. of (eiax )
=
f (D)
iax 1 n
P.I.= I.P. (or) R.P of e x .
f (D + ia)
D2 + 1 y = x2 sin x.
→ (1)
m2 + 1 = 0.
m2 + 1 = 0 ⇒ m = ±i.
Now
1
P.I. = x2 sin x
D2
+1
1
x2 I.P. eix
= 2 of
D +1
1
= I.P. of eix x2
(D + i)2 + 1
1
= I.P. of eix 2 x2
(D + 2Di − 1) + 1
1
= I.P. of eix 2 x2
D + 2Di
D −1 2
ix 1
= I.P. of e 1+ (x )
2Di 2i
D2
ix 1 D
= I.P. of e 1− + − · · · (x2 )
2Di 2i (2i)2
eix
i 2 2x 2
= I.P. of × x − +
2Di i 2i −4
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 84 / 117
Solution of Second-order ODEs P.I. Type-V
−ieix
Z
2 x 1
P.I. = I.P. of x − − dx
2 i 2
−ieix x3 x2 i x
= I.P. of + −
2 3 2 2
ix
−ie 3
2x + 3ix2 − 3x
= I.P. of
12
−i(cos x + i sin x) 3
2x + 3ix2 − 3x
= I.P. of
12
(−i cos x + sin x) 3
2x + 3ix2 − 3x
= I.P. of
2
1
−2x3 cos x + 3x cos x + 3x2 sin x
=
12
1
−2x3 cos x + 3x2 sin x + 3x cos x . → (3)
P.I.=
12
From (2) and (3), we obtain
x
−2x2 cos x + 3(x sin x + cos x) .
y = C.F. + P.I. = c1 cos x + c2 sin x +
12
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 85 / 117
Solution of Second-order ODEs Initial Value Problem
d2 y dy
Example: Solve the initial value problem dx2 + 5 dx + 6y = 0 given
y(0) = 0 and y 0 (0) = 15.
Solution: Given equation is
D2 + 5D + 6 y = 0. → (1)
And
y 0 (x) = −2c1 e−2x − 3c2 e−3x .
At x = 0, we have
c1 = 15 and c2 = −15.
Examples:
Solve y 00 + 4y 0 + 4y = 0 given y(0) = 3 and y 0 (0) = 1.
d2 y dy
Solve the initial value problem dx2
+ 4 dx + 5y + 2 cosh x = 0 given
dy
y = 0 and dx = 1 at x = 0.
d y 2
Solve the initial value problem dx2 + y = sin(x + a) satisfying the
0
conditions given y(0) = 0 and y (0) = 0.
And
x = c1 et + c2 e−t ,
y = sin t − c1 et + c2 e−t .
Examples:
dx dy
Solve dt = 7x − y and dt = 2x + 5y.
dx dy
Solve dt+ 5x − 2y = 5 and dt + 2x + y = 0 given that x = y = 0
at t = 0.
dn y n−1 d
n−1 y dn−2 y
a0 xn + a1 x + xn−2
a 2 + · · · + an y = X, → (1)
dxn dxn−1 dxn−2
where, a0 , a1 , a2 , a3 , · · · , an and X are functions of x only which is
called Cauchy’s homogeneous linear equation.
Let x = et or t = log x
dy dy dt dy 1 dy
= = ⇒ x = Dy.
dx dt dx dt x dx
d2 y
d 1 dy −1 dy 1 d dy dt
= = +
dx2 dx x dt x2 dt x dt dt dx
1 d2 y dt
−1 dy
= 2 +
x dt x dt2 dx
1 d2 y dy
= 2 2 −
x dt dt
d2 y 1
= 2 (D2 − D)y.
dx2 x
d2 y
⇒ x2 = D(D − 1)y.
dx2
Similarly,
d3 y
x3= D(D − 1)(D − 2)y and so on.
dx3
After making these changes in (1), we get linear differential equation
with constant coefficients which can be solved in the usual way.
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 92 / 117
II-order Non-homo DEs with Variable Co-efficients Linear DEs with Variable Co-efficients: Examples
d2 y dy
x2
Example: Solve dx2 − x dx + y = log x.
Solution: The given Cauchy’s homogeneous linear equation be
d2 y dy
2
x2
−x + y = log x. → (1)
dx dx
Assume x = et or t = log x. So that
dy d2 y d
= Dy, x2 2 = D(D − 1)y, where D = .
x
dx dx dt
Then, the equation (1) becomes
(D(D − 1) − D + 1) y = t ⇒ (D − 1)2 y = t
which is linear differential equation with constant coefficient. The cor-
responding A.E. of the form be
(m − 1)2 = 0.
Therefore, the roots are
(m − 1)(m − 1) = 0 ⇒ m = 1, 1.
Now
1
P.I. = t
(D − 1)2
= (1 − D)−2 t = 1 + 2D + 3D2 + · · · t
P.I.= t + 2.
Hence,
y = (c1 + tc2 )et + (t + 2).
Put t = log x, we obtain the corresponding general solution of (1)
Now
2
P.I. = sin t
D2 +1 Z
2t
= sin t = t sin tdt
2D
= t(− cos t)
P.I.= −t cos t.
Hence,
y = c1 cos t + c2 sin t − t cos t.
Put t = log(1 + x), we obtain the corresponding general solution of (1)
Examples:
d y 2 dy
Solve x2 dx2 + x dx + y = log x sin(log x).
d y 2 dy 1
Solve x2 dx2 + 3x dx + y = (1−x)2
.
d y 2 dy
Solve x2 dx x
2 + 4x dx + 2y = e .
d y 2 dy
Solve (2x − 1)2 dx 2
2 + (2x − 1) dx − 2y = 8x − 2x + 3.
d y 2 dy
Solve (2x + 3)2 dx2 − (2x + 3) dx − 12y = 6x.
y = eax A0 + A1 x + A2 x2 + · · · + An xn .
2 + · · · + a xn sin ax (or)
Case (vi): If X = a0 + a1 x + a2 x n
a0 + a1 x + a2 x2 + · · · + an xn cos ax then the particular integral
is of the form
y= A0 + A1 x + A2 x2 + · · · + An xn sin ax
+ A0 + A1 x + A2 x2 + · · · + An xn cos ax.
y= eax A0 + A1 x + A2 x2 + · · · + An xn sin ax
+ A0 + A1 x + A2 x2 + · · · + An xn cos ax .
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 100 / 117
Method of Undetermined Coefficients: Examples
y 00 + y 0 − 2y = x + sin x + ex . → (1)
m2 + 3m − 2 = 0.
(m − 1)(m + 2) = 0 ⇒ m = 1, − 2.
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 101 / 117
Method of Undetermined Coefficients: Examples
−2A0 + A1 = 0,
−2A1 = 1,
−3B0 − B1 = 1
B0 − 3B1 = 0,
C0 = 0.
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 102 / 117
Method of Undetermined Coefficients: Examples
1 −1 −3 −1
A 0 = , A1 = , B0 = , B1 = and C0 = 0.
4 2 10 10
1 1 3 −1
P.I. = − − sin x cos x + (0)ex . → (3)
4 2 10 10
From (2) and (3), we obtain
1 1 3 −1
y = C.F. + P.I. = c1 ex + c2 e−2x + − − sin x cos x.
4 2 10 10
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 103 / 117
Method of Undetermined Coefficients: Examples
Examples:
Solve y 00 − 3y 0 − 2y = x2 + x + 1 by the method of undetermined
coefficients.
Solve y 00 − 2y 0 + 5y = e2x + x by the method of undetermined
coefficients.
Solve y 00 − 5y 0 + 6y = sin 2x by the method of undetermined
coefficients.
Solve y 00 + 4y = x2 + e−x by the method of undetermined
coefficients. Note: A trail solution for x2 be A0 + A1 x + A2 x2 .
Solve y 00 − y 0 − 4y = x + cos 2x by the method of undetermined
coefficients.
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 104 / 117
Method of Variation of Parameters
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 105 / 117
Method of Variation of Parameters
Then
dA −vR dB uR
= and = .
dx w dx w
On integrating, we get the values of A and B each containing a con-
stant.
−vR
Z Z
uR
A= dx + c1 and B = dx + c2 .
w w
Substituting these values in
y = Au + Bv,
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 106 / 117
Method of Variation of Parameters Method of Variation of Parameters: Examples
d2 y
Example: Solve + a2 y = sec ax by using the method of variation of
dx2
parameters.
Solution: Given equation is
d2 y
+ a2 y = sec ax → (1)
dx2
d2 y dy
Comparing with 2
+P + Qy = R, we have
dx dx
P = 0, Q = a2 and R = sec ax
Thus, the corresponding A.E. of the form be
m2 + a2 = 0.
Therefore, the roots are
m2 = −a2 ⇒ m = ±ai.
The roots are complex pair. Hence
y = c1 cos ax + c2 sin ax.
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 107 / 117
Method of Variation of Parameters Method of Variation of Parameters: Examples
Let us suppose
y = Au + Bv → (2)
be its general solution.
Then Wronskian
u v cos ax sin ax
w = 0 0 =
= a cos2 ax + sin2 ax = a. → (3)
u v −a sin ax a cos ax
dA vR − sin ax sec ax 1
∴ =− = = − tan ax.
dx w a a
Z
1 1
∴ A=− tan axdx + c1 = 2 log(cos ax) + c1 .
a a
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 108 / 117
Method of Variation of Parameters Method of Variation of Parameters: Examples
And
dB uR cos ax. sec ax 1
= = =
dx w a a
Z
1 x
B= (1)dx + c2 = + c2 .
a a
Substituting in (2), we get
1 x
y= log(cos ax) + c1 cos ax + + c2 sin ax
a2 a
Hence
1 x
y = c1 cos ax + c2 sin ax + 2
log(cos ax) + sin ax.
a a
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 109 / 117
Method of Variation of Parameters Method of Variation of Parameters: Examples
d2 y dy
Example: Solve 2
+2 + 2y = e−x sec3 x by using the method of
dx dx
variation of parameters.
Solution: Given equation is
d2 y dy
+2 + 2y = e−x sec3 x → (1)
dx2 dx
d2 y dy
Comparing with 2
+P + Qy = R, we have
dx dx
P = 2, Q = 2 and R = e−x sec3 x
Thus, the corresponding A.E. of the form be
m2 + 2m + 2 = 0.
Therefore, the roots are
√
4−8−2 ±
m= = −1 ± i.
2
The roots are complex pair. Hence
y = e−x (c1 cos x + c2 sin x) .
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 110 / 117
Method of Variation of Parameters Method of Variation of Parameters: Examples
Let us suppose
y = Au + Bv → (2)
be its general solution.
Then Wronskian
−x cos x −x sin x
u v e e
w = 0 0 = −x −x −x −x
u v −e cos x − e sin x −e sin x + e cos x
= e−2x cos2 x + sin2 x = e−2x . → (3)
And
dB uR e−x cos x.e−x sec3 x
= = = sec2 x.
dx w e−2x
Z
B = sec2 xdx + c2 = tan x + c2 .
− tan2 x
y= + c1 e−x cos x + (tan x + c2 ) e−x sin x.
2
Hence
− tan2 x
y = e−x (c1 cos x + c2 sin x) + e−x cos x + e−x sin x tan x.
2
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 112 / 117
Method of Variation of Parameters Method of Variation of Parameters: Examples
Example:
d2 y
Solve + y = csc x by using the method of variation of
dx2
parameters.
d2 y
Solve + 4y = tan 2x by using the method of variation of
dx2
parameters.
d2 y
Solve + y = tan x by using the method of variation of
dx2
parameters.
d2 y 1
Solve − y = 1+e x by using the method of variation of
dx2
parameters.
Solve y 00 − 2y 0 + y = ex log x by using the method of variation of
parameters.
Solve x2 y 00 + xy 0 − y = x2 ex by using the method of variation of
parameters.
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 113 / 117
Damped Forced Oscillations and LCR Circuit Theory
Dr. M. Chandru (VIT-Vellore) DEs and Transforms March 3, 2022 117 / 117