Ordinary Differential Equations 1: Dhriti Ranjan Dolai
Ordinary Differential Equations 1: Dhriti Ranjan Dolai
IIT Dharwad
Email: dhriti@iitdh.ac.in
Attendance policy: The grade DX may be given if attendance falls
below 80%, in which case you would not be able to appear for the
Final Exam.
If you are absent due to medical reasons, then you will need a
Convolution theorem.
Reference Books
I Basic concepts
I Separable DE
Differential equations
I Definition: Let y (x) denote a function in the variable x. An
ordinary differential equation (ODE) is an equation containing
one or more derivatives of an unknown function y . In general,
a differential equation involving one or more dependent
variables with respect to a single independent variable is called
an ODE.
Example F (x, y , y 0 , y 00 ) := y 00 + 2y 0 + y − e 2x = 0.
2
Example F (x, t, ut , uxx ) := ut − uxx − e −x = 0, u := u(x, t)
Basic Concepts
I Note that the ODE may contain y itself (the 0th derivative),
and known functions of x (including constants). In other
words, an ODE is a relation between the derivatives y , y 0 or
dy d ny
, . . . , y (n) or , and functions of x:
dx dx n
n times
z }| {
00 0
F (x, y , y 0 , . . . , y (n) ) = 0, y (n) = y ··· . (1)
dy
Ecology = ay − b (First order ODE)
dx
2
d Q(t) dQ(t) 1
EE L 2
+R + Q(t) = E (t) (Second order ODE)
dt dt C
∂ 2 u(x, t) ∂u(x, t)
Heat eq. α2 = (Second order PDE)
∂x 2 ∂t
Lotka-Volterra
dx dy
= αx − axy , = −βx + bxy , x = x(t), y = y (t) (System of
dt dt
first order ODEs)
Further classification
00
I Both y + y 2 = 2 and y 0 + cos y = 0 are non-linear.
y0
I y 00 + e x y = x 2 and e x − cos x+y 00 = 0 are linear.
More examples
owls.
dp
= rp − k.
dt
d 2θ g
+ sin θ = 0 (Can linearize for small θ).
dt 2 L
I Solutions for linear ODEs more systematic.
Solving DEs
Given an equation, one would like to solve it. At least, try to solve
it.
I What is a solution?
y 0 = f (x, y ), y (x0 ) = y0 .
Examples
Find the curve through the point (1, 1) in the xy −plane having at
y
each of its points the slope −
x
I Relevant ODE is
y
y0 = − .
x
I By inspection, general solution is
c
y= ,
x
1
y= .
x
Examples
Recall model motivated from ecology: dy dt = ay − b, where a and b
are given constants, with the initial condition y (0) = y0 .
b
I If a 6= 0, y 6= , we can rewrite DE as
a
dy /dt
= a.
y − (b/a)
I Integrating both sides, we get log |y − (b/a)| = at + C , C
being an arbitrary constant.
I Taking exponential and solving for y , we get
y = (b/a) + ce at , where c is also arbitrary.
I Initial condition gives c = y0 − (b/a).
I Solution of IVP is
I No solution: xy 0 = y , y (0) = 1.
unique.
Before that, will study solutions of some first order ODEs and
H1 (x0 ) + H2 (y0 ) = c
I Now we have
I We write
I We obtain Z x Z y
M(s)ds + N(s)ds = 0.
x0 y0
Example of Separable equations
dy 3x 2 + 4x + 2
= , y (0) = −1
dx 2(y − 1)
y 2 − 2y = x 3 + 2x 2 + 2x + c, c is arbitrary constant.
Example of Separable equations
y 2 − 2y = x 3 + 2x 2 + 2x + 3.
p
y =1± x 3 + 2x 2 + 2x + 4.
Example of Separable equations
p
y = φ(x) = 1 − x 3 + 2x 2 + 2x + 4.
dy
y 0 = −y 2 sin x =⇒ = − sin x dx.
y2
1 1
− = cos x + c =⇒ y = −
y cos x + c
c is arbitrary constant.
Example of Separable equations
2 2
y = y0 e x0 −x .
Example of Separable equations
(EX 4): Consider
dy y cos x
= , y (0) = 1.
dx 1 + 2y 2
I Assuming y 6= 0,
1 + 2y 2
dy = cos x dx
y
log |y | + y 2 = sin x + 1.