Solving First-Order Linear Difference Equations: Explicit Solution, Slides of Differential Equations

An in-depth explanation of how to solve first-order linear difference equations, focusing on the explicit solution as a sum of particular and complementary solutions. topics such as the general first-order linear equation, homogeneous and inhomogeneous solutions, and the method of undetermined coefficients.

Typology: Slides

2021/2022

Uploaded on 09/12/2022

lilwayne
lilwayne 🇬🇧

4.1

(7)

242 documents

1 / 54

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lecture Notes 7: Dynamic Equations
Part A: First-Order Difference Equations
in One Variable
Peter J. Hammond
Latest revision 2020 September 24th,
typeset from dynEqLects20A.tex
University of Warwick, EC9A0 Maths for Economists, Day 7 Peter J. Hammond 1 of 54
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36

Partial preview of the text

Download Solving First-Order Linear Difference Equations: Explicit Solution and more Slides Differential Equations in PDF only on Docsity!

Lecture Notes 7: Dynamic Equations

Part A: First-Order Difference Equations

in One Variable

Peter J. Hammond

Latest revision 2020 September 24th, typeset from dynEqLects20A.tex

Lecture Outline

Introduction: Difference vs. Differential Equations First-Order Difference Equations First-Order Linear Difference Equations: Introduction General First-Order Linear Equation Particular, General, and Complementary Solutions Explicit Solution as a Sum Constant and Undetermined Coefficients Stationary States and Stability for Linear First-Order Equations Local Stability of Nonlinear First-Order Equations

Walking as a More Complicated Difference Equation

Athletics rules limit a walking step to be no longer than a stride. So a walking process that starts with the left foot might be described by the two coupled equations `m =

{ λ(r m− 1 )^ if^ m^ is odd `m− 1 if m is even and^ rm^ =

