t := time (units are integers)
yt := account balance in month t (units
are $)
D := monthly deposit (units are $)
I := annual interest rate
Note that time is not a continuous quantity, but discrete. Months are counted by integers. All months are considered to be the same length, even though we know all months are not. (This is a modeling assumption.)
(balance this month) = (balance last month) + (interest on last month's balance) + (monthly deposit)We need to make a further model of one of the terms, the interest, noting that the interest is based on what you owed:
(interest on last month's balance) = (balance last month)*(annual interest rate)/12Now we can translate. We replace our words with symbols, and combine the two word equations above to get
yt = yt-1 + yt-1*I/12 +DOr, simplifying,
yt = (1 + I/12)*yt-1 + DThe above equation is called a finite difference model. It is an example of a dynamical system, which is a mathematical model of some process in time.
Notice that the finite difference model could easily be rewritten as
yt+1 = (1 + I/12)*yt + Djust by adding 1 to t, that is, going one month ahead.
y1 = (1 + I/12)*y0 + Dgives us y1.
y2 = (1+ I/12)*y1 + Dgives us y2. Repeat as necessary. You could see that this might be tedious unless we used a computer. Unfortunately, the iterative method is not as powerful as the
yt+1 = a*yt + bThen
yt+1 = a*yt + betc. until we are all the way back to y0
= a*(a*yt-1 + b) + b
= a*(a*(a*yt-2 + b) + b) + b
= at+1*y0 + b*(at + ... + a + 1)or, rearranging,
yt+1 = at+1*y0 + b*(1-at+1)/(1-a)or, if you prefer yt in terms of t, which was what we were trying to find in the first place,
yt = at*y0 + b*(1-at)/(1-a)This is nice, because we only have one formula to compute to find, say, y100, instead of 100 formulas with the iterative method.
Theorem: For a finite difference equation of the form
Applying the theorem to the specific example of our savings plan means that we have a = (1 + I/12) and b = D. That givesyt+1 = a*yt + bthe solution yt is given byyt = at*y0 + b*(1-at)/(1-a)
yt = (1 + I/12)t*y0 + D*(1-(1+ I/12)t)/(-I/12)
yt = (1 + .03/12)*yt-1 + 150with an initial condition of y0 = 3,000. We will implement the iterative method in Excel and check it against the formula from the theorem.
|
|
|
|
|
|
|
|
|
|
1
|
t
|
yt (iterative)
|
yt (formula)
|
parameters
|
|||
|
2
|
0
|
3000
|
3000
|
I
|
D
|
||
|
3
|
1
|
=(1+$E$3/12)*B2 + $F$3
|
=(1+$E$3/12)^A3*$C$2 + $F$3*(1-(1+$E$3/12)^A3)/(-$E$3/12)
|
0.03
|
150
|
||
|
4
|
2
|
||||||
|
5
|
3
|
||||||
|
6
|
4
|
||||||
|
7
|
5
|
||||||
|
8
|
6
|
||||||
|
9
|
7
|
When the formulas are entered and copied down the numbers should look
like
| A | B | C | D | E | F |
G
|
|
|
1
|
t
|
yt (iterative)
|
yt(formula)
|
parameters
|
|||
|
2
|
0
|
3000.00
|
3000.00
|
I
|
D
|
||
|
3
|
1
|
3157.50
|
3157.50
|
0.03
|
150
|
||
|
4
|
2
|
3315.39
|
3315.39
|
||||
|
5
|
3
|
3473.68
|
3473.68
|
||||
|
6
|
4
|
3632.37
|
3632.37
|
||||
|
7
|
5
|
3791.45
|
3791.45
|
||||
|
8
|
6
|
3950.93
|
3950.93
|
||||
|
9
|
7
|
4110.80
|
4110.80
|
and we clearly don't have the $10,000 until 43 months!
yt = (1 + I/12)t*y0 + D*(1-(1+ I/12)t)/(-I/12)and in our case, our numbers give