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