DE-Week 4-1
DE-Week 4-1
DE-Week 4-1
Week 4
by
Dr. Jamil Ahmed
Solve the initial value problem
Homogeneous function
𝑓 𝑡𝑥, 𝑡𝑦 = 𝑡 2 𝑓(𝑥, 𝑦)
f (x , y ) = 3 x 2 + y 2
f (tx , ty ) = 3 t 2 x 2 + t 2 y 2
= t 2 / 3 f (x , y ) homogeneous of degree 2 / 3.
Example 3
f (x , y ) =
x
+4
2y
f (tx , ty ) =
tx
+4
2ty
= t 0 f (x , y ) homogeneous of degree 0.
4
Remarks:
i) Homogeneous functions can be recognized by examining the total
degree of each term
e.g. 𝑓 𝑥, 𝑦 = 𝑥 2 − 𝑦 is not homogeneous
ii) If f is homogeneous function of degree n then we can write
𝑛
𝑦
𝑓 𝑥, 𝑦 = 𝑥 𝑓 1,
𝑥
or
𝑛
𝑥
𝑓 𝑥, 𝑦 = 𝑦 𝑓 ,1
𝑦
𝑦 𝑥
where 𝑓 1, and 𝑓 ,1 are homogeneous of degree 0.
𝑥 𝑦
e.g. 𝑓 𝑥, 𝑦 = 𝑥 2 + 3𝑥𝑦 + 𝑦 2
2
𝑦 𝑦
𝑓 𝑥, 𝑦 = 𝑥 2 1 + 3 + 2
𝑥 𝑥
Is homogeneous function of degree 2.
Homogeneous Differential Equation
A differential equation of the form
𝑀 𝑥, 𝑦 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 = 0
is said to be homogeneous if both coefficients M and N are homogeneous
functions of the same degree.
Example
The differential equation
𝑥 2 + 𝑥𝑦 𝑑𝑥 + 𝑥𝑦 + 𝑦 2 𝑑𝑦 = 0
Is homogeneous of degree 2.
Method of solution
a1 b1
Case 1: =
a2 b2
We use the substitution z = a1 x + b1 y which reduces the equation to a
separable equation in the variables x & z. Solving the resulting
separable equation and replacing z with a1 x + b1 y , we obtain the
solution of the given differential equation.
12
a1 b1
Case 2:
a 2 b2
In this case we substitute
x = X + h, y =Y + k
where h and k are constants to be determined. Then the equation
Becomes
dY a1 X + b1Y + a1 h + b1 k + c1
=
dX a 2 X + b2Y + a 2 h + b2 k + c 2
dY a1 X + b1Y
=
dX a 2 X + b2Y
14
Example
Solve the differential equation
dy 2x + 3y − 1
=−
Solution: dx 2x + 3y + 2
a1 b
Since = 1 = 1 , we substitute z = 2 x + 3 y , so that
a2 b2
dy 1 dz
= − 2
dx 3 dx
Thus the equation becomes
1 dz z −1
− 2 = −
3 dx z+2
dz − z + 7
=
i.e. dx z+2
which is a variable separable form, and can be written as
z+2
dz = dx
− z + 7
15
Integrating both sides we get
− z − 9 ln ( z − 7 ) = x + A
− ln (2 x + 3 y − 7 ) = 3 x + 3 y + A
9
or
(2 x + 3 y − 7 )9 = ce 3( x+ y ) , c = eA
16
Example 4 Solve the differential equation
dy ( x + 2 y − 4 )
=
Solution:
dx 2 x + y − 5
By substitution
x = X + h, y =Y + k
The given differential equation reduces to
dY ( X + 2Y ) + (h + 2k − 4 )
=
dX (2 X + Y ) + (2h + k − 5)
We choose h and k such that
h + 2k − 4 = 0, 2h + k − 5 = 0
Solving these equations we have h=2 , k=1. Therefore, we have
dY X + 2Y
=
dX 2X + Y
which is a homogenous equation.
17
We substitute Y = VX to obtain
dV 1 − V 2 or 2 +V dX
=
X
dX 2 + V 1 − V 2 dV = X
Resolving into partial fractions and integrating both sides we obtain
3 1 dX
or −
2(1 − V ) 2(1 + V ) dV =
X
ln (1 − V ) − ln (1 + V ) = ln X + ln A
3 1
−
2 2
(1 − V )3 (1 + V ) = CX −2 , C = A −2
18
Exact differential equation
Total (or exact ) differential:
In calculus, the total or exact differential of function𝑓 𝑥, 𝑦 is defined
by
𝜕𝑓 𝜕𝑓
𝑑𝑓 = 𝑑𝑥 + 𝑑y (1)
𝜕𝑥 𝜕𝑦
An expression 𝑀 𝑥, 𝑦 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 is said to be an exact
differential if there exist a function 𝑓 𝑥, 𝑦 such that
𝜕𝑓 𝜕𝑓
𝑀= and 𝑁 = (2)
𝜕𝑥 𝜕𝑦
.
Exact differential equation:
An equation
𝑀 𝑥, 𝑦 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 =0, (3)
is called an exact differential equation iff the expression
𝑀 𝑥, 𝑦 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 is an exact differential of some function
𝑓 𝑥, 𝑦 . Therefore, by using (2) we can write (3) in the form
𝜕𝑓 𝜕𝑓
𝑑𝑥 + 𝑑y = 0,
𝜕𝑥 𝜕𝑦
i.e𝑑𝑓 𝑥, 𝑦 = 0.
So that 𝑓 𝑥, 𝑦 = 𝑐 is the general solution of (3).
Theorem:
The differential equation
𝑀 𝑥, 𝑦 𝑑𝑥 + 𝑁 𝑥, 𝑦 𝑑𝑦 =0,
is called an exact differential equation iff
𝜕𝑀 𝜕𝑁
= ,
𝜕𝑦 𝜕𝑥
where the function 𝑀 𝑥, 𝑦 and 𝑁 𝑥, 𝑦
has cont. first order partial derivatives.
Method of Solution:
If the given equation is exact then the solution procedure consists of
the following steps:
Step 1. Check that the equation is exact by verifying the condition
M N
=
y x
Step 2. Write down the system F = M ( x, y ) , F = N ( x, y )
x y
F ( x, y ) = M ( x, y )dx + ( y )
( y ) = N ( x, y ) − M ( x, y )dx
y
Step 5. Integrate to find ( y ) and write down the function F (x, y);
Step 6. All the solutions are given by the implicit equation
F ( x, y ) = C
Step 7. If you are given an IVP, plug in the initial condition to find
the constant C.
2𝑥𝑦 𝑑𝑥 + 𝑥 2 − 1 𝑑𝑦 = 0
Solution:
Problem:
Solution:
Find the functions 𝑔 𝑦 and 𝑓(𝑥) if the given differential equation is
exact then solve the equation.
u ( x, y ) M ( x, y )dx + u ( x, y ) N ( x, y )dy = 0
becomes exact. The function u (x, y) (if it exists) is called the
integrating factor (IF) and it satisfies the equation due to the
condition of exactness.
M u u u
u+ M = u+ N
y y x x
Example 1
Show that 1 /( x 2
+ y 2
) is an integrating factor for the equation
(x 2
)
+ y 2 − x dx − ydy = 0,
and then solve the equation.
Solution: Since M = x 2 + y 2 − x, N =− y
Therefore M N
= 2 y, =0
y x
So that M N
y x
and the equation is not exact. However, if the equation is multiplied by
1 /( x 2 + y 2 ) then the equation becomes
x y
1 − 2
2
dx − 2 dy = 0
x +y x +y 2
Now x y
M = 1− and N =−
x2 + y2 x2 + y2
Therefore M 2 xy N
= =
y (
x2 + y2 )
2 x
So that this new equation is exact. The equation can be solved.
However, it is simpler to observe that the given equation can also
written
xdx + ydy
dx − 2
x +y 2
=0 or
1
dx − d ln( x 2 + y 2 ) = 0
2
or
d x −
(
ln x 2 + y 2
=0
)
2
x − ln x 2 + y 2 = k
Example 2 Solve the differential equation
dy 3 xy + y 2
=− 2
dx x + xy
whose integrating factor is x.
Solution:
The given differential equation can be written in form
(3 xy + y 2 )dx + ( x 2 + xy )dy = 0
Therefore, M ( x, y ) = 3 xy + y 2 and N ( x, y ) = x 2 + xy
Now M N
= 3x + 2 y , = 2x + y
y x
M N
y x
Multiplying the given equation with the IF, we obtain
(3 x 2 y + xy 2 )dx + ( x 3 + x 2 y )dy = 0
which is exact.
1. Since M = 3x 2 + 2 xy = N , the equation is exact.
y x
2. We find F (x, y) by solving the system
F
= 3 x 2
y + xy 2
x
F
= x 3 + x 2 y.
y
3. We integrate the first equation to get
x2 2
F ( x, y ) = x y +
3
y + ( y)
2
4. We differentiate w. r. t y and use the second equation of the system
in step 2 to obtain
F
= x 3 + x 2 y + ( y ) = x 3 + x 2 y
y
Example Solve dx + x − sin y dy = 0, with IF u ( y ) = y
y
x
Solution: Here M = 1, N= − sin y
y
M N 1
= 0, =
y x y
M N
y x
The equation is not exact.
The IF is u ( y ) = y Multiplying the equation by y, we have