Skip to main content

Difference Equations

  • Chapter
  • First Online:
Introduction to Mathematics for Economics with R
  • 733 Accesses

Abstract

In this chapter we deal with difference equations. In Sect. 10.1 we will present first-order linear difference equations. In particular, we will discuss solution by iteration (Sect. 10.1.1) and by general method (Sect. 10.1.2). In Sect. 10.2 we will learn how to solve second-order linear difference equations. Section 10.3 is devoted to systems of linear difference equations while in Sect. 10.4 we will learn how to transform high-order difference equations. Examples of applications in Economics include: a problem with interest rate, the cobweb model, the Harrod-Domar growth model, the law of motion for public debt, and the autoregressive process. Examples of functions coded from scratch include: a function to solve difference equations by iteration, a function to solve numerically systems of first-order linear difference equations, a function to plot the results of the cobweb model, and a function that simulates the law of motion for public debt.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 54.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    The code used to generate Figs. 10.2, 10.3, 10.4, and 10.5 is available in Appendix I.

  2. 2.

    The quadratic formula is in the normalized form, i.e. the coefficient of b 2 needs to be 1.

  3. 3.

    r by definition is the absolute value of the conjugate complex roots. Refer to Eqs. 9.7 and 9.9.

  4. 4.

    Even though the conclusion for the system is the same, the plot of my function slightly differs from that in Shone (2002). However, by reproducing his result with Excel as illustrated in Shone (2002, p. 220) I obtain the same simulation as with trajectory_de().

  5. 5.

    Note that we wrote (10.41) to be consistent with the previous example. However, you may find (10.42) with 0 and 1 inverted on the main diagonal, implying that the equations in (10.41) are written with a different order. However, the interpretation of the results does not change. To be noted that as we arranged the equations and consequently the matrix and the column vectors, periods in sys_folde() returns the desired period at index \( \left [1, 1 \right ] \). That is, in the example, 89 corresponds to tā€‰=ā€‰11, and consequently 144 corresponds to tā€‰=ā€‰12. For example, if you set periods = 0, the values 0 and 1, i.e. the initial values, are returned at index \( \left [1, 1 \right ] \) and \( \left [2, 1 \right ] \), respectively. Naturally the function also works if you appropriately rewrite (10.41) and consequently rewrite (10.42). However, make sure you correctly interpret the results.

  6. 6.

    This is the simplest assumption about expected price. Other possible specifications include adaptive expectations and Goodwin expectations.

References

  • Chiang, A. C., & Wainwright, K. (2005). Fundamental methods of mathematical economics (4th edn.). New York: McGraw-Hill.

    Google ScholarĀ 

  • Hyndman, R. J., & Athanasopoulos, G. (2021). Forecasting: Principles and practice. Retrieved September 27 2021, from https://otexts.com/fpp3/

    Google ScholarĀ 

  • Pfaff, B. (2008). Analysis of integrated and cointegrated time series with R (2nd edn.). New York: Springer. ISBN 0-387-27960-1. http://www.pfaffikus.de

    BookĀ  Google ScholarĀ 

  • Shone, R. (2002). Economic dynamics (2nd edn.). Cambridge: Cambridge University Press.

    BookĀ  Google ScholarĀ 

  • Simon, C. P., & Blume, L. (1994). Mathematics for economists. New York: W. W. Norton & Company.

    Google ScholarĀ 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

Ā© 2022 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Porto, M. (2022). Difference Equations. In: Introduction to Mathematics for Economics with R. Springer, Cham. https://doi.org/10.1007/978-3-031-05202-6_10

Download citation

Publish with us

Policies and ethics