Professional Documents
Culture Documents
Quiz 2 Reviewer de 213
Quiz 2 Reviewer de 213
𝑑𝑦
An equation of the form P = Q, where P and Q are functions
𝑑𝑥
of both x and y of the same degree throughout, is said to be
homogenous in y and x.
HOMOGENOUS DIFFERENTIAL EQUATION
𝑥 ²− 𝑦
f (x,y) = x ² + 3xy + y ² f (x,y) =
2𝑥²+𝑦²
𝑥
= 𝑥
𝑥 𝑥
𝑣𝑥−𝑥 𝑥(𝑣 −1)
𝑑𝑦 𝑑𝑣 𝑥
= 𝑥
=v–1
𝑑𝑦 𝑦−𝑥
𝑑𝑥
=v+x 𝑑𝑥
= 𝑑𝑣
𝑑𝑥 𝑥
v + x 𝑑𝑥 = v – 1
𝑑𝑦
Example #1: y–x=x Given: x = 1 ; y = 2
𝑑𝑥
𝑦
iv. Separating the variables Integrate both sides v. Replace v =
𝑥
𝑑𝑣
v+x =v–1 1 v = -lnx + c
𝑑𝑥 ʃdv =ʃ− 𝑥 dx
𝑑𝑣 𝑦
x 𝑑𝑥 = v – 1 – v = -lnx + c
v = -lnx + c 𝑥
v – 1 – v = -1 G.S.
𝑑𝑣
x 𝑑𝑥 = -1
Alternative G.S.:
1
dv = − 𝑥 dx y = x(-lnx + c)
𝑑𝑦
Example #1: y–x=x Given: x = 1 ; y = 2
𝑑𝑥
𝑑𝑣 2 (−𝑣² + 𝑣 + 1) 1 1
ʃ = lnx + c
x = 2 𝑢
𝑑𝑥 2𝑣 −1
1
2𝑣 − 1 1 ln u = lnx + c
2
dv = dx
2 (−𝑣² + 𝑣 + 1) 𝑥 1
ln (-v² + v + 1) = lnx + c
2
2𝑦 − 𝑥 𝑑𝑦
Example #3: ( ) =1 Given: x = 2 ; y = 3
𝑦+2𝑥 𝑑𝑥
Substitute the given to find c. Getting the Particular Solution
1 𝑦 𝑦 1 𝑦 𝑦
ln [(-𝑥 )² + 𝑥 + 1] = lnx + c ln [(-𝑥 )² + 𝑥 + 1] = lnx + c
2
2
1 3 3 c=0
ln [(-2)² + 2 + 1] = ln(2) + c 1 𝑦 𝑦
2 ln [(-𝑥 )² + 𝑥 + 1] = lnx + 0 P.S.D.E.
2
c=0 Alternative P.S.D.E.:
1 𝑦 𝑦
2
ln [(-𝑥 )² + 𝑥 + 1] = lnx
LINEAR DIFFERENTIAL EQUATION
𝑑𝑦
An equation of the form + Py = Q, where P and Q are
𝑑𝑥
functions of x only is called a Linear Differential Equation since
y and its derivatives are of the first degree.
LINEAR DIFFERENTIAL EQUATION
Steps in solving:
𝑑𝑦
1. Rearrange the differential equation into the form + Py = Q where P and Q are functions
𝑑𝑥
of x.
2. Determine ʃ P dx.
3. Determine the integrating factor 𝑒 ʃ P dx
4. Substitute 𝑒 ʃ P dx into the equation.
5. Integrate the right-hand side of the equation to give the general solution of the differential
equation. Given boundary conditions, the particular solution may be determined.
1 𝑑𝑦
Example #1: + 4y = 2 Given: x = 1 ; y = 2
𝑥 𝑑𝑥
𝑑𝑦
i. + Py = Q ii. ʃ P dx
𝑑𝑥
1 𝑑𝑦 P = 4x
𝑥 𝑑𝑥
+ 4y = 2
1 𝑑𝑦
ʃ P dx = ʃ 4x dx
[ + 4y = 2 ] x
𝑥 𝑑𝑥 ʃ P dx = 2x²
𝑑𝑦
+ 4xy = 2x
𝑑𝑥
1 𝑑𝑦
Example #1: + 4y = 2 Given: x = 0 ; y = 4
𝑥 𝑑𝑥
iii. 𝑒 ʃ P dx iv. y𝑒 ʃ P dx = ʃ𝑒 ʃ P dx Q dx
ʃ P dx = 2x² ; Q = 2x
ʃ P dx = 2x² y𝑒 2x² = ʃ𝑒 2x² (2x) dx
𝑒 ʃ P dx = 𝑒 2x²
𝑑𝑢 1
u = 2x² ; = 4x ; dx = 4𝑥 du
𝑑𝑥
y𝑒 2x² = 2 ʃ 𝑒 u du = 2 𝑒 u + c
1 1
y𝑒 2x² =
1
𝑒 2x² + c G.S
2
1 𝑑𝑦
Example #1: + 4y = 2 Given: x = 0 ; y = 4
𝑥 𝑑𝑥
Substitute the given to find c. Getting the Particular Solution
y𝑒 2x² =
1
𝑒 2x² + c
y𝑒 2x² =
2
1
𝑒 2x² + c 7
2 c= 2
4𝑒 2(0)² =
1
𝑒 2(0)² + c y𝑒 2x² =
1
𝑒 2x² + 2
7
P.S.D.E.
2 2
1
4𝑒 0 = 𝑒0 + c
Alternative P.S.D.E.:
2
𝑦𝑒 2x² 𝑒 2x² +
1 7
7 = 2 2
c=2 𝑒 2x² 𝑒 2x²
1 7
y = 2 + 2 𝑒 -2x²
𝑑𝑦 𝑦
Example #2: +1= Given: x = 1 ; y = 1
𝑑𝑥 𝑥
𝑑𝑦
i. + Py = Q ii. ʃ P dx
𝑑𝑥
𝑑𝑦 𝑦 1
𝑑𝑥
+1= −𝑥 P=𝑥
𝑑𝑦 1 1
+ (𝑥)y = -1 ʃ P dx = ʃ 𝑥 dx
𝑑𝑥
ʃ P dx = lnx
𝑑𝑦 𝑦
Example #2: +1= Given: x = 1 ; y = 1
𝑑𝑥 𝑥
iii. 𝑒 ʃ P dx iv. y𝑒 ʃ P dx = ʃ𝑒 ʃ P dx Q dx
𝑒 ʃ P dx = x ; Q = -1
ʃ P dx = lnx
yx = ʃ x (-1) dx
𝑒 ʃ P dx = 𝑒 lnx 𝑥²
yx = - +c
2
𝑒 lnx = x
G.S.
𝑒 ʃ P dx = x
𝑑𝑦 𝑦
Example #2: +1= Given: x = 1 ; y = 1
𝑑𝑥 𝑥
Substitute the given to find c. Getting the Particular Solution
𝑥²
yx = - 2 + c
𝑥²
yx = -2 +c
𝑥² 3
yx = - +2
(1)² 2
(1)(1) = - +c
2 3 − 𝑥²
yx =
3 2
c=2 3 − 𝑥²
y= P.S.D.E
2𝑥
BERNOULLI DIFFERENTIAL EQUATION
y(6y² – xy – 1) dx + 2xdy = 0
i. Get the Bernoulli Differential Equation
𝑑𝑦 𝑛 𝑑𝑦 6𝑦 3 −𝑥𝑦 −𝑦
𝑑𝑥
+ Py = 𝑄𝑦 + =0
𝑑𝑥 2𝑥
y(6y² – xy – 1) dx + 2xdy = 0 𝑑𝑦
+
6𝑦³ 𝑥𝑦 𝑦
– 2𝑥 – 2𝑥 = 0
𝑑𝑥 2𝑥
1
[(6y³ – xy – y)dx + 2xdy = 0] 𝑑𝑦 3𝑦³ 𝑦 𝑦
2𝑥𝑑𝑥 + – – 2𝑥 = 0
𝑑𝑥 𝑥 2
6𝑦 3 −𝑥𝑦 −𝑦 𝑑𝑥 𝑑𝑦 2𝑥𝑑𝑦 𝑑𝑦 𝑦 𝑦 3
2𝑥𝑑𝑥 𝑑𝑥
+2𝑥𝑑𝑥 =0 – – 2𝑥 = - 𝑥 (y³)
𝑑𝑥 2
𝑑𝑦 6𝑦 3 −𝑥𝑦 −𝑦 𝑑𝑦 1 1 3
+ =0 +(– 2 – 2𝑥)y = - 𝑥 (y³) B.D.E.
𝑑𝑥 2𝑥 𝑑𝑥
SOLVE THE GENERAL SOLUTION OF THE DIFFERENTIAL EQUATION
y(6y² – xy – 1) dx + 2xdy = 0
ii. Get the Linear Differential Equation
𝑑𝑦 v = 𝑦 −2 NOTE:
+ Py = Q 1
= 𝑦 −3
𝑑𝑥 𝑑𝑣
𝑑𝑦
= −2𝑦 −3 𝑦³
𝑦
𝑑𝑦 1 1 3 1 = 𝑦 −2
[𝑑𝑥 +(– – )y =- (y³)] 𝑑𝑣
𝑦³
2 2𝑥 𝑥 𝑦³ − = 𝑦 −3 dy
2
𝑑𝑦 1 1 3 1
[𝑑𝑥 +(– – )y =- (y³)] −
𝑑𝑣
+ (– –
1 1
)v =-
3
2 2𝑥 𝑥 𝑦³ 2𝑑𝑥 2 2𝑥 𝑥
𝑑𝑣 1 1 3
1 𝑑𝑦 1 1 −2 3 -2 [− 2𝑑𝑥 + (– 2 – 2𝑥)v = - 𝑥]
+ (– – )𝑦 =-
𝑦³ 𝑑𝑥 2 2𝑥 𝑥
𝑑𝑣 1 6
+ (1 + 𝑥)v = 𝑥 L.D.E.
𝑑𝑥
SOLVE THE GENERAL SOLUTION OF THE DIFFERENTIAL EQUATION
y(6y² – xy – 1) dx + 2xdy = 0
iii. Get the General Solution of the Linear Differential Equation
𝑑𝑦
+ Py = Q 𝑒 ʃ P dx = 𝑒 𝑥+𝑙𝑛𝑥 = 𝑒 𝑥 x NOTE:
𝑑𝑥 𝑒 𝑙𝑛𝑥 = x
𝑑𝑣 1 6 y𝑒 ʃ P dx = ʃ 𝑒 ʃ P dx Q dx
+ (1 + )v =
𝑒 ʃ P dx = ʃ 𝑒 𝑥 x ; Q = 𝑥
𝑑𝑥 𝑥 𝑥 6
1
P=1+𝑥 6
𝑦 −2 𝑒 𝑥 x = ʃ 𝑒 𝑥 x (𝑥) dx
1 1
ʃ P dx = ʃ1 + dx or ʃ1 dx + ʃ dx 6
𝑦 −2 𝑒 𝑥 x = ʃ 𝑒 𝑥 x ( ) dx
𝑥 𝑥 𝑥
ʃ P dx = x + lnx 𝑦 −2 𝑒 𝑥 x = 6 ʃ 𝑒 𝑥 dx
𝑦 −2 𝑒 𝑥 x = 6𝑒 𝑥 + c G.S.D.E