Professional Documents
Culture Documents
Notes MA201 AY2021 22
Notes MA201 AY2021 22
Notes MA201 AY2021 22
Satyajit Pramanik1
Assistant Professor
Discipline of Mathematics
Indian Institute of Technology Gandhinagar
1 satyajit.pramanik@iitgn.ac.in
2
Contents
3
4 CONTENTS
Health warning:
The following lecture notes are meant as a rough guide to the lectures. They are not meant to
replace the lectures. You should expect that some material in these notes will not be covered
in class and that extra material will be covered during the lectures (especially examples and
applications). Nevertheless, I will try to follow the notation and the overall structure of the
notes as much as possible. Also, these notes may be updated during the course of the term.
In particular, please alert me if you catch any typos or errors. Please regularly check the
Google Classroom for the updated version.
Acknowledgement:
I would like to thank Mr. Shubhajit Roy for helping in typesetting the notes.
Chapter 1
1.1 Introduction
Definition 1.1.1. An equation that involves one or more dependent variables and derivatives
with respect to one or more independent variables is called a differential equation (DE).
d2 y(x)
Example 1.1.1. y ′′ + 3y = sin(x) ⇒ + 3y(x) = sin(x) (ODE)
dx2
5
6 CHAPTER 1. FIRST ORDER ORDINARY DIFFERENTIAL EQUATIONS
Example 1.1.2.
dy dw
+y = ex (1.1)
dx dx
• 2 dependent variable y, w • 1 independent variable x
Example 1.1.3. Let u(x, y) be a function of x and y. Then we get the following terms
∂u ∂u
= ux , = uy
∂x ∂y
• 2 dependent variable y, w • 1 independent variable x
So, Partial Differential Equation (PDE) example is
uxx + uyy = 0, where order is 2
Definition 1.1.2 (Order of an Equation). The order of a differential equation is the order
of the highest derivative in the equation.
Example 1.1.4. y ′′′ + 3y ′ + xy = 0, order = 3 (3rd order equation)
Definition 1.1.3 (Degree of an Equation). The integer power of the highest derivative in a
DE is called the degree of the equation.
3
dy dy
Example 1.1.5. 3
+3 + xy = 0, degree = 1, order = 3
dx dx
2 2 3
dy dy
Example 1.1.6. + 3 = 0, degree = 1, order = 3
dx2 dx3
2 2
dy dy
Example 1.1.7. 2
+3 = 0, degree = 2, order = 2
dx dx
Definition 1.1.4 (Linear Equation). A DE is called linear if y1 and y2 are two solutions of.
DE then, y = c1 y1 + c2 y2 is also a solution of DE.
y ′ = −Ky (k > 0) (1.2)
y1 is a solution.
y1′ = −Ky1 (1.3)
y2 is a solution.
y2′ = −Ky2 (1.4)
so, u = c1 y1 + c2 y2 (1.5)
LHS = (c1 y1 + c2 y2 )1
= c1 y11 + c2 y21
= c1 (−Ky1 ) + c2 (−Ky2 )
(1.6)
= −K(c1 y1 + c2 y2 )
| {z }
u
= −Ku
A linear equation is of degree 1 but not every degree 1 equation is linear.
1.2. GEOMETRIC MEANING. DIRECTION FIELDS 7
F (x, y, y ′ ) = 0, in I, (1.7)
Step 2: Corresponding to each isoclines draw many lines elements which has slop equal to
K.
Step 3: We can draw the solution curves using the direction of linear element.
8 CHAPTER 1. FIRST ORDER ORDINARY DIFFERENTIAL EQUATIONS
If the integrals in (1.14) exist, we obtain the general solution of ODE (1.11).
Definition 1.3.1 (Separable equations). This method of solving ODEs is called the method
of separating variables, and (1.12) is called a separable equation.
Definition 1.3.2 (General solution). The general solution of (1.12) is a solution which
involves one arbitrary parameter/constant.
Definition 1.3.3 (Particular solution). For particular values of c in the general solution,
we get particular solutions of (1.12).
Denote by y(t) the amount of the substance still present at any time t.
dy
= −Ky (K > 0) (1.15)
dt
1
g(y) = , f (t) = −K
y
dy
g(y) = f (t)
Z dt Z
g(y)dy = f (t)dt + ln C
Z Z
1
⇒ = −Kdt + ln C
y
⇒ ln y = −Kt + ln C
y
⇒ ln = −Kt
C
⇒ y(t) = Ce−Kt (1.16)
1.4. EXACT EQUATIONS AND INTEGRATING FACTOR 9
y(t = 0) = Ce−K 0̇ = C
⇒ 0.5g = C
du = 0
⇒(1 + 2xy 3 )dx + 3x2 y 2 dy = 0
(1.18)
dy 1 + 2xy 3
⇒y ′ = =−
dx 3x2 y 2
Definition 1.4.2.
M (x, y)dx + N (x, y)dy = 0 (1.19)
Equation (1.19) called an exact DE is the differential form M (x, y)dx + N (x, y)dy = 0 is
exact i.e., this form is the differential of some function u(x, y)
∂u ∂u
du = dx + dy.
∂x ∂y
Example 1.4.2.
M dx + N dy = 0
(1.21)
xdx + ydy = 0
From this, we get M = x and N = y
Theorem 1.4.1. Consider the equation
P (x, y)dx + Q(x, y)dy = 0 (1.22)
in the domain D ⊂ R2 . Suppose P and Q have it’s first order partial derivatives in D. Then
equation (1.22) is exact in D iff (⇔)
∂P (x, y) ∂Q(x, y)
= , ∀(x, y) ∈ D. (1.23)
∂y dx
Proof. Given P (x, y)dx + Q(x, y)dy = 0 is an exact equation.
Claim:
∂P ∂Q
= (1.24)
∂y ∂x
∂u ∂u
By definition, ∃ a function u = u(x, y) ∋ = P and =Q
∂x ∂y
Z
u(x, y) = P (x, y)dx + g(y) (1.25)
∂2
Z
∂Q
LHS = − P (x, y)dx
∂x ∂x∂y
Z
∂Q ∂ ∂
= − P (x, y)dx
∂x ∂y ∂x
(1.30)
∂Q ∂P
= −
∂x ∂y
∂P ∂Q
=0 ∵ =
∂y ∂x
∂
R
∴ Q− ∂y
P dx is independent of x.
Z Z
∂
⇒ g(y) = Q(x, y) − P (x, y)dx dy + C (1.31)
∂y
where C is an arbitrary constant.
∴ We have found the existence of such u, which is given by
Z
u(x, y) = P (x, y)dx + g(y) (1.32)
Theorem 1.4.3. If
P (x, y)dx + Q(x, y)dy = 0, (1.36)
is such that
∗ 1 ∂P ∂Q
R =− − , (1.37)
Q ∂y ∂x
depends only on y, then (1.36) has an integrating factor F ∗ = F ∗ (x), which is given by
Z
∗ ∗
F (y) = exp R (y)dy . (1.38)
12 CHAPTER 1. FIRST ORDER ORDINARY DIFFERENTIAL EQUATIONS
Figure 1.2: Orthogonal trajectories (source: Wikipedia). The family of curves in red are
orthogonal to the family in blue.
Example 1.6.1. The orthogonal trajectories to the one-parameter family of curves y = c/x2
is x2 + 2Y 2 = C, which is again a one-parameter family of curves.
Solution of IVP is
y = x2 + 1 (1.47)
Claim: Equation (1.47) is precisely the only solution to the IVP (1.46). →Unique Solution
Example 1.7.2.
xy ′ = y − 1, y(0) = 1
y = 1 + Cx, where C is arbitrary constant
Infinitely many solutions
Example 1.7.3.
|y ′ | + |y| = 0, y(0) = 1
IVP has no solution. ODE has trivial solution only, i.e., y(x) = 0 ∀x.
If f (x, y) is constant and bounded in R then solution exists. Solution is valid for x0 − α <
b
x < x0 + α where α = min{a, }.
k
Example 1.7.4. Recast xy ′ = y − 1, y(0) = 1 in the form y ′ = f (x, y) using
y−1
f (x, y) =
x
R = {(x, y) ∈ R2 : −a <x < a, 1 − b < y < 1 + b}
y−1
Verify! to check f (x, y) = x
is constant and bounded in R.
∂f
Let f and be constants ∀(x, y) in the rectangle R, and bounded, say
∂y
|f (x, y)| ≤ K
∀(x, y) ∈ R
|fy (x, y)| ≤ M
Then the IVP (1.49) has (a unique solution) at most one solution.
Combining theorems 1.7.1 and 1.7.2, one can determine when a given IVP has only
one/precisely one/unique solution.
Example 1.7.5.
y′ = 1 + y2, y(0) = 0
f (x, y) = 1 + Y 2 , R : |x| < 5, |y| < 3 (a = 5, b = 3)
16 CHAPTER 1. FIRST ORDER ORDINARY DIFFERENTIAL EQUATIONS
2.1 Introduction
A 2nd order Ordinary Differential Equation is called Linear if it can be written as
A 2nd order ODE is called Non-Linear if we cannot express it in the form (2.1). Equa-
tion (2.1) is called the standard form of a second order ODE.
17
18 CHAPTER 2. SECOND ORDER ODES
Example 2.2.1.
y ′′ + y ′ = 1
The above equation is a 2nd order, linear non-homogeneous equations.
y1 = 1 + cos x
are solutions of the ODE (Verify)
y2 = 1 + sin x
Example 2.2.2.
yy ′′ − xy ′ = 0
2nd order, nonlinear, homogeneous. y1 = x2 and y2 = 1 are two solutions. But we can not
apply superposition principle.
has a solution
y = C1 y1 + C2 y2 (2.4)
where y1 and y2 are two solutions of equation (2.3) such that y1 ̸= Cy2 (for some non-zero
constant C) and C1 , C2 are two arbitrary constants.
The collection {y1 , y2 } form a basis (or fundamental system) of solutions of equation (2.3)
on I.
Basis: Solution space of equation(2.3), {y1 , y2 } ∋ y1 and y2 are LI and any solution of
equation(2.3) is a linear combination of y1 and y2 . Then {y1 , y2 } forms a basis.
Example 2.2.3.
y1 = ex y2 = e−x
forms a basis of a solutions to y ′′ − y = 0. y1 and y2 are solutions of the ODE. ex and e−x
are LI.
2.2. SUPERPOSITION PRINCIPAL (HOMOGENEOUS ODE) 19
Question 1. Can we form a basis of solutions of an ODE (2nd order) if one solution is
given?
Answer 1.
y ′′ + p(x)y ′ + q(x)y = 0 (2.5)
Given y = y1 is a solution of equation(2.5), we want to find y2 (̸= Cy1 ) is another solution
of equation(2.5).
y ′ = y2′ = u′ y1 + uy1′
y ′′ = y2′′ = u′′ y1 + 2u′ y1′ + uy1′′
1 − R pdx
Solving we get U = e (Verify)
y12
1 − R pdx
u′ = e
y12
Solving to get u and then y2 = uy1
Z
y2
=u= U dx ̸= constant
y1
(x2 − x)y ′′ − xy ′ + y = 0, x ̸= 0, 1
y1 = x is a solution. Let y2 = ux
y ′′ + ay ′ + by = 0 (2.7)
m2 y + amy + by = 0
⇒m2 am + b = 0 (y ̸= 0) → Characteristic equation/Auxiliary equation.
√
−a ± b2 − 4a
⇒m1,2 =
2
1 √
m1 = 2
−a + b − 4a
2
1 √
m2 = −a − b2 − 4a
2
∴ y1 = em1 x and y2 = em2 x are two LI solutions of equation(2.7).
m1 ̸= m2
2.2. SUPERPOSITION PRINCIPAL (HOMOGENEOUS ODE) 21
Case I: If b2 − 4a = 0, m1 = m2 = m
y1 = em1 x , y2 = em2 x
y = C1 em1 x + C2 em2 x
y = C1 em1 x + C2 em2 x
− a2 b b
=e C1 cos x + C1 sin x
2 2
Example 2.2.5.
y ′′ + y ′ − 2y = 0 (2.9)
y(0) = 4 (2.10)
y ′ (0) = −5 (2.11)
Trial solution of (2.9) is
y = emx (2.12)
Substituting Equation(2.12) in Equation(2.9) we get
⇒ m2 + m − 2 = 0 (∵ emx ̸= 1)
(2.13)
m1,2 = −2, 1
∴ y1 = e−2x and y2 = ex are the solutions of Equation(2.9)
Are y1 and y2 LI?
∴ y = C1 y1 + C2 y2
(2.14)
= C1 e−2x + C2 ex
is the general solution of Equation(2.9)
Use Equation(2.10) in Equation(2.14)
4 = C1 + C2 (2.15)
22 CHAPTER 2. SECOND ORDER ODES
− 5 = −2C1 + C2 (2.17)
Example 2.2.6.
y ′′ + 6y ′ + 9y = 0
Auxiliary equation:
m2 + 6m + 9 = 0
⇒(m + 3)2 = 0
⇒m1,2 = −3, −3
y = e−3x (C1 + C2 x)
Example 2.2.7.
y ′′ + 4y ′ + 13y = 0
Auxiliary equation:
m2 + 4m + 13 = 0
⇒(m + 2)2 = −(3)2
⇒m1,2 = −2 ± 3i
y = C1 e−2+3i + C2 e−2−3i
M y ′′ = F1 (no damping)
M y ′′ = −Ky (K→spring constant)
⇒ M y ′′ + ky = 0 (2.18)
Harmonic oscillator
w0
f= → frequency
2π
Assume that initially y > 0, i.e., y(t = 0) > 0 . Can we have a positive velocity at t = 0? If
we just release it.
M y ′′ = −Ky − cy ′
c K
⇒ y ′′ + + =0
M M
24 CHAPTER 2. SECOND ORDER ODES
Auxiliary Equation:
c K
λ2 + λ+ =0
M M
⇒λ1,2 = −α ± β
c 1 √ 2
⇒α = − , β= c − 4M K
2M 2M
In this case, the system passes through the equilibrium position (y = 0) if and only if c1 c2 < 0
at time t∗ = −c1 /c2 . This limiting case is known as the critical damping.
y(x0 ) = K0 (2.21)
y ′ (x0 ) = K1 (2.22)
where x0 ∈ I
Theorem 2.4.1 (Existence and Uniqueness Theorem for IVP). If p(x) and q(x) are con-
tinuous functions on some interval I and x0 ∈ I, then the IVP Equation(2.20),(2.21),(2.22)
has a unique solution y(x) on the interval I.
Linear Dependence
Let y1 and y2 are two solutions of Equation(2.20) such that y1 and y2 are LI on I, then
{y1 , y2 } forms a basis. If C1 y1 + C2 y2 = 0 ⇒ C1 = C2 = 0 ∀x ∈ I.
Example 2.4.1.
y1 = Ky2 or y2 = Ly1
W(y1 , y2 ) = Ky2 y2′ − y2 Ky2′ = 0 ∀x
|{z} |{z}
y1 y1′
W(y1 , y2 ) = 0
Theorem 2.4.2 (Linear Dependence and Independence of Solutions). Let the ODE (2.20)
have continuous coefficients p(x) and q(x) on an Interval I. Then two solutions y1 and y2
of Equation(2.20) on I are LD on I iff(if and only if ) their Wronskian
Example 2.4.2.
y ′′ − 2y ′ + y = 0 (2.23)
p(x) = −1, q(x) = 1
Auxiliary equation:
m2 − 2m + 1 = 0
⇒(m − 1)2 = 0
⇒m1,2 = 1, 1
General Solution:
y = (C1 + C2 x)ex
ex + C2 |{z}
= C1 |{z} xex
y1 y2
x
x x
e xex
W(e , xe ) = x
e (x + 1)ex
= (x + 1)e2x − xe2x
= e2x ̸= 0
∴ {ex , xex } is LI.
Theorem 2.4.3 (Existence of a General Solution). If p(x) and q(x) are continuous on an
open interval I, then Equation(2.20) has a general solution on I.
2.5. METHOD OF UNDETERMINED COEFFICIENTS 27
Theorem 2.4.4 (A general solution includes all solutions). If the ODE (2.20) has contin-
uous coefficients p(x) and q(x) on some open interval I then every solution y = Y (x) of
Equation(2.20) is of the form
where y1 and y2 forms a basis of solutions of equation(2.20) on I; and C1 and C2 are arbitrary
constants.
Hence equation(2.20) has NO SINGULAR SOLUTION
Question 2. Why is every theorem we say on open interval I, but not closed interval?
then
yh (x) = C1 y1 + C2 y2 (2.26)
is called the complementary function (CF) of equation(2.24).
If yp (x) is a solution of equation(2.24) (containing no arbitrary constant) then yp (x) is called
a particular integral (PI) of equation(2.24).
Definition 2.4.1. A general solution of the non-homogeneous ODE (2.24) on an open in-
terval I is a solution of the form
r(x) yp (x)
kx
e Cekx
n
x Kn x + Kn−1 xn−1 + . . . K1 x + K0
n
Table 2.1: (Basic Rule) Table for the choice of the particular integral yp (x) for a given r(x)
provided that r(x) can not be expressed in terms of yh (x).
3. Rule 3 (Sum Rule): If r(x) is a sum of functions in the first column of the table 2.1,
then choose yp (x) as the sum of corresponding functions in the second column of the
table.
Example 2.5.1.
y ′′ + 3y ′ + 2.25y = −10e−1.5x (2.29)
| {z }
r(x)
y(0) = 1 (2.30)
y ′ (0) = 0 (2.31)
corresponding homogeneous equation
y ′′ + 3y ′ + 2.25y = 0 (2.32)
Auxiliary equation:
λ2 + 3λ + 2.25 = 0
⇒λ1,2 = −1.5, −1.5
L[y1 ] = r(x)
L[y2 ] = r(x)
To show L[y1 − y2 ] = 0
5. If initial conditions are given, use them in (2.42) to obtain the arbitrary constants and
derive the particular solution.
K1 y1 + K2 y 2 + ··· + Kn yn = 0 on I
K1 y1′ + K2 y2′ + ··· + Kn yn′ = 0 on I
.. .. ... ..
. . .
(n−1) (n−1) (n−1)
K1 y 1 + K 2 y2 + ··· + Kn yn = 0 on I
K1 , K2 , . . . , Kn should be zero. W ̸= 0
Theorem 2.5.2 (Linear dependence of independence of solutions). Let the ODE have
continuous coefficients p0 (x), p1 (x), . . . , Pn−1 (x) on an open interval I. Then n solutions
y1 , y2 , . . . , yn of on I are LD on I iff their Wronskian is zero for x = x0 in I. Furthermore,
if W is zero for x = x0 , then W is identically zero on I. Hence if there is an x1 in I at
which W is not zero, then y1 , y2 , . . . , yn are LI, so that they form a basis of solutions of on I
Example 2.5.3.
Z x
2
W (x = 0) = 1 p(x) = 2x ⇒ exp − p(x)dx = e−x
x0
y1 = ex
2
ex y2′ − y2 ex = e−x
2 −x)
y2′ − y2 = e−(x
Theorem 2.5.3 (Existence of a General Solution). If the coefficients p0 (x), p1 (x), . . . , pn−1 (x)
of are continuous on some open interval I, then has a general solution on I.
Theorem 2.5.4 (General Solution includes all solutions). If the ODE has continuous coef-
ficients p0 (x), p1 (x), . . . , pn−1 (x) on some interval I, then every solution y = Y (x) of on I is
of the form
Y (x) = C1 y1 (x) + C2 y2 (x) + · · · + Cn yn (x)
Then yh (x) := c1 y1 (x) + c2 y2 (x) is the complementary function of equation (2.28). Then the
particular integral is
Z Z
y2 (x)r(x) y1 (x)r(x)
yp (x) = −y1 (x) dx + y2 (x) dx.
W (y1 , y2 ) W (y1 , y2 )
Example 2.6.1. Consider the following non-homogeneous, linear, second order ODE
y ′′ + y = sec x.
We have y1 (x) = cos x and y2 (x) = sin x so that W (y1 , y2 ) = 1 ̸= 0. Therefore, we have
yh (x) = c1 cos x + c2 sin x, where c1 and c2 are arbitrary constants.
The particular integral is
Z Z
y2 (x)r(x) y1 (x)r(x)
yp (x) = −y1 (x) dx + y2 (x) dx
W (y1 , y2 ) W (y1 , y2 )
Z Z
sin x cos x
= − cos x dx + sin x dx
cos x cos x
= cos x ln|cos x| + x sin x. (2.44)
The general solution is y(x) := yh (x) + yp (x) = c1 cos x + c2 sin x + cos x ln|cos x| + x sin x,
where c1 and c2 are arbitrary constants.
Example 2.6.2.
y ′′ + 9y = sec x (2.45)
The complementary function of (2.45) is
Since yp (x) is a solution of (2.28), we have
Equation(2.47) simplifies to
yp′ = y1′ u + y2′ v (2.49)
yp′′ = y1′′ u + y”1 u′ + y2′′ v + y2′ v (2.50)
2.6. METHOD OF VARIATION OF PARAMETERS 33
r(x)
⇒ u′ = −y2
W (y1 , y2 )
Variable separable form Integrate to obtain
Z
y2 (x)r(x)
u=− dx (2.52)
W (y1 , y2 )
y1 ′
v′ = − u
y2
y1 r(x)
≠ − (̸ − ̸ y2 )
̸ y2 W (y1 , y2 )
y1 r(x)
=
W (y1 , y2 )
Integrate to obtain Z
y1 (x)r(x)
v= dx (2.53)
W (y1 , y2 )
Z Z
y2 (x)r(x) y1 (x)r(x)
∴ yp (x) = −y1 (x) dx + y2 (x) dx
W (y1 , y2 ) W (y1 , y2 )
Z Z
r(x) r(x)
= −y1 (x) y2 (x) dx + y2 (x) y1 (x) dx
W (y1 , y2 ) W (y1 , y2 )
34 CHAPTER 2. SECOND ORDER ODES
Chapter 3
In an nth order equation, the derivatives of lower orders than n may or may not appear.
ODE(3.1) is called linear if it can be written as
Homogeneous ODE
If r(x) ≡ 0 in (3.2) then, (3.2) is called a homogeneous equation - otherwise, non-homogeneous.
Solution
If there is a function y = h(x) such that it has n times derivatives and it satisfies equation(3.2)
identically in some interval I.
35
36 CHAPTER 3. HIGHER ORDER LINEAR ODES
Definition 3.0.1 (General Solution, Basis, Particular Solution). A general solution of (3.3)
on an open interval I is a solution of (3.3) on I of the form
n
X
y(x) = Ck yk (x) (3.4)
k=1
Definition 3.0.2 (Linear Independence and Dependence). Consider n functions y1 (x), y2 (x),
. . . , yn (x) defined on some interval I. These functions are LI on I if the equation
K 1 x + K 2 x4 + K 3 x 9 = 0
x = −1 − K1 + K2 − K3 = 0
x=1 K1 + K2 + K3 = 0
y (4) − 5y ′′ + 4y = 0 (3.6)
λ4 − 5λ2 + 4 = 0
(λ2 − 4)(λ2 − 1) = 0 (3.7)
λ2 = 1, 4, λ = ±1, ±2