Chapter 1 First Order ODE Handout
Chapter 1 First Order ODE Handout
Chapter 1 First Order ODE Handout
By: Gemechu B.
Chapter One:
Ordinary Differential Equations
04-Jun-22 Gemechu B. 1
04-Jun-22 Gemechu B. 2
Chapter 1: Ordinary Differential Equations (ODE)
Introduction - Basic Concepts
• Derivative is about a rate of change
• Many practical problems undertake changes
For instance: dp
p '(t )
1. Instantaneous rate of change of population is: dt
dy
2. Instantaneous rate change of position, velocity, is y '( t )
dt
3. Instantaneous rate of change of velocity, acceleration, is 2
d y
y ''(t ) 2
dt
04-Jun-22 Gemechu B. 3
Ordinary Differential Equation (ODE) is an equation
relating a dependent variable and its ordinary
derivatives to its independent variable.
04-Jun-22 Gemechu B. 4
The order of a differential equation is the order of the highest
derivative that appears in the equation.
Thus, a first order ODE of y(x) is an equation involving x, y and y
: F(x, y, y) = 0
Example: y ' + 2xy = x.
• And, a second order ODE is F(x, y, y, y ) = 0
Example:
y '' 2 y ' y e x
04-Jun-22 Gemechu B. 5
Examples:
y = sin(2x) is a solution.
04-Jun-22 Gemechu B. 6
Solution of some simple differential equations, say, of
the form y' = f(x), can be obtained by directly applying
integration (indefinite integral).
Examples: 1. y' - 6x = 0
y' = 6x (Apply dx to both sides)
y = 3x2 + c, for any cR,
2. y" - 6x = 0 . Let v= y.
v' = 6x v = 3x2 + c1, for any c1R
y = x3 + c1x + c2, for any c1, c2 R,
04-Jun-22 Gemechu B. 8
• If the value of y(x) (and its derivatives ) is specified at
some point (say, y(0) =), then this value is called the
Initial Condition (IC).
F( x, y, y ) = 0 ( DE )
y(0) = α. ( IC )
F( x, y, y', y" ) = 0
y(0) = α, y' (0) = β.
04-Jun-22 Gemechu B.
9
• A solution of an IVP must be a solution of the DE that also
satisfies the initial conditions.
04-Jun-22 Gemechu B.
10
Examples:
1. Consider the following IVP: y' 6x =0, y(0)=2
y = x3 + 2x + 1.
04-Jun-22 Gemechu B. 11
1) First order ODE
• General form of first order ODE: y' f ( x , y )
• Equivalently, this can be written as:
M(x,y)dx + N(x,y) dy = 0
1.1. Separable DE
• A first order ODE is said to be separable if it can be written as
y ' g ( x )h( y )
∫M(x)dx + ∫N(y)dy = 0
04-Jun-22 Gemechu B. 12
Example 1:
y ' 2 xy 2 x, y (0) 3
dy
2 x (1 y )
dx
dy
2 xdx
1 y
dy
1 y 2 xdx
ln|1 y | x c
2
x2
y Ce 1, C R , is g en . so l.
Then, y (0) 3 C 1 3 C 4
x2
y 4e 1, is p art. so l.
04-Jun-22 Gemechu B. 13
Exercise 1:
Transform each of the following ODE into separable
form and find its general solution.
04-Jun-22 Gemechu B. 14
1.2. Homogenous First Order ODE
• A first order ode is homogeneous if it has the form
y x y
y' f ( ) Example: y ' s in ( )
x y x
• That is, y and x does not appear separately, but in combination as a
ratio y/x or x/y.
• Such homogenous equation can be transformed into separable
DE using the following substitution:
y dz
z . i.e., y xz and y' z x
x dx
y dz
• So, y ' f ( ) z x f (z)
x dx
1 1 ( x & z are
dz dx
separated ) f ( z) z x
04-Jun-22 Gemechu B. 15
04-Jun-22 Gemechu B. 16
y2
• Example 3: xy ' y
x
2
y y
y' (Homogeneous)
x x
So, putting y = zx and y = zx + z, the DE becomes
zx + z = z2 + z or zx = z2
1 1
2
dz dx 1z ln | x | c
z x
or, z 1
ln| x| c
04-Jun-22 Gemechu B. 18
1.3. Exact DE
• A first order ode, M(x,y)dx + N(x,y)dy = 0,
is exact if there is a function u(x,y) s.t.
u u
M and N (1)
x y
• Such function u(x,y) is called potential of the DE
• If so, then u(x,y) = c is its general solution. (c any constant)
• In this case, a potential function u(x,y) can be
obtained from the two equations in (1).
M N
(Test for exactness)
y x
04-Jun-22 Gemechu B. 19
04-Jun-22 Gemechu B. 20
04-Jun-22 Gemechu B. 21
Example 3:
3x 2 y + 2xy + ( x3 + x2 + 2y ) y' = 0
(3x 2 y + 2xy) dx + ( x3 + x2 + 2y ) dy = 0
M(x,y) N(x,y)
M N
and, 3x 2 x
2
Exact .
y x
• Next, find a potential function u = u(x,y) from:
u
(1 ) M (x, y ) 3 x 2 y 2 xy
x
u
(2 ) N (x , y ) x 3 x 2 2 y
y
u ( x, y) x3 y x2 y y 2
x y x y y c,
3 2 2
c R.
04-Jun-22 Gemechu B. 22
Caution! A potential u(x,y) itself is not a solution of its exact
DE; but, the general solution the DE is given
implicitly by the equation
u(x,y)= c, for cR.
Exercise 3:
Consider the following IVP:
𝟐
𝟐
1 M N
2) Similarly, if : h( y ) , function of y
M y x alone, then
h( y)dy
( y) e
is an integrating factor of (1)
04-Jun-22 Gemechu B. 25
Gemechu B.
Example 2: Consider the de
M N
y
= 3x 3 cos y ≠ = 4x 3 cos y . So, Not Exact.
x
But,
1 ( M N ) = x 3 cos y = 1/x
N y x x 4 cos y
04-Jun-22 Gemechu B. 28
1.5. Linear ODE of first order
• Form of first order linear de: y ' p( x) y r ( x)
• This can be rewritten as
[ p ( x) y r ( x) ]dx dy 0
M(x,y) N(x,y) = 1
M = p(x) ≠ N =0
Then, Thus, Not Exact.
y x
But, 1(M N )
N y x
= p(x)
p ( x )dx
( x) e
04-Jun-22 Gemechu B. 29
• Thus, for every first order linear ode of the form
y ' p( x) y r ( x)
an integrating factor is ( x ) e p ( x )dx
And its general solution given by:
1
y c r ( x ) ( x ) dx
( x)
04-Jun-22 Gemechu B. 30
04-Jun-22 Gemechu B. 31
1.6. Bernoulli Equations
• First order DE of the form
y ' p ( x ) y r ( x ) y ,
n
n 0,1.
04-Jun-22 Gemechu B. 32
Exercise 5 (Review Exercise)
1. Find the general solution of
(a) (x2y2 + x2)dx dy = 0
(b) y + 3x2y = x2
(c) y' + 2xy = xy2
2. Find the particular solution of the following IVP
y
(a) y ' , y (2) 1
x y
(b) y ' 1
x
y 3 x 2 y 3 , y (1) 1
2
(c) (3xy y 2 )dx ( x 2 xy)dy 0, y(1) 1
(d) y'2y 2e( x), y(0) 3
Assignment 1: First Order ODE
Exercises 1 to 5.
04-Jun-22 Gemechu B. 33