Math 4 Prelim Coverage
Math 4 Prelim Coverage
Math 4 Prelim Coverage
Differential Equations
Ordinary/Partial,
Exact/Non-exact,
Linear/Non-linear,
and
Homogeneous/Inhomogeneous.
Ordinary Differential Equations (ODE)
An ordinary differential equation is an equation that
contains an unknown function that depends on only one
independent variable which can be real or complex
[differential equations 1 , 2 , and 3 ].
𝑃 𝑥 𝑑𝑥 + 𝑄 𝑦 𝑑𝑦 = 𝐶
sin 𝑦 + 2 𝑑𝑦 − 𝑥 𝑑𝑥 = 0
1
The general solution is − cos 𝑦 + 2𝑦 − 𝑥 2 = 𝐶.
2
3
When 𝑥 = 1, 𝑦 = 0 and 𝐶 = − the particular solution
2
will be
2(2𝑦 − cos 𝑦) = 𝑥 2 − 3.
The value of 𝑥 at 𝑦 = 𝜋 is
𝑥 = 4𝜋 + 5.
3. Find the particular solution to the differential
𝑥 2 +2
equation 𝑦′ = and the initial condition is
𝑦
−1,0 .
Solution:
𝑑𝑦 𝑥 2 + 2
− =0
𝑑𝑥 𝑦
𝑑𝑦 𝑥 2 + 2
− = 0 𝑦 𝑑𝑥
𝑑𝑥 𝑦
𝑦 𝑑𝑦 − 𝑥 2 + 2 𝑑𝑥 = 0
1. 𝑦 2 − 2𝑥 2 = 𝐶
𝑒 𝑥 +2𝑥
2. 𝑦 = 𝐶𝑒
3. 𝑦 = 𝐶𝑥 3 − 2
4. sin 𝑦 sec 𝑥 = 𝐶
5. 𝑥 2 − 2𝑦 2 = 2
−𝑡 2
6. 𝑟 = 𝑟𝑜 𝑒
1 1 1−𝑥 2 1 −1 𝑥+1 (𝑥−1)
7. 𝑦 = 𝑒2 or 𝑦= 𝑒 2
2 2
8. 𝑣 2 − 𝑣𝑜 2 = 2𝑔(𝑠 − 𝑠𝑜 )
Lesson 2: Exact First-Order Differential Equations
𝑓 𝑥, 𝑦 = 6𝑥 2 + 4𝑥𝑦 + 𝑦 2 𝜕𝑥 + 𝑔(𝑦)
𝑓 𝑥, 𝑦 = 2𝑥 3 + 2𝑥 2 𝑦 + 𝑥𝑦 2 + 𝑔(𝑦)
𝑓 𝑥, 𝑦 = 𝑁 𝑥, 𝑦 𝜕𝑦 + ℎ(𝑥)
𝑓 𝑥, 𝑦 = 2𝑥 2 + 2𝑥𝑦 − 3𝑦 2 𝜕𝑦 + ℎ(𝑥)
𝑓 𝑥, 𝑦 = 2𝑥 2 𝑦 + 𝑥𝑦 2 − 𝑦 3 + ℎ(𝑥)
By comparing, 𝑔 𝑦 = −𝑦 3 and ℎ 𝑥 = 2𝑥 3 . Then
𝑓 𝑥, 𝑦 = 2𝑥 3 + 2𝑥 2 𝑦 + 𝑥𝑦 2 − 𝑦 3
Then the general solution to the DE is
2𝑥 3 + 2𝑥 2 𝑦 + 𝑥𝑦 2 − 𝑦 3 = 𝐶.
2. Determine whether the differential equation
𝑥 + sin 𝑦 𝑑𝑥 + 𝑥 cos 𝑦 − 2𝑦 𝑑𝑦 = 0
is exact. If yes, solve the DE.
Solution:
𝑀 𝑥, 𝑦 = 𝑥 + sin 𝑦
𝑁 𝑥, 𝑦 = 𝑥 cos 𝑦 − 2𝑦
𝜕𝑀(𝑥, 𝑦)
= cos 𝑦
𝜕𝑦
𝜕𝑁(𝑥, 𝑦)
= cos 𝑦
𝜕𝑥
𝜕𝑀(𝑥,𝑦) 𝜕𝑁(𝑥,𝑦)
Since = , ∴ the DE is exact.
𝜕𝑦 𝜕𝑥
𝑓 𝑥, 𝑦 = 𝑀 𝑥, 𝑦 𝜕𝑥 + 𝑔(𝑦)
𝑓 𝑥, 𝑦 = 𝑥 cos 𝑦 − 2𝑦 𝜕𝑦 + ℎ(𝑥)
𝑓 𝑥, 𝑦 = 𝑥 sin 𝑦 − 𝑦 2 + ℎ(𝑥)
2 1 2
By comparing, 𝑔 𝑦 = −𝑦 and ℎ 𝑥 = 𝑥 .
2
1 2
𝑓 𝑥, 𝑦 = 𝑥 + 𝑥 sin 𝑦 − 𝑦 2
2
Then the general solution to the DE is
1 2
𝑥 + 𝑥 sin 𝑦 − 𝑦 2 = 𝐶.
2
3. Test for exactness and determine the particular
solution of
𝑦𝑒 𝑥𝑦 − 2𝑦 3 𝑑𝑥 + 𝑥𝑒 𝑥𝑦 − 6𝑥𝑦 2 − 2𝑦 𝑑𝑦 − 0;
𝑥 = 0 when 𝑦 = 2.
Solution:
𝑀 𝑥, 𝑦 = 𝑦𝑒 𝑥𝑦 − 2𝑦 3
𝑁 𝑥, 𝑦 = 𝑥𝑒 𝑥𝑦 − 6𝑥𝑦 2 − 2𝑦
𝜕𝑀(𝑥, 𝑦)
= 𝑥𝑦𝑒 𝑥𝑦 + 𝑒 𝑥𝑦 − 6𝑦 2
𝜕𝑦
𝜕𝑁(𝑥, 𝑦)
= 𝑥𝑦𝑒 𝑥𝑦 + 𝑒 𝑥𝑦 − 6𝑦 2
𝜕𝑥
𝜕𝑀(𝑥,𝑦) 𝜕𝑁(𝑥,𝑦)
Since = , ∴ the DE is exact.
𝜕𝑦 𝜕𝑥
𝑓 𝑥, 𝑦 = 𝑀 𝑥, 𝑦 𝜕𝑥 + 𝑔(𝑦)
𝑓(𝑥, 𝑦) = 𝑦𝑒 𝑥𝑦 − 2𝑦 3 𝜕𝑥 + 𝑔(𝑦)
𝑓 𝑥, 𝑦 = 𝑒 𝑥𝑦 + 𝑔(𝑦)
𝑓 𝑥, 𝑦 = 𝑁 𝑥, 𝑦 𝜕𝑦 + ℎ(𝑥)
𝑓 𝑥, 𝑦 = 𝑥𝑒 𝑥𝑦 − 6𝑥𝑦 2 − 2𝑦 𝜕𝑦 + ℎ(𝑥)
𝑓 𝑥, 𝑦 = 𝑒 𝑥𝑦 − 2𝑥𝑦 3 − 𝑦 2 + ℎ(𝑥)
By comparing, 𝑔 𝑦 = −2𝑥𝑦 3 − 𝑦 2 and ℎ 𝑥 = 0. Then
the general solution is
𝑒 𝑥𝑦 − 2𝑥𝑦 3 − 𝑦 2 = 𝐶
When 𝑥 = 0, 𝑦 = 2 and 𝐶 = −3.
Then the particular solution is
𝑒 𝑥𝑦 − 2𝑥𝑦 3 − 𝑦 2 + 3 = 0.
Exercise 2.1:
1. 𝑦 2 𝑑𝑥 + 𝑥 2 𝑑𝑦 = 0
2. 𝑦 𝑑𝑥 + 𝑥 𝑑𝑦 = 0
3. 𝑦 + 2𝑥𝑦 3 𝑑𝑥 + 1 + 3𝑥 2 𝑦 2 + 𝑥 𝑑𝑦 = 0
4. 3𝑥 2 𝑦 2 𝑑𝑥 + 2𝑥 3 𝑦 + 4𝑦 3 𝑑𝑦 = 0
𝑥 3 2 2 𝑥 3
5. 𝑒 3𝑥 𝑦 − 𝑥 𝑑𝑥 + 𝑒 𝑑𝑦 = 0
6. 𝑦 sin 𝑥 + 𝑥𝑦 cos 𝑥 𝑑𝑥 + 𝑥 sin 𝑥 + 1 𝑑𝑦 = 0
𝑑𝑥 𝑥 𝑑𝑦
7. − 2 =0
𝑦 𝑦
𝑥 𝑑𝑦−𝑦 𝑑𝑥
8. = 𝑥 3 𝑑𝑥
𝑦2
Answer key to Exercise 2.1:
1. Not exact DE
2. 𝑥𝑦 = 𝐶
3. 𝑥𝑦 +𝑥 2 𝑦 3 + 𝑦 = 𝐶
4. 𝑥3𝑦2 + 𝑦4 = 𝐶
−𝑥 3 1
5. 𝑦 = 𝐶𝑒 +
3
6. 𝑥𝑦 sin 𝑥 + 𝑦 = 𝐶
7. 𝑥 = 𝐶𝑦 or 𝑦 = 𝐶𝑥
8. 𝑥 4 𝑦 + 4𝑥 = 𝐶𝑦
Lesson 3: Non-Exact First-Order Differential
Equations
1 𝜕𝑀 𝜕𝑁
1. If − = ℎ 𝑥 , a function of 𝑥 alone,
𝑁 𝜕𝑦 𝑑𝑥
then
ℎ 𝑥 𝑑𝑥
𝐼 𝑥, 𝑦 = 𝑒 . Eq. (3.2)
1 𝜕𝑁 𝜕𝑀
2. If − = 𝑔 𝑦 , a function of 𝑦 alone,
𝑀 𝜕𝑦 𝑑𝑥
then
𝑔 𝑦 𝑑𝑦
𝐼 𝑥, 𝑦 = 𝑒 . Eq. (3.3)
3. If 𝑀 = 𝑦 ℎ(𝑥𝑦) and 𝑁 = 𝑥 𝑔(𝑥𝑦), then
1
𝐼 𝑥, 𝑦 = . Eq. (3.4)
𝑥𝑀−𝑦𝑁
𝑦 𝑑𝑦 + 𝑥 𝑑𝑥 1 𝑦 𝑑𝑥 + 𝑥 𝑑𝑦 1 2 2
= 𝑑 ln 𝑥 + 𝑦
𝑥2 + 𝑦2 𝑥2 + 𝑦2 2
𝑦 𝑑𝑦 + 𝑥 𝑑𝑥 1 𝑦 𝑑𝑦 + 𝑥 𝑑𝑥 −1
,𝑛 > 1 =𝑑
𝑥2 + 𝑦2 𝑛 𝑥2 + 𝑦2 𝑛 2 𝑛 − 1 𝑥2 + 𝑦2 𝑛−1
−𝑥 2 −𝑥 2
= −2𝑥𝑦𝑒 + 𝑥𝑒 𝜕𝑥 + 𝑔(𝑦)
−𝑥 2 1 −𝑥 2
= 𝑦𝑒 − 𝑒 + 𝑔(𝑦)
2
−𝑥 2
𝑓 𝑥, 𝑦 = 𝑁 𝑥, 𝑦 𝜕𝑦 + ℎ(𝑥) = 𝑒 𝜕𝑦 +ℎ 𝑥
−𝑥 2
= 𝑦𝑒 + ℎ(𝑥)
By comparing,
−𝑥 2
𝑔 𝑦 =0 ℎ 𝑥 = 𝑦𝑒
The general solution is
2 1 −𝑥 2
𝑦𝑒 −𝑥 − 𝑒 = 𝐶.
2
3. Convert 2𝑥𝑦 − 𝑦 2 + 𝑦 𝑑𝑥 + 3𝑥 2 − 4𝑥𝑦 + 3𝑥 𝑑𝑦 = 0
into an exact differential equation and solve.
Solution:
𝑀 𝑥, 𝑦 = 2𝑥𝑦 − 𝑦 2 + 𝑦 𝑁(𝑥, 𝑦) = 3𝑥 2 − 4𝑥𝑦 + 3𝑥
𝜕𝑀 𝜕𝑁
= 2𝑥 − 2𝑦 + 1 = 6𝑥 − 4𝑦 + 3
𝜕𝑦 𝜕𝑥
1 𝜕𝑀 𝜕𝑁 1
− = 2 2𝑥 − 2𝑦 + 1 − 6𝑥 + 4𝑦 − 3
𝑁 𝜕𝑦 𝑑𝑥 3𝑥 − 4𝑥𝑦 + 3𝑥
−4𝑥 + 2𝑦 − 2
= ≠ ℎ(𝑥)
𝑥 3𝑥 − 4𝑦 + 3
1 𝜕𝑁 𝜕𝑀 1
− = 2
6𝑥 − 4𝑦 + 3 − 2𝑥 + 2𝑦 − 1
𝑀 𝜕𝑦 𝑑𝑥 2𝑥𝑦 − 𝑦 + 𝑦
2(2𝑥 − 𝑦 + 1) 2
= = = 𝑔(𝑦)
𝑦 2𝑥 − 𝑦 + 1 𝑦
2
𝑦 𝑑𝑦
𝑔 𝑦 𝑑𝑦 2
𝐼 𝑥, 𝑦 = 𝑒 =𝑒 = 𝑒 2 ln 𝑦 = 𝑒 ln 𝑦 = 𝑦2
Multiplying both sides of the equation by the integrating
factor 𝑦 2 , we obtain
2𝑥𝑦 3 − 𝑦 4 + 𝑦 3 𝑑𝑥 + 3𝑥 2 𝑦 2 − 4𝑥𝑦 3 + 3𝑥𝑦 2 𝑑𝑦 = 0
which is now an exact differential equation.
𝑀(𝑥, 𝑦) = 2𝑥𝑦 3 − 𝑦 4 + 𝑦 3
𝑁 𝑥, 𝑦 = 3𝑥 2 𝑦 2 − 4𝑥𝑦 3 + 3𝑥𝑦 2
𝜕𝑀 𝜕𝑁
= = 6𝑥𝑦 2 − 4𝑦 3 + 3𝑦 2
𝜕𝑦 𝜕𝑥
𝑓 𝑥, 𝑦 = 𝑀 𝑥, 𝑦 𝜕𝑥 + 𝑔 𝑦 = 2𝑥𝑦 3 − 𝑦 4 + 𝑦 3 𝜕𝑥 + 𝑔(𝑦)
= 𝑥 2 𝑦 3 − 𝑥𝑦 4 + 𝑥𝑦 3 + 𝑔(𝑦)
= 𝑥 2 𝑦 3 − 𝑥𝑦 4 + 𝑥𝑦 3 + ℎ(𝑥)
By comparing,
𝑔 𝑦 =0 ℎ 𝑥 =0
The general solution is
𝑥 2 𝑦 3 − 𝑥𝑦 4 + 𝑥𝑦 3 = C.
𝑑𝑦 𝑥𝑦 2 −𝑦
4. Convert = into an exact differential
𝑑𝑥 𝑥
equation.
Solution:
𝑦 1 − 𝑥𝑦 𝑑𝑥 + 𝑥 𝑑𝑦 = 0
𝑀 𝑥, 𝑦 = 𝑦 − 𝑥𝑦 2 and 𝑁 𝑥, 𝑦 = 𝑥
𝜕𝑀 𝜕𝑁
= 1 − 2𝑥𝑦 and =1
𝜕𝑦 𝜕𝑥
The DE is not exact.
1 𝜕𝑀 𝜕𝑁 1
− = 1 − 2𝑥𝑦 − 1 = −2𝑦 ≠ ℎ(𝑥)
𝑁 𝜕𝑦 𝑑𝑥 𝑥
1 𝜕𝑁 𝜕𝑀 1 2𝑥
− = 2
1 − 1 + 2𝑥𝑦 = ≠ 𝑔(𝑦)
𝑀 𝜕𝑦 𝑑𝑥 𝑦 − 𝑥𝑦 1−𝑥
If 𝑀 = 𝑦 ℎ(𝑥𝑦) and 𝑁 = 𝑥 𝑔(𝑥𝑦), then
1 1 1
𝐼 𝑥, 𝑦 = = 2
=− 2 2
𝑥𝑀 − 𝑦𝑁 𝑥 𝑦 − 𝑥𝑦 − 𝑦 𝑥 𝑥 𝑦
Multiplying both sides of the equation by 𝐼(𝑥, 𝑦), we
obtain
𝑥𝑦 − 1 1
2
𝑑𝑥 − 2 𝑑𝑦 = 0
𝑥 𝑦 𝑥𝑦
which is now an exact DE.
Exercise 3.1: