Presentation is loading. Please wait.

Presentation is loading. Please wait.

Separable Differential Equations

Similar presentations


Presentation on theme: "Separable Differential Equations"β€” Presentation transcript:

1 Separable Differential Equations
MAT 275

2 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
A separable differential equation is one that can be written so that the independent variable terms (along with its differential) are collected to one side of the equal sign, and the dependent variable terms (and its differential) to the other. Example: 𝑦 β€² =π‘₯ 𝑦 2 is separable. It is first written as 𝑑𝑦 𝑑π‘₯ =π‘₯ 𝑦 2 , then β€œseparated”: 𝑑𝑦 𝑦 2 =π‘₯ 𝑑π‘₯. (c) ASU Math - Scott Surgent. Report errors to

3 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
To solve a separable differential equation, integrate both sides and solve for y (if possible). For example, we had 𝑦 β€² =π‘₯ 𝑦 2 . This is separated as 𝑑𝑦 𝑦 2 =π‘₯ 𝑑π‘₯. 𝑑𝑦 𝑦 2 = π‘₯ 𝑑π‘₯ Integrate both sides. βˆ’ 1 𝑦 = 1 2 π‘₯ 2 +𝐢 Don’t forget the constant of integration. 1 𝑦 =πΆβˆ’ 1 2 π‘₯ Negate. The C β€œabsorbs” the negative. 𝑦= 1 πΆβˆ’ 1 2 π‘₯ 2 = 2 πΆβˆ’ π‘₯ Solve for y. Note that 2C is written as C. (c) ASU Math - Scott Surgent. Report errors to

4 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Example: find the general solution of 𝑦 β€² =π‘₯+π‘₯𝑦. Write 𝑦′ as 𝑑𝑦 𝑑π‘₯ : 𝑑𝑦 𝑑π‘₯ =π‘₯+π‘₯𝑦 Factor: 𝑑𝑦 𝑑π‘₯ =π‘₯(1+𝑦) Separate: 𝑑𝑦 1+𝑦 =π‘₯ 𝑑π‘₯ π‘¦β‰ βˆ’1 Integrate: 𝑑𝑦 1+𝑦 = π‘₯ 𝑑π‘₯ β†’ ln |1+𝑦| = 1 2 π‘₯ 2 +𝐢 Isolate y: 1+𝑦 = 𝑒 0.5 π‘₯ 2 +𝐢 β†’ 1+𝑦 =𝐢 𝑒 0.5 π‘₯ 2 1+𝑦=±𝐢 𝑒 0.5 π‘₯ 2 =𝐢 𝑒 0.5 π‘₯ (±𝐢=𝐢) Thus, 𝑦=𝐢 𝑒 0.5 π‘₯ 2 βˆ’1 is the general solution of 𝑦 β€² =π‘₯+π‘₯𝑦. (c) ASU Math - Scott Surgent. Report errors to

5 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
The constant of integration C is just a generic constant at this point. It absorbs all constants that come near it, so to speak. For example, 𝑒 𝐢 =𝐢, βˆ’πΆ=𝐢, 2𝐢=𝐢, 1 𝐢 =𝐢, and so on. The C can be determined with an initial condition. For example, suppose we have 𝑦 β€² =π‘₯+π‘₯𝑦 with 𝑦 0 =3. The general solution is 𝑦= 𝐢 0.5 π‘₯ 2 βˆ’1. To find C, let x = 0 and y = 3: 3=𝐢 𝑒 βˆ’ β†’ =πΆβˆ’ β†’ 𝐢=4. Thus, the particular solution is 𝑦=4 𝑒 0.5 π‘₯ 2 βˆ’1. (c) ASU Math - Scott Surgent. Report errors to

6 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Example: the rate of change in the value of a stock is inversely-proportional to the square of the value of that stock. If the stock’s value was $20 at noon, and was $23 at 3 p.m., what is the stock’s value at 5 p.m.? 𝑉 β€² 𝑑 = π‘˜ [𝑉 𝑑 ] β†’ 𝑑𝑉 𝑑𝑑 = π‘˜ 𝑉 2 𝑉 2 𝑑𝑉=π‘˜ 𝑑𝑑 β†’ 𝑉 2 𝑑𝑉 = π‘˜ 𝑑𝑑 1 3 𝑉 3 =π‘˜π‘‘+𝐢 (c) ASU Math - Scott Surgent. Report errors to

7 To find C, use (0,20), where t = 0 is noon: 20= 3 3π‘˜(0)+𝐢 β†’ 20 3 =𝐢
Example: the rate of change in the value of a stock is inversely-proportional to the square of the value of that stock. If the stock’s value was $20 at noon, and was $23 at 3 p.m., what is the stock’s value at 5 p.m.? 1 3 𝑉 3 =π‘˜π‘‘+𝐢 𝑉 3 =3π‘˜π‘‘+𝐢 𝑉 𝑑 = 3 3π‘˜π‘‘+𝐢 . To find C, use (0,20), where t = 0 is noon: 20= 3 3π‘˜(0)+𝐢 β†’ =𝐢 Thus, we have 𝑉 𝑑 = 3 3π‘˜π‘‘ To find k, use (3,23): = 3 3π‘˜(3) β†’ =9π‘˜+8000 23 3 βˆ’8000=9π‘˜ β†’ =9π‘˜ β†’ π‘˜= =463. The particular solution is 𝑉 𝑑 = 3 3(463)𝑑 or 𝑉 𝑑 = 𝑑 At 5 p.m., the stock’s value is 𝑉 5 = (5)+8000 β‰ˆ$24.63. (c) ASU Math - Scott Surgent. Report errors to

8 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Integration Factors (c) ASU Math - Scott Surgent. Report errors to

9 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
There is a process by which most first-order linear differential equations can be solved. This uses an integration factor, denoted πœ‡(π‘₯) (Greek letter β€œmu”). The differential equation must be in the form 𝑦 β€² +𝑓 π‘₯ 𝑦=𝑔 π‘₯ . To find πœ‡ π‘₯ , we perform the following process (next slide) (c) ASU Math - Scott Surgent. Report errors to

10 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Starting with 𝑦 β€² +𝑓 π‘₯ 𝑦=𝑔(π‘₯), multiply both sides by πœ‡(π‘₯): πœ‡(π‘₯)𝑦 β€² +πœ‡(π‘₯)𝑓 π‘₯ 𝑦=πœ‡(π‘₯)𝑔(π‘₯) The left side is a product-rule derivative of (πœ‡ π‘₯ 𝑦): πœ‡ π‘₯ 𝑦 β€² =πœ‡ π‘₯ 𝑦 β€² + πœ‡ β€² π‘₯ 𝑦. Thus, we have πœ‡ π‘₯ 𝑦 β€² + πœ‡ β€² π‘₯ 𝑦= πœ‡(π‘₯)𝑦 β€² +πœ‡(π‘₯)𝑓 π‘₯ 𝑦. This forces πœ‡ β€² π‘₯ =πœ‡ π‘₯ 𝑓(π‘₯). (next slide) (c) ASU Math - Scott Surgent. Report errors to

11 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Now we find πœ‡(π‘₯). From the last slide, we had πœ‡ β€² π‘₯ =πœ‡ π‘₯ 𝑓(π‘₯). This is a separable differential equation… so separate: π‘‘πœ‡ πœ‡ π‘₯ =𝑓 π‘₯ 𝑑π‘₯. Integrating both sides, we have π‘‘πœ‡ πœ‡ π‘₯ = 𝑓 π‘₯ 𝑑π‘₯ . (next slide) (c) ASU Math - Scott Surgent. Report errors to

12 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
After integration, we have ln πœ‡(π‘₯) = 𝑓 π‘₯ 𝑑π‘₯ +𝐢. Here, we only need one form of the antiderivative, so we let C = 0. Taking base-e on both sides, we now know πœ‡(π‘₯): πœ‡ π‘₯ = 𝑒 𝑓 π‘₯ 𝑑π‘₯ . (c) ASU Math - Scott Surgent. Report errors to

13 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Good news… you don’t need to do all those steps each time. Just remember that if you have a differential equation of the form 𝑦 β€² +𝑓 π‘₯ 𝑦=𝑔(π‘₯), then find πœ‡ π‘₯ = 𝑒 βˆ«π‘“ π‘₯ 𝑑π‘₯ . Let’s take a few seconds to relax and look at kittens: (c) ASU Math - Scott Surgent. Report errors to

14 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
So let’s go back to the start: we have a differential equation of the form 𝑦 β€² +𝑓 π‘₯ 𝑦=𝑔 π‘₯ . We have found πœ‡(π‘₯) and multiplied it to both sides: πœ‡(π‘₯)𝑦 β€² +πœ‡ π‘₯ 𝑓 π‘₯ 𝑦=πœ‡ π‘₯ 𝑔 π‘₯ . The left side is compressed as a product rule derivative: πœ‡ π‘₯ 𝑦 β€² =πœ‡ π‘₯ 𝑔 π‘₯ . (c) ASU Math - Scott Surgent. Report errors to

