Bernoulli Equation The general first order differential equation of the form ππ¦ ππ₯ + P(x) y = Q(x)π¦π , n≠ 0, 1 To solve : divide LHS and RHS by π¦π ππ¦ 1−π + P(x) π¦ = Q(x) ππ₯ = π¦1−π , dv/dx = (1-n ) π¦ −π π¦ −π we let v dy/dx The equation reduces to form ππ£ + ππ₯ (1-n) P(x) v = (1-n) Q(x), next find Integrating factor u(x) = π (1−π) β« π₯π)π₯(π Χ¬β¬and times on LHS and RHS Simplify we get : vπ (1−π) β«( = π₯π)π₯(π Χ¬β¬1-n) β«(Χ¬ ππ Χ¬β¬1−π)π(π₯)ππ₯ ππ₯ + C. Tutorial Q5: Solve x ππ¦ ππ₯ + y = x π¦3 add this as (b) on tutorial ClAIRAUT’s EQUATION Solve y = p x ± π2 + 1, π€βπππ π = ππ¦/ππ₯ Differentiating y ππ¦ ππ₯ ππ ππ₯ =p=p+x x ± ππ π ππ ± 2 ππ₯ π +1 ππ₯ π π2 +1 =0 ππ Case 1 : ππ₯ = 0 , so p = c , hence the general solution is y = c x ± π 2 + 1, Case2 : x ± y=β π π2 +1 = 0 , so x = β π2 ± π2 +1 π , hence π2 +1 π2 + 1 = β 1 π2 +1 To eliminate p π₯ 2 + π¦2 = 1, satisfies the above Eq. but cannot be solve for not all c, singular solution Equation of order higher than one π 2π¦ ππ₯2 Solve y is missing in the equation. Let p = ππ¦ + 2 ππ₯ = 4 x ππ¦ ππ₯ = y’ , so p’ = y” The above equation becomes p’ + 2 p = 4 x thus we find Integrating factor u = exp ( β« Χ¬β¬2 ππ₯) = π 2π₯ multiply both LHS and RHS: π(ππ 2π₯ ) ππ₯ p’ π 2π₯ + 2p π 2π₯ = 4 x π 2π₯ = 4 x π 2π₯ p π 2π₯ = 4 β« Χ¬β¬x π 2π₯ dx + C p = 2x – 1 + C π −2π₯ To get back y from y = p’ , we integrate again y = π₯ 2 - x + A π −2π₯ + D RECALL Example: Find the solution of the initial value problem (IVP): ππ¦ ππ‘ 1 + y = 1+ π‘ 2 Solution: Using similar method y(2) = 3; (i) the integrating function is u(t) = π π‘, (ii) since it has initial value. we employ the definite integral with appropriate limits π [ ππ‘ ππ‘ π¦π π‘ ] = 1+ π‘ 2 π‘ π β«Χ¬β¬2 ππ [π¦π π ]ππ π π‘ π¦(t) = – y(2) π‘ ππ β«Χ¬β¬2 1+π 2 π2 y= π −π‘ = ds π π‘π¦(t) 2 [3π + –3 π2 π‘ ππ β«Χ¬β¬2 1+π 2 = ds] π‘ ππ β«Χ¬β¬2 1+π 2 ds Exact first-order differential equation Generally a differential equation is in the form π Φ(t,y(t)) = ππ‘ 0, Φ(t, y(t)) = constant solved by simply integrating giving variable ‘y’ which is a function of ‘t’. π Remark: Please note that, it is not always we can re-arrange a differential equation in the form ππ‘ Φ(t, y) = 0. But looking at the “chain rule” of a partial differentiation π Φ(t, ππ‘ Set y) = π Φ(t, y) ππ‘ πΦ ππ‘ + πΦ ππ¦ ππ¦ ππ‘ = M(t,y) + N(t,y) we identify M(t,y) = πΦ ππ‘ ππ¦ ππ‘ = 0, which we required !!!! and N(t,y) = πΦ . ππ¦ Definition: The differential M(t,y) dt + N(t,y) dy = 0, is said to be exact if and only if ππ ππ¦ = ππ . ππ‘ Method to solve exact differential equation Method (i) Step 1: Knowing the equation M(t, y) = πΦ , ππ‘ we determine Φ(t,y) up to arbitrary function of y along that Φ(t, y) = β«π‘ π Χ¬β¬, π¦ ππ‘ + h(y). Step2: The h(y) is then determined by h’(y) = N(t,y) - β«Χ¬β¬ ππ(π‘,π¦) ππ¦ dt Method (ii) Step 1: Knowing the equation N(t, y) = πΦ , ππ¦ we determine Φ(t, y) up to arbitrary function of y along that Φ(t, y) = β«π‘ π Χ¬β¬, π¦ ππ¦ + k(t). Step 2: The k(t) is then determined by: k’(t) = M(t,y) - β«Χ¬β¬ ππ(π‘,π¦) ππ‘ dy. Method (iii) Step1: Since we have equations M(t,y) = πΦ ππ‘ and N(t,y) = πΦ ππ¦ , we simply integrate them Step2: We do the comparison of h(y) and k(t) terms by inspection: Φ(t, y) = β«π‘ π Χ¬β¬, π¦ ππ‘ + h(y), Φ(t, y) = β«π‘ π Χ¬β¬, π¦ ππ¦ + k(t). Example: Find the general solution of the equation (3y + π π‘) + (3t + cos y) ππ¦ ππ‘ =0. How to solve ? Step (i) we identify: M(t, y) = 3 y + π π‘ and N(t, y)= 3t + cos y ; Step (ii) we compute and check ππ ππ¦ = 3 and ππ = ππ‘ 3, check if If yes ! we deduce that the equation is exact. Step (iii) we evaluate further using one of the 3 methods shown ! ππ ππ¦ = ππ , ππ‘ METHOD 1 Example: ππ¦ Find the general solution of the equation (3y + π π‘) + (3t + cos y) ππ‘ = 0 . (i) we have shown ππ ππ¦ = ππ ππ‘ (i) we have identify: M(t, y) = 3 y + π π‘ and N(t, y)= 3t + cos y ; (ii) We evaluate using method 1 Since M(t,y) = πΦ ππ‘ , Integrate M(t,y) w.r.t ‘dt’ we obtained: Φ(t, y) = β«π‘ π Χ¬β¬, π¦ ππ‘ + h(y) = 3 y t + π π‘ + h(y). Now differentiate Φ(t, y) by ‘y’ and identify it to N(t,y) = So h’(y) = cos y which is then h(y) = sin y. Hence the solution is Φ(t) = 3 yt + π π‘ + sin y. πΦ ππ¦ = 3t + h’(y) = 3t + cos y ; Method 2 Example: Find the general solution of the equation (3y + π π‘) + (3t + cos y) (i) we have shown ππ ππ¦ = ππ¦ ππ‘ =0. ππ ππ‘ (i) we have identify: M(t, y) = 3 y + π π‘ and N(t, y)= 3t + cos y ; (ii) We evaluate using method 2 Since N(t,y) = πΦ ππ¦ , Integrate N(t,y) w.r.t ‘dy’ we obtained Φ(t, y) = β«π‘ π Χ¬β¬, π¦ ππ¦ + k(t) = 3 t y + sin y + k(t). Now differentiate the above equation by ‘t’ gives M(t,y) = πΦ ππ‘ = 3y + k’(t) = 3y + π π‘ ; So k’(t) = π π‘ which is then k(t) = π π‘ Hence the solution is Φ(t) = 3 y t + π π‘ + sin y. Example: Find the general solution of the equation (3y + π π‘) + (3t + cos y) (i) we identify: M(t, y) = 3 y + π π‘ and N(t, y)= 3t + cos y ; (ii) we have shown ππ ππ¦ = ππ , ππ‘ the equation is exact. (iii) we evaluate using method 3 Method 3: By comparing the two results: Φ(t, y) = β«π‘ π Χ¬β¬, π¦ ππ‘ + h(y) = 3 y t + π π‘ + h(y) ; Φ(t, y) = β«π‘ π Χ¬β¬, π¦ ππ¦ + k(t) = 3 t y + sin y + k(t) We can deduce that h(y) = sin y and k(t) = π π‘. Therefore just substitute either of it into the main expression, Φ(t,y) = 3 y t + π π‘ + sin y. ππ¦ ππ‘ =0.