Differential Equations : Compound Interest

Click For Summary

Homework Help Overview

The discussion revolves around setting up a differential equation related to a savings account with continuous deposits and compounded interest. The original poster describes a scenario where a college student plans to save money at an increasing rate while earning interest on the total amount saved.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants explore the formulation of the differential equation, questioning the definitions of variables and the nature of deposits versus interest accumulation.

Discussion Status

There is ongoing dialogue about the correct setup of the differential equation, with some participants suggesting alternative notations and interpretations of the deposit structure. Clarifications regarding the continuous versus discrete nature of deposits and interest are being discussed.

Contextual Notes

Participants note potential confusion regarding the treatment of the monthly deposit increase and the continuous compounding of interest, as well as the implications of using different rates for calculations.

coolusername
Messages
36
Reaction score
0

Homework Statement


A college student wants to start a new savings account with an initial balance of $0. He plans to save money at a

continuous rate of $700 per month. Additionally, every month he plans to increase this rate by $7. (Such

that for example in month 3 he is saving at rate $721 per month.) Also, he found a bank account that pays

continuously compounded interest at a rate of 9% per year. Estimate how long it will take the college to save

$500,000. Note that you will need to set up and solve a DE, and then you'll need to plot

the solution to make the final estimate.

Homework Equations


The Attempt at a Solution



Setting up the differential equation is the problem for me.

Let S = the amount of money in his savings account
let t = time (in months)

dS/dt = (0.09/12)(S + 7t) I divided 0.09(bank interest) by 12 b/c of the college student adding in money every month

I multiplied the bank's interest per month by (S+7t) because the interest is acted upon the amount of money in the savings account.

When I solve for the general equation by using an integrating factor, I can't fulfill the initial conditions in the final general solution.

What's wrong with my differential equation?

Thanks!
 
Last edited by a moderator:
Physics news on Phys.org
One thing which is confusing: you use S to denote the total amount of funds in the account and also the amount which is deposited every month.

