Professional Documents
Culture Documents
DE Maths
DE Maths
Differential Equations
Session-1
2 Introduction to DEs
3 Classification of DEs
4 Solving DEs
In systems where we study its evolution: the change of state rather than its absolute
value.
Study of population
2 Introduction to DEs
3 Classification of DEs
4 Solving DEs
dy
= sin x
dx
d 2y
+ y sin x = 1
dx 2
Some terms
Definition (Order)
The order of the differential equation is the highest order of derivative of the unknown
function that appears in the differential equation.
Definition (Degree)
The degree of a differential equation is the power of its highest derivative after the
equation has been made rational and integral in all of its derivatives† .
Problems
Solutions
Degree
An ill-defined term
†:
Should one be allowed to manipulate a differential equation to convert it into its
polynomial form? Consider
y′ = x , y ′3 = x 3
Both are equivalent but have different degrees.
Most modern texts do not talk about degree at all. It offers no valuable insight.
2 Introduction to DEs
3 Classification of DEs
4 Solving DEs
Types of DE
Types of DEs
Definition (ODE)
A differential equation (DE) dependent on only a single independent variable.
y = f (x)
Definition (PDE)
A differential equation (DE) dependent on many independent variables, which possibly
results in equations consisting of partial derivatives.
y = f (x1 , x2 , · · · )
Types of DEs
Definition (SDE)
A differential equation (DE) involving stochastic derivatives.
Types of DEs
Types of ODEs
ODEs can further be classified into many types based on their homogeneity, linearity,
exactness, coefficients, autonomy, explicitness, etc.
Types of ODEs
Definition (Linear ODE)
A linear differential equation is defined by a linear polynomial in the unknown function
and its derivatives, an equation of the form.
where a0 (x), . . . , an (x) and b(x) are arbitrary differentiable functions that do not need
to be linear, and y ′ , . . . , y (n) are the successive derivatives of the unknown function y
of the variable x.
Example:
y ′′ + (sin x)y ′ + (cos x)y = tan x
Types of ODEs
Definition (Homogeneous ODE)
A differential equation is homogeneous if it is a homogeneous function of the unknown
function and its derivatives. In the case of linear differential equations, there are no
constant terms.
Example of a homogeneous function:
x +y
x −y
Example of a homogeneous ODE:
dy x3
= 3
dx y
Types of ODEs
Example:
2y ′′′ + 7y ′′ + y ′ − y = x sin x
Equation of an SHM
ẍ = −ω 2 x
where ω ∈ R and x = x(t) is position as a function of time.
2 Introduction to DEs
3 Classification of DEs
4 Solving DEs
We will now solve the most fundamental type of ODE, of the form
y ′ + p(x)y = 0
Algorithm:
Rewrite the equation as
dy
= −p(x)dx
y
Integrate both sides!
Example
y ′ + (tan x)y = 0
Follow the algorithm:
dy
= − tan xdx
y
Z Z
dy
=⇒ = − tan xdx
y
=⇒ ln y = − ln sec x + C
=⇒ y = a cos x
where C is the constant of integration and a = e C
Praveen, Ganesh, Aarav
Differential Equations
Why Differential Equations? Introduction to DEs Classification of DEs Solving DEs
Integrating Factor(IF)
R
†† : The solution to this, yet another differential equation, is r (x) = e p(x)dx . Note
that we get infinite different integrating factors since the result of the above indefinite
integration comes with a constant C . We usually choose C = 0 for simplicity.
A question about IF
What can you say about the existence of the Integrating Factor?
Keyword: Exactness of DE
1. Find the order, degree and type (based on linear/non linear, order and co-efficient of derivatives) for the
following ODEs:
dy
p
(a) dx = 1 + cos(x)
d2 y dy
(b) dx 2 + 3y dx = tan(log(x))
2
d3 y dy xx
(c) dx 3 + 2 dx + 7 sin(x) = e
2 2
dy
(d) = x 2xy
dx
+y
3 5
dy 1 dy 1 dy
(e) x = dx − 3 dx + 5 dx ± ···
3. A boat is rowed with constant velocity v (with respect to the river) directly across a stream of width b.
If the velocity of the river current is proportional to the product of the distances from the two banks
(take the costant of proportionality as k), find the distance by which it is deviated from the point the
boat would’ve landed if the river was still.
1
Solving higher order linear ODEs
July 2023
Introducing D operator
Homogeneous ODEs
Non Homogeneous ODEs
Power series
Power series method for solving ODEs.
What is an operator?
In simple words, an operator is something that takes a function as
input and gives some other function as output.
eg: O(f (x)) 2 O → ()2
R x= (f (x)) here, the operator
Rx
J(f (x)) = −∞ f (y )dy here, J → −∞ ()dy
similarly,
d
D→
dx
d2
D2 →
dx 2
,.. and so on.
(D − m1 )(D − m2 )(D − m3 ) · · · (D − mn )
D(e bx ) = be bx , D 2 (e bx ) = b 2 e bx , · · · D m e bx = b m e bx
. Thus,
e bx
1 bx 1 1 1 bx 1
e = e bx = e = ·
f (D) (D − b)g (D) (D − b) g (D) (D − b) g (b)
xe bx
Z
1 1 1 bx
= · e bx = e e bx e −bx dx =
g (b) (D − b) g (b) g (b)
we already have f (D) = (D − b)g (D) differentiating on both sides,
1 bx xe bx
e = ′ (f ′ (b) ̸= 0)
f (D) f (b)
1 bx x 2 e bx
e = ′′ (f ′′ (b) ̸= 0)
f (D) f (b)
...and so on
f ′ (D) = 3D 2 − 6D + 2 ⇒ f ′ (0) = 2
Thus,
1 x
(1) =
(D 3 2
− 3D + 2D) 2
Praveen, Ganesh, Aarav Giri Solving higher order linear ODEs
The shifting property
1 bx 1
e Q(x) = e bx Q(x)
f (D) f (D + b)
Try to prove it as an exercise. (Hint: Try using product rule )
a
= a + ar + ar 2 + · · ·
1−r
applies for operator D too!
Example
1 1
(D+D 2 )
(x 2 + 2x + 3) = D(1+D) (x 2 + 2x + 3) =
1 2 3 2
D (1 − D + D − D · · · )(x + 2x + 3) =
1
((x 2 + 2x + 3) − D(x 2 + 2x + 3) + D 2 (x 2 + 2x + 3)
D
1
−D 3 (x 2 + 2x + 3) · · · ) = ((x 2 + 2x + 3 − 2x − 2 + 2)
D
Praveen, Ganesh, Aarav Giri Solving higher order linear ODEs
x3
Z
1 2
= (x + 4) = (x 2 + 4)dx = + 4x
D 3
1
Find (D 2 +4D+2)
x2
1 1
= 2
(D 2
+ 4D + 2) 2(1 + D +4D )
2
2 2 2
1 D + 4D D + 4D
= (1 − + + ···)
2 2 2
1 D2
= (1 − − 2D + 4D 2 + terms with higher power than 2)
2 2
1 7D 2
= (1 − 2D + + ···)
2 2
Thus,
1 1 7 1
x 2 = (x 2 −2D(x 2 )+ D 2 (x 2 )) = (x 2 −4x+7)
(D 2 + 4D + 2) 2 2 2
Praveen, Ganesh, Aarav Giri Solving higher order linear ODEs
1
Effect of f (D) acting on sine or cosine functions
1 1 sin(2x + 1)
sin(2x + 1) = sin(2x + 1) = −
(D 2 + 2) −4 + 2 2
1 1
(cos(x)) = (cos(x))
(D 2 3
−D ) (D − D(D 2 ))
2
Thus,
1 1
(2 sin2 (x)) = (1 − cos(2x))
(D 2 + 4) 2
(D + 4)
1 1
= e 0x − cos(2x)
(D 2 + 4) (D 2 + 4)
1 1 1
= e 0x − cos(2x) = − undefined!
(02 + 4) (−22 + 4) 4
x sin(2x)
=
4
Hence,
1 1 − x sin(2x)
(2 sin2 (x)) =
(D 2 + 4) 4
dn y dn−1 y dn−2 y dy
+ k1 + k2 + · · · + kn−1 + kn y = 0
dxn dxn−1 dxn−2 dx
Generally, when the Right hand side is zero, we call the equation,
homogeneous. The above equation can be written as
or,
f (D)y = 0
How to find y ?
(D − m1 )(D − m2 )(D − m3 ) · · · (D − mn )y
is same as
(D − m1 )(D − m2 )(D − mn ) · · · (D − m3 )y
y = c1 e m1 x + c2 e m2 x + · · · + cn e mn x
(D − m1 )z = 0 ⇒ z = Ae m1 x
⇒ (D − m1 )y = Ae m1 x
Praveen, Ganesh, Aarav Giri Solving higher order linear ODEs
dy
− m1 y = c1 e m1 x
dx
I .F = e −m1 x Thus,
Z
y =e m1 x
c1 e m1 x (e −m1 x )dx + c2 e m1 x = (c1 x + c2 )e m1 x
. But again the order in which we write the factor should not
matter. Hence y can be (c1 x + c2 )e m1 x or c3 e m3 x c4 e m4 x etc..
Therefore
y = (c1 x + c2 )e m1 x + c3 e m3 x + · · · + cn e mn x
y = (c1 x 2 + c2 x + c3 )e m1 x + c4 e m4 x + · · · + cn e mn x
and so on
d 2y
Solve dx 2
+ 6 dy
dx + 9y = 0
(D 2 + 6D + 9)y = 0 ⇒ (D + 3)2 y = 0
y = (c1 x + c2 )e −3x
d 2y
Solve dx 2
+ 3 dy
dx + 2y = 0
y = c1 e −x + c2 e −2x
(D 2 + ω 2 )x = 0 ⇒ (D + iω)(D − iω)x = 0
Here, we will solve the nth order, Linear, constant coefficient , non
homogeneous ODEs. Which will have the form,
dn y dn−1 y dn−2 y dy
+ k1 + k2 + · · · + kn−1 + kn y = Q(x)
dxn dxn−1 dxn−2 dx
or,
f (D)y = Q(x).
Steps:
1. Find the homogeneous solution f (D)y = 0. Let’s call this
solution H.S. It will have all the arbitrary constants.
1
2. Find f (D) Q(x) using the techniques we have seen earlier. The
1
expression f (D) Q(x) is known as the particular solution (P.S). It
will not have any arbitrary constant.
3. The general solution is H.S+P.S.
f (D)(H.S) = 0
and
f (D)(P.S) = Q(x)
Now adding both,
here, H.S + P.S satisfies the differential equation and also it has n
independent constants coming from H.S. Hence, it is a general
solution.
(D 2 + ω 2 )x = f sin(µt)
Let us find the homogeneous solution by step-1.
(D 2 + ω 2 )x = 0
1 1
P.S = f sin(µt) = f sin(µt)
(D 2 2
+ω ) (D + ω 2 )
2
1
As we know in case of f (D) sin(ax + b) or cos(ax + b) functions
simply replace D with −a . Hence in our question, replace D 2
2 2
with −µ2 , (ω ̸= µ)
1 1
f sin(µt) = f sin(µt).
(D 2 2
+ω ) (−µ + ω 2 )
2
f sin(µt)
∴ x = c1 cos(ωt) + c2 sin(ωt) +
(ω 2 − µ2 )
f (D) = D 2 + µ2 ⇒ f (iµ) = 0
So find f ′ (D),
f ′ (D) = 2D ⇒ f ′ (iµ) = 2µi
.
1 µit te iµt
⇒ e =
(D 2 + µ2 ) 2iµ
1 ft cos(µt)
⇒fℑ 2 2
e iµt =
(D + µ ) 2µ
And the general solution (H.S+P.S) will be,
ft cos(µt)
x(t) = c1 cos(ωt) + c2 sin(ωt) +
2µ
e 3x − 1 (e x − 1)(e 2x + e x + 1)
(D 4 − 4D 3 + 3D 2 )y = =
ex − 1 ex − 1
⇒ (D 4 − 4D 3 + 3D 2 )y = e 2x + e x + 1
. Lets find the H.S by step-1.
(D 4 − 4D 3 + 3D 2 )y = 0 ⇒ D 2 (D − 1)(D − 3)y = 0
H.S = (c1 x + c2 )e 0x + c3 e x + c4 e 3x
1 1
P.S = (e 2x + e x + 1) = (e 2x + e x + 1)
(D 4 3 2
− 4D + 3D ) f (D)
1 2x e 2x
e =−
f (D) 4
1 x xe x
∴ e =−
f (D) 2
1 0x x 2 e 0x
e =
f (D) 6
x 2 xe x e 2x
y = c1 x + c2 + c3 e x + c4 e 3x + − −
6 2 4
Definition
Any series of the form:
∞
X
an (x − c)n
n=0
an
ρ = lim
n→∞ an+1
Definition
function f (x) is said to be analytical at the point x0 if it is
infinitely differentiable at x = x0 .
The point x0 is said to be regular point a.k.a ordinary point
of an ODE iff both p(x) and q(x) are analytical at x = x0 .
Otherwise, x0 becomes a singular point.
The point x0 is said to be regular singular point of an ODE
iff both (x − x0 )p(x) and (x − x0 )2 q(x) are analytical at
x = x0 . Otherwise, x0 becomes an irregular singular point.
d 2y dy
(1 − x 2 ) 2
− 2x + 2y = 0
dx dx
solution: converting the ODE to standard form by dividing by
2x 2
1 − x 2 on both sides, we get p(x) = − 1−x 2 and q(x) = 1−x 2 . We
can see that both the functions are analytical at x = 0. So, let
∞
X ∞
X ∞
X
y (x) = an x n ⇒ y ′ = nan x n−1 , y ′′ = n(n − 1)an x n−2
n=0 n=1 n=2
∞
X X∞ ∞
X ∞
X
⇒ n(n−1)an x n−2 − n(n−1)an x n −2 nan x n +2 an x n = 0
n=2 n=2 n=1 n=0
∞
X X∞ ∞
X ∞
X
⇒ (n+1)(n+2)an+2 x n − n(n−1)an x n −2 nan x n +2 an x n = 0
n=0 n=2 n=1 n=0
∞
X ∞
X
⇒ 2a2 + 6a3 x + (n + 1)(n + 2)an+2 x n − n(n − 1)an x n
n=2 n=2
∞
X ∞
X
n
−2a1 x − 2 nan x + 2a0 + 2a1 x + 2 an x n = 0
n=2 n=2
∞
X
⇒ (2a2 +2a0 +6a3 x)+ [(n+1)(n+2)an+2 −(n−1)(n+2)an ]x n = 0
n=2