Lecture 33: Separable Differential Equations and Applications
First Order Differential Equations: Separable Equations
- Lecture focuses on separable differential equations and their engineering applications.
First Order Differential Equations
- A first-order differential equation can be written as: dxdy=f(x,y), where f(x,y) is a function depending on both x and y.
- y is the unknown solution, implicit in the equation.
- The set of all solutions forms the general solution, a family of functions.
- Imposing the condition y(x<em>0)=y</em>0 turns the differential equation into an initial value problem (IVP).
Separable First Order Differential Equations
- Separable differential equations have the form: dxdy=f(x)g(y).
- Separation of variables leads to: g(y)dy=f(x)dx.
- Solving involves integrating both sides: ∫g(y)1dy=∫f(x)dx+C.
Examples of Separable Differential Equations
Example 1
- Given differential equation: dxdy=k(y−y<em>0), where k and y</em>0 are constants.
- Separation gives: y−y0dy=kdx.
- Integrating both sides: ∫y−y<em>0dy=∫kdx yields ln∣y−y</em>0∣=kx+c.
- Taking exponentials: y−y0=ekx+c=ekxec.
- Rename ec=A: y=y0+Aekx, where A is an arbitrary constant.
Example 2 (Corrected)
- Differential equation: dxdy=−yx.
- Separating variables: ydy=−xdx.
- Integrating: ∫ydy=−∫xdx+C leads to 2y2=−2x2+C.
- Which implies y2+x2=2C.
- Impose initial condition y(0)=r<em>0 (with r0 > 0).
- Since y=2C−x2, then y(0)=2C=r<em>0, so r</em>02=2C.
- The solution to the IVP is y=r02−x2.
- Solution holds for positive r<em>0, a similar analysis can be performed for negative r</em>0.
Example 3
- Differential equation: dxdy=y(x+1).
- Separating variables: ydy=(x+1)dx.
- Integrating: ∫ydy=∫(x+1)dx yields ln∣y∣=2x2+x+C.
- Taking exponentials: y=e2x2+x+C=e2x2+xeC.
- Let A=eC: y=Ae2x2+x.
Application 1: R-C Circuit
- Consider a circuit with resistance R, capacitance C, and voltage source V.
- I(t) is the current, and Q(t) is the charge on the capacitor.
- Experimental law: IR+CQ=V.
- Also, the current is the derivative of the charge with respect to time: I=dtdQ.
- Substituting, we get: RdtdQ+CQ=V, a first-order separable differential equation.
- Given: R=50Ω, C=2 Farads, V=12 Volts.
- The equation becomes: 50dtdQ+2Q=12.
- Solving for dtdQ: 50dtdQ=12−2Q=224−Q.
- Separating variables: 24−QdQ=100dt.
- Integrating: ∫24−QdQ=∫100dt gives −ln∣24−Q∣=100t+C.
- Multiplying by -1, we have ln∣24−Q∣=−100t−C.
- Exponential on both sides: 24 - Q = e−100t−C.
- Which becomes: 24−Q=e−100te−C.
- Which then becomes: Q=24−e−100te−C.
- Initial condition: Q(0)=0.
- This means 0=24−e0e−C which means that e−C=24.
- Therefore, Q(t)=24−24e−100t.
- Final charge: lim<em>t→∞Q(t)=lim</em>t→∞(24−24e−100t)=24 Coulombs.
- Time to reach 90% of total charge: 0.9×24=21.6.
- Solve 21.6=24−24e−100t for t.
- 21.6−24=−24e−100t
- −2.4=−24e−100t.
- 0.1=e−100t.
- ln(0.1)=−100t.
- t=−100ln(0.1)=−100ln(10−1)=100ln(10)≈230.3 seconds.
- Absolute value clarification: Removing the absolute value implies 24 - Q > 0, meaning Q < 24, consistent with the physical constraint.
Application 2: Dilution of Salt Solution
- Tank with 600 liters of water and 200 grams of salt at t=0.
- Brine solution pumped in at 3 liters/minute with 4 grams of salt/liter.
- Mixed solution pumped out at 3 liters/minute.
- Problem: Find the salt concentration of the pumped-out solution as a function of time.
- Definitions:
- S(t) = Amount of salt in the tank at time t.
- dtdS = Rate of change of salt in the tank.
- Rate of change equals to Rate of salt entering - Rate of salt leaving
- Rate of salt entering: 3 liters/minute * 4 grams/liter = 12 grams/minute.
- Rate of salt leaving: (600S(t))⋅3=6003S(t) grams/minute.
- Differential equation: dtdS=12−6003S.
- Initial condition: S(0)=200 grams.
- To solve the IVP all that is required is to:
- Separate variables
- Integrate both sides to get general solution
- Apply initial conditions to get specific solution
- Amount of salt in the tank at time t (solution after process), S(t)=2400−2200e−t/200
- Concentration of salt leaving the tank: 600S(t)=6002400−2200e−200t=4−311e−200t.
- Asymptotic behavior can be seen over time, concentration gets closer to 4.