Lecture - 7 Intro To Differential Equations
Lecture - 7 Intro To Differential Equations
INTRODUCTI
ON TO
DIFFERENTIA
L EQUATIONS
Introduction
dy
2 xy 3 x 2
dx
dy
(3 x 2) y2
dx
dy
3 y 2x 1
dx
Part 2: First-
order
differential
equation
First-order differential
equation
1. Finding the
complementary function
and a particular solution
3. Integrating Factors
Finding the complementary function and a
particular solution
dy
a by f (x)
dx
Finding the complementary function and a
particular solution
Example 1:
dy
2 3 y e2x
dx
Solution
STEP 1:
y Ae1.5 x
.
Example 1:
Solution
STEP 2:
Example 1:
Solution
STEP 3:
g ( y )dy f ( x)dx
Separating The Variables
.
Solution
STEP 1:
separate out the variables
x 2 dy ( x 1)( y 1)dx
1 x 1
dy 2 dx
y 1 x
Example 2:
Solution
STEP 2:
1 x 1
Integrate both sides
y 1
dy x 2
dx
Evaluating the x 1 x 1 1 2
right hand
side:
x 2
dx
2
x
2
x
dx
x
x dx
ln x x 1 c
Evaluating
the right 1
hand side: y 1
dy ln( y 1)
Example 2:
Solution
STEP 2:
Integrate both sides
1 x 1
y 1
dy x 2
dx
Take ln x x 1 c
exponentials
y 1 e
of both sides:
ln x x 1 c
y 1 e e e
x 1
y Axe
Example 2:
Solution
Substitute in y = 2e and x = 1:
2e Ae1
Therefore A=2
x 1
So the solution is y 2 xe
Integrating Factors
.
dy
p( x) y q( x) (Basic form)
dx
where p(x) and q(x) – continuous functions, may or may not
be constants. Some other examples
dy
a) x2 y ex p( x) x 2 ; q( x) e x
dx
dy
b) (sin x) y x 3 0 p ( x) sin x ; q ( x) x 3
dx
dy
c) 5y 2 p( x) 5 ; q( x) 2
dx
Integrating Factors
Step 1: Must remember the basic form:
dy
p( x) y q( x)
dx
dy
p( x) y q( x)
dx
factor.
y q( x) dx
Example 3:
Solve the following differential equations :
dy
3 y e 3 x
dx
Compared with the basic form, p ( x) 3
so e p ( x ) dx
e 3dx
e3 x
dy
3 y e 3 x
dx
y q( x) dx
e3 x y e e
3 x 3 x
dx
e3 x y dx
e3 x y x C
xC
y 3x
e
Part 3:
Application
of
Differential
Equation
Application of Differential Equation
dP
kP
dt
Basic background ideas from
algebra and calculus
Exponential Growth and Decay .
dP
kP
dt
Solving
dP
kdt (Separate the variables )
P
1
P dP kdt (Integrate both sides)
dN
kN (t )
dt
N(t)=Aekt , where A=N(0)
Ae6k=N(6) =2N(0) = 2A
or N(0) ekt=3N(0)
Example 4:
1
(ln 2 )t
3 e6
ln 3 = (ln 2)t
6
t = 6 ln 3
ln 2
9.5 years (approximately 9 years 6 months)
Exercise
Exercise