I would suggest P(t) for the account balance at time t, while S, the amount deposited is a constant $700/mo. This problem is subtle, because the $700 deposit (plus the additional $7/mo/mo increase in the deposit is not paid into the account continuously, but only at one time every month, say on the first day of the month
 
SteamKing said:
One thing which is confusing: you use S to denote the total amount of funds in the account and also the amount which is deposited every month.

I would suggest P(t) for the account balance at time t, while S, the amount deposited is a constant $700/mo. This problem is subtle, because the $700 deposit (plus the additional $7/mo/mo increase in the deposit is not paid into the account continuously, but only at one time every month, say on the first day of the month
So would the DE be dP(t)/dt = (0.08/12)(700+7t) ??
 
coolusername said:

Homework Statement


A college student wants to start a new savings account with an initial balance of $0. He plans to save money at a

continuous rate of $700 per month. Additionally, every month he plans to increase this rate by $7. (Such

that for example in month 3 he is saving at rate $721 per month.) Also, he found a bank account that pays

continuously compounded interest at a rate of 9% per year. Estimate how long it will take the college to save

$500,000. Note that you will need to set up and solve a DE, and then you'll need to plot

the solution to make the final estimate.

Homework Equations


The Attempt at a Solution



Setting up the differential equation is the problem for me.

Let S = the amount of money in his savings account
let t = time (in months)

dS/dt = (0.09/12)(S + 7t) I divided 0.09(bank interest) by 12 b/c of the college student adding in money every month

I multiplied the bank's interest per month by (S+7t) because the interest is acted upon the amount of money in the savings account.

When I solve for the general equation by using an integrating factor, I can't fulfill the initial conditions in the final general solution.

What's wrong with my differential equation?

Thanks!

In the small time interval from ##t## to ##t + \Delta t## (##t, \Delta t## in units of months) the balance grows by
\Delta S = r S \Delta t + (700 + 7 t) \Delta t,
where ##r = 0.09/12##. The first term above is the growth due to compound interest, while the second is the amount paid in from outside sources.
 
  • Like
Likes   Reactions: coolusername
@SteamKing I think that's why the question says estimate. I've seen problems like this that want exact answers, but you have to evaluate them piecewise.
 
coolusername said:
So would the DE be dP(t)/dt = (0.08/12)(700+7t) ??

No. See my other post.
 
Ray Vickson said:
No. See my other post.
Thanks!
 
Ray Vickson said:
In the small time interval from ##t## to ##t + \Delta t## (##t, \Delta t## in units of months) the balance grows by
\Delta S = r S \Delta t + (700 + 7 t) \Delta t,
where ##r = 0.09/12##. The first term above is the growth due to compound interest, while the second is the amount paid in from outside sources.
That's not quite how I read it. The payment graph is a step function, constant during each month but incrementing at each whole month boundary. Maybe that's what you meant, but it's not what you've written.
Also, it says the interest is paid continuously, in a compound manner, at a rate equivalent to 9% p.a. To me, that implies the interest paid in ##\delta t## is ##r \delta t## where r = ln(1.09).

Correction: r = ln(1.09)/12. I forgot the units are months.
 
Last edited:
haruspex said:
That's not quite how I read it. The payment graph is a step function, constant during each month but incrementing at each whole month boundary. Maybe that's what you meant, but it's not what you've written.
Also, it says the interest is paid continuously, in a compound manner, at a rate equivalent to 9% p.a. To me, that implies the interest paid in ##\delta t## is ##r \delta t## where r = ln(1.09).

Logically, what you say is true, but that is typically not how it is done in Finance. There, an annual interest rate of 12%, compounded monthly, is regarded as a rate of 1% per month, even thought that produces a true annual rate of ##100 \times (1.01^{12} -1) \doteq 12.68\%##. So, in this case the continuous rate (in just about any Finance textbook) would be ##r = 0.09##. That corresponds to a true annual rate of ##100 \times (e^{.09}-1) \doteq 9.417\%##. Of course, if one works in units of months rather than years the rate is 0.09/12.

The question did say the $700 per month was paid in continuously. I suppose the issue is what to do about the $7/month increase in the savings rate. If one imposes it discretely---once per month---one ends up with a discrete model with sums instead of integrals and differences instead of derivatives. The suggestion to set up and solve a differential equation seems to indicate that something else was intended, and that was what I assumed: that the '7' was an instantaneous rate of increase.
 
  • #10
Ray Vickson said:
Logically, what you say is true, but that is typically not how it is done in Finance. There, an annual interest rate of 12%, compounded monthly, is regarded as a rate of 1% per month, even thought that produces a true annual rate of ##100 \times (1.01^{12} -1) \doteq 12.68\%##. So, in this case the continuous rate (in just about any Finance textbook) would be ##r = 0.09##. That corresponds to a true annual rate of ##100 \times (e^{.09}-1) \doteq 9.417\%##. Of course, if one works in units of months rather than years the rate is 0.09/12.
I agree it's not clear.
The question did say the $700 per month was paid in continuously. I suppose the issue is what to do about the $7/month increase in the savings rate. If one imposes it discretely---once per month---one ends up with a discrete model with sums instead of integrals and differences instead of derivatives. The suggestion to set up and solve a differential equation seems to indicate that something else was intended, and that was what I assumed: that the '7' was an instantaneous rate of increase.
In my interpretation, you still need to integrate across a month, but then sum the months.
 
  • Like
Likes   Reactions: Ray Vickson
  • #11
haruspex said:
I agree it's not clear.
In my interpretation, you still need to integrate across a month, but then sum the months.

There is one final issue: if we take the deposit rate as ##C + 7x## at time (month) ##x##, then between times ##t## and ##t+1## the total deposit is ##\int_t^{t+1} [C + 7x] \, dx = C + 7(t + \frac{1}{2}) = C+3.5 + 7t##. This does, indeed, increase at the rate of 7 $/mo, but the total deposit in month 1 is ##\$(C+3.5).## To match the problem description exactly we should not take ##C = 700## (as I did originally), but instead should use ##C = 696.5##. That would give a total deposit of $700 in month 1, $707 in month 2, etc. It does not make much of a difference to the solution: using ##700 + 7x## or ##696.5+7x## in the future-value formula yields a difference of about 1/4 month in the final answer; in other words, the first form gets to $500,000 about 1/4 month sooner than the second one.
 
  • #12
Ray Vickson said:
There is one final issue: if we take the deposit rate as ##C + 7x## at time (month) ##x##, then between times ##t## and ##t+1## the total deposit is ##\int_t^{t+1} [C + 7x] \, dx = C + 7(t + \frac{1}{2}) = C+3.5 + 7t##.
No, in month m (counting from 0), t runs from m to m+1. The deposit in that time is 700+7(m+1). (I would have said 700+7m, but it explicitly says the rate is 721 for the third month, m=2.). The complication is that interest is earned conitinuouly through the month.
One way to tackle it would be to calculate the end result that comes from the deposit in month m, then sum over m.
 
  • #13
haruspex said:
No, in month m (counting from 0), t runs from m to m+1. The deposit in that time is 700+7(m+1). (I would have said 700+7m, but it explicitly says the rate is 721 for the third month, m=2.). The complication is that interest is earned conitinuouly through the month.
One way to tackle it would be to calculate the end result that comes from the deposit in month m, then sum over m.

I take month 1 to start at time t = 0 and end at time t = 1, because it seemed most natural to me to start the clock at time 0.

Anyway, there is a bit of a mis-match between the statement of the problem and the "for example" part: one part says " He plans to save money at a
continuous rate of $700 per month." while the other part says "Such that for example in month 3 he is saving at rate $721 per month." According to the latter the savings rate in month 2 is $714 and so in month 1 is $707. There would be no month in which the saving rate was $700. This problem arises whether or not one uses a continuous or discrete-time analysis. In the continuous time case one can match the 'for example' explanation by taking the saving rate at time ##t## (months) to be ##703.5 + 7t##.

If we take the '700' to be a continuous rate but the '7' to be discrete (after dealing with the issue of whether the extra 7 comes at the start or the end of a month) we could get a DE, but it would be ugly:
\frac{dS}{dt} = \begin{cases}rS + 700, &amp; 0 &lt; t &lt;1\\<br /> rS + 707,&amp; 1 &lt; t &lt; 2\\<br /> rS + 714, &amp; 2 &lt; t &lt; 3 \\<br /> \vdots &amp; \vdots<br /> \end{cases}<br />
(or, maybe the first RHS should be ##rS + 707##, etc,)
This is doable, but sufficiently complicated that one might as well go directly to a fully discrete-time model and avoid the DE altogether. Again, in view of the suggestion to use a DE, I would guess that this is not what the problem's poser had in mind.
 

Similar threads

Replies
2
Views
2K
Replies
1
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K