• Support PF! Buy your school textbooks, materials and every day products Here!

How do I solve these coupled Differential Equation?

  • #1
41
0

Homework Statement


dNa/dt = -Na/Ta where Na is the function and Ta is the constant
dNb/dt = Na/Ta - Nb/Tb where Nb is the function and Tb is the constant

Homework Equations


My Prof said Nb(t) has the form Nb(t) = Cexp(-t/Ta) + Dexp(-t/Tb)

The Attempt at a Solution


I know the first equation solves to Na(t) = Na(0)exp(-t/Ta)

The second equation can be written,

dNb/dt = (TbNa-TaNb)/(TaTb)

(TaTb)dNb/dt = TbNa-TaNb

Separation of variables and integrating gives:

(TaTb) ∫ [TbNa-TaNb]^-1 dNb = ∫dt

(TaTb)(-1/Ta)ln(NaTb - NbTa) = t + C

Rearranging,

Nb = (Tb/Ta)Na - Cexp(-t/Tb)

Subbing in Na,

Nb = (Tb/Ta)(Na(0)exp(-t/Ta)) - Cexp(-t/Tb)

at t = 0,

Nb(0) = (Tb/Ta)(Na(0)) - C

so C = (Tb/Ta)(Na(0)) - Nb(0)

Subbing back into Nb(t),

Nb = [(Tb/Ta)(Na(0)exp(-t/Ta))] - [(Tb/Ta)(Na(0)) - Nb(0)]exp(-t/Tb)

Apparently the right answer is,

Nb = (1 / ((Ta/Tb)-1.)) Na(0)exp(-t/Ta)+ (Nb(0)-(Na(0)/((Ta/Tb)-1.)))exp(-t/Tb);

but I just can't seem to get it. Can anyone tell me where I went wrong?

Thanks
 

Answers and Replies

  • #2
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,728

Homework Statement


dNa/dt = -Na/Ta where Na is the function and Ta is the constant
dNb/dt = Na/Ta - Nb/Tb where Nb is the function and Tb is the constant

Homework Equations


My Prof said Nb(t) has the form Nb(t) = Cexp(-t/Ta) + Dexp(-t/Tb)

The Attempt at a Solution


I know the first equation solves to Na(t) = Na(0)exp(-t/Ta)

................................................

Thanks
Once you have solved the first equation for ##N_a(t)##, your second equation becoms
[tex] \frac{dN_b}{dt} = f(t) - \tau_b N_b, [/tex]
where ##\tau_b \equiv 1 / T_b## is a constant and ##f(t) = N_a(t)/T_a## is a known function. You can solve this DE using an integrating-factor approach; see, eg.,
https://en.wikipedia.org/wiki/Integrating_factor .
 

Related Threads on How do I solve these coupled Differential Equation?

Replies
13
Views
3K
  • Last Post
Replies
1
Views
693
  • Last Post
Replies
2
Views
8K
Replies
6
Views
3K
  • Last Post
Replies
8
Views
946
Replies
3
Views
7K
Replies
2
Views
4K
  • Last Post
Replies
1
Views
2K
Replies
0
Views
1K
Replies
5
Views
427
Top