Integrating Factor Homework: Solving Diff. Eq w/ Constants

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 2K views
gfd43tg
Gold Member
Messages
949
Reaction score
48

Homework Statement


##C_{B}## is a function of ##\tau'##, and ##k_{1}##,##k_{2}##, and ##C_{A0}## are constants. I want to solve this differential equation
[tex]\frac {dC_{B}}{d \tau'} + k_{2}C_{B} = k_{1}C_{A0}e^{-k_{1} \tau'}[/tex]

Homework Equations

The Attempt at a Solution


Using the integrating factor, we get
[tex]\frac {d(C_{B}e^{k_{2} \tau'})}{d \tau'} = k_{1}C_{A0}e^{(k_{2} - k_{1})<br /> \tau'}[/tex]

However, from here I am unsure how to separate this. I was thinking of using chain rule on the inside, but that seems to only get me back to where I started (that's the purpose of the integrating factor??)
 
Physics news on Phys.org
The next step is to integrate both sides with respect to [itex]\tau'[/itex]. By the fundamental theorem of calculus, the integral of the left hand side is
[tex]\int \frac{d}{d\tau'} (C_Be^{k_2 \tau'})\,d\tau' = C_Be^{k_2 \tau'} + \mbox{constant}.[/tex]
 
I don't know what you mean by "separate" or what it is you want to "separate". There is no need to "separate" anything- just go ahead and integrate:
[tex]\frac{d C_Be^{k_2\tau'}}{d\tau'}= k_1C_{A0}e^{(k_2- k_1)\tau'}[/tex]
[tex]\int d C_Be^{k_2\tau'}= \int k_1C_{A0}e^{(k_2- k_1)\tau'} d\tau'[/tex]

[tex]C_Be^{k_2\tau'}= \frac{k_1C_{A0}}{k_2- k_1}e^{(k_2- k_1)}\tau'+ C[/tex]

That's the whole point of an "integrating factor".
 
  • Like
Likes   Reactions: gfd43tg
[tex]C_{B} e^{k_{2} \tau'} = \frac {k_{1}C_{A0}}{k_{2} - k_{1}} e^{(k_{2} - k_{1}) \tau'} + C[/tex]
My boundary condition is ##C_{B} = 0## at ##\tau' = 0##, this means ##C = -\frac {k_{1}C_{A0}}{k_{2} - k_{1}}##

Then the solution is
[tex]C_{B} = \frac {k_{1}C_{A0}}{k_{2} - k_{1}} e^{(k_{2} - k_{1}) \tau'} - \frac {k_{1}C_{A0}}{k_{2} - k_{1}}[/tex]

But the solution given is
[tex]C_{B} = k_{1}C_{A0} \Big( \frac {e^{-k_{1} \tau'} - e^{-k_{2}<br /> \tau'}}{k_{2} - k_{1}} \Big)[/tex]
 
Maylis said:
[tex]C_{B} e^{k_{2} \tau'} = \frac {k_{1}C_{A0}}{k_{2} - k_{1}} e^{(k_{2} - k_{1}) \tau'} + C[/tex]
My boundary condition is ##C_{B} = 0## at ##\tau' = 0##, this means ##C = -\frac {k_{1}C_{A0}}{k_{2} - k_{1}}##

Then the solution is
[tex]C_{B} = \frac {k_{1}C_{A0}}{k_{2} - k_{1}} e^{(k_{2} - k_{1}) \tau'} - \frac {k_{1}C_{A0}}{k_{2} - k_{1}}[/tex]

No, so far you have [tex] C_B e^{k_2 \tau'} = \frac {k_{1}C_{A0}}{k_{2} - k_{1}} e^{(k_{2} - k_{1}) \tau'} - \frac {k_{1}C_{A0}}{k_{2} - k_{1}}.[/tex]
Dividing both sides by [itex]e^{k_2 \tau'}[/itex] yields the given solution.
 
  • Like
Likes   Reactions: gfd43tg
Woops, I see where I made my mistake. Thank you!