15 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Now integrate both sides. Here, we need the constant of integration: (πœ‡ π‘₯ 𝑦)β€² = πœ‡ π‘₯ 𝑔 π‘₯ 𝑑π‘₯ +𝐢. Since (πœ‡ π‘₯ 𝑦)β€² =πœ‡ π‘₯ 𝑦, we can now solve for y: 𝑦= πœ‡ π‘₯ 𝑔 π‘₯ 𝑑π‘₯ +𝐢 πœ‡ π‘₯ . You may memorize this as a formula. (c) ASU Math - Scott Surgent. Report errors to

16 Example: Find the general solution of 𝑦 β€² + 2 π‘₯ 𝑦=π‘₯.
(Note that 𝑓 π‘₯ = 2 π‘₯ and 𝑔 π‘₯ =π‘₯ and that π‘₯β‰ 0) Solution: First, we find πœ‡ π‘₯ : Now, use the formula 𝑦= πœ‡ π‘₯ 𝑔 π‘₯ 𝑑π‘₯ +𝐢 πœ‡ π‘₯ : (next slide) (c) ASU Math - Scott Surgent. Report errors to

17 Now we use the formula 𝑦= πœ‡ π‘₯ 𝑔 π‘₯ 𝑑π‘₯ +𝐢 πœ‡ π‘₯ :
Solve 𝑦 β€² + 2 π‘₯ 𝑦=π‘₯. From previous slide, we know that πœ‡ π‘₯ = π‘₯ 2 . Now we use the formula 𝑦= πœ‡ π‘₯ 𝑔 π‘₯ 𝑑π‘₯ +𝐢 πœ‡ π‘₯ : 𝑦= π‘₯ 2 π‘₯ 𝑑π‘₯ +𝐢 π‘₯ 2 = ∫ π‘₯ 3 𝑑π‘₯+𝐢 π‘₯ 2 = π‘₯ 4 +𝐢 π‘₯ 2 = 1 4 π‘₯ 2 +𝐢 π‘₯ βˆ’2 . Thus, 𝑦= 1 4 π‘₯ 2 +𝐢 π‘₯ βˆ’2 is the general solution of 𝑦 β€² + 2 π‘₯ 𝑦=π‘₯. On the next slide, we’ll check to be sure. (c) ASU Math - Scott Surgent. Report errors to

18 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Check that 𝑦= 1 4 π‘₯ 2 +𝐢 π‘₯ βˆ’2 is the general solution of 𝑦 β€² + 2 π‘₯ 𝑦=π‘₯. First, differentiate y: 𝑦 β€² = 1 2 π‘₯βˆ’2𝐢 π‘₯ βˆ’3 Now insert 𝑦 β€² and 𝑦 into the differential equation and simplify: 1 2 π‘₯βˆ’2𝐢 π‘₯ βˆ’ π‘₯ π‘₯ 2 +𝐢 π‘₯ βˆ’2 =π‘₯ 1 2 π‘₯βˆ’2𝐢 π‘₯ βˆ’ π‘₯+2𝐢 π‘₯ βˆ’3 =π‘₯ 1 2 π‘₯+ 1 2 π‘₯ + βˆ’2𝐢 π‘₯ βˆ’3 +2𝐢 π‘₯ βˆ’3 =π‘₯ π‘₯+0=π‘₯. (c) ASU Math - Scott Surgent. Report errors to

19 (c) ASU Math - Scott Surgent. Report errors to surgent@asu.edu
Example: Solve the IVP: 𝑦 β€² +2π‘₯𝑦=3π‘₯, 𝑦 0 =5. Solution: Find πœ‡(π‘₯): Now find y using the formula 𝑦= πœ‡ π‘₯ 𝑔 π‘₯ 𝑑π‘₯ +𝐢 πœ‡ π‘₯ : To find C, use y(0) = 5: 5= 3 2 +𝐢 𝑒 βˆ’ →𝐢= 7 2 . Thus, the particular solution is 𝑦= 𝑒 βˆ’ π‘₯ 2 . (c) ASU Math - Scott Surgent. Report errors to


Download ppt "Separable Differential Equations"

Similar presentations


Ads by Google