ODE Lecture 10
ODE Lecture 10
Differential Equations
MATH-108
Lecture # 10(ODE)
u ( x) e
p ( x ) dx
Multiply the above equation with this integrating factor, to form a complete differential.
dy
e p ( x )e y q ( x)e
p ( x ) dx p ( x ) dx p ( x ) dx
dx
d p ( x ) dx p ( x ) dx
e y q ( x ) e
dx
y q ( x)e
p ( x ) dx
e
p ( x ) dx
dx
The general solution of the first order linear differential equation is given by
u ( x)q ( x) dx C
y
u ( x)
Where u ( x ) expp ( x ) dx
First Order Linear Equations
Summary:
1. Identify that the equation is 1st order linear equation. Rewrite it in the form
dy
p ( x ) y q ( x)
dx
if the equation is not already in this form.
2. Find the integrating factor
u ( x ) e p ( x ) dx
y
u ( x)q( x)dx C
u ( x)
4. If you are given an IVP, use the initial condition to find the constant C.
5. Plug in the calculated value to write the particular solution of the problem.
First Order Linear Equations
Example 1:
u ( x) e tan x dx sec x
First Order Linear Equations
3. Further, because
x dx cos x dx sin x
2
sec x cos
So that the general solution is given by
sin x C
y sin x C cos x
sec x
4. We use the initial condition y (0) 2 to find the value of the constant C
y (0) C 2
y sin x 2 cos x
First Order Linear Equations
Example 2: Solve the IVP
dy 2t 2
2
y 2
, y ( 0 ) 0 .4
dt 1 t 1 t
Solution:
1.The given equation is a 1st order linear and is already in the requisite form
dy
p ( x ) y q ( x)
dx
with
2t
p (t )
1 t2
2
q (t )
1 t2
2. Since
2t 2
2 dt ln | 1 t |
1 t
Therefore, the integrating factor is given by
2t
dt
1 t 2
u (t ) e (1 t 2 ) 1
First Order Linear Equations
3. Hence, the general solution is given by
y
u (t )q (t )dt C
u (t )
where
2
u (t ) q (t ) dt 2 2
(1 t )
dt
Now
2 1 t 2 t 2 1 t2
2 2
dt 2 2 2
dt 2 2
dt
2 2
(1 t ) (1 t ) 1 t (1 t )
The first integral is clearly tan 1 t . For the 2nd we will use integration by parts
with t as first function and 2t 2 2
(1 t )
as 2nd function.
2t 2 1 1 t 1
(1 t 2 ) 2 dt t 2 2
dt 2
tan (t )
1 t 1 t 1 t
2 1 t 1 1 t
2 2
dt 2 tan (t ) tan (t ) tan (t )
(1 t ) 1 t2 1 t2
First Order Linear Equations
The general solution is:
-1
2 t
y (1 t ) tan (t ) 2
C
1 t
4. The condition y (0) 0.4 gives C 0.4
5. Therefore, solution to the initial value problem can be written as:
y t (1 t 2 ) tan 1 (t ) 0.4(1 t 2 )
First Order Linear Equations
Example 3:
Therefore
tan t C 1 C
y sec t C csc t
sin t cos t sin t
4. The initial condition y ( / 4) 0 implies
2 C 2 0
which gives C 1 .
5. Therefore, the particular solution to the initial value problem is
y sec t csc t
First Order Linear Equations
Example 4
Solve x 2 y dy y
2
dx
Solution:
We have
dy y
dx x 2 y 3
This equation is not linear in y . Let us regard x as dependent variable and y as independent
variable. The equation may be written as
dx x 2 y 3
dy y
dx 1
or x 2 y 2
dy y
Which is linear in x
1 1 1
IF exp dy exp ln
y y y
First Order Linear Equations
1
Multiplying with the IF , we get
y
1 dx 1
x 2 y
y dy y 2
d x
2 y
dy y
Integrating, we have
x
y2 c
y
x y y2 c
is the required solution.
First Order Linear Equations
Example 5
Solve
x 13 dy 4x 12 y x 1
dx
Solution:
dy 4 x 1
y
dx x 1 x 13
4
Here P x .
x 1
4dx
IF exp
x 1
exp lnx 1
4
x 14
x3
y x 1 x c
4
3
which is the required solution.
Lecture 08 First Order ODE
First Order Linear Equations Linear and Non-linear Differential Equations
Practice Exercise
1.
dy 2 x 1
y e
2x
5. 1 x dy
2
4 xy
1
dx x dx 1 x
2 2
dy dr
2. 3 y 3 x 2 e 3 x 6. r sec cos
dx d
dy 1 e 2x
3. x 1 x cot x y x 7.
dy
y x
dx dx e e x
4. x 1 dy ny e x x 1
n 1
8.
dx 3e y 2 x dy
dx
dy
9.
dx
2 y x e 3 x e 2 x , y 0 2
dy
10. x2 x 21 x y 1 3 x 2 , y 1 1 .
dx