{ ρ(m− 1 )^ if^ m^ is even rm− 1 if m is odd for m = 0, 1 , 2 ,.... Or, if the length and direction of each pace are affected by the length and direction of its predecessor, bym =

{ λ(r m− 1 , m− 2 )^ if^ m^ is oddm− 1 if m is even and rm =

{ ρ(` m− 1 ,^ rm− 2 )^ if^ m^ is even rm− 1 if m is odd for University of Warwick, EC9A0 Maths for Economists, Day 7 m = 0, 1 , 2 ,.... Peter J. Hammond 4 of 54

Walking as a Differential Equation

Newtonian physics implies that a walker’s centre of mass must be a continuous function of time, described by a 3-vector valued mapping R+ 3 t 7 → (x(t), y (t), z(t)) ∈ R^3. The time domain is therefore T := R+. The same will be true for the position of, for instance, the extreme end of the walker’s left big toe. Newtonian physics requires that the acceleration 3-vector described by the second derivative (^) ddt^22 (x(t), y (t), z(t)) ∈ R^3 should be well defined for all t. The biology of survival requires it to be bounded. Actually, the motion becomes seriously uncomfortable unless the acceleration (or deceleration) is continuous — as my driving instructor taught me more than 50 years ago!

Basic Definition

Let T = Z+ 3 t 7 → xt ∈ X describe a discrete time process, with X = R (or X = Rm) as the state space. Its difference at time t is defined as ∆xt := xt+1 − xt A standard first-order difference equation takes the form xt+1 − xt = ∆xt = dt (xt ) where each dt : X → X , or equivalently, T × X 3 (t, x) 7 → dt (x)

Equivalent Recurrence Relations

Obviously, the difference equation xt+1 − xt = ∆xt = dt (xt ) is equivalent to the recurrence relation xt+1 = rt (xt ) where T × X 3 (t, x) 7 → rt (x) = x + dt (x), or equivalently, dt (x) = rt (x) − x. Thus difference equations and recurrence relations are entirely equivalent. We follow standard mathematical practice in using the notation for recurrence relations, even when discussing difference equations. We may write “difference equation” even when considering a recurrence relation.

Lecture Outline

Introduction: Difference vs. Differential Equations First-Order Difference Equations First-Order Linear Difference Equations: Introduction General First-Order Linear Equation Particular, General, and Complementary Solutions Explicit Solution as a Sum Constant and Undetermined Coefficients Stationary States and Stability for Linear First-Order Equations Local Stability of Nonlinear First-Order Equations

Application: Wealth Accumulation in Discrete Time

Consider a consumer who, in discrete time t = 0, 1 , 2 ,... : I (^) starts each period t with an amount wt of accumulated wealth; I (^) receives income yt ; I (^) spends an amount et ; I (^) earns interest on the residual wealth wt + yt − et at the rate rt. The process of wealth accumulation is then described by any of the equivalent equations wt+1 = (1 + rt )(wt + yt − et ) = ρt (wt − xt ) = ρt (wt + st ) where, at each time t, I (^) ρt := 1 + rt is the interest factor; I (^) xt = et − yt denotes net expenditure; I (^) st = yt − et = −xt denotes net saving.

Present Discounted Value (PDV)

We transform the difference equation wt+1 = ρt (wt − xt ) by using the compound interest factor Rt = ∏t k−=0^1 ρk in order to discount both future wealth and expenditure. To do so, define new variables ωt , ξt for the present discounted values (PDVs) of, respectively:

  1. wealth wt at time t as ωt := (1/Rt )wt ;
  2. net expenditure xt at time t as ξt := (1/Rt )xt. With these new variables, the wealth equation wt+1 = ρt (wt − xt ) becomes Rt+1ωt+1 = ρt Rt (ωt − ξt ) But Rt+1 = ρt Rt , so eliminating this common factor reduces the equation to ωt+1 = ωt − ξt , with the evident solution ωt = ω 0 − ∑t k−=0^1 ξk for k = 1, 2 ,.. ..

Lecture Outline

Introduction: Difference vs. Differential Equations First-Order Difference Equations First-Order Linear Difference Equations: Introduction General First-Order Linear Equation Particular, General, and Complementary Solutions Explicit Solution as a Sum Constant and Undetermined Coefficients Stationary States and Stability for Linear First-Order Equations Local Stability of Nonlinear First-Order Equations

Matrix Form

The matrix form of the difference equation is Cx = f, where:

  1. C is the T × (T + 1) coefficient matrix whose elements are

cst =

−as if t = s 1 if t = s + 1 0 otherwise for s = 1, 2 ,... , T and t = 0, 1 , 2 ,... , T ;

  1. x is the T + 1-dimensional column vector (xt )Tt= of endogenous unknowns, to be determined;
  2. f is the T -dimensional column vector (ft )Tt= of exogenous shocks.

Partitioned Matrix Form

The matrix equation Cx = f can be written in partitioned form as (U eT ) (xT^ −^1 xT

= f where:

  1. U is an upper triangular T × T matrix;
  2. eT = (0, 0 , 0 ,... , 0 , 1)>^ is the T th column vector of the canonical basis of the vector space RT^ ;
  3. xT^ −^1 denotes the column vector which is the transpose of the row T -vector (x 0 , x 1 , x 2 ,... , xT − 2 , xT − 1 ). In fact the matrix U satisfies (U, eT ) = (− diag(a 1 , a 2 ,... , aT ), eT ) + ( (^0) T × 1 , IT ×T ) Hence there are T independent equations in T + 1 unknowns, leaving one degree of freedom in the solution.

A Terminal Condition

Alternatively, a terminal condition for the difference equation xt − xt− 1 = ft specifies an exogenous value ¯xT for the value xT at the terminal time T. It leads to a unique solution as a backward sum xt = ¯xT − ∑T s=0^ −t −^1 fT −s of the exogenously specified I (^) terminal state ¯xT ; I (^) preceding backward differences −fT −s (s = 0, 1 ,... , T − t − 1).

Lecture Outline

Introduction: Difference vs. Differential Equations First-Order Difference Equations First-Order Linear Difference Equations: Introduction General First-Order Linear Equation Particular, General, and Complementary Solutions Explicit Solution as a Sum Constant and Undetermined Coefficients Stationary States and Stability for Linear First-Order Equations Local Stability of Nonlinear First-Order Equations