How Do You Solve an Annuity Differential Equation?

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
4 replies · 2K views
_N3WTON_
Messages
350
Reaction score
3

Homework Statement


Solve the annuity problem:
[itex]\frac{dS}{dt} = rS + d[/itex]
[itex]S(0) = S_0[/itex]

Homework Equations


Integrating factor method equation
Future value of an annuity equation (this should be the final answer):
[itex]S(t) = S_0e^{rt} + \frac{d}{r}(e^{rt} - 1)[/itex]

The Attempt at a Solution


Ok, I am getting quite close to doing this derivation correctly. However, I keep ending up with a negative that should not be there.
First, I set:
[itex]p(x) = -r[/itex]
Then:
[itex]u(x) = e^{-rt}[/itex]
This means that I need to take the integral of:
[itex]\frac{d}{dt} (e^{-rt}S(t)) = de^{-rt}[/itex]
After taking the integral of both sides I end up with:
[itex](e^{-rt} * S(t)) = - \frac{d}{r} e^{-rt} + C[/itex]
Therefore:
[itex]S(t) = - \frac{d}{r} + Ce^{rt}[/itex]
At this point I am not sure what to do because I believe that the negative symbol should not be there. If somebody could point out where my mistake is I would greatly appreciate it.
 
Last edited:
Physics news on Phys.org
_N3WTON_ said:
At this point I am not sure what to do because I believe that the negative symbol should not be there...

Why? Your answer seems to agree with ##
S(t) = S_0e^{rt} + \frac{d}{r}(e^{rt} - 1)
## if ##C=S_0+\frac{d}{r}##.
 
ZetaOfThree said:
Why? Your answer seems to agree with ##
S(t) = S_0e^{rt} + \frac{d}{r}(e^{rt} - 1)
## if ##C=S_0+\frac{d}{r}##.
ok I see it now, I guess I am just an idiot XD ...sorry for the waste of time, I forgot to do the initial value portion of the problem
 
_N3WTON_,
It's a good habit to get into to check a solution you get. If the solution you get 1) satisfies the initial condition, and 2) satisfies the differential equation, you're golden. You don't need us to verify that your solution is correct.
 
_N3WTON_ said:
ok I see it now, I guess I am just an idiot XD ...sorry for the waste of time, I forgot to do the initial value portion of the problem

An easier way is to note that if ##V = S + (d/r)## then ##dV/dt = dS/dt = r V##, so ##V(t) = V_0 e^{rt}##, where ##V_0 = S_0 + d/r##.