Lec 03 ODE Lin
Lec 03 ODE Lin
Lec 03 ODE Lin
(First-order ODEs)
(Homogeneous DEs – Linear DEs)
Example 𝑭 𝒙, 𝒚 = 𝒙𝟑 + 𝒚𝟐 𝒙𝟐 + 𝒚𝟐 : Homogeneous of
degree 3
Sec 2.6: Homogeneous DE (transformed to separable)
The DE: 𝑴 𝒙, 𝒚 𝒅𝒙 + 𝑵 𝒙, 𝒚 𝒅𝒚 = 𝟎
is Homogeneous if: 𝑴 𝒙, 𝒚 and 𝑵 𝒙, 𝒚 are both
Homogeneous of the same degree (each term of both
has the same degree).
sinh−𝟏 𝒚/𝒙 = ln 𝑥 + 𝑪
Let 𝒙 = 𝟏, 𝒚 = 𝟎 𝑪 = 𝟎
sinh−𝟏 𝒚/𝒙 = ln 𝑥
𝒚 + 𝒙𝟐 + 𝒚𝟐 = 𝒙𝟐
Exercise Solve 𝒙𝟐 + 𝒚𝟐 𝒅𝒙 + 𝒙𝒚𝒅𝒚 = 𝟎
Sec 2.4: Linear ODE
The linear ODE is given by :
𝒂𝒏 𝒙 𝒚 𝒏 + 𝒂𝒏−𝟏 𝒙 𝒚 𝒏−𝟏 + ⋯ + 𝒂𝟏 𝒙 𝒚′ + 𝒂𝟎 𝒙 𝒚 = 𝒇 𝒙 ,
where
𝒂𝒏 𝒙 , 𝒂𝒏−𝟏 𝒙 , … , 𝒂𝟏 𝒙 , 𝒂𝟎 𝒙 and 𝒇 𝒙 are functions of 𝒙.
The first-order linear DE is given by :
𝒂𝟏 𝒙 𝒚′ + 𝒂𝟎 𝒙 𝒚 = 𝒇 𝒙 , or equivalently
𝒚′ + 𝒑 𝒙 𝒚 = 𝒒 𝒙 ,
𝝁 𝒙 𝒚 𝒙 = 𝝁 𝒙 𝒒 𝒙 𝒅𝒙 + 𝑪
4. For the IVP, evaluate the constant C using the given ICs.
Sec 2.4: Linear ODE
𝒅𝒚
Example Solve: − 𝟑𝒚 = 𝟔
𝒅𝒙
𝒑 𝒙 = −𝟑
𝒑 𝒙 𝒅𝒙
𝝁 𝒙 = 𝒆 = 𝒆−𝟑𝒙
𝒚 𝒙 = 𝒆𝟑𝒙 𝟔𝒆−𝟑𝒙 𝒅𝒙 + 𝑪 = 𝑪𝒆𝟑𝒙 −𝟐
𝒅𝒚
Example Solve: 𝒙 − 𝟒𝒚 = 𝒙𝟔 𝒆𝒙
𝒅𝒙
𝒑 𝒙 = −𝟒/𝒙
𝒚 𝒙 = 𝒙𝟓 𝒆𝒙 − 𝒙𝟒 𝒆𝒙 +𝑪𝒙𝟒
Sec 2.4: Linear ODE
Example Solve: 𝒚′ + 𝒚 tan 𝒙 = cos𝟐 𝒙, 𝒚 𝟎 = 𝟐
𝒑 𝒙 = tan 𝒙
𝝁 𝒙 = 𝒆 tan 𝒙 𝒅𝒙 = sec 𝒙
𝒚 𝒙 = (𝟐 + sin 𝒙)cos 𝒙
Example Solve the IVP: 𝒙′ = 𝒙 tan 𝒕 + sin 𝒕 , 𝒙 𝟎 = 𝟐
𝒑 𝒕 = − tan 𝒕
𝝁 𝒕 = 𝒆 −tan 𝒕 𝒅𝒕 = cos 𝒕
− cos 𝒕 𝟓
𝒙 𝒕 = +
𝟐 𝟐 cos 𝒕
Sec 2.4: Linear ODE
′ 𝟏 𝟎≤𝒙≤𝟏
Example Solve: 𝒚 + 𝒚 = 𝒇(𝒙), 𝒇 𝒙 =
𝟎 𝒙>𝟏
𝐅𝐨𝐫 𝟎 ≤ 𝒙 ≤ 𝟏: 𝒚′ + 𝒚 = 𝟏
𝝁 𝒙 = 𝒆𝒙
𝒚 𝒙 = 𝟏 + 𝑨𝒆−𝒙
𝐅𝐨𝐫 𝒙 > 𝟏: 𝒚′ + 𝒚 = 𝟎
𝒚 𝒙 = 𝑩𝒆−𝒙
𝟏 + 𝑨𝒆−𝒙 𝟎 ≤ 𝒙 ≤ 𝟏
Then, 𝒚 𝒙 =
𝑩𝒆−𝒙 𝒙>𝟏
Sec 2.4: Linear ODE
′ 𝟏 𝟎≤𝒙≤𝟏
Example Solve: 𝒚 + 𝒚 = 𝒇(𝒙), 𝒇 𝒙 =
𝟎 𝒙>𝟏