linear finally

advertisement
1- First Order Ordinary Differential Equations
First of all we define the differential equations in general. A differential
equation is one that contains one or more derivative and may be classified
according to:
1- Type: Ordinary or Partial equation.
2- Order: Highest derivative in the equation.
3- Degree: The power on the highest order.
For example, take the equation;
(
𝑑3𝑦 2
)
𝑑π‘₯ 3
𝑑2𝑦 5
)
𝑑π‘₯ 2
+(
+
𝑦
1+ π‘₯ 2
= ex
This equation is ordinary since it contains only one independent variable. It is third
order since the highest order is three. It is of second degree since the power on the
highest order is 2.
If there is more than one independent variable the equation is, then, partial
differential equation e.g.;
πœ•π‘¦
πœ•π‘‘
= 𝛼2
πœ•2 𝑦
πœ•π‘₯ 2
and it's solution is y = f(x,t)
The above equation is second order and first degree.
Note:
1- Differential equation of order n needs n number of integrations and it's
solution contains n number of constants.
2- The differential equation may be linear or non-linear depending on the
presence of the dependent variable y and it's derivatives in one term of the
equation, e.g.;
(i)
(ii)
(iii)
𝑑2𝑦
𝑑π‘₯ 2
𝑑2𝑦
𝑑π‘₯ 2
𝑑2𝑦
𝑑π‘₯ 2
𝑑𝑦
+ 4y 𝑑π‘₯ +2y = 0
Non- linear equation.
𝑑𝑦
+ 4x 𝑑π‘₯ +2y = 0
linear equation.
+ Sin y = 0
Non- linear equation since it contains
Sin y which is non- linear.
Classification of Ordinary Differential Equation of The First Order
1- Equations in which the variables are separable.
2- Homogeneous equation.
1
3- Linear equation.
4- Bernoulli's equation.
5- Exact equation.
1.1-
Equations in which the variables are separable
These type of equations can be reduced to the form,
A(x)dx + B(y)dy = 0
And, thus, can be integrated normally.
Example 1: Solve the equation,
y
𝑑𝑦
𝑑π‘₯
+ x y2 = x
Solution:
y
𝑑𝑦
𝑑π‘₯
+ ( y2 - 1) x = 0
𝑦
𝑦2− 1
dy + x dx = 0
1/2 ln ( y2- 1) +
π‘₯2
2
+ C = 0;
where C is integration constant.
Example 2: Solve the equation,
Sin x Cos y dx + Cos x Sin y dy = 0
Solution:
Sin π‘₯
Cos π‘₯
dx +
Sin 𝑦
Cos 𝑦
dy = 0
-ln Cos x – ln Cos y + ln C = 0
ln
𝐢
Cos π‘₯ .Cos 𝑦
𝐢
Cos π‘₯ .Cos 𝑦
=0
=1
Cos π‘₯ . Cos 𝑦 = C
2
1.2-
Homogeneous equation: This type can be reduced to the form
A(x,y)dx + B(x,y)dy = 0
Where the functions A(x,y) and B(x,y) are of the same degree. And the solution starts
with the substitution,
y = v.x
𝑑𝑦
and
𝑑𝑣
=
𝑑π‘₯
.π‘₯ + 𝑣
𝑑π‘₯
Where v is a dummy variable.
Example 3: Solve the equation,
(2 √π‘₯. 𝑦 - x).dy + y.dx = 0
(1.1)
Solution:
We start with substitution,
y = v.x
∴
𝑑𝑦
𝑑π‘₯
(1.2)
𝑑𝑣
=
𝑑π‘₯
.π‘₯+𝑣
(1.3)
Substitute (1.2) and (1.3) in (1.1),
(2.x √𝑣 - x). (x.
2x2 √𝑣 .
2x √𝑣 .
𝑑𝑣
𝑑π‘₯
𝑑𝑣
𝑑π‘₯
𝑑𝑣
𝑑π‘₯
+ v) + v.x = 0, simplifying we get;
+ 2.x √𝑣 v – x2
𝑑𝑣
+ 2. √𝑣 v – x
𝑑π‘₯
𝑑𝑣
𝑑π‘₯
- v.x + v.x = 0
=0
(2x √𝑣 - 1).x.dv + 2. √𝑣 . v.dx = 0
2√𝑣− 1
dv
2𝑣√𝑣
Or,
𝑑𝑣
𝑣
+
- 1/2
𝑑π‘₯
=0
π‘₯
𝑑𝑣
𝑣 3/2
+
𝑑π‘₯
π‘₯
=0
∴ ln v – 1/2 (- v-1/2 ) +ln x – ln C = 0
𝑣.π‘₯
𝐢
= 𝑒− 𝑣
−1/2
−1/2
= 𝑒 − (𝑦/π‘₯)
1/2
∴ y = C 𝑒 − (π‘₯/𝑦)
3
Example 4: Solve the equation,
(x3+y3) dy = x2y dx
(1.4)
Solution:
We start with substitution,
y = v.x
𝑑𝑦
∴
𝑑π‘₯
𝑑𝑣
=
𝑑π‘₯
.π‘₯ +𝑣
Substitute for y and dy/dx in equation (1.4) to get;
𝑑𝑣
(x3 + v3x3).(v + x
(1 + v3).(v + x
v + v 4+ x
𝑑𝑣
𝑑π‘₯
𝑑𝑣
)=v
𝑑π‘₯
+v3 x
𝑑𝑣
v4+ (1+ v3) x
𝑑π‘₯
) = x2.vx
𝑑π‘₯
𝑑𝑣
𝑑π‘₯
=v
=0
Dividing by x.v4 we get;
𝑑π‘₯
π‘₯
+
∴∫
1+ 𝑣 3
𝑑π‘₯
π‘₯
𝑣4
+∫
dv = 0
𝑑𝑣
𝑣4
+∫
𝑑𝑣
𝑣
=0
ln x + (- 1/3) v-3+ln v – ln C = 0
1 −3
x.v/C = 𝑒 3𝑣
1
(𝑦/π‘₯)−3
1
(π‘₯/𝑦)3
= 𝑒3
Finally, y = C 𝑒 3
1.3-
Linear equations
This type of equations has the general form,
𝑑𝑦
𝑑π‘₯
+ P(x) y = Q(x)
And solved by an integrating factor (R), given by,
R = exp (∫ 𝑃(π‘₯). 𝑑π‘₯)
4
And the solution is,
R.y = ∫ 𝑅. 𝑄(π‘₯). 𝑑π‘₯ = C
Example 5: Solve the equation,
𝑑𝑦
x
𝑑π‘₯
– y = x3
Solution:
𝑑𝑦
𝑑π‘₯
-
𝑦
= x2
π‘₯
−1
R = exp (∫
π‘₯
. 𝑑π‘₯) = e- ln x =
1
π‘₯
R.y = ∫ 𝑅. 𝑄(π‘₯). 𝑑π‘₯ = C
1
1
π‘₯
π‘₯
∴ .y = ∫ . π‘₯ 2 𝑑π‘₯ + C
1
π‘₯
1
π‘₯
.y = ∫ π‘₯. 𝑑π‘₯ + C
.y =
∴y=
π‘₯2
2
π‘₯3
2
+C
+ C.x
Example 6: Solve the equation,
𝑑𝑦
𝑑π‘₯
+
R=𝑒
π‘₯
1+ π‘₯
π‘₯
y=
2
∫1+π‘₯ 𝑑π‘₯
1+π‘₯ (1+ π‘₯ 2 )−1/2
1
π‘₯ (1+ π‘₯ 2 )2 + (1+ π‘₯ 2 )
2 1/2
= 𝑒 ln(1+ π‘₯ ) = (1 + x2)1/2
∴ (1 + x2)1/2. y = ∫ (1 + x2)1/2
1+π‘₯ (1+ π‘₯ 2 )−1/2
[
1
π‘₯ (1+ π‘₯ 2 )2 + (1+ π‘₯ 2 )
].dx + C
1
Taking (1 + π‘₯ 2 )2 outside the denominator in RHS,
(1 + x2)1/2. y = ∫ (1 + x2)1/2
1
2 −1/2
1+π‘₯ (1+ π‘₯ )
1 ].dx + C
1 [
2
(1+ π‘₯2 )2
1+π‘₯ (1+ π‘₯ 2 )−1/2
(1 + x2)1/2. y = ∫ [
1
π‘₯ + (1+ π‘₯ )2
].dx + C
π‘₯+ (1+ π‘₯ 2 )2
5
1
(1 + x2)1/2. y = ln [π‘₯ + (1 + π‘₯ 2 )2 ] + C
1
∴ y=
1.4𝑑𝑦
𝑑π‘₯
ln [π‘₯+ (1+ π‘₯ 2 )2 ]
(1+ x2 )1/2
+ (1+
𝐢
x2 )1/2
Bernoulli's equation
+ A(x).y = B(x).yn
First we solve the equation,
𝑑𝑦
𝑑π‘₯
+ A(x).y = 0
Then we assume the solution as y = v.f(x), where v, here, is a dummy variable.
Example 7: Solve the equation,
𝑑𝑦
𝑑π‘₯
- x.y = x3.y2
(1.5)
𝑑𝑦
First we solve,
𝑑𝑦
𝑦
𝑑π‘₯
- x.y =0
- x.dx = 0
∴ ln y -
π‘₯2
2
- lnC = 0
And, y = C 𝑒 π‘₯
2 /2
Now, we put the solution in the form,
y = v. 𝑒 π‘₯
And,
𝑑𝑦
𝑑π‘₯
2 /2
=
𝑑𝑣
𝑑π‘₯
(1.6)
𝑒π‘₯
1
2 /2
+ 2xv (2. 𝑒 π‘₯
2 /2
)
(1.7)
Substitute (1.6) and (1.7) in (1.5) to get,
𝑑𝑣
𝑑π‘₯
𝑑𝑣
𝑑π‘₯
𝑒π‘₯
2 /2
+ x v 𝑒π‘₯
2 /2
𝑒π‘₯
2 /2
= x3.v2. 𝑒 π‘₯
- x v 𝑒π‘₯
2 /2
= x3.v2. 𝑒 π‘₯
2
2
6
𝑑𝑣
∫ 𝑣2 = ∫ π‘₯3 𝑒 π‘₯
2 /2
𝑑π‘₯
Integrating by parts;
Let z = x2/2 ; then dz = x. dx
∴ ∫ π‘₯3 𝑒 π‘₯
2 /2
∫ π‘₯ 3 𝑒 𝑧 𝑑𝑧/π‘₯ = ∫ π‘₯ 2 𝑒 𝑧 𝑑𝑧 = ∫ 2. 𝑧. 𝑒 𝑧 𝑑𝑧 = 2 z. 𝑒 𝑧 2
2
2. 𝑒 𝑧 + K = x2. 𝑒 π‘₯ /2 - 2. 𝑒 π‘₯ /2 + K
𝑑π‘₯
becomes
−1
Then we get,
𝑣
= x2. 𝑒 π‘₯
2 /2
- 2. 𝑒 π‘₯
2 /2
+K
Where K is the constant of integration. Substituting for v, we finally get;
y=
2
−𝑒 π‘₯ /2
2
2
π‘₯2.𝑒 π‘₯ /2 − 2.𝑒 π‘₯ /2+ 𝐾
Example 8: Solve the equation,
x
𝑑𝑦
𝑑π‘₯
+ y = y2 ln x
First we solve,
∴
𝑑𝑦
𝑦
+
𝑑π‘₯
π‘₯
x
𝑑𝑦
𝑑π‘₯
+y=0
=0
ln y + ln x – ln C = 0
y.x/C = 1
y=
𝐢
π‘₯
Now put,
y=
𝑑𝑦
And,
𝑑π‘₯
Substitute for y and
x(
𝑑𝑣
𝑑π‘₯
𝑑𝑣
𝑑π‘₯
𝑑𝑣 1
𝑑π‘₯ π‘₯
-
=
𝑣
π‘₯
-v
+
𝑣2
π‘₯2
𝑣
π‘₯
1
𝑣
π‘₯
π‘₯
)+
2
=
𝑣2
π‘₯2
𝑣
π‘₯
=
𝑑𝑣 1
𝑑π‘₯ π‘₯
𝑑𝑦
𝑑π‘₯
=
𝑣2
π‘₯2
-v
1
π‘₯2
in the original equation,
ln x
ln x
ln x
7
𝑑𝑣
∴∫
𝑣2
=∫
ln π‘₯
π‘₯2
dx
( u.dv = u.v – ∫ 𝑣. 𝑑𝑒) ; putting u=lnx and dv=
Integrating RHS by parts,
1
𝑑π‘₯
𝑣
π‘₯
- = ln x. (-x-1) - ∫(−π‘₯ −1 ).
1
ln π‘₯
𝑣
π‘₯
- =-
𝑑π‘₯
π‘₯2
1
- +K
π‘₯
Substitute for v,
−1
π‘₯𝑦
=-
ln π‘₯
π‘₯
π‘₯
Finally, y =
1.5-
1
- +K
1
ln π‘₯−𝐾π‘₯+1
The Exact equation
This has the general form,
A(x,y) dx + B(x,y) dy =0, on condition that;
πœ•π΄(π‘₯,𝑦)
πœ•π‘¦
=
πœ•π΅(π‘₯,𝑦)
πœ•π‘₯
Method of solution:
First we assume the solution is ∅(π‘₯, 𝑦) = constant
Also, A =
𝑑∅
(1.8)
𝑑π‘₯
And
B=
𝑑∅
(1.9)
𝑑𝑦
Integrating (1.8),
∅ = ∫A.dx
Differentiate with respect to y,
𝑑∅
𝑑𝑦
=
𝑑
𝑑𝑦
∫A.dx
(1.10)
Finally equating equations (1.9) and (1.10).
Example 9: Solve the equation,
8
(x3 – 3x2y + 2xy2).dx – (x3- 2x2y + y3).dy = 0
A(x,y)
B(x,y)
First we must check if the equation is exact,
πœ•π΄
(
)x = - 3x2 + 4xy
πœ•π‘¦
πœ•π΅
(
πœ•π‘₯
∴
)y = - 3x2 + 4xy
πœ•π΄
πœ•π‘¦
=
πœ•π΅
πœ•π‘₯
the equation is exact.
∅ = ∫A.dx = ∫(x3 – 3x2y + 2xy2)..dx
∴ ∅ = x4/4 – x3y + x2y2 + C(y)
(1.11)
Where C(y) is a constant that may be a function of y.
Differentiate (1.11) with respect to y,
𝑑∅
𝑑𝑦
= -x3 + 2x2y +
πœ•πΆ(𝑦)
(1.12)
πœ•π‘¦
By definition equation (1.12) = B
∴
-x3 + 2x2y +
πœ•πΆ(𝑦)
πœ•π‘¦
πœ•πΆ(𝑦)
πœ•π‘¦
= – (x3- 2x2y + y3)
= - y3
∴ C(y) = - y4/4 - D ;
D is a constant of integration.
Substitute for C(y) in equation (1.11) to obtain the final solution,
∴ ∅ = x4/4 – x3y + x2y2- y4/4 = D
∴ ∅ = x4/4 – x3y + x2y2- y4/4
Example 10: Solve the equation,
Sin x.dy + y.Cos x.dx = 0
B
πœ•π΄
πœ•π‘¦
= Cos x
A
=
πœ•π΅
πœ•π‘₯
= Cos x ∴ exact.
∅ = ∫A.dx = ∫ y.Cos x.dx
9
∴ ∅ = y Sin x + C(y)
(1.13)
Differentiate with respect to y,
𝑑∅
𝑑𝑦
= Sin x +
πœ•πΆ(𝑦)
πœ•π‘¦
∴ Sin x = Sin x +
πœ•πΆ(𝑦)
πœ•π‘¦
; and this equation = B
πœ•πΆ(𝑦)
πœ•π‘¦
=0
∴ C(y) = D (constant); substitute in equation (1.13);
∴ ∅ = y Sin x = D
∴ ∅ = y Sin x
Exercises
1- y 2 dx  x 2 dy ο€½ 2 xydy
2- 4 x 2 ο€­ 6 xy ο€­ y 2 dx  x4 x ο€­ y dy ο€½ 0
.3-
dy x ο€­ y cos x
ο€½
dx
sin x  y
4- 3x  2 y 2 dx  2 xydy ο€½ 0
5-
dy 4 y

ο€½x
dx x
6- x
7-
dy
 3y ο€½ x2
dx
x4

dy
ο€½ y y  x3
dx

8- ( x + x y 2 ) d x + ( y + x 2 y ) d y = 0
9- x 2 (
10- x(
dy 2
) ο€­ y2 ο€½ 0
dx
dy 2
dy
) ο€­ 2 x  3 y   6 y ο€½ 0
dx
dx
10
Download