Module 4 Separation of Variables
Module 4 Separation of Variables
Module 4 Separation of Variables
COLLEGE OF ENGINEERING
DEPARTMENT OF CIVIL ENGINEERING
LECTURE MODULE 4
DIFFERENTIAL EQUATIONS: CHAPTER 2
TOPIC 4
SEPARATION OF VARIABLES
It was discussed in the first module how to classify a differential equation according to its type, degree, order
and linearity. In Chapter 2, we are going to study all the different solutions in solving a differential equation in the
first order and first degree. There are several solutions in solving these types of differential equations but each one
must follow a particular condition in order to use the solution.
A differential equation may also be solved in more than one solution and it is up to you, students, what to use
for as long as the equation satisfies the condition for the particular solution. Each solution will be presented then
according to the level of difficulty.
The solution for separation of variables is used if the function containing both the derivatives of the dependent and
independent variable may be factored completely thus, we can separate the variables.
If the general differential equation 𝑀(𝑥, 𝑦)𝑑𝑥 + 𝑁(𝑥, 𝑦)𝑑𝑦 = 0 can be factored into
𝑀(𝑥)𝑀(𝑦)𝑑𝑥 + 𝑁(𝑥)𝑁(𝑦)𝑑𝑦 = 0,
it can be written in the form 𝑨(𝒙)𝒅𝒙 + 𝑩(𝒚)𝒅𝒚 = 𝟎 by grouping all functions and derivatives of 𝑥 and 𝑦, separately.
This is made possible if we divide the entire equation by 𝑀(𝑦)𝑁(𝑥) such as,
( ) ( ) ( )
Here, we can notice that ( )
is purely a function of 𝑥 and ( )
is purely a function of 𝑦. By allowing 𝐴(𝑥) = ( )
and
( )
𝐵(𝑦) = ( )
, we create rational functions of 𝐴(𝑥) and 𝐵(𝑦).
Example 1:
Solution:
Factor 𝑀(𝑥, 𝑦) and 𝑁(𝑥, 𝑦) into 𝑀(𝑥)𝑀(𝑦) and 𝑁(𝑥)𝑁(𝑦), respectively. First, we will arrange the differential equation.
LECTURE MODULE 4
DIFFERENTIAL EQUATIONS: CHAPTER 2
We can now identify that 𝑀(𝑥, 𝑦) = (𝑥𝑦 + 𝑥) and 𝑁(𝑥, 𝑦) = −(𝑥 𝑦 + 𝑥 + 𝑦 + 1). Factor 𝑀(𝑥, 𝑦) and 𝑁(𝑥, 𝑦) into
𝑀(𝑥)𝑀(𝑦) and 𝑁(𝑥)𝑁(𝑦), respectively.
We can see that 𝑀(𝑦) = (𝑦 + 1) and 𝑁(𝑥) = (𝑥 + 1). Separate the variables by dividing the entire equation by
𝑀(𝑦)𝑁(𝑥).
Integrate the equation. (You must have mastered both Calculus 1 and 2 before taking Differential Equations.)
By letting 𝑢 = 𝑥 + 1, you can easily integrate 𝑑𝑥. However, is an improper rational function. Therefore, you
need to divide 𝑦 + 1 by 𝑦 + 1 to decompose.
𝑥 (𝑦 + 1)
𝑑𝑥 − 𝑑𝑦 = 0
𝑥 +1 𝑦+1
𝑥 2
𝑑𝑥 − 𝑦−1+ 𝑑𝑦 = 0
𝑥 +1 𝑦+1
1 1
ln|𝑥 + 1| − 𝑦 + 𝑦 − 2 ln|𝑦 + 1| = 𝐶
2 2
ln|𝑥 + 1| − 𝑦 + 2𝑦 − 4 ln|𝑦 + 1| = 2𝐶
ln|𝑥 + 1| − 𝑦 + 2𝑦 − 4 ln|𝑦 + 1| = 𝐶
From the laws of logarithms, 𝑎 ln 𝑏 = ln 𝑏 and ln 𝑎 − ln 𝑏 = ln . Simplifying the solution would be,
ln|𝑥 + 1| − 𝑦 + 2𝑦 − 4 ln|𝑦 + 1| = 𝐶
ln|𝑥 + 1| − 𝑦 + 2𝑦 − ln|𝑦 + 1| = 𝐶
𝒙𝟐 + 𝟏
𝐥𝐧 − 𝒚𝟐 + 𝟐𝒚 = 𝑪
(𝒚 + 𝟏)𝟒
Example 2:
LECTURE MODULE 4
DIFFERENTIAL EQUATIONS: CHAPTER 2
Solution:
The equation is already in its factored and simplest form. All you need to do is integrate.
𝑥 𝑑𝑥 + 𝑦 𝑑𝑦 = 0
𝑥 𝑦
+ =𝐶
2 2
Simplify,
𝑥 + 𝑦 = 2𝐶
𝒙𝟐 + 𝒚 𝟐 = 𝑪
Example 3:
Solution:
(1 − 𝑥)𝑦 = 𝑦
𝑑𝑦
(1 − 𝑥) =𝑦
𝑑𝑥
(1 − 𝑥)𝑑𝑦 = 𝑦 𝑑𝑥
𝑦 𝑑𝑥 − (1 − 𝑥)𝑑𝑦 = 0
𝑦 𝑑𝑥 − (1 − 𝑥)𝑑𝑦 = 0
𝑦 𝑑𝑥 − (1 − 𝑥)𝑑𝑦 = 0
(1 − 𝑥)𝑦
𝑦 (1 − 𝑥)
𝑑𝑥 − 𝑑𝑦 = 0
(1 − 𝑥)𝑦 (1 − 𝑥)𝑦
𝑑𝑥 𝑑𝑦
− =0
1−𝑥 𝑦
𝑑𝑥 𝑑𝑦
− = 0
1−𝑥 𝑦
𝑑𝑥
− 𝑦 𝑑𝑦 = 0
1−𝑥
𝑦
− ln|1 − 𝑥| − =𝐶
−1
1
− ln|1 − 𝑥| + = 𝐶
𝑦
−𝒚 𝐥𝐧|𝟏 − 𝒙| + 𝟏 = 𝑪𝒚
Example 4:
Find the general solution of the equation sin 𝑥 sin 𝑦 𝑑𝑥 + cos 𝑥 cos 𝑦 𝑑𝑦 = 0.
Solution:
LECTURE MODULE 4
DIFFERENTIAL EQUATIONS: CHAPTER 2
tan 𝑥 𝑑𝑥 + cot 𝑦 𝑑𝑦 = 0
− ln|cos 𝑥| + ln|sin 𝑦| = 𝐶
sin 𝑦
ln =𝐶
cos 𝑥
From laws of natural logarithms, 𝑙𝑜𝑔 𝑏 = 𝑐 in exponential form is, 𝑎 = 𝑏 . Since ln 𝑎 = 𝑙𝑜𝑔 𝑎, then
sin 𝑦
ln =𝐶
cos 𝑥
sin 𝑦
log =𝐶
cos 𝑥
sin 𝑦
𝑒 =
cos 𝑥
𝑪 𝐜𝐨𝐬 𝒙 = 𝐬𝐢𝐧 𝒚
We are often interested in problems in which we seek a solution 𝑦(𝑥) of a differential equation so that 𝑦(𝑥) also
satisfies certain prescribed side conditions – that is, conditions that are imposed on the unknown function 𝑦(𝑥) and
its derivatives at a point 𝑥 . On some interval I containing 𝑥 , the problem of solving an nth-order differential equation
subject to n side conditions specified at 𝑥 :
Solve: = 𝑓(𝑥, 𝑦, 𝑦 , … , 𝑦 ( )
)
where 𝑦 , 𝑦 , … , 𝑦 are arbitrary real constants, is called an nth-order initial-value problem (IVP). The values of
𝑦(𝑥) and its first 𝑛 − 1 derivatives at 𝑥 , 𝑦(𝑥 ) = 𝑦 , 𝑦 (𝑥 ) = 𝑦 , … , 𝑦 ( ) (𝑥 ) = 𝑦 are called initial conditions (IC).
Solving an nth-order initial-value problem frequently entails first finding an n-parameter family of solutions of the
given differential equation and then using the initial conditions at 𝑥 to determine the n constants in this family.
The objective of an IVP is to create particular solutions, by determining the value of constant 𝐶, defined on some
interval I containing the initial point 𝑥 .
Example 5:
Solution:
The given equation is very simple and easy. Directly integrate the equation in order to get the solution.
LECTURE MODULE 4
DIFFERENTIAL EQUATIONS: CHAPTER 2
𝑑𝑥 + 𝑑𝑦 = 0
𝑥+𝑦=𝐶
𝑥+𝑦=𝐶
0+1=𝐶
𝐶=1
Example 6:
Solution:
𝑒 𝑒 𝑑𝑥 − 𝑒 𝑑𝑦 = 0
𝑒 𝑒 𝑑𝑥 − 𝑒 𝑑𝑦 = 0
𝑒
𝑒
𝑒 𝑑𝑥 − 𝑑𝑦 = 0
𝑒
𝑒 𝑑𝑥 − 𝑒 𝑑𝑦 = 0
𝑒 𝑑𝑥 − 𝑒 𝑑𝑦 = 0
𝑒 𝑑𝑥 − 𝑒 𝑑𝑦 = 0
1
𝑒 − − 𝑒 =𝐶
3
1
𝑒 + 𝑒 =𝐶
3
1
3∗ 𝑒 + 𝑒 =𝐶
3
3𝑒 + 𝑒 = 3𝐶
3𝑒 + 𝑒 =𝐶
3𝑒 + 𝑒 =𝐶
( ) ( )
3𝑒 +𝑒 =𝐶
3(1) + 1 = 𝐶
𝐶=4
LECTURE MODULE 4
DIFFERENTIAL EQUATIONS: CHAPTER 2
1. What is the most important thing you learned? Why do you think so?
2. What surprised you on the things you learned on this topic?
3. What could be the hardest process regarding this topic?