Integrating Factor Method for First-Order Linear ODEs
Overview
- Goal: solve a first-order linear differential equation by using an integrating factor
- General form for a linear ODE: dxdy+p(x)y=f(x)
- Solving means finding a function (y(x)) that satisfies the equation on its domain
- When the equation is linear, the integrating factor method is systematic and often the fastest route
Integrating Factor: Concept and Derivation
- Define the integrating factor (\mu(x)) to satisfy the identity
μ(x)dxdy+μ(x)p(x)y=dxd(μ(x)y) - This requires choosing (\mu) such that
μ′(x)=p(x)μ(x)⇒μ(x)=exp(∫p(x)dx) - Multiply the original equation by (\mu(x)):
dxd(μ(x)y)=μ(x)f(x) - Integrate both sides with respect to (x):
μ(x)y=∫μ(x)f(x)dx+C - Solve for (y):
y(x)=μ(x)−1(∫μ(x)f(x)dx+C) - Key idea: choosing the correct integrating factor turns the left-hand side into a single derivative, enabling straightforward integration
Step-by-step Recipe for 1st-Order Linear ODEs
- Step 1: Write the equation in standard form: dxdy+p(x)y=f(x)
- Step 2: Compute integrating factor: μ(x)=exp(∫p(x)dx)
- Step 3: Multiply the equation by (\mu(x)) to get a derivative on the left: dxd(μ(x)y)=μ(x)f(x)
- Step 4: Integrate: μ(x)y=∫μ(x)f(x)dx+C
- Step 5: Solve for (y): \;y(x)=\mu(x)^{-1}\Big(\int \mu(x)\,f(x)\,dx + C\Big)\n
Example 1: Solve \frac{dy}{dx} - \frac{4}{x}\,y = x^{4} e^{x} </h4><ul><li>Identify:(p(x)=−x4),(f(x)=x4ex)</li><li>Integratingfactor: \mu(x)=\exp\Big(\int -\frac{4}{x}\,dx\Big)=\exp(-4\ln x)=x^{-4} </li><li>Multiplythrough:leftbecomes \frac{d}{dx}\big(x^{-4} y\big) = x^{-4}\,f(x) = x^{-4}\,x^{4} e^{x} = e^{x} </li><li>Integratebothsides: x^{-4}\,y = \int e^{x}\,dx = e^{x} + C </li><li>Solvefor(y): \boxed{\;y(x)=x^{4}\left(e^{x}+C\right) = x^{4} e^{x} + C x^{4}\; }</li><li>Ifaninitialvalue<br/>(y(x<em>0)=y</em>0)isgiven,substitutetofind(C):(C=y<em>0/x</em>04−ex0)</li></ul><h4id="example2atimedependentodeandthetransientterm">Example2:ATime−DependentODEandtheTransientTerm</h4><ul><li>ConsidertheIVP: \frac{d a}{d t} + \frac{1}{100}\,a = 6, \quad a(0)=50 </li><li>Integratingfactor: \mu(t)=\exp\Big(\int \frac{1}{100}\,dt\Big)=e^{t/100} </li><li>Multiplythroughandintegrate: \frac{d}{dt}\big(e^{t/100} a\big)=6\,e^{t/100} \Rightarrow e^{t/100} a = 600\,e^{t/100} + C </li><li>Solvefor(a(t)): \boxed{a(t)=600 + C\,e^{-t/100}}</li><li>Apply(a(0)=50):(50=600+C⇒C=−550)so<br/> \boxed{a(t)=600 - 550\,e^{-t/100}} </li><li>Transientterm:thepartthatdecayswithtime,here(−550e−t/100)<ul><li>As(t→∞),thesolutiontendstothesteady−statevalue(600)</li></ul></li><li>Takeaway:transienttermscapturetheeffectofinitialconditionsandtypicallyvanishforlarge(t)</li></ul><h4id="practicalexamplemixingproblemconstantvolumetank">PracticalExample:MixingProblem(ConstantVolumeTank)</h4><ul><li>Setup:tankwithvolume(V=300)gallons,inflowsaltwaterat(3)gal/minwithconcentration(2)lb/gal,outflowat(3)gal/min;initialsaltmass(A(0)=50)lb</li><li>Let(A(t))bepoundsofsaltintankattime(t)(minutes)</li><li>Inflowsaltrate:(3 gal/min×2 lb/gal=6)lb/min</li><li>Outflowsaltrate:concentrationintankis(A(t)/V=A(t)/300)lb/gal,outflowrateis3gal/min,sooutflowsaltrateis 3\times\frac{A(t)}{300}=\frac{A(t)}{100} lb/min</li><li>Massbalance(dA/dt):<br/> \frac{dA}{dt} = 6 - \frac{A}{100} <br/>whichisequivalentto<br/> \boxed{\frac{dA}{dt} + \frac{1}{100}\,A = 6} </li><li>Integratingfactor:(μ(t)=et/100)</li><li>Left−handsidebecomesthederivativeof(μA):<br/> \frac{d}{dt}\big(e^{t/100} A\big)=6\,e^{t/100} </li><li>Integrate: e^{t/100} A = 600\,e^{t/100} + C \Rightarrow A(t)=600 + C e^{-t/100} </li><li>Applyinitialcondition(A(0)=50):(50=600+C⇒C=−550)so<br/> \boxed{A(t)=600 - 550\,e^{-t/100}} </li><li>Interpretation<ul><li>Steady−stateamountofsaltintank:600lb</li><li>Transientterm:(−550e−t/100)decaysto0as(t→∞)</li></ul></li></ul><h4id="extensionsvariablevolumeoverflowconsideration">Extensions:VariableVolume(OverflowConsideration)</h4><ul><li>Modifiedsetup:inflowstill(3)gal/minatconcentration(2)lb/gal;volumenowgrowsas(V(t)=300+t)(duetohigherinflowthanoutflow)</li><li>Outflowrateremains(3)gal/min;however,concentrationintankisnow(A(t)/V(t)=A(t)/(300+t))</li><li>Massbalancebecomes<br/> \frac{dA}{dt} = 6 - 3\cdot\frac{A}{300+t} \quad\Rightarrow\quad \frac{dA}{dt} + \frac{3}{300+t}\,A = 6 </li><li>Integratingfactor:<br/> \mu(t) = \exp\Big(\int \frac{3}{300+t}\,dt\Big) = (300+t)^3 </li><li>Multiplythroughanduseproductrule:<br/> \frac{d}{dt}\big((300+t)^3 A\big) = 6(300+t)^3 </li><li>Integrate:<br/> (300+t)^3 A = \int 6(300+t)^3 dt = \frac{3}{2}(300+t)^4 + C </li><li>Solvefor(A(t)):<br/> \boxed{A(t)=\frac{3}{2}(300+t) + \frac{C}{(300+t)^3}} </li><li>Applyinitialcondition(A(0)=50)tofind(C):<ul><li>(50=23⋅300+3003C=450+3003C)</li><li>Thisyields(C=(50−450)⋅3003=−400⋅3003)(alargenegativeconstant)</li><li>Thustheexplicitsolutionis<br/> \boxed{A(t)=\frac{3}{2}(300+t) - \frac{400\cdot 300^3}{(300+t)^3}} </li></ul></li><li>Importantpracticalnote:<ul><li>Ifthetankvolumegrowswithoutbound(oruntilcapacityisreached),themodelchanges(overflow,capacitylimits,etc.)andtheformulamustbeadjustedaccordingly</li><li>Insuchacase,thesolutionshowsalineargrowthinthemainterm(duetoincreasingvolume)plusadecayingtransientterm</li></ul></li></ul><h4id="keytakeawaysandterminology">KeyTakeawaysandTerminology</h4><ul><li>Integratingfactoristhecentraltoolforlinearfirst−orderODEs;itischosenas<br/> \mu(x)=\exp\Big(\int p(x)\,dx\Big) </li><li>Theleft−handsidebecomesthederivativeofaproduct: \frac{d}{dx}\big(\mu(x)\,y\big) </li><li>Afterintegrating,theconstantofintegration(C)encodestheinitialcondition</li><li>Transientterm:theportionofthesolutionthatdecaystozeroastheindependentvariablegrows(e.g.,anexponentialtermlike(e−λt));itcapturestheinfluenceofinitialconditionsanddiesoutovertime</li><li>Practicalmodelingtip:alwayscheckunits(dimensionanalysis)toensureconsistency,especiallyinmixingproblemswhererates,concentrations,andvolumesinteract</li><li>Inproblemswithtime−varyingvolume,theoutflowtermoftenbecomes(outflow rate×concentration=(flow rate)×(V(t)A(t))),leadingtoavariable−coefficientdifferentialequation</li></ul><h4id="quickreferencestoformulasforeasyrecall">QuickReferencestoFormulas(foreasyrecall)</h4><ul><li>Integratingfactor: \mu(x)=\exp\Big(\int p(x)\,dx\Big) </li><li>Solutionform: \boxed{ y(x)=\mu(x)^{-1}\Big(\int \mu(x)\,f(x)\,dx + C\Big) } </li><li>Examplesolution(constantvolume):for \frac{dA}{dt}+\frac{1}{100}A=6 ,with(A(0)=50): A(t)=600-550e^{-t/100} </li><li>Variablevolumeform(volume(V(t))): \frac{dA}{dt}+\frac{3}{V(t)}A=6, \quad V(t)=300+t \quad\Rightarrow\quad A(t)=\frac{3}{2}\,V(t) + \frac{C}{V(t)^3} $$
Notes on the Instructor's Emphasis
- The recipe is a powerful tool: when you recognize a linear first-order ODE, apply the integrating factor to transform the problem into a direct integration
- Always verify the left-hand side becomes a derivative of a product by using the product rule as a quick check
- For IVPs, determine the constant C from the given initial condition; this yields a unique solution on the interval of validity
- The “transient term” concept helps interpret how solutions settle to a steady state in real-world processes (e.g., mixing tanks, chemical reactors), and it highlights the impact (and eventual fading) of initial conditions in dynamic systems