Professional Documents
Culture Documents
CH1 - Student v2
CH1 - Student v2
DIFFERENTIAL EQUATION
BY:
NUR ARINA BAZILAH BT AZIZ
DEPARTMENT OF MATHEMATICAL SCIENCES
FACULTY OF SCIENCE
UTM
CHAPTER 1
DIFFERENTIAL EQUATIONS
CONCEPTEST 1.1
CONCEPTEST 1.2
1. What is the independent variable
Determine the independent variable
in
in
𝑑𝑦
=> 𝑦 ′ 𝜕w 𝜕w
𝑑𝑥 + =0?
(a) 𝑥 𝜕x 𝜕t
(a) x
(b) 𝑦
(b) t
(c) w
2. Determine the independent
variable in
2. Determine the independent
𝑑2𝑢
=> 𝑢′′ variable in
𝑑𝑡 2
uxx + uxy + uy = exy
(a) 𝑢
(a) u
(b) 𝑡
(b) x
(c) y
3. What are the dependent variable
in
𝑑 2 𝑢 𝑑𝑤
+ + 𝑢 = 𝑒𝑡 ?
𝑑𝑡 2 𝑑𝑡
(a) 𝑢
(b) 𝑡
(c) 𝑤
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
BY ORDER / DEGREE
ORDER OF DIFFERENTIAL DEGREE OF DIFFERENTIAL
EQUATION EQUATION
𝑑𝑦 𝑑2𝑦 𝑑𝑦
= 2𝑥 + 3 + 3 + ay = 0
𝑑𝑥 𝑑𝑡 2 𝑑𝑥
𝑑2𝑦 𝑑𝑦 𝑑3𝑦 𝑑𝑦
4
+ 3 + ay = 0 + 3 + 6y = 0
𝑑𝑥 2 𝑑𝑥 𝑑𝑥 3 𝑑𝑥
4
𝑑3𝑦 𝑑𝑦 3 5
+ 3 + 6y = 0 𝑑2𝑦 𝑑𝑦
𝑑𝑥 3 𝑑𝑥 + +3=0
𝑑𝑥 2 𝑑𝑥
CONCEPTEST 1.3
BY LINEAR OR NON-LINEAR
LINEAR DIFFERENTIAL EQUATION
𝑑𝑛 𝑦 𝑑 𝑛−1 𝑦 𝑑𝑦
𝑎𝑛 𝑥 𝑛
+ 𝑎𝑛−1 𝑥 𝑛−1
+ ⋯ + 𝑎1 𝑥 + 𝑎0 𝑥 𝑦 = 𝑔(𝑥)
𝑑𝑥 𝑑𝑥 𝑑𝑥
EXAMPLE 1.5:
𝑑2𝑦 𝑑𝑦
+ 3 + 9y = 0
𝑑𝑥 2 𝑑𝑥
EXAMPLE 1.6:
4
𝑑3𝑦 𝑑𝑦 𝑑2𝑦
2
𝑑𝑦
+ + 6y = 3 𝑥 + y = 𝑥3
𝑑𝑥 3 𝑑𝑥 𝑑𝑥 2 𝑑𝑥
𝑑𝑦
= sin 𝑦
𝑑𝑥
CONCEPTEST 1.4
➢ Separable Equations
➢ Homogeneous Equation
➢ Exact Equation
➢ Linear Equation
➢ Bernoulli Equation
How to identify?
𝑑𝑦
Suppose 𝑓 𝑥, 𝑦 = 𝑑𝑥 = 𝑢 𝑥 𝑣 𝑦
EXAMPLE 1.9:
Rewrite the following functions into separable form. Do not solve.
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
Example 1.10
Solution:
i) Separate the functions
Example 1.11
Solution:
𝑦 = tan(𝑥 + 𝐶) − 𝑥
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
1 𝑑𝑦
= 𝑒 𝑥+𝑦
𝑥 𝑑𝑥
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
How to identify?
𝑑𝑦
Suppose 𝑓 𝑥, 𝑦 = , 𝑓 𝑥, 𝑦 is homogenous if
𝑑𝑥
𝑓 𝜆𝑥, 𝜆𝑦 = 𝑓 𝑥, 𝑦
for every real value of 𝜆
Method of Solution :
i) Determine whether the equation homogenous or not
𝒅𝒚 𝒅𝒗
ii) Use substitution 𝒚 = 𝒗𝒙 and =𝒗+𝒙 in the original DE
𝒅𝒙 𝒅𝒙
iii) Separate the variable 𝑥 and 𝑣
iv) Integrate both sides
v) Use initial condition (if given) to find the constant value
EXAMPLE 1.12:
𝑑𝑦 𝑥2 + 𝑦2
a) =
𝑑𝑥 𝑥 − 𝑦 (𝑥 + 𝑦)
𝑑𝑦
b) 𝑥 − 𝑦 = 𝑥 𝑥 2 + 𝑦2
𝑑𝑥
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
Example 1.13
𝑑𝑦 𝑑𝑣
iii) Substitute 𝑦 = 𝑣𝑥 and =𝑣+𝑥 into (1)
𝑑𝑥 𝑑𝑥
1 1
න 𝑑𝑣 = න 𝑑𝑥
𝑣(𝑣 + 1) 𝑥
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
Example 1.14
Solutions
i) Differentiate (2) and (3)
𝑑𝑌 𝑑𝑉
iv) Use the substitutions 𝑌 = 𝑉 and =𝑉+𝑋
𝑑𝑋 𝑑𝑋
2nd SUBSTITUTION!
Now we use 𝑋, 𝑉
instead of 𝑋, 𝑌
How to identify?
𝑀 𝑥, 𝑦
Suppose 𝑓 𝑥, 𝑦 = − ,
𝑁 𝑥, 𝑦
𝑑𝑦 𝑀 𝑥, 𝑦
=−
𝑑𝑥 𝑁 𝑥, 𝑦
𝑀 𝑥, 𝑦 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 = 0
𝜕𝑢 𝜕𝑢
𝜕𝑥 𝜕𝑦
𝜕𝑀 𝜕𝑁
=
𝜕𝑦 𝜕𝑥
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
v) Integrate 𝜙 ′ 𝑦 to get 𝜙 𝑦 .
vi) Replace 𝜙(𝑦) into (3). If there is any initial conditions given,
substitute the condition into the solution.
v) Compare (𝟑) and (𝟒) to get value for 𝜙1 (𝑦) and 𝜙2 (𝑥).
Example 1.15:
Solve 2𝑥𝑦 + 3 𝑑𝑥 + 𝑥 2 − 1 𝑑𝑦 = 0
ii) Find 𝒖 𝒙, 𝒚
𝝏𝒖
iii ) Differentiate (3) wrt 𝒚 to compare with =𝑵
𝝏𝒚
iv) 𝐅𝐢𝐧𝐝 𝝓 𝒚
Example 1.16:
𝑥𝑦 + 𝑦 2 + 𝑦 𝑑𝑥 + 𝑥 + 2𝑦 𝑑𝑦 = 0
Show that the following equation is not exact. By using integrating factor,
𝜇 𝑥, 𝑦 = 𝑒 𝑥 , solve the equation.
Solution (Method 1):
i) Test for exactness
iv) Find 𝒖 𝒙, 𝒚
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
v) Find 𝝓 𝒙
vi) Write 𝒖 𝒙, 𝒚 = 𝑨
𝑢 𝑥, 𝑦 = 𝑥𝑦 + 𝑦 2 𝑒 𝑥 + 𝐵 = 𝐴
𝑢 𝑥, 𝑦 = 𝑥𝑦 + 𝑦 2 𝑒 𝑥 = 𝐶, where 𝐶 = 𝐴 − 𝐵
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
How to identify?
𝑑𝑦
𝟏 + 𝒑 𝒙 𝑦 = 𝒒(𝒙)
𝑑𝑥
𝑏 𝑥 𝑐 𝑥
where 𝑝 𝑥 = and 𝑞 𝑥 =
𝑎(𝑥) 𝑎(𝑥)
Method of Solution:
Example 1.17:
Solve this first order DE
𝑑𝑦 1+𝑥 𝑒𝑥
+ 𝑦=
𝑑𝑥 𝑥 𝑥
Solution:
i) Determine 𝒑 𝒙 and 𝒒 𝒙
Example 1.18:
Using 𝑧 = 𝑦 2 , convert the following non-linear DE into linear DE.
𝑑𝑦
𝑥 2𝑦 − 𝑥𝑦 2 = 1; 𝑦 1 =1
𝑑𝑥
Solve the linear equation.
Solutions:
𝒅𝒚
i) Differentiate 𝒛 = 𝒚𝟐 to get and replace into the non-linear equation.
𝒅𝒙
ii) Change the equation into the general form of linear equation & determine 𝒑 𝒙
and 𝒒 𝒙
iv) Find 𝒚
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
Example 1.18:
v) Resubstitute 𝒛 𝐰𝐢𝐭𝐡 𝒚
2 5 2
∴ 𝑦2= − + 𝑥
3𝑥 3
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
How to identify?
𝑑𝑦
+ 𝑏 𝑥 𝑦 = 𝑐 𝑥 𝑦𝑛 (1)
𝑑𝑥
where 𝑛 ≠ 0, 𝑛 ≠ 1
𝑧 = 𝑦1−𝑛 (2)
Method of Solution:
i) Divide ( 1 ) with 𝑦 𝑛
𝑑𝑦
𝑦 −𝑛 + 𝑏 𝑥 𝑦1−𝑛 = 𝑐 𝑥 (3)
𝑑𝑥
.
𝑑𝑦
ii) Differentiate ( 2 ) wrt 𝑥 ( to get )
𝑑𝑥
𝑑𝑧 𝑑𝑦
= 1 − 𝑛 𝑦 −𝑛
𝑑𝑥 𝑑𝑥
1 𝑑𝑧 𝑑𝑦
= 𝑦 −𝑛 (4)
1 − 𝑛 𝑑𝑥 𝑑𝑥
1 𝑑𝑧
+𝑏 𝑥 𝑧 =𝑐 𝑥
1 − 𝑛 𝑑𝑥
𝑑𝑧
(1) + 1−𝑛 𝑏 𝑥 𝑧 = 1−𝑛 𝑐 𝑥
𝑑𝑥 𝑝(𝑥) 𝑞(𝑥)
Example 1.19:
Solve this first order DE
𝑑𝑦 1
+ 𝑦 = 𝑒 𝑥𝑦4 (1)
𝑑𝑥 3
Solution:
i) Determine 𝒏 =
3)
𝑦 −3 = 𝐶𝑒 𝑥 − 3𝑥𝑒 𝑥
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
𝑑𝑇
= −𝑘(𝑇 − 𝑇𝑠 )
𝑑𝑡
where
𝑘 is a constant of proportionality
𝑇𝑠 is the constant temperature of the surrounding medium
General Solution
𝑇0 = 𝑇𝑠 + 𝐴 1 => 𝐴 = 𝑇0 − 𝑇𝑠
𝑇 = 𝑇𝑠 + 𝑇0 − 𝑇𝑠 𝑒 −𝑘𝑡
80 = 70 + 100 − 70 𝑒 −6𝑘
10
𝑒 −6𝑘 =
30
1
ln 𝑒 −6𝑘 = ln
3
1 1
𝑘 = − ln = 1.098612
6 3
𝑇 = 𝑇𝑠 + 𝑇0 − 𝑇𝑠 𝑒 −1.0986𝑡 = 70 + 30𝑒 −1.0986𝑡
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
Example 1.20:
According to Newton’s Law of Cooling, the rate of change of the temperature 𝑇
satisfies
𝑑𝑇
= −𝑘(𝑇 − 𝑇𝑠 )
𝑑𝑡
Where 𝑇𝑠 is the ambient temperature, 𝑘 is a constant and 𝑡 is time in minutes.
When object is placed in room with temperature 10°C, it was found that the
temperature of the object drops from 90°C to 30°C in 30 minutes. Then determine
the temperature of an object after 20 minutes.
Solution:
EXERCISE
The problems:
1. Population Growth
2. Compound Interest
3. Radioactive Decay
4. Drug Elimination
Example 1.21:
A certain city had a population of 25000 in 1960 and a population of 30000 in
1970. Assume that its population will continue to grow exponentially at a
constant rate. What populations can its city planners expect in the year 2000?
Solution:
i) Extract the information
𝑡 = 0, 𝑃0 =
𝑡 = 10, 𝑃10 =
𝑡 = 40, 𝑃40 = ?
∴ 𝑃 = 25000 𝑒 0.01823𝑡
𝑡 = 40, 𝑃40 = ?
𝑃40 = 25000 𝑒 0.01823 40 = 51840
Example 1.22:
CASE 1 : 𝑬 𝒕 = 𝑬𝟎 (constant)
𝑑𝐼
𝐿 + 𝑅𝐼 = 𝐸0 1
𝑑𝑡
i) Write in the linear equation form
𝑑𝐼 𝑅 𝐸0
+ 𝐼=
𝑑𝑡 𝐿 𝐿
𝑅 𝐸0
𝑝 𝑡 = , 𝑞 𝑡 =
𝐿 𝐿
ii) Find the integrating factor, 𝝁 𝒕
𝑅
𝑡𝑑 𝐿
𝜇 𝑡 =𝑒
𝑅𝑡
= 𝑒 ൗ𝐿
iii) Multiply the DE with the integrating factor
𝑑 𝑅𝑡ൗ 𝑅𝑡 𝐸0
𝑒 𝐿 𝐼 = 𝑒 ൗ𝐿
𝑑𝑡 𝐿
iv) Integrate the equation to find 𝑰
𝑅𝑡ൗ 𝑅𝑡ൗ 𝐸0
𝑒 𝐿 𝐼 =න 𝑒 𝐿 𝑑𝑡
𝐿
1 𝑅𝑡ൗ 𝐸0 𝐿 𝐸0 −𝑅𝑡
𝐼 = 𝑅𝑡ൗ 𝑒 𝐿 +𝐶 = + 𝐶𝑒 ൗ𝐿
𝑒 𝐿 𝐿 𝑅 𝑅
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
Example 1.23:
CASE 2 : 𝑬 𝒕 = 𝑬𝟎 𝐬𝐢𝐧 𝒘𝒕 or 𝑬 𝒕 = 𝑬𝟎 𝐜𝐨𝐬 𝒘𝒕
𝑅 𝑅𝑡ൗ − 1
𝑒 𝐿 − cos 𝑤𝑡
𝐿 w
2 + 2
𝑅 𝑅𝑡 1
𝑒 ൗ𝐿 − sin 𝑤𝑡
𝐿 w
𝑅𝑡ൗ 1 R 𝑅𝑡ൗ
𝑒 𝐿 − cos 𝑤𝑡 − − 2 𝑒 𝐿 sin 𝑤𝑡 +
w w L
1 𝐸0
𝐼= 𝑅𝑡ൗ 2 2
𝑒 𝐿 𝐿 𝑅 1 𝑅𝑡ൗ
− න 𝑒 𝐿 sin 𝑤𝑡 𝑑𝑡
𝐿 w
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
2
𝐸0 𝐸0 R R 𝐸0 𝑅𝑡ൗ
𝐼= − cos 𝑤𝑡 + sin 𝑤𝑡 − 𝑅𝑡 න 𝑒 𝐿 sin 𝑤𝑡 2
w𝐿 wL2 wL 𝐿𝑒 ൗ𝐿
From (1)
𝑅𝑡ൗ 𝑅𝑡ൗ 𝐿
න 𝑒 𝐿 𝑠𝑖𝑛 𝑤𝑡 𝑑𝑡 = 𝑒 𝐿 𝐼 (3)
𝐸0
Replace (3) into (2)
2
𝐸0 𝐸0 𝑅 𝑅
𝐼= − cos 𝑤𝑡 + sin 𝑤𝑡 − 𝐼
𝑤𝐿 𝑤𝐿2 𝑤𝐿
2
R 𝐸0 𝐸0 𝑅
1+ 𝐼= − cos 𝑤𝑡 + sin 𝑤𝑡
wL w𝐿 𝑤𝐿2
1 𝐸0 𝐸0 𝑅
𝐼= − cos 𝑤𝑡 + sin 𝑤𝑡
R 2 w𝐿 𝑤𝐿2
1 + wL
Example 1.24
Consider the circuit given in the figure below with R=4, L=2, and V=cos 3t.
Find the current, I(t) .
EXERCISE
2. An electromotive force
120, 0 ≤ 𝑡 ≤ 20
𝐸(𝑡) ቊ
0, 𝑡 ≥ 20
Source: http://spiff.rit.edu/classes/phys311.old/lectures/freebody/freebody.html
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
Example 1.26:
A parachutist falling towards earth with velocity 𝑣. His acceleration is given by
𝑑𝑣
= 32 − 2𝑣.
𝑑𝑡
Assume that the parachutist starts from rest (i.e at 𝑡 = 0, 𝑣 0 = 0). Find the
velocity 𝑣 = 𝑣(𝑡) and the distance, 𝑥 = 𝑥(𝑡) that the parachutist has fallen
after 𝑡 seconds.
Solution:
CH1 – FIRST ORDER DIFFERENTIAL EQUATION
Example 1.27:
A particle moves vertically under the force of gravity against air resistance 𝑘𝑣 2 ,
where 𝑘 is a constant. The velocity 𝑣 at any time 𝑡 is given by the differential
equation
𝑑𝑣
= 𝑔 − 𝑘𝑣 2 .
𝑑𝑡
If the particle starts off from rest, show that
𝜆 𝑒 2𝜆𝑘𝑡 − 1
𝑣=
𝑒 2𝜆𝑘𝑡 + 1
𝑔
Such that 𝜆 = . Then find the velocity as the time approaches infinity.
𝑘
Solution:
i) Extract the information from the question
Initial Condition 𝑡 = 0, 𝑣 =
ii) Separate the DE