Go to CCP Homepage Go to Materials Page Go to Linear Algebra Materials Go to Table of Contents
Go Back One Page Go Forward One Page

Difference Equations

Part 1: Examples and Explorations

v

In this module our principal object of study is the sequence, that is, a list of numbers of the form

y0, y1, y2, y3, ... ,

which goes on forever. We abbreviate such a sequence as {yk}, with the understanding that the index k takes all nonnegative integer values, 0, 1, 2, and so on.

We will focus on sequences defined by difference equations -- for which we give two examples in this section, leading to careful definitions in subsequent sections. But first we examine how each sequence can be thought of as a "vector" in a "space of sequences."

  1. Let S be the set of all sequences of real numbers. Explain why S is a vector space -- that is, why S is closed under addition and scalar multiplication.

Example 1: Loan Repayment. Can you afford to buy the car of your dreams? Suppose that car costs $20,000, and you can afford to pay $450 per month. Your credit union is offering new car loans at 6.9% interest. How many months would it take to pay off this loan?

Let's write y0 = 20000 for the initial balance of the loan, and then calculate each successive monthly balance y1, y2, and so on. When the balance reaches 0, the loan is paid off. Since we are unlikely to land right on 0, the last payment may be less than $450.

To find y1, we have to add the interest accrued in the first month, and then subtract the first payment. The monthly interest rate is one-twelfth the yearly rate, so

y1 = 20000 + (0.069/12) 20000 - 450,

or $19,665. Then we calculate y2 in the same way:

y2 = 19665 + (0.069/12) 19665 - 450,

or $19,328.07. Note that each month's balance is computed from the preceding month's balance.

  1. Find a formula for yk+1 in terms of yk.

  2. Use your formula to answer the question about how many months it would take to pay off the loan. How big would the last payment be?

  3. Plot the sequence {yk} as a function of k, and confirm visually your answer for when the last payment would be made.

  4. Describe in words what you observe about the shape of the graph of the sequence.

Example 2: A National Economy. A simplified model of a national economy has the form

yk+2 - a(1 + b) yk+1 + ab yk = 1,

where yk is the total national income during year k, a is the marginal propensity to consume (a constant < 1), and b is a constant of adjustment, which describes how the rate of private investment is affected by changes in consumer spending. (The original model was formulated by the economist Paul A. Samuelson.)

Note that there isn't any obvious starting place for the sequence of national incomes -- any year could be "year 0," and any amount could be the starting income. We have a hint about reasonable sizes for numbers from the constant term on the right: The left-hand side is a weighted sum of incomes, and it has to add up to 1. Thus, it is reasonable to assume that the monetary unit has been scaled so that the order of magnitude of an annual income is 1. Think of one unit representing a trillion dollars, say.

Note also that the formula allows us to compute yk+2 in terms of yk+1 and yk. In order to generate a sequence from this formula, we have to know both y0 and y1. That is, the formula gives income for a current year in terms of income the year before and the year before that.

  1. Start with a = 0.9, b = 0.5, y0 = 1, and y1 = 1.1. Calculate national incomes for 30 years, and plot the sequence as a function of k. What do you observe?

  2. Experiment with starting amounts. What happens if the income drops to 0 in year 1? What happens if it is 0 in year 0, but positive in year 1? Try other combinations as well. How much influence do these starting amounts have on the eventual state of the economy?

  3. Set the starting amounts to give whichever plot you found most interesting in the preceding step. Now experiment with the adjustment constant b, both raising it and lowering it (but keep it positive). How much influence does b have on the eventual state of the economy?

  4. Finally, return b to its first value of 0.5, and experiment with a, trying a range of values between 0 and 1. How much influence does a have on the eventual state of the economy?

  5. Can you quantify your observation in step 9 in a statement that relates "eventual state" to the actual value of a? If not, just go on -- we will return to this question in Part 3.

Our first two examples happen to be about economics -- micro and macro, respectively. However, sequences also play important roles in engineering, science, and other areas of application of mathematics, as do the formulas that generate the sequences and analysis of those formulas by linear algebra.

Go to CCP Homepage Go to Materials Page Go to Linear Algebra Materials Go to Table of Contents
Go Back One Page Go Forward One Page


modules at math.duke.edu Copyright CCP and the author(s), 1999