econ 600: mathematical economics

199
1 Econ 600: Mathematical Economics July/August 2006 Stephen Hutton

Upload: chase

Post on 17-Jan-2016

107 views

Category:

Documents


1 download

DESCRIPTION

Econ 600: Mathematical Economics. July/August 2006 Stephen Hutton. Why optimization?. Almost all economics is about solving constrained optimization problems. Most economic models start by writing down an objective function. Utility maximization, profit maximization, cost minimization, etc. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Econ 600: Mathematical Economics

1

Econ 600: Mathematical Economics

July/August 2006

Stephen Hutton

Page 2: Econ 600: Mathematical Economics

2

Why optimization?

• Almost all economics is about solving constrained optimization problems. Most economic models start by writing down an objective function.

• Utility maximization, profit maximization, cost minimization, etc.

• Static optimization: most common in microeconomics

• Dynamic optimization: most common in macroeconomics

Page 3: Econ 600: Mathematical Economics

3

My approach to course

• Focus on intuitive explanation of most important concepts, rather than formal proofs.

• Motivate with relevant examples• Practice problems and using tools in problem

sets• Assumes some basic math background (people

with strong background might not find course useful)

• For more details, see course notes, textbooks, future courses

• Goal of course: introduction to these concepts

Page 4: Econ 600: Mathematical Economics

4

Order of material

• Course will skip around notes a bit during the static course; specifically, I’ll cover the first half of lecture 1, then give some definitions from lecture 3, then go back to lecture 1 and do the rest in order.

• Sorry!

Page 5: Econ 600: Mathematical Economics

5

Why not basic optimization?

• Simplest method of unconstrained optimization (set deriv = 0) often fails

• Might not identify the optima, or optima might not exist

• Solution unbounded

• Function not always differentiable

• Function not always continuous

• Multiple local optima

Page 6: Econ 600: Mathematical Economics

6

Norms and Metrics

• It is useful to have some idea of “distance” or “closeness” in vector space

• The most common measure is Euclidean distance; this is sufficient for our purposes (dealing with n-dimensional real numbers)

• General requirements of norm: anything that satisfies conditions 1), 2), 3) (see notes)

Page 7: Econ 600: Mathematical Economics

7

Continuity• General intuitive sense of continuity (no gaps or jumps). Whenever

x is close to x’, f(x) is close to f(x’)• Formal definitions:

A sequence of elements, {xn} is said to converge to a point, x in Rn if for every > 0 there is a number, N such that for all n < N, ||xn-x|| < .

• A function f:RnRn is continuous at a point, x if for ALL sequences {xn} converging to x, the derived sequence of points in the target space {f((xn)} converges to the point f(x).

• A function is continuous if it is continuous at all points in its domain.

• What does this mean in 2d? Sequence of points converging from below, sequence of points converging from above. Holds true in higher levels of dimensionality.

Page 8: Econ 600: Mathematical Economics

8

Continuity 2

• Why continuity? Needed to guarantee existence of solution

• So typically assume continuity on functions to guarantee (with other assumptions) that a solution to the problem exists

• Sometimes continuity is too strong. To guarantee a maximum, upper semi-continuity is enough. To guarantee a minimum, lower semi-continuity

• Upper semi-continuity: For all xn x, limn f(xn) ≤ f(x)• Lower semi-continuity: For all xn x, limn f(xn) f(x)• Note that if these hold with equality, we have continuity.• Note, figure 6 in notes is wrong

Page 9: Econ 600: Mathematical Economics

9

Open sets(notes from lecture 3)

• For many set definitions and proofs we use the concept of an open ball of arbitrarily small size.

• An open ball is a set of points (or vectors) within a given distance from a particular point (or vector). Formally:Let ε be a small real number. Bε(x)={y| ||x-y||< ε}.

• A set of points S in Rn is open if for all points in S, there exists an open ball that is entirely contained within S. Eg (1,2) vs (1,2].

• Any union of open sets is open.• Any finite intersection of open sets is open.

Page 10: Econ 600: Mathematical Economics

10

Interior, closed set(notes in lecture 3)

• The interior of a set S is the largest open set contained in S. Formally, Int(S) = UiSi where Si is an open subset of S.

• If S is open, Int(S)=S• A set is closed if all sequences within the set

converge to points within the set. Formally, fix a set S and let {xm} be any sequence of elements in S. If limmxm=r where r is in S, for all convergent sequences in S, then S is closed.

• S is closed if and only if SC is open.

Page 11: Econ 600: Mathematical Economics

11

Boundary, bounded, compact(notes in lecture 3)

• The boundary of a set S [denoted B(S)] is the set of points such that for all ε>0, Bε(x)∩S is not empty and Bε(x)∩SC is not empty. Ie any open ball contains points both in S and not in S.

• If S is closed, S=B(S)• A set S is bounded if the distance between all

objects in the set is finite.• A set is compact if it is closed and bounded.• These definitions correspond to their

commonsense interpretations.

Page 12: Econ 600: Mathematical Economics

12

Weierstrass’s Theorem(notes in lecture 3)

• Gives us a sufficient condition to ensure that a solution to a constrained optimization problem exists. If the constraint set C is compact and the function f is continuous, then there always exists at least one solution tomax f(x) s.t. x is in C

• Formally: Let f:RnR be continuous. If C is a compact subset of Rn, then there exists x* in C, y* in C s.t. f(x*)f(x)f(y*) for all x in C.

Page 13: Econ 600: Mathematical Economics

13

Vector geometry

• Want to extend intuition about slope = 0 idea of optimum to multiple dimensions. We need some vector tools to do this

• Inner product: x·y=(x1y1+x2y2+…+xnyn)• Euclidean norm and inner product related: ||x||2=x·x• Two vectors are orthogonal (perpendicular) if x·y = 0.• Inner product of two vectors v, w is v’w in matrix

notation.• v’w > 0 then v, w form acute angle• v’w < 0 then v, w form obtuse angle.• v’w = 0 then v, w orthogonal.

Page 14: Econ 600: Mathematical Economics

14

Linear functions

• A function f:VW is linear if for any two real numbers a,b and any two elements v,v’ in V we have f(av+bv’) = af(v)+bf(v’)

• Note that our usual interpretation of “linear” functions in R1 (f(x)=mx+b) are not generally linear, these are affine. (Only linear if b=0).

• Every linear function defined on Rn can be represented by an n-dimensional vector (f1,f2,…fn) with the feature that f(x) = Σfixi

• Ie value of function at x is inner product of defining vector with x.

• [Note, in every situation we can imagine dealing with, functionals are also functions.]

Page 15: Econ 600: Mathematical Economics

15

Hyperplanes

• A hyperplane is the set of points given by {x:f(x)=c} where f is a linear functional and c is some real number.

• Eg1: For R2 a typical hyperplane is a straight line.

• Eg2: For R3 a typical hyperplane is a plane.• Think about a hyperplane as one of the level

sets of the linear functional f. As we vary c, we change level sets.

• The defining vector of f(x) is orthogonal to the hyperplane.

Page 16: Econ 600: Mathematical Economics

16

Separating Hyperplanes

• A half-space is the set of points on one side of a hyperplane. Formally: HS(f) = {x:f(x)c} or HS(f)= {x:f(x)≤c}.

• Consider any two disjoint sets: when can we construct a hyperplane that separates the sets?

• Examples in notes.• If C lies in a half-space defined by H and H

contains a point on the boundary of C, then H is a supporting hyperplane of C.

Page 17: Econ 600: Mathematical Economics

17

Convex sets

• A set is convex if the convex combination of all points in a set is also in the set.

• No such thing as a concave set. Related but different idea to convex/concave functions.

• Formally: a set C in Rn is convex if for all x, y in C, for all between [0,1] we have x+(1-)y is in C.

• Any convex set can be represented as intersection of halfspaces defined by supporting hyperplanes.

• Any halfspace is a convex set.

Page 18: Econ 600: Mathematical Economics

18

Separating Hyperplanes 2

• Separating hyperplane theorem: Suppose X, Y are non-empty convex sets in Rn such that the interior of Y∩X is empty and the interior of Y is not empty.Then there exists a vector a in Rn which is the defining vector of a separating hyperplane between X and Y.Proof: in texts.

• Applications: general equilibrium theory, second fundamental theorem of welfare economics. Conditions where a pareto optimum allocation can be supported as a price equilibrium. Need convex preferences to be able to guarantee that there is a price ratio (a hyperplane) that can sustain an equilibrium.

Page 19: Econ 600: Mathematical Economics

19

Graphs

• The graph is what you normally see when you plot a function.

• Formally: the graph of a function from V to W is the ordered pair of elements,

)}(,:),{( vfwVvwv

Page 20: Econ 600: Mathematical Economics

20

Derivatives

• We already know from basic calculus that a necessary condition for x* to be an unconstrained maximum of a function f is that its derivative be zero (if the derivative exists) at x*.

• A derivative tells us something about the slope of the graph of the function.

• We can also think about the derivative as telling us the slope of the supporting hyperplane to the graph of f at the point (x,f(x)).(see notes)

Page 21: Econ 600: Mathematical Economics

21

Multidimensional derivativesand gradients

• We can extend what we know about derivatives from single-dimensional space to multi-dimensional space directly.

• The gradient of f at x is just the n-dimensional (column) vector which lists all the partial derivatives if they exist.

• This nx1 matrix is also known as the Jacobian.• The derivative of f is the transpose of the gradient.• The gradient can be interpreted as a supporting

hyperplane of the graph of f.

)',...,(21 ndx

f

dx

f

dx

ff

Page 22: Econ 600: Mathematical Economics

22

Second order derivatives

• We can think about the second derivative of multidimensional functions directly as in the single dimension case.

• The first derivative of the function f was an nx1 vector; the second derivative is an nxn matrix known as the Hessian.

• If f is twice continuously differentiable (ie all elements of Hessian exist) then the Hessian matrix is symmetric (second derivatives are irrespective of order).

2

2

1

2

1

2

2

2

2

)()(

)()(

)(1

nn

n

dx

xf

dxdx

xf

dxdx

xf

dx

xf

xf

Page 23: Econ 600: Mathematical Economics

23

Homogeneous functions

• Certain functions in Rn are particularly well-behaved and have useful properties that we can exploit without having to prove them every time.

• A function f:RnR is homogeneous of degree k if f(tx1,tx2,….,tkf(x).In practice we will deal with homogeneous functions of degree 0 and degree 1.Eg: demand function is homog degree 0 in prices (in general equilibrium) or in prices and wealth: double all prices and income has no impact on demand.

• Homogeneous functions allow us to determine the entire behavior of the function from only knowing about the behavior in a small ball around the originWhy? Because for any point x’, we can define x’ as a scalar multiple of some point x it that ball, so x’=tx

• If k=1 we say that f is linearly homogeneous.• Euler’s theorem: if f is h.o.d. k then

)()( xkfxfx

Page 24: Econ 600: Mathematical Economics

24

Homogenous functions 2

• A ray through x is the line (or hyperplane) running through x and the origin running forever in both directions.Formally: a ray is the set {x’ in Rn|x’=tx, for t in R}

• The gradient of a homogenous function is the essentially the same along any ray (linked by a scalar multiple). Ie the gradient at x’ is linearly dependent with the gradient at x’.Thus level sets along any ray have the same slope.Application: homogeneous utility functions rule out income effects in demand. (At constant prices, consumers demand goods in the same proportion as income changes.)

Page 25: Econ 600: Mathematical Economics

25

Homothetic functions

• A function f:R+nR+ is homothetic if f(x)=h(v(x))

where h:R+R+ is strictly increasing and v:R+R+ is h.o.d. k.

• Application: we often assume that preferences are homothetic. This gives that indifference sets are related by proportional expansion along rays.

• This means that we can deduce the consumer’s entire preference relation from a single indifference set.

Page 26: Econ 600: Mathematical Economics

26

More properties of gradients(secondary importance)

• Consider a continuously differentiable function, f:RnR. The gradient of f (Df(x)) is a vector in Rn which points in the direction of greatest increase of f moving from the point x.

• Define a (very small) vector v s.t. Df(x)’v=0 (ie v is orthogonal to the gradient). Then the vector v is moving us away from x in a direction that adds zero to the value of f(x). Thus, any points on the vector v are at the same level of f(x). So we have a method of finding the level sets of f(x) – by solving Df(x)’v=0. Also, v is tangent to the level set of f(x).

• The direction of greatest increase of a function at a point x is at right angles to the level set at x.

Page 27: Econ 600: Mathematical Economics

27

Upper contour sets

• The level sets of a function are the set of points which yield the same value of the function. Formally, for f:RnR the level set is {x:f(x)=c}Eg: indifference curves are level sets of utility functions.

• The upper contour set is the set of points above the level set, ie the set {x:f(x) c}.

Page 28: Econ 600: Mathematical Economics

28

Concave functions

• For any two points, we can trace out the line of points joining them through tx+(1-t)y, varying t between 0 and 1. This is a convex combination of x and y.

• A function is concave if for all x, y:

ie line joining any two points is (weakly) less than the graph of the function between those two points

• A function is strictly concave if the inequality is strict for all x,y.

)()1()())1((,, yftxtfyttxfRyx n

Page 29: Econ 600: Mathematical Economics

29

Convex functions

• A function is convex if for all x, y:

ie line joining any two points is (weakly) greater than the graph of the function between the points.

• A function is strictly convex if the inequality is strict for all x,y.

• A function f is convex if –f is concave.• The upper contour set of a convex function is a

convex set. The lower contour set of a concave function is a convex set.

)()1()())1((,, yftxtfyttxfRyx n

Page 30: Econ 600: Mathematical Economics

30

Concavity, convexity and second derivatives

• If f:RR and f is C2, then f is concave iff f’’(x)≤0 for all x. (And strictly concave for strict inequality).

• If f:RR and f is C2, then f is convex iff f’’(x)0 for all x. (And strictly convex for strict inequality).

Page 31: Econ 600: Mathematical Economics

31

Concave functions and gradients

• Any concave function lies below its gradient (or below its subgradient if f is not C1).

• Any convex function lies above its gradient (or above subgradient if f is not C1.

• Graphically: function lies below/above line tangent to graph at any point.

Page 32: Econ 600: Mathematical Economics

32

Negative and positive (semi-) definite

• Consider any square symmetric matrix A.• A is negative semi-definite if x’Ax≤0 for all

x.If in addition x’Ax=0 implies that x=0, then A is negative definite.

• A is positive semi-definite if x’Ax0 for all x.If in addition x’Ax=0 implies that x=0, then A is positive definite.

Page 33: Econ 600: Mathematical Economics

33

Principal minors and nsd/psd

• Let A be a square matrix. The k’th order leading principal minor of A is the determinant of the kxk matrix obtained by deleting the last n-k rows and columns.

• An nxn square symmetric matrix is positive definite if its n leading principal minors are strictly positive.

• An nxn square symmetric matrix is negative definite if its n leading principal minors are alternate in sign with a11 < 0.

• [There are conditions for getting nsd/psd from principal minors.]

Page 34: Econ 600: Mathematical Economics

34

Reminder: determinant of a 3x3 matrix

• You won’t have to take the determinant of a matrix bigger than 3x3 without a computer, but for 3x3:

113223332112312213

322113312312332211

333231

232221

131211

aaaaaaaaa

aaaaaaaaaA

aaa

aaa

aaa

A

Page 35: Econ 600: Mathematical Economics

35

Concavity/convexity and nd/pd

• Any ease way to identify if a function is convex or concave is from the Hessian matrix.

• Suppose f:RnR is C2. Then:• f is strictly concave iff the Hessian matrix is

negative definite for all x.• f is concave iff the Hessian matrix is negative

semi-definite for all x.• f is strictly convex iff the Hessian matrix is

positive definite for all x.• f is convex iff the Hessian matrix is positive

semi-definite for all x.

Page 36: Econ 600: Mathematical Economics

36

Quasi-concavity

• A function is quasi-concave if f(tx + (1-t)y)min{f(x),f(y)} for x,y in Rn, 0≤t≤1

• Alternatively: a function is quasi-concave if its upper contour sets are convex sets.

• A function is strictly quasi-concave if in addition f(tx + (1-t)y)=min{f(x),f(y)} for 0<t<1 implies that x=y

• All concave functions are quasi-concave (but not vice versa).

• [Why quasi-concavity? Strictly quasi-concave functions have a unique maximum.]

Page 37: Econ 600: Mathematical Economics

37

Quasi-convexity

• A function is quasi-convex if f(tx + (1-t)y) ≤max{f(x),f(y)} for x,y in Rn, 0≤t≤1

• Alternatively: a function is convex if its lower contour sets are convex sets.

• A function is strictly quasi-convex if in addition f(tx + (1-t)y)=max{f(x),f(y)} for 0<t<1 implies that x=y

• All convex functions are quasi-convex (but not vice versa).

• [Why quasi-convexity? Strictly quasi-convex functions have a unique miniumum.]

Page 38: Econ 600: Mathematical Economics

38

Bordered Hessian

• The bordered hessian matrix H is just the hessian matrix next to the Jacobian and its transpose:

• If the leading principal minors of H from k=3 onwards alternate in sign with the first lpm>0, then f is quasi-concave. If they are all negative, then f is quasi-convex.

n

n

x

ff

x

fx

f

x

f

H2

1

1

0

Page 39: Econ 600: Mathematical Economics

39

Concavity and monotonic transformations

• (Not in the lecture notes, but useful for solving some of the problem set problems).

• The sum of two concave functions is concave (proof in PS2).

• Any monotonic transformation of a concave function is quasiconcave (though not necessarily concave). Formally, if h(x)=g(f(x)), where f(x) is concave and g(x) is monotonic, then h(x) is quasi-concave.

• Useful trick: the ln(x) function is a monotonic transformation.

Page 40: Econ 600: Mathematical Economics

40

Unconstrained optimization

• If x* is a solution to the problem maxxf(x), x is in Rn, what can we say about characteristics of x*?

• A point x is a global maximum of f if for all x’ in Rn, f(x)f(x’).

• A point x is a local maximum of f if there exists an open ball of positive radius around x, Bε(x) s.t. for all x’ in the ball, f(x) f(x’).

• If x is a global maximum then it is a local maximum (but not necessarily vice versa).

• If f is C1, then if f is a local maximum of f, then the gradient of f at x = 0. [Necessary but not sufficient.]This is the direct extension of the single dimension case.

Page 41: Econ 600: Mathematical Economics

41

Unconstrained optimization 2

• If x is a local maximum of f, then there is an open ball around x, Bε(x) s.t. f is concave on Bε(x).

• If x is a local minimum of f, then there is an open ball around x, Bε(x) s.t. f is convex on Bε(x).

• Suppose f is C2. If x is a local maximum, then the Hessian of f at x is negative semi-definite.

• Suppose f is C2. If x is a local minimum, then the Hessian of f at x is positive semi-definite.

• To identify a global max, we either solve for all local maxima and then compare them, or look for additional features on f that guarantee that any local max are global.

Page 42: Econ 600: Mathematical Economics

42

Unconstrained optimization 3

• If f: RnR is concave and C1, then Df(x)=0 implies that x is a global maximum of f. (And x being a global maximum implies that the gradient is zero.) This is both a necessary and sufficient condition.

• In general, we only really look at maximization, since all minimization problems can be turned into maximization problems by looking at –f.

• x solves max f(x) if and only if x solves min f(x).

Page 43: Econ 600: Mathematical Economics

43

Non-differentiable functions(secondary importance)

• In economics, we rarely have to deal with non-differentiable functions; normally we assume these away.

• The superdifferential of a concave function f at a point x is the set of all supporting hyperplanes of the graph of f at the point (x*,f(x*)).

• A supergradient of a function f at a point x* is an element of the superdiffential of f at x*.

• If x* is an unconstrained local maximum of a function f:RnR, then the vector of n zeros must be an element of the superdifferential of f at x*.

• [And equivalently subdifferential, subgradient, local minimum for convex functions.]

Page 44: Econ 600: Mathematical Economics

44

Constrained optimization• General form of constrained optimization

• Normally we write the constraint by writing out restrictions (eg x 1) rather than using set notation.

• Sometimes (for equality constraints) it is more convenient to solve problems by substituting the constraint(s) into the objective function, and so solving an unconstrained optimization problem.

• Most common restrictions: equality or inequality constraints.

• Eg: Manager trying to induce worker to provide optimal effort (moral hazard contract).

Cxxf ),(max

cxgtsxf )(..),(max

Page 45: Econ 600: Mathematical Economics

45

Constrained optimization 2

• No reason why can only have one restriction. Can have any number of constraints, which may be of any form. Most typically we use equality and inequality constraints; these are easier to solve analytically than constraints that x belong to some general set.

• These restrictions define the constraint set.• Most general notation, while using only inequality

constraints:

where G(x) is a mx1 vector of inequality constraints (m is number of constraints).

• Eg: For the restrictions 3x1+x2≤10, x12, we have:

0)(..)(max xGtsxfx

2

310)(

1

21

x

xxxG

Page 46: Econ 600: Mathematical Economics

46

Constrained optimization 3

• We will need limitations on the constraint set to guarantee solution of existence (Weierstrass’ theorem).

• What can happen if constraint set not convex, closed? (examples)

• Denoting constraint sets:

characterizes all values of x in Rn where f(x) c

}0)(|{ cxfRxC n

Page 47: Econ 600: Mathematical Economics

47

General typology of constrained maximization

• Unconstrained maximization. C is just the whole vector space that x lies in (usually Rn). We know how to solve these.

• Lagrange Maximization problems. Here the constraint set is defined solely by equality constraints.

• Linear programming problems. Not covered in this course.

• Kuhn-Tucker problems. These involve inequality constraints. Sometimes we also allow equality constraints, but we focus on inequality constraints. (Any problem with equality constraints could be transformed by substitution to deal only with inequality constraints.)

Page 48: Econ 600: Mathematical Economics

48

Lagrange problems

• Covered briefly here, mostly to compare and contrast with Kuhn-Tucker.

• Canonical Lagrange problem is of form:

• Often we have a problem with inequality constraints, but we can use economic logic to show that at our solution the constraints will bind, and so we can solve the problem as if we had equality constraints.

• Eg: Consumer utility maximization; if utility function is increasing in all goods, then consumer will spend all income. So budget constraint px≤w becomes px=w.

nnnx RRGRxxGtsxf :,,0)(..)(max

Page 49: Econ 600: Mathematical Economics

49

Lagrange problems 2

• Lagrange theorem: in the canonical Lagrange problem (CL) above, suppose that f and G are C1 and suppose that the nxm matrix DG(x*) has rank m. Then if x* solves CL, there exists a vector λ* in Rn such that Df(x*) + DG(x*) λ*=0. Ie:

• This is just a general form of writing what we know from solving Lagrange problems: we get n FOCs that all equal zero at the solution.

• Rank m requirement is called “Constraint qualification”, we will come back to this with Kuhn Tucker. But this is a necessary (not sufficient) condition for the existence of Lagrange Multipliers.

m

j jj xgxf1

0**)(*)(

Page 50: Econ 600: Mathematical Economics

50

Basic example:

• max f(x1,x2) s.t. g1(x1,x2) = c1, g2(x1,x2)=c2

• L = f(x1,x2)+λ1(g1(x1,x2)-c1)+λ2(g2(x1,x2)-c2)• FOCs:

x1: f1(x1,x2) + λ1g11(x1,x2) + λ2g2

1(x1,x2) =0x2: f2(x1,x2) + λ1g1

2(x1,x2) + λ2g22(x1,x2) =0

• Plus constraints:λ1: g1(x1,x2) – c1 = 0λ2: g2(x1,x2) – c2 = 0

Page 51: Econ 600: Mathematical Economics

51

Lagrange problems 3

• We can also view the FOCs from the theorem as:

• Ie we can express the gradient of the objective function as a linear combination of the gradients of the constraint functions, where the weights are determined by λ*. (see diagram in notes)

• Note that no claims are made about the sign of λ* (but sign will be more important in KT).

m

j jj xgxf1

**)(*)(

Page 52: Econ 600: Mathematical Economics

52

Kuhn Tucker 1

• The most common form of constrained optimization in economics takes the form:

• (Note that we can include non-negativity constraints inside the G(x) vector, or not.)

• Examples: utility maximization.

• Cost minimization

nnnx RRGRxxxGtsxf :,,0,0)(..)(max

Page 53: Econ 600: Mathematical Economics

53

Kuhn Tucker 2

• Key problem with inequality constraints: solution to problem might be on boundary of constraint, or might be internal. (see diagram in notes)

• Main advance of KT: sets up necessary conditions for optimum in situations where constraints bind, and for situations where they don’t. Then compare between these cases.

• Basic idea: if constraints bind at a solution, then the value of the function must decrease as we move away from the constraint. So if at constraint x≤c, we can’t be at a maximum unless f’(x)0 at that point. If constraint is x c, we can’t be at a maximum unless f’(x)≤0 at that point. Otherwise, we could increase the value of the function without violating any of the constraints.

Page 54: Econ 600: Mathematical Economics

54

Kuhn-Tucker 3• We say a weak inequality constraint is binding if the constraint

holds with equality.• Unlike Lagrange problems, in KT problems, constraints might bind a

solution, or they might not (if we have an internal solution). If a particular constraint does not bind, then its multiplier is zero; if the constraint does bind, then the multiplier is non-zero (and is >0 or <0 depending on our notational formulation of the problem).

• We can think of the multiplier on a constraint as being the shadow value of relaxing that constraint.

• Main new thing to deal with; complementary slackness conditions. Complementary slackness conditions are a way of saying that either a) a particular constraint is binding (and so the respective multiplier for that constraint is non-zero), which implies a condition on the slope of the function at the constraint (it must be increasing towards the constraint) b) a constraint does not bind (so we must be in an internal solution, with a FOC that equals zero).

Page 55: Econ 600: Mathematical Economics

55

Example 1

• Max f(x) s.t. 10-x0, x 0L: f(x) + λ(10-x)FOCsx: f’(x)- λ ≤0λ: 10-x 0CS:CS1: (f’(x)-λ)x=0CS2: (10-x)λ=0

Page 56: Econ 600: Mathematical Economics

56

Example 1, contd

• Case 1, strict interior. x>0, x<10 From CS2, we have λ=0.From CS1, we have f’(x) = 0. (ie unconstrained optimum)

• Case 2, left boundary, x=0.From CS2, we have λ=0.From FOC1 (x) we need f’(x) ≤ 0.

• Case 3, right boundary, x=0.From CS1, we have f’(x) = λ, and we know λ0 by construction, so we must have f’(x) 0.

• Thus, we can use the KT method to reject any candidate cases that don’t have the right slope.

Page 57: Econ 600: Mathematical Economics

57

Solving KT problems• Two methods, basically identical but slightly different in how they

handle non-negativity constraints.• Method 1 (treat non-negativity constraints as different from other

conditions)• Write the Lagrangean with a multiplier for each constraint other than

non-negativity constraints on choice variables. If we write the constraints in the Lagrangean as g(x)0, we should add (not substract) the multipliers in the Lagrangean, assume the multipliers λ0, and this will make the FOCs for x non-positive, and the FOCs for the multiplers λ non-negative.

• Take FOCs for each choice variable and each multiplier.• Take CS conditions from the FOC for each choice variable that has

a non-negativity constraint, and for each multiplier.• Take cases for different possibilities of constraints binding; reject

infeasible cases, compare feasible cases.

Page 58: Econ 600: Mathematical Economics

58

Solving KT problems 2

• Second method: treat non-negativity constraints as the same as any other constraint; functionally the same but doesn’t take shortcuts.

• Write the Lagrangean with a multiplier for each constraint. This will give us more multipliers than the previous method.

• Take FOCs for each choice variable and each multiplier.• Take CS conditions for each multiplier. This gives us the

same number of CS conditions as the previous method.• Take cases for different possibilities of constraints

binding; reject infeasible cases, compare feasible cases.

Page 59: Econ 600: Mathematical Economics

59

Example 2, method 1

• Max x2 s.t. x0, x≤2L: x2 + λ(2-x)FOCs:

x: 2x - λ ≤ 0λ: (2-x) 0

CS:(2x + λ)x = 0(2-x)λ = 0

• Case 1, internal solution, x>0, λ=0: contradiction from FOC1 rules this case out.

• Case 2, left boundary, x=0, λ=0. Consistent, but turns out to be a minimum.

• Case 3, right boundary, λ > 0, x>0. CS2 implies x=2.

Page 60: Econ 600: Mathematical Economics

60

Example 2, method 2• Max x2 s.t. x0, x≤2

L: x2 + λ1(2-x) + λ2(x) FOCs:

x: 2x – λ1 + λ2 ≤ 0λ1: (2-x) 0λ2: x 0

CS:(2-x)λ1 = 0xλ2= 0

• Case 1, internal solution, λ1=0, λ2=0: From FOC1, consistent only if x=0 (ie actually case 2)

• Case 2, left boundary, λ1=0, λ2>0: From CS2, x=0. Consistent, but turns out to be a minimum.

• Case 3, right boundary, λ1 > 0, λ2=0. CS1 implies x=2.• Case 4, λ1 > 0, λ2>0: from CS1 and CS2, clearly contradictory

(0=x=2).

Page 61: Econ 600: Mathematical Economics

61

Sign issues

• There are multiple ways of setting up the KT Lagrangean using different signs.

• One way is as above: in the Lagrangean, add λg(x) terms, write the g(x) terms as 0, assume the multipliers λi0, which implies that the FOC terms are ≤0 for choice variables and 0 for multipliers. The lecture notes (mostly) use this method.

• Another way is to subtract the λg(x) terms in L, and write the g(x) terms as ≤ 0, assume implies λi0, which implies the FOC terms are ≤0 for choice variables and 0 for multipliers.SB uses this method.

• Whatever method you choose, be consistent.

Page 62: Econ 600: Mathematical Economics

62

Example 1, SB signing

• Max f(x) s.t. 10-x0, x 0L: f(x) - λ(x-10)FOCsx: f’(x)- λ ≤0λ: -(x-10)0CS:CS1: (f’(x)-λ)x=0CS2: -(x-10)λ=0

Page 63: Econ 600: Mathematical Economics

63

Kuhn Tucker 4

• Formal treatment: start with Lagrangian. When f:R+nR

and G:R+nRm, the Lagrangian of the KT problem is a

new function L:R+n+mR.

• Important to note the domain limit on L; the Lagrangian is non-negative (and so (We could rewrite the problem restricting the multipliers to be negative by changing the + in the Lagrangian to - .)(We could also rewrite the problem without the implicit non-negativity constraints; in general KT problems not in economic settings, we need not require x non-negative.)

)(')(),( xGxfxL

Page 64: Econ 600: Mathematical Economics

64

Kuhn-Tucker 5

• As in the Lagrange method case, we can rewrite the Lagrangian as:

decomposing G into its components.• For any fixed point x*, define indices of G:

K = {i:gi(x*)=0} and M = {i:x*i>0}.

• Define:

by differentiating G with only the K components wrt components j in M . This is MxK matrix.

m

j jj xgxfxL1

)()(),(

)(*)( xGxH KM

Page 65: Econ 600: Mathematical Economics

65

Kuhn Tucker Theorem

• Suppose that x* solves the canonical KT as a local maximum and suppose that H(x*) has maximal rank (Constraint Qualification). Then there exists λ*0 s.t.:

(ie FOCs for choice vbles)

for i=1,..n; (ie CS conditions for non-negativity constraints)

(ie FOCs for multipliers)

(ie CS conditions for multipliers)

0**

*)*,(

xx

xL

0**

*)*,(

xx

xL

0**)*,(

x

xL

0*)(*'*)*,(

*'

xG

xL

Page 66: Econ 600: Mathematical Economics

66

KT theorem notes

• The constraint qualification (H(x*) has maximal rank) is complex and is typically ignored. But technically we need this to guarantee the theorem, and that the solution method yields actual necessary conditions

• These are necessary conditions for a solution. Just because they are satisfied does not mean we have solved the problem; we could have multiple candidate solutions, or multiple solutions, or no solution at all (if no x* exists).

Page 67: Econ 600: Mathematical Economics

67

KT and existence/uniqueness• Suppose G(x) is concave, and f(x) is strictly quasi-concave (of

G(x) strictly concave, and f(x) quasi-concave), then if x* solves KT, x* is quasi-concave. Furthermore, if {x:G(x)0,x0} is compact and non-empty and f(x) is continuous, then there exists x* which solves KT.

• Proof: Existence from Weierstrass theorem. For uniqueness: Suppose there are some x, x’ that both solve KT. Then f(x) = f(x’) and G(x)0, G(x’)0. Since G is concave, for t in [0,1] we have G(tx + (1-t)x’) tG(x) + (1-t)G(x’) 0. So tx + (1-t)x’ is feasible for KT. But f strictly quasi-concave implies f(tx+(1-t)x’) > min{f(x),f(x’)}=f(x). So we have a feasible x’’ = (tx + (1-t)x’) which does better than x and x’. Which contradicts x, x’ both being optimal solutions.

Page 68: Econ 600: Mathematical Economics

68

The constraint qualification

Consider the problem:max x1 s.t. (1-x1)3-x2 0, x1 0, x2 0.(see picture in notes, (1,0) is soln)At solution, x2 0 is a binding constraint.Note that gradient of constraint at (1,0) isDg(1,0) = (2(x1-1),-1)’ = (0,-1)’ at soln.This gives H* matrix of which has a rank of 1.

• The gradient of f(1,0) is (1,0), which cannot be expressed as a linear combination of (0,1) or (0,-1). So no multipliers exist that satisfy the KT necessary conditions.

10

10

Page 69: Econ 600: Mathematical Economics

69

Non-convex choice sets

• Sometimes we have non-convex choice sets; typically these lead to multiple local optima.

• In these cases, we can go ahead and solve the problem separately in each case and then compare. OR we can solve the problem simultaneously.

Page 70: Econ 600: Mathematical Economics

70

Example: labour supply with overtime

• Utility function U(c,l)=cαlβ

• Non-negativity constraint on consumption. Time constraints l 0 and 24 – l 0 on leisure (note l is leisure, not labour).

• Overtime means that wage rate = w per hour for first 8 hours, 1.5w per hour for extra hours. This means:c ≤ w(24-l) for l 16c ≤ 8w + 1.5w(16-l) for l ≤ 16.

Page 71: Econ 600: Mathematical Economics

71

Overtime 2

• The problem is that we have different functions for the boundary of the constraint set depending on the level of l. The actual problem we are solving has either the first constraint OR the second constraint; if we tried solving the problem by maximising U(x) s.t. both constraints for all l then we would solve the wrong problem.(see figures in notes)

• To solve the problem, note that the complement of the constraint set is convex.c w(24-l) for l 16c 8w + 1.5w(16-l) for l ≤ 16

• So consider the constraint set given by:(c – w(24-l))(c-8w-1.5w(16-l)) 0(see figure in notes)

Page 72: Econ 600: Mathematical Economics

72

Overtime 3

• Then, without harm we could rewrite the problem as:maxc,l cαlβ s.t. c 0, l 0, 24-l 0

-(c – w(24-l))(c-8w-1.5w(16-l)) 0

• Note that this is not identical to the original problem (it omits the bottom left area), but we can clearly argue that the difference is harmless, since the omitted area is dominated by points in allowed area.

• Note that if x* solves max f(x), it solves max g(f(x)) where g(.) is a monotonic transformation.

• So lets max log(cαlβ) instead s.t. the same constraints.• This gives the Lagrangean:

L: αlog(c)+βlog(l)+μ(24-l)–λ(c-w(24-l))(c-(8w+1.5w(16-l)))

Page 73: Econ 600: Mathematical Economics

73

Overtime 4

• We can use economic and mathematical logic to simplify the problem. First, note that since the derivative of the log function is infinity at c=0 or l=0, this clearly can’t be a solution, so μ=0 at any optimum and we can ignore CS conditions on c and l.

• So rewrite Lagrangean dropping μ term:L: αlog(c)+βlog(l)–λ(c-w(24-l))(c-(8w+1.5w(16-l)))

• Now lets look at the FOCs.

Page 74: Econ 600: Mathematical Economics

74

Overtime 5

• FOCs:c:

l:

λ:

• CS condition:

noting that the equalities occur in the FOCs because we argued that non-negativity constraints for c and l don’t bind.

0))24()16(2

38( lwcl

wwc

c

0)))24(((2

3)116(

2

38( lwc

wwcw

l

0))24())(16(2

38( lwcl

wwc

0))24())(16(2

38( lwcl

wwc

Page 75: Econ 600: Mathematical Economics

75

Overtime 6

• If l and c were such that the FOC for λ were strictly negative, we must have λ=0 by CS, but this makes the first two FOCs impossible to satisfy.So (c-8w-1.5w(16-l))=0 and/or (c-w(24-l))=0In other words, we can’t have an internal solution to the problem (which is good, since these are clearly dominated).

• Case 1: (c-w(24-l))=0 (no overtime worked)From first two FOCs, we get αwl=βc, which with c=24w-wl gives us c = 24α/(α+β)

• Case 2: (c-8w-1.5w(16-l))=0 (overtime)From the first two FOCs, we get 3αwl=2βc, which we can combine with c = 8w+1.5w(16-l)) to get an expression for c in terms of parameters.

• Actual solution depends on particular parameters of utility function (graphically could be either).

Page 76: Econ 600: Mathematical Economics

76

The cost minimization problem

• Cost minimization problem: what is the cheapest way to produce at least y output from x inputs at input price vector w.

• C(y,w) = -maxx –w’x s.t. f(x) y, y0, x 0.• If f(x) is a concave function, then the set

{x:f(x)y} is a convex set (since this is an upper contour set).

• To show that C(y,w) is convex in y:Consider any two levels of output y, y’ and define yt=ty+(1-t)y’ (ie convex combination).

Page 77: Econ 600: Mathematical Economics

77

Convexity of the cost function

• Let x be a solution to the cost minimization problem for y, xt for yt, x’ for y’.

• Concavity of f(x) implies:f(tx+(1-t)x’)tf(x)+(1-t)f(x’).

• Feasibility implies: f(x) y, f(x’) y’.• Together these imply:

f(tx+(1-t)x’)tf(x)+(1-t)f(x’)ty + (1-t)y’=tt

• So the convex combination tx+(1-t)x’ is feasible for yt.

Page 78: Econ 600: Mathematical Economics

78

Convexity of the cost fn 2

• By definition:C(y,w) = w’xC(y’,w) = w’x’C(yt,w) = w’xt

• But C(yt,w) = w’xt ≤ w’(tx+(1-t)x’)=tw’x+(1-t)w’x’= t C(y,w) + (1-t)C(y’,w)where the inequality comes since xt solves the problem for yt.

• So C(.) is convex in y.

Page 79: Econ 600: Mathematical Economics

79

Implicit functions(SB easier than lecture notes)

• So far we have been working only with functions in which the endogenous variables are explicit functions of the exogenous or independent variables.Ie y = F(x1,x2,…xn)

• This is not always the case; frequently we have economic situations with exogenous variables mixed in with endogenous variables.G(x1,x2,…xn,y)=0

• If for each x vector this equation determines a corresponding value of y, then this equation defines an implicit function of the exogenous variables x.

• Sometimes we can solve the equation to write y as an explicit function of x, but sometimes this is not possible, or it is easier to work with the implicit function.

Page 80: Econ 600: Mathematical Economics

80

Implicit functions 2

• 4x + 2y = 5 expresses y as an implicit function of x. Here we can easily solve for the explicit function.

• y2-5xy+4x2=0 expresses y implicitly in terms of x. Here we can also solve for the explicit relationship using the quadratic formula [but it is a correspondence, not a function], y=4x OR =x.

• Y5-5xy+4x2=0 cannot be solved into an explicit function, but still implicitly defines y in terms of x.Eg: x=0 implies y=0. x=1 implies y=1.

Page 81: Econ 600: Mathematical Economics

81

Implicit functions 3

• Consider a profit-maximizing firm that uses a single input x at a cost of w per unit to make a single output y using technology y=f(x), and sells the output for p per unit.Profit function: π(x)=pf(x)-wxFOC: pf’(x)-w=0

• Think of p and w as exogenous variables. For each choice of p and w, the firm will choice a value of x that satisfies the FOC.To study profit-maximising behaviour in general, we need to work with this FOC defining x as an implicit function of p and w.

• In particular, we will want to know how the choice of x changes in response to changes in p and w.

Page 82: Econ 600: Mathematical Economics

82

Implicit functions 4

• An implicit function (or correspondence) of y in terms of x does not always exist, even if we can write an equation of the form G(x,y)=cEg: x2+y2=1. When x>1 there is no y that satisfies this equation. So there is no implicit function mapping x’s greater than 1 into y’s.

• We would like to have us general conditions telling us when an implicit function exists.

Page 83: Econ 600: Mathematical Economics

83

Implicit functions 5

• Consider the problem:maxx0f(x;q) s.t. G(x;q)0where q is some k dimensional vector of exogenous real numbers.

• Call a solution to this problem x(q), and the value the solution attains V(q) = f(x(q);q).

• Note that x(q) may not be unique, but V(q) is still well-defined (ie there may be multiple x’s that maximise the function, but they all give the same value (otherwise some wouldn’t solve the maximisation problem))

• Interesting question: how do V and x change with q?• We have implicitly defined functions mapping q’s to V’s.

Page 84: Econ 600: Mathematical Economics

84

Implicit functions 6• The problem above really describes a family of optimization

problems; each different value of the q vector yields a different member of the family (ie a different optimization problem).

• The FOCs from KT suggest that it will be useful to be able to solve generally systems of equations

where

(why? Because the FOCs constitute such a system.)• Eg: Finding the equation for a level set, is to find z(q) such that

T(z(q),q)-c=0. Here, z(q) is an implicit function• As noted previously, not all systems provide implicit functions. Some

give correspondences, or give situations where there is mapping x(q).

• The implicit function theorem tells us when it is possible to find an implicit function from a system of equations.

}0),(:{ qzTRzy k

kpkkp RRTRRz :,:

Page 85: Econ 600: Mathematical Economics

85

Implicit function theorem(for system of equations)

• Let T:Rk+pRk be C1. Suppose that T(z*,q*)=0. If the kxk matrix formed by stacking the k gradient vectors (wrt z) of T1,T2,…Tk is invertible (or equivalently has full rank or is non-singular), then there exist k C1 functions each mapping Rp Rk such that:z1(q*)=z1*, z2(q*)=z2*, …. zk(q*)=zk* andT(z(q),q) = 0 for all q in Bε(q*) for some ε>0.

Page 86: Econ 600: Mathematical Economics

86

IFT example

• Consider the utility maximisation problem:maxx in Rn U(x) s.t. p’x≤I, U strictly quasi-concave, DU(x)>0, dU(0)/dxi=.

• We know a solution to this problem satisfies xi > 0 (because of dU(0)/dxi=) and I-p’x=0 (because DU(x)>0) and the FOCs:dU/dx1-λp1=0…dU/dxn-λpn=0I-p’x=0

Page 87: Econ 600: Mathematical Economics

87

IFT example contd

• This system of equations maps from the space R2n+2 (because x and p are nx1, λ and I are scalars) to the space Rn+1 (the number of equations).

• To apply the IFT, set z = (x, λ), q=(p,I)Create a function T: R2n+2 Rn+1 given by:

xpI

px

xU

px

xU

IpxTn

n

'

)(

)(

),,,(

11

Page 88: Econ 600: Mathematical Economics

88

IFT example contd

• If this function T is C1 and if the n+1xn+1 matrix of derivatives of T (wrt x and λ) is invertible, then by the IFT we know that there exist n+1 C1 functions:x1(p,I), x2(p,I), …. xn(p,I), λ(p,I)s.t. T(x1(p,I), x2(p,I), …. xn(p,I), λ(p,I)) = 0 for all p,I in a neighborhood of a given price income vector (p,I).

• Ie, the IFT gives us the existence of continuously differentiable consumer demand functions.

Page 89: Econ 600: Mathematical Economics

89

Theorem of the maximum

• Consider the family of lagrangian problems:V(q) = maxxf(x;q) s.t. G(x;q)=0This can be generalized to KT by restricting attention only to constraints that are binding at a given solution.

• Define the function T:Rn+m+pRn+m by

);(

);(');(),,,(

qxG

qxGqxfIpxT

Page 90: Econ 600: Mathematical Economics

90

Theorem of the Maximum 2

• The FOCs for this problem at an optimum are represented by T(x*,λ*;q)=0. We want to know about defining the solutions to the problem, x* and λ*, as functions of q.

• The IFT already tells when we can do this: if the (n+m)x(n+m) matrix constructed by taking the derivative of T wrt x and λ is invertible, then we can find C1 functions x*(q) and λ*(q) s.t. T(x*(q’), λ*(q’);q’)=0 for q’ in a neighborhood of q.

• Ie we need the matrix below to have full rank:

0);(

);();(');();,(

22

qxG

qxGqxGqxfqxT

x

xxx

Page 91: Econ 600: Mathematical Economics

91

Theorem of the Maximum 3

• Suppose the Lagrange problem above satisfies the conditions of the implicit function theorem at x*(q*),q*. If f is C1 at x*(q*),q*, then V(q) is C1 at q*.

• Thus, small changes in q around q* will have small changes in V(q) around V(q*).

Page 92: Econ 600: Mathematical Economics

92

Envelope Theorem

• Applying the IFT to our FOCs means we know (under conditions) that x(q) that solves our FOCs exists and is C1, and that V(.) is C1.

• The envelope theorem tells us how V(q) changes in response to changes in q.

• The basic answer from the ET is that all we need to do is look at the direct partial derivative of the objective function (or of the Lagrangian for constrained problems) with respect to q.

• We do not need to reoptimise and pick out different x(q) and λ(q), because the fact that we were at an optimum means these partial derivs are already zero.

Page 93: Econ 600: Mathematical Economics

93

Envelope theorem 2

• Consider the problem:maxxf(x;q) s.t. G(x;q)≥0, G:Rn→Rm.where q is a p-dimensional vector of exogenous variables.Assume that, at a solution, the FOCs hold with equality and that we can ignore the CS conditions.(Or assume that we only include constraints that bind at the solution in G() )

• Suppose that the problem is well behaved, so we have that at a particular value q*, the solution x(q*), λ(q*) are C1 and V(q*)=f(x(q*);q*) is C1.(Note that we could get these from the IFT and the Theorem of the Maximum)

Page 94: Econ 600: Mathematical Economics

94

Envelope theorem 3

• Suppose the problem above satisfies the conditions of the IFT at x*(q*). If f is C1 at x*(q*),q* then:

ie the derivative of the value function V(q) is equal to the derivative of the Lagrangean

*)*);((*)( qqxfqVq

q

qqxgq

q

qqxf

q

qqqxL

*)(;*((*)(

*)*),((

*)*);(*),((

Page 95: Econ 600: Mathematical Economics

95

Envelope theorem 4

• So, to determine how the value function changes, we merely need to look at how the objective function and constraint functions change with q directly.

• We do not need to include the impact of changes in the optimization variables x and λ, because we have already optimized L(x,λ,q) with respect to these.

• So, for an unconstrained optimization problem, the effect on V(.) is just the derivative of the objective function.

• For a constrained optimization problem, we also need to add in the effect on the constraint. Changing q could effect the constraint (relaxing or tightening it), which we know has shadow value λ.

• Proof is in lecture notes.

Page 96: Econ 600: Mathematical Economics

96

Envelope theorem example

• Consider a problem for the form:maxxf(x) s.t. q-g(x) 0

• Thus, as q gets bigger, the constraint is easier to satisfy. What would we gain from a small increase in q, and thus a slight relaxation of the constraint?

• The Lagrangian is L(x,λ;q) = f(x)+ λ(q-g(x))• The partial deriv of the Lagrangian wrt q is λ. Thus,

dV(q)/dq = λ.• A small increase in q increases the value by λ.

Thus, the lagrange multiplier is the shadow price. It describes the price of relaxing the constraint.

• If the constraint does not bind, λ=0 and dV(q)/dq = 0.

Page 97: Econ 600: Mathematical Economics

97

Envelope theorem example 2

• We can use the envelope theorem to show that in the consumer max problem, λ is the marginal utility of income.

• Consider the cost min problem:C(y,w) = maxx -w’x s.t. f(x)-y0.

• Lagrangian is: L(x,λ;y,w) = -w’x + λ(f(x)-y)Denote the optimal solution to be x(y,w).

• From the ET, we get:),(

),,,(),(wyx

w

wyxL

w

wyCi

ii

Page 98: Econ 600: Mathematical Economics

98

ET example 2, contd

• This is known as Shephard’s lemma; the partial derivative of the cost function with respect to w i is just xi, the demand for factor i.

• Also note that:

ie the change in demand for factor i with respect to a small change in price of factor j is equal to the change in demand for factor j in response to a small change in the price of factor i.

ijj

ii

jji ww

wyCwyx

wwyx

www

wyC

),(),(),(

),( 22

Page 99: Econ 600: Mathematical Economics

99

Correspondences

• A correspondence is a transformation that maps a vector space into collections of subsets in another vector space.

• Eg: a correspondence F:RnR takes any n dimensional vector and gives as its output a subset of R. If this subset has a only one element for every input vector, then the correspondence is also a function.

• Examples of correspondences: solution to the cost minimization problem, or the utility maximization problem.

Page 100: Econ 600: Mathematical Economics

100

Correspondences 2

• A correspondence F is bounded if for all x and for all y in F(x), the size of y is bounded. That is, ||y||≤M for some finite M. For bounded correspondences we have the following definitions.

• A correspondence F is convex-valued if for all x, F(x) is a convex set. (All functions are convex-valued correspondences).

• A correspondence F is upper hemi-continuous at a point x if: for all sequences {xn} that converge to x, and all sequences {yn} such that yn in F(xn) converge to y, then y is in F(x).

• For bounded correspondences, if a correspondence is uhc for all x, then its graph is a closed set.

Page 101: Econ 600: Mathematical Economics

101

Correspondences 3

• A correspondence F is lower hemi-continuous at a point x, if for all sequences {xn} that converge to x and for all y in F(x), there exists a sequence {yn} s.t. yn is in F(xn) and the sequence converges to y.

• See figure in notes.

Page 102: Econ 600: Mathematical Economics

102

Fixed point theorems

• A fixed point of a function f:RnRn is a point x, such that x=f(x). A fixed point of a correspondence F:RnRn is a point x such that x is an element of F(x).

• Solving a set of equations can be described as finding a fixed point. (Suppose you are finding x to solve f(x) = 0. Then you are looking for a fixed point in the function g(x), where g(x) = x + f(x), since for a fixed point x* in g, x* = g(x*) = x* + f(x*), so f(x*) =0.)

• Fixed points are crucial in proofs of existence of equilibriums in GE and in games.

Page 103: Econ 600: Mathematical Economics

103

Fixed point theorems

• If f:RR, then a fixed point of f is any point where the graph of f crosses the 45 degree line (ie the line f(x)=x).

• A function can have many fixed points, a unique fixed point, or none at all.

• When can we be sure that a function possesses a fixed point? We use fixed point theorems.

Page 104: Econ 600: Mathematical Economics

104

Brouwer fixed point theorem

• Suppose f:RnRn and for some convex, compact set C (that is a subset of Rn) f maps C into itself. (ie if x is in C, then f(x) is in C). If f is continuous, then f possesses a fixed point.

• Continuity• Convexity of C• Compactness of C• C maps into itself.

Page 105: Econ 600: Mathematical Economics

105

Kakutani fixed point theorem

• Suppose F:RnRn is a convex-valued correspondence, and for some convex compact set C in Rn, F maps C into itself. (ie if x is in C, then F(x) is a subset of C). If F is upper hemicontinuous, then F possesses a fixed point.

• These FPTs give existence. To get uniqueness we need something else.

Page 106: Econ 600: Mathematical Economics

106

Contraction mappings

• Suppose f:RnRn such that ||f(x)=f(y)|| ≤ θ ||x-y|| for some θ < 1 and for all x,y. Then f ix a contraction mapping.

• Let C[a,b] be the set of all continuous functions f:[0,1]R with the “supnorm” metric ||f)|| = maxx in

[a,b] f(x). Suppose T:CC (that is, T takes a continuous function, does something to it and returns a new, possibly different continuous function). If, for all f,g in C, ||Tf-Tg|| ≤ θ ||f-g|| for some θ < 1, then T is a contraction mapping.

Page 107: Econ 600: Mathematical Economics

107

Contraction mapping theorem

• If f or T (as defined above) is a contraction mapping, it possesses a unique fixed point, x*.

Page 108: Econ 600: Mathematical Economics

108

Dynamic optimisation

• Up to now, we have looked at static optimisation problems, where agents select variables to maximise a single objective function.

• Many economic models, particularly in macroeconomics (eg saving and investment behaviour), use dynamic models, where agents make choices each period that affect their potential choices in future periods, and often have a “total” objective function that maximises the (discounted) sum of payoffs in each period.

• Much of the material in the notes is focused on differential and difference equations (lectures 1-4), but we will attempt to spend more time on lectures 5-6, which are the focus of most dynamic models.

Page 109: Econ 600: Mathematical Economics

109

Ordinary differential equations

• Differential equations are used to model situations which treat time as a continuous variable (as opposed to in discrete periods, where we use difference equations).

• An ordinary differential equation is an expression which describes a relationship between a function of one variable and its derivatives.

• Formally:

where

is a vector of parameters

F if a function Rm+1+pR

]);(),...,(,),(,[)( 121 txtxxtxtFtx mm

m

mm

dt

tdtx

dt

txdtx

dt

tdxtx

)()(,...,

)()(,

)()(

2

221

pR

Page 110: Econ 600: Mathematical Economics

110

Ordinary differential equations 2

• The solution is a function x(t) that, together with its derivatives, satisfies this equation.

• This is an ordinary differential equation because x is a function of one argument, t, only. If it was a function of more than one variable, we would have a partial differential equation, which we will not study here.

• A differential equation is linear if F is linear in x(t) and its derivatives.

• A differential equation is autonomous if t does not appear as an independent argument of F, but enters through x only.

• The order of a differential equation is the order of the highest derivative of x that appears in it (ie order m above).

Page 111: Econ 600: Mathematical Economics

111

First order differential equation

• Any differential equation can be reduced to a first-order differential equation system by introducing additional variables.

• Consider x3(t) = ax2(t) + bx1(t) + x(t)Define y(t) = x1(t), z(t) = x2(t)

• Then: y1(t) = x2(t) = z(t), z1(t)=x3(t).• So we have the system:

)(

)(

)()()(

)(

)(

)(

1

1

1

ty

tz

tcxtbytaz

tx

ty

tz

Page 112: Econ 600: Mathematical Economics

112

Particular and general solutions

• A particular solution to a differential equation is a differentiable function x(t) that satisfies the equation for some subinterval I0 of the domain of definition of t, I.

• The set of all solutions is called the general solution, xg(t).

• To see that the solution to a differential equation is generally not unique, consider:x1(t) = 2x(t).One solution is x(t) = e2t. But for any constant c, x(t) = ce2t is also a solution.

• The non-uniqueness problem can be overcome by augmenting the differential equation with a boundary condition: x(t0) = x0.

Page 113: Econ 600: Mathematical Economics

113

Boundary value problems

• A boundary value problem is defined by a differential equationx1(t) = f[t,x(t)]and a boundary conditionx(t0) = x0, (x0,t0) is an element of X x I

• Under some conditions, every boundary value problem has a unique solution.

• Fundamental Existence Uniqueness theorem:Let F be C1 in some neighborhood of (x0,t0). Then in some subinterval I0 of I containing t0 there is a unique solution to the boundary value problem.

Page 114: Econ 600: Mathematical Economics

114

Boundary values problems 2

• If F is not C1 in some neighborhood of (x0,t0), the solution may not be unique. Consider:x1(t) = 3x(t)2/3 x,t in R

x(0)=0Both x(t) = t3 and x(t) = 0 are solutions.Note f(x) = 3x(t)2/3 is not differentiable at x=0.

• The solution may not exist globally.Consider: x1(t) = x(t)2 x,t in R

x(0) = 1x(t) = 1/(1-t) is a solution, but is only defined for t in [-,1)

Page 115: Econ 600: Mathematical Economics

115

Steady states and stability

• When using continuous time dynamic models, we are often interested in the long-run properties of the differential equation.

• In particular, we are interested in the properties of its steady state (our equilibrium concept for dynamic systems, where the system remains unchanged from period to period), and whether or not the solution eventually converges to the steady state (ie is the equilibrium stable, will we return there after shocks).

• We can analyze the steady state without having to find an explicit solution for the differential equation.

Page 116: Econ 600: Mathematical Economics

116

Steady states and stability 2

• Consider the autonomous differential equation:x1(t) = f[x(t)]

• A steady state is a point such that

• Phase diagrams to illustrate this.• Steady states may not exist, may not be unique, may not

be isolated.• Stability: consider an equation that is initially at rest at an

equilibrium point , and suppose that some shock causes a deviation from .We want to know if the equation will return to the steady state (or at least remain close to it), or if it will get farther and farther away over time.

RRXf :Xx

0)( xf

xx

Page 117: Econ 600: Mathematical Economics

117

Steady states and stability 3

• Let be an isolated (ie locally unique) steady state of the autonomous differential equationx1(t)=f[x(t)],

• We say that is stable if for any ε > 0, there exists δ in (0,ε] such that:

ie any solution x(t) that at some point enters a ball of radius δ around remains within a ball of (possibly larger) radius ε forever after.

RRXf :

x

00 ||)(||||)(|| ttxtxxtx

x

x

Page 118: Econ 600: Mathematical Economics

118

Steady states and stability 4

• A steady state is asymptotically stable if it is stable AND δ can be chosen in such a way that any solution that satisfies

for some t0 will also satisfy

• That is, any solution that gets sufficiently close to not only remains nearby but converges to as t .

||)(|| 0 xtx

xtxt )(lim

xx

Page 119: Econ 600: Mathematical Economics

119

Phase diagrams: arrows of motion

• The sign of x1(t) tells us about the direction that x(t) is moving (see diagram).

• x1(t) > 0 implies that x(t) is increasing (arrows of motion point right).

• x1(t) < 0 implies that x(t) is decreasing (arrows of motion point left).

• Thus: x1 and x3 in diagram are locally asymptotically stable; x2 is unstable.

• x1 in the second diagram (see notes) is globally asymptotically stable.

Page 120: Econ 600: Mathematical Economics

120

Phase diagrams arrows of motion 2

• We can conclude that if for all x in some neighborhood of a steady state :

• x(t) < implies x1(t) > 0 AND x(t) > implies that x1(t)<0, then is asymptotically stable.

• x(t)< implies x1(t) < 0 and x(t) > implies x1(t)>0 then is unstable.

• Therefore, we can determine the stability property of a steady state by checking the sign of the derivative of f[x(t)] at .

• is (locally) asymptotically stable if:• is unstable if• If , then we don’t know.

xxx

xx x

xix

ix

0)]([' )(| ixtxtxf

0)]([' )(| ixtxtxf

0)]([' )(| ixtxtxf

Page 121: Econ 600: Mathematical Economics

121

Grobman-Hartman theorem• Let be a steady state of out standard autonomous differential

equation

• We say that is a hyperbolic equilibrium if

• The previous analysis suggests we can study the stability properties of a nonlinear differential equation by linearizing it, as long as the equilibrium is hyperbolic.

• Theorem: If is a hyperbolic equilibrium of the autonomous differential equation above, then there is a neighborhood U of such that the equation is topologically equivalent to the linear equation:

in U.(Note that this is a first-order Taylor series approximation of f around ). (See notes).

11 ,:)],([)( CfRRXftxftx

0)]([' )(| ixtxtxf

x

x

])([)]([')( )(1 xtxtxftx xtx

x

x

x

Page 122: Econ 600: Mathematical Economics

122

Grobman-Hartman theorem 2

• The theorem says that near a hyperbolic equilibrium , the non-linear differential equation has the same qualitative structure as the linearized differential equation.

• In particular, if is (locally) asymptotically stable for the linearized equation, it is locally asymptotically stable for the non-linear equation, and if it is unstable for the linearized equation, then it is unstable for the non-linear equation.

x

x

Page 123: Econ 600: Mathematical Economics

123

Application: Solow Growth model

• Classic growth theory model. Also, start getting used to notation. Capital letters used for aggregate variables; lower case letters used for per worker equivalents.

• Output Y is produced using capital K and labor L accord to a production function:Y(t) = F(K(t),L(t)]

• F is C1, it has constant returns to scale and positive and diminishing marginal products wrt each input.

• By constant returns to scale, we have:Y(t) = F[K(t),L(t)] = L(t)F[K(t)/L(t),1] = L(t)f[k(t)]where k(t) = K(t)/L(t)

Page 124: Econ 600: Mathematical Economics

124

Solow model 2

• Then y(t) = Y(t)/L(t) = f[k(t)]ie we can write output per unit of labor as a function of capital per unit of labor.

• We also assume the Inada conditions hold: f(0)=0limk(t) f[k(t)] =

f’(0)= limk(t)f’[k(t)] =0• The economy is closed, so savings equal investment,

and a constant fraction of output s is saved. Assume no capital depreciation. Thus,Kt(t)=I(t)=sF[K(t),L(t)], where s is in [0,1]and I denotes investment

• Assume that labor grows at a constant exogenous rate nL(t) = L(0)ent = L0ent.

Page 125: Econ 600: Mathematical Economics

125

Solow model 3

• Then: K(t) = K(t)L(t)/L(t) = k(t)L0ent

• And thus: K1(t) = k1(t)L0ent + k(t)nL0ent (by product rule)• Combining the equations for capital evolution (K1(t))

we get:k1(t) = sf[k(t)] - nk(t)(see graph).

• To find the steady state, set k1(t) = 0. Thus,

The capital to output ratio K/Y=k/f(k) is constant , and capital stock and output grow at the rate of growth of the population, n.

n

s

kf

kknksf

)()(

Page 126: Econ 600: Mathematical Economics

126

Solow model 4

• Stability properties:k1(t) > 0 for k(t) < (since sf [k(t)]> nk(t))k1(t) < 0 for k(t) > (since sf [k(t)]< nk(t))(How do we know this? See graph. We have from diminishing marginal product that f’ is positive but decreasing, at that f’ is infinite at 0, so nk cuts sf from below.)

kk

Page 127: Econ 600: Mathematical Economics

127

Solving autonomous differential equations

• Consider the following first-order autonomous linear differential equation:x1(t)=ax(t)+b

• All solutions can be written as:xg(t) = xc(t) + xp(t)general soln=complementary function + particular soln

• The complementary function xc(t) is the general solution to the homogenous equation associated with the equation above:x1(t) = ax(t)

• xp(t) is any particular solution to the full equation.

Page 128: Econ 600: Mathematical Economics

128

Solving autonomous differential eqns 2

• We use the method of separation of variables to find the complementary solution. Rewrite x1(t) = ax(t) as:dx(t)/dt = ax(t)

• Then: dx(t) = ax(t)dt, and: dx(t)/x(t) = adt• Integrating both sides, we get:

(Note that the c in xc(t) is for the complementary solution, not the constant c)

• So we have the complementary solution for the general form of a first order differential equation, xc(t)=ceat

1

1

,)(

)(ln

)()(

1

)(ln

1

catc

cattx

eccetx

eee

cattx

dtatdxtx

Page 129: Econ 600: Mathematical Economics

129

Solving autonomous differential eqns 3

• Now, lets verify that the general solution is the complementary function plus any particular solution; ie show that if xp(t) is a solution, then ceat + xp(t) is also a soln.

• Thus, if we add ceat to any solution, we get another solution. We can get all solutions in that way.

btxcea

btaxace

dt

tdxacetxce

dt

d

pat

pat

patpat

)]([

)(

)()]([

Page 130: Econ 600: Mathematical Economics

130

Solving autonomous differential eqns 3

• Let xp(t) and xg(t) be two arbitrary solns. Then:

• Subtracting the second from the first, defining y(t)=xg(t)-xp(t), we get:

with general solution: y(t)=ceat

• Thus, the difference between any two arbitrary solutions has the form ceat, and thus we can get all solutions by adding ceat to xp(t).

btaxdt

tdx

btaxdt

tdx

pp

gg

)()(

)()(

)()(

taydt

tdy

Page 131: Econ 600: Mathematical Economics

131

Solving autonomous differential eqns 3

• To solve the differential equation, we still need to find xp(t). The simplest alternative is usually a steady state solution:

if a ≠ 0• Thus,

if a≠0, and

if a = 0.(show this yourself)

a

btx

btaxtx

p

)(

0)(0)(1

a

bcetx atg )(

cbttx g )(

Page 132: Econ 600: Mathematical Economics

132

Solving autonomous differential eqns 4

• We can pin down the arbitrary constant by means of a boundary condition. Suppose we have x(0) = x0.

• Then, for a≠0, x(0) = c – b/a, soc = x0+b/a , and the general soln is:

if a≠0, and

if a=0

a

be

a

bxtx atg

0)(

0)( xbttx g

Page 133: Econ 600: Mathematical Economics

133

Solving autonomous differential eqns 5

• What are the stability properties of this general solution?

• If a >0, then eat as t, and x(t) explodes unless x0 = -b/a (in which case it stays constant forever)

• If a <0, then eat 0 as t, and x(t) is asymptotically stable.

• Recall this solution is only for autonomous equations, where t appears only through x. What about non-autonomous differential equations?

Page 134: Econ 600: Mathematical Economics

134

Solving non-autonomous differential eqns

• Consider the first order non-autonomous differential equation: x1(t)=a(t)x(t)+b(t)where the coefficients a and b are (potentially) functions of time.

• Rewrite the equation as:x1(t)-a(t)x(t)=b(t)

• Consider the function e-α(t), with Multiply both sides by e-α(t):

t

dsst0

)()(

)()()(1 )()()()( ttt etbetxtaetx

Page 135: Econ 600: Mathematical Economics

135

Solving non-autonomous differential eqns 2

• Note that the LHS is the derivative of x(t)e-α(t). So, we can rewrite this as:

• The expression e-α(t) that made the left hand side above the exact derivative of a function is called an integrating factor.

• There are two forms of the general solution to the non-autonomous differential equation obtained using different methods, the backward solution (convenient if there is a natural initial condition) and the forward solution (convenient if there is a natural terminal condition).

)()( )())(( tt etbetxdt

d

Page 136: Econ 600: Mathematical Economics

136

The backward solution

• The backward solution is obtained by integrating backward between 0 and s (where s is our current period).

This gives us the value of x(s) as a function of its initial value x(0), and a weighted sum of past values of the forcing term b(t).Eg: with a natural initial condition: growth models, with some initial level of capital.

s tss

s ts

s tst

s tts

etbexsx

etbxesx

etbetx

dtetbdtetxdt

d

0

)()()(

0

)()(

0

)(0

)(

0

)()(

0

)()0()(

)()0()(

)(|)(

)()(

Page 137: Econ 600: Mathematical Economics

137

The forward solution• If we don’t have a logical initial condition, but still have a

natural terminal condition (normally an asymptotic terminal condition) then we should use the forward solution, obtained by integrating forward between s and .

provided that the limit exists (ie x(t) converges).• Example: dynamic consumption optimisation (typical

terminal condition: net assets go to zero (or non-negative) as time goes to infinity)

s

tst

t

s

s

tst

t

s

ts

t

t

s s

t

dtetbetxesx

dtetbesxetx

dtetbetx

dtetbdtetxdt

d

)()()()(

)()()(

)()(

)()(

)()()(

)()()(

)(|)(

)()(

lim

lim

Page 138: Econ 600: Mathematical Economics

138

Example: Intertemporal budget constraint

• Suppose that an infinitely lived household has the following budget constraint:a1(t)=ra(t)+y(t)-c(t)ie at time t, change in assets is interest income (at rate r) from assets plus labor income minus consumption

• Lets find the forward solution (since we want a budget constraint out to time infinity). Multiply both sites the budget constraint by e-rt and rearrange:

[a1(t)-ra(t)]e-rt=[y(t)-c(t)] e-rt • Note that the LHS is the derivative of a(t)e-rt.

So, we can rewrite our equation for the general solution of a non-autonomous differential equation as:

rtrt etctyetadt

d )]()([)(

Page 139: Econ 600: Mathematical Economics

139

Intertemportal budget constraint 2

• Suppose that a(0) is given, lets integrate forward starting from t=0

ie lifetime consumption = initial assets + lifetime income.

• Note: If the interest rate changed over time, we would need to replace r by r(t), and the integrating factor becomes , so

00

0

00

)()0()(

)]()([)0(

)]()([|)(

dtetyadtetc

dtetctya

dtetctyeta

rtrt

rt

rtrt

t

dssre 0

)(

dtetyadtetctt

dssrdssr

00)(

0

)(

0)()0()(

Page 140: Econ 600: Mathematical Economics

140

Linear systems

• Now we study systems of linear differential equations. Recall, wlog, we can restrict attention to first order-systems (since any higher order system can be converted into a first order system by defining new variables).

• General form: x1(t) = A x(t) + b(nx1) (nxn) (nx1) (nx1)

• Start with uncoupled systems (the matrix A is diagonal). Ie:

nna

a

a

A

00

0

0

00

22

11

Page 141: Econ 600: Mathematical Economics

141

Uncoupled systems

• Then, we can solve each of the n equations separately, by the methods for solving individual equations.

• Eg: the first equation is x11(t)=a11x1(t)+b1

and its solution is x1g(t)=cea11t – b1/a11

• With an initial condition x1(0)=x10 then the solution becomes:

• Thus, if we are given an initial condition for each equation in the system, xi(0)=xi0, i=1,2,…,nthen the solution to the boundary value problem is:

(assuming a≠0)

11

1

11

1101

11)(a

be

a

bxtx ta

ii

ita

ii

iii a

be

a

bxtx ii

0)(

Page 142: Econ 600: Mathematical Economics

142

Diagonalizable linear systems

• If the matrix is not diagonal, we can use the algebraic technique of diagonalizing a matrix to reduce any diagonalizable linear system to an equivalent diagonal system, which we can then solve as above (by solving each individual equation individually).

• Theorem: if the matrix A has n linearly independent eigenvectors v1, v2,…vn then the matrix V = (v1,v2…vn) is invertible and V-1AV is a diagonal matrix with the eigenvalues of A along its main diagonal

• If all eigenvalues of the matrix are distinct, then the n eigenvectors are linearly independent, so A is diagonaliable.

Page 143: Econ 600: Mathematical Economics

143

Diagonalizable linear systems 2

• If A is diagonalizable, we first derive xc(t) by solving the homogeneous part of the system of differential equations.x1(t) = Ax(t)V-1x1(t) = V-1Ax(t)

= V-1AVV-1x(t) (since VV-1=I)y1(t) = Λy(t)where y(t) = V-1x(t).

• y1(t) = Λ y(t) is a diagonal system, which we already know how to solve, so:yi(t) = cieλit

Page 144: Econ 600: Mathematical Economics

144

Diagonalizable linear systems 3

• To obtain the solution to the original system, we need to convert back from y(t) to x(t):

• To obtain xp(t) we use the steady state:x1(t) = 0nx1 ↔ Ax(t) + b = 0nx1

xp(t) = -A-1b (if A nonsingular)• Therefore:

where the constants c1,c2,…,cn can be found with a set of n boundary conditions.

n

i

tii

tn

t

t

nc i

n

evc

ec

ec

ec

vvvtVytx1

2

1

21

2

1

),...,,()()(

bAevctxi

tii

g i 1

1

)(

Page 145: Econ 600: Mathematical Economics

145

Eigenvectors and eigenvalues

• Consider a nxn matrix A.

• Its eigenvalues λ1,λ2,…,λn and eigenvectors vi=(vi1,vi2,…vin) satisfy the equation:(A-λiIn)vi=0nx1 for i=1,2,…,n(Note this gives us ratios of values within an eigenvector, we can pick one value to set =1 to define a particular v)

• The eigenvalues are the roots of the following equation: det(A-λiIn)=0

Page 146: Econ 600: Mathematical Economics

146

Example

• Consider the linear system x1(t)=Ax(t)where

• Its eigenvalues and eigenvectors satisfy:(A-λI2)v=0nx2

• Its eigenvalues are the roots of:det(A-λI2) = 0

• The matrix (A-λI2) is

14

11A

14

11IA

Page 147: Econ 600: Mathematical Economics

147

Example, 2

• So setting the determinant of this =0 gives0 = (1-λ)2 – 4 = λ2 - 2 λ -3 = (λ-3)(λ+1)

• So we have λ1 = 3, λ2 = -1.• To find eigenvalue for λ1=3 we solve:

• This gives v12=2v11. Setting v11=1 gives:v1=(1 2)’

• Similarly for λ2=-1, we get v2=(1 -2)’

0

0

24

12

12

11

v

v

Page 148: Econ 600: Mathematical Economics

148

Example, 3

• So we get the V matrix from concatenating eigenvectors:

• This gives the diagonal matrix:

ie it has the eigenvalues along its diagonal.• Under the transformation y(t) = V-1x(t) we get:

y1(t)=Λy(t)

which has the general solution:

22

11V

10

031AVV

)(

)(

10

03

2

1

ty

ty

t

t

ec

ec

ty

ty

2

31

2

1

)(

)(

Page 149: Econ 600: Mathematical Economics

149

Example, 4

• And we get the solution to the original solution by converting back to x(t) from y(t):

tt

tt

t

t

ecec

ecec

ec

ectVy

tx

tx

23

1

23

1

2

31

2

1

2222

11)(

)(

)(

Page 150: Econ 600: Mathematical Economics

150

Stability• Recall the general solution:

• Case a) All eigenvalues real• If all eigenvalues are negative, eλit0 as t , i=1,2,…

n and the system is asymptotically stable: it converges to the steady state whatever the initial position.

• If some eigenvalues are positive, the corresponding terms eλit as t, and xj(t) is unstable unless civij=0.

• Case b) some eigenvalues complex: see notes.Punchline: if eigenvalue is complex, stability will be determined by real part of eigenvalue.

bAevctxn

i

tii

g i 1

1

)(

Page 151: Econ 600: Mathematical Economics

151

Stability 2• Skipped ahead in notes to page 8, at eqn (11)• If n=2, we can use phase diagrams to illustrate the stability

properties of the system.• Suppose as before that we have a system of equations x1(t)

= Ax(t) + b(where these 2x1 vectors and A is 2x2)

• WLOG, let’s assume that b=0.We can always “demean” our system by defining a new variable y as the deviation of x from its steady state: y(t) = x(t) + A-1b

• Then, y1(t)=x1(t)=Ax(t)+b = A[y(t)-A-1b]+b = Ay(t)• When n=2, all information about the system’s stability

properties are summarized by the trace and the determinant of the coefficient matrix A.

• The trace of a matrix is the sum of its diagonal elements

Page 152: Econ 600: Mathematical Economics

152

Stability 3

• The eigenvalues of A solve |A-λI2| = 0(a11-λ)(a22-λ) – a12a21 = 0λ2 – (a11+a22)λ + a11a22 – a12a21 = 0λ2 – tr(A) + det(a) = 0

• Thus, by the quadratic formula:

• Also:tr(A) = λ1 + λ2

det(A) = λ1λ2

2

)det(4)()( 2

2,1

AAtrAtr

Page 153: Econ 600: Mathematical Economics

153

Stability: Nodes

• 4 different types of cases of steady state.• Case 1: Nodes• a) If det(A) > 0 and [tr(A)2-4det(A)] > 0: λ1 and λ2

are real, distinct and have the same sign.If tr(A)<0, then λ1, λ2 < 0: and node is stable.If tr(A) > 0, then λ1, λ2 >0: node is unstable

• b) If [tr(A)2-4det(A)] = 0: λ1 and λ2 are real and repeated (so we can’t diagonalize the matrix).If tr(A) < 0, then λ1 = λ2 < 0, and node is stableIf tr(A) > 0, then λ1 = λ2 > 0: unstable node

Page 154: Econ 600: Mathematical Economics

154

Stability: saddle points

• If det(A) < ), λ1 and λ2 are real, distinct and have opposite sign.WLOG, assume λ1 > 0, λ2 < 0. Then, if c1v1j≠0, xj(t) is unstable.(Note we cannot have v11=v12=0, else V is not invertible)

• If c1 = 0, the system’s behavior is determined only by λ2, and it converges to the steady state as t.

• Setting c1=0 we obtain:x1(t) = c2v21eλ2t

x2(t) = c2v22eλ2t

Page 155: Econ 600: Mathematical Economics

155

Stability: saddle points 2

• Then we get:

which is the equation of the saddle path.• For the graph in the notes, assume:

then: v1 = (1 0)’ v2 = (0 1)’• The system will converge to the steady state if and only

if it starts out from one of points where the constant associated with the explosive root is equal to zero (constant on x1 here). If we are off this saddle path, we do not converge to the steady state.

)()( 222

211 tx

v

vtx

2

1

0

0

A

Page 156: Econ 600: Mathematical Economics

156

Stability: spiral points

• If [tr(A)2 – 4det(A)] < 0 and tr(A)≠0: λ1 and λ2 are complex conjugates.These give spiral paths; clockwise if a21 < 0, counter-clockwise if a21 > 0Spirals can be stable or unstable depending on the sign of the trace.

• If tr(A) <0, then eigenvalues have a negative real part and the spirals converge to the steady state

• If tr(A) >0, then eigenvalues have positive real part, and spirals diverge from steady state.

Page 157: Econ 600: Mathematical Economics

157

Stability: centers

• If tr(A) = 0 and det(A) > 0: eigenvalues are pure imaginary numbers. The steady state is stable but not asymptotically stable.

• If the matrix A is non-diagonalizable, we need to use other methods to find solutions (beyond scope of this course).

Page 158: Econ 600: Mathematical Economics

158

Nonlinear systems of differential equations

• In general, it is not possible to find closed form solutions for nonlinear differential equations. However, we can obtain qualitative information about the local behavior of the solution if n=2, and study non-linear systems analytically by looking at their linearizations.

• Consider the nonlinear differential equation system:x1(t) = F[x(t)] F: X subset of RnRn

(nx1) (nx1)

Page 159: Econ 600: Mathematical Economics

159

Phase diagrams

• Assuming n=2, we have:x1

1(t) = f1[x1(t), x2(t)]x2

1(t) = f2[x1(t), x2(t)]• Set x1

1 = 0 to obtain the phase lines.x1

1(t) = 0 implies f1[x1(t), x2(t)] = 0x2

1(t) = 0 implies f2[x1(t), x2(t)] = 0• Each of these equations describes a curve in (x1(t),x2(t))

space. To find the slope of each curve, look at the sign of dfi[.]/dx1 for i=1,2

(Note: take both derivatives wrt x1 for the sign to equal the sign of the slope, since x1 is the horizontal axis. Alternatively, we could take derivs wrt x2, or a combination, whichever is computationally easier – as long as we interpret them correctly)

Page 160: Econ 600: Mathematical Economics

160

Phase diagrams: arrows of motion

• To determine behavior of x1 off the phase lines, we look at either of the derivatives:

or• Eg: suppose that

• Then, starting from the x11=0 line, a small movement to

the right will increase x11(t), making it positive, so to the

right of the x11(t)=0 line, x1(t) is increasing.

A small movement to the left will decrease x11(t), making

it negative, so left of the phase line x1(t) is decreasing.

0)(

)](),([

)(

)(

0)(1

211

0)(1

11

11

11

txtxtx

txtxf

tx

tx

)(

)](),([

)(

)(

1

211

1

11

tx

txtxf

tx

tx

)(

)](),([

)(

)(

2

211

2

11

tx

txtxf

tx

tx

Page 161: Econ 600: Mathematical Economics

161

Phase diagrams: arrows of motion 2

• Now do the same for x2(t). Suppose:

• Then, starting from the x21(t) = 0 line, a small

movement upward (ie increasing x2) will decrease x2

1(t), making it negative. So above the x21(t) = 0

line, x2 is decreasing.• Similarly, taking a small movement downward

(decreasing x2) will increase x21(t), making it

positive. So below the phase line, x2 is increasing.• Finally, combine all this.

0)(

)](),([

)(

)(

0)(2

212

0)(2

12

12

12

txtxtx

txtxf

tx

tx

Page 162: Econ 600: Mathematical Economics

162

Behavior of nonlinear systems

• From the phase diagrams we can obtain valuable information about the behavior of the system, but the phase diagram alone often does not give us enough information about the stability properties of the steady state.

• To obtain more precise information about the behavior of the nonlinear system around the steady state, under certain conditions we can approximate the system by their linear counterparts.

Page 163: Econ 600: Mathematical Economics

163

Behavior of nonlinear systems 2

• Take a multivariate first order Taylor series approximation of F around the steady state

where

and

])([])([})(|)]([{)()]([ xtxRxtxxtxtxDFxFtxF

n

nnn

n

n

xtx

x

f

x

f

x

f

x

f

x

f

x

fx

f

x

f

x

f

txDF

2

1

1

2

2

2

1

2

1

2

1

1

1

)(|)]([

0||)(||

||))([||lim

)(

ii

ii

xtx xtx

xtxR

ii

Page 164: Econ 600: Mathematical Economics

164

Behavior of nonlinear systems 3

• In some neighborhood of the steady state, the linear system:

can be expected to be a reasonable approximation of our system of nonlinear equations under some conditions.

• We need the steady state to be a hyperbolic equilibrium.This is the case if the derivative of F evaluated at the steady state,

has no eigenvalues with a zero real part.

])([})(|)]([{)(1 xtxxtxtxDFtx

xtxtxDF )(|)]([

Page 165: Econ 600: Mathematical Economics

165

Grobman-Hartman theorem

• We return to a version of the Grobman-Hartman theorem for systems of equations.

• If is a hyperbolic equilibrium of the autonomous differential equation systemx1(t) = F[x(t)] and F is C1, then there exists a neighborhood U of such that the nonlinear system is topologically equivalent to the linear system

in U.

x

x

])([})(|)]([{)(1 xtxxtxtxDFtx

Page 166: Econ 600: Mathematical Economics

166

Discrete time

• Up to now, in the dynamic section of the course, we have been dealing with continuous time. That is, each “period” t has had a length of zero, so we describe how a variable changes by looking at its derivative; thus differential equations are a key tool for explaining how variables evolve over time.

• An alternate used in many situations is to use discrete time. Here, we have periods indexed by t, of some positive finite length, and so to look at changes in variables we compare xt to xt+1. Our key tool here are difference equations, the discrete time counterpart to differential equations.

• Many definitions and properties that hold for differential equations also hold for difference equations, with slight modifications.

Page 167: Econ 600: Mathematical Economics

167

Difference equations 1

• With differential equations, time is continuous, so t can take any real variable.

• With difference equations, t can only take integer values that correspond to periods (eg a year, a quarter, a day).

• An ordinary difference equation is an equation of the form:xt+m=F[t,xt,xt+1,xt+2,…,xt+m-1;α]where

and F is a function Rm+1+pR• This is an ordinary difference equation because we

describe a relationship between a function of one variable and its lags (ie x is a function only of t).

pR

Page 168: Econ 600: Mathematical Economics

168

Difference equations 2

• A difference equation is linear if F is linear in xt, xt+1,…,xt+m-1.

• A difference equation is autonomous if t does not appear as an independent argument of F, but enters only through x.

• The order of a difference equation is equal to the difference between the highest and lowest time subscripts appearing in the eqn. Thus, above we have an order m difference equation.

Page 169: Econ 600: Mathematical Economics

169

Difference equations 3

• Solving the difference equation means finding a function xt that satisfies the equation for any t in some subinterval I0 of I.

• Since the time subscripts are just labels, we can harmlessly transfer all the time subscripts by the same amount. Thus (ignoring α) the equation above is equivalent toxt=F[t,xt-1,xt-2,…,xt-m]

• Any difference equation can be reduced to a system of first order difference equations by defining additional variables, so we can assume m=1.

Page 170: Econ 600: Mathematical Economics

170

Difference equations 4

• The solution to the difference equation xt = f(t,xt-

1) in general is not unique.• If we impose a boundary condition xt0 = x0, we

can recursively derive the solution as follows:xt0+1 = f(t0+1,xt0), xt0+2 = f(t0+2,xt0+1), …

• Different boundary conditions will generate different trajectories of xt. As with differential equations, a specific solution is a particular solution, and the general solution is the set of all particular solutions.

Page 171: Econ 600: Mathematical Economics

171

Steady states

• We are interested in analyzing the long-run properties of a difference equation, and such analysis does not necessarily require us to find an explicit solution.

• For the autonomous differential equation xt=f(xt-1), a steady state is a fixed point ie a point such that

• Note that a steady state may not exist.• We can use phase diagrams to examine

difference equations. A fixed point is an intersection of the phase line and the 450 line.

x)(xfx

Page 172: Econ 600: Mathematical Economics

172

Stability

• As before, we are interested in stability and asymptotic stability; what happens after a shock that causes a small deviation from our steady state?

• Recall: stability requires that any solution xt that at some point enters a ball of radius δ around the steady state will remain within a ball of (possibly larger) radius ε.

• Asymptotic stability requires not only stability, but also that we converge to the steady state as t .

Page 173: Econ 600: Mathematical Economics

173

Stability 2

• When the phase line is above the 450 line:xt = f(xt-1) > xt-1, so x is increasing.

• When the phase line is below the 45o line: xt = f(xt-1) < xt-1, so x is decreasing.

• Thus, is unstable, is asymptotically stable.• We can determine the stability property of a steady

state by looking at f’ at the steady state.• If , then is (locally) asymptotically stable• If , then is unstable.• If , then is a non-hyperbolic eqbm, and

could be stable or unstable.

1x 2x

1|)('| xf

1|)('| xf

x

x

x1|)('| xf

Page 174: Econ 600: Mathematical Economics

174

Grobman-Hartman

• As before, we can study stability properties by linearizing the equation, as long as we have a hyperbolic equilibrium.

• Theorem: If is a hyperbolic equilibrium, then there is a neighborhood U of such that the non-linear difference equation is topologically equivalent to:

in U.)(]|)('[ 11 1

xxxfxx txxtt t

x

x

Page 175: Econ 600: Mathematical Economics

175

Solving autonomous difference equations

• Consider the following first order autonomous linear difference equation:xt = axt-1 + b

• All solutions can be written as xtg=xt

c+xtp

• To derive xtc we substitute recursively on the

homogeneous part of the equation:xt=axt-1=a(axt-2)=a2xt-2=a2(axt-3)=a3xt-3=…=atx0

• Since the initial value of x, x0 remains undetermined in the absence of a boundary condition, what this says is that all solutions to xt=axt-1 must be of the form:xt

c=cat,where c is an arbitrary constant.

Page 176: Econ 600: Mathematical Economics

176

Solving autonomous difference equations 2

• To find a particular solution, we use the steady state:

if a ≠ 1.• Therefore, if a ≠ 1:• We can pin down the arbitrary constant c by

means of a boundary condition. Suppose we have:

• Then, for a ≠ 1, we have:

a

bx

bxaxxx

pt

tt

1

1

a

bcax tg

t

1

xx ~0

a

bxc

a

bcx

1~

10

Page 177: Econ 600: Mathematical Economics

177

Solving autonomous difference equations 3

• This gives general solution (if a≠1):

• If a=1, no steady state exists, and iteration from the boundary condition gives

a

ba

a

bxx t

t

11~

xbtxt~

Page 178: Econ 600: Mathematical Economics

178

Stability properties

• What are the stability properties of xtg?

• If |a|<1, then at0 as t, and xt is asymptotically stable (converges to steady state regardless of initial position)

• If |a|>1, then at as t , and xt explodes unless x0 = b/(1-a)

• The sign of a determines whether xt remains on one side of the steady state, or whether it alternates sides of the steady state.

• If a>0, cat has the same sign and the system converges or diverges monotonically.

• If a<0, at is positive or negative as t is even or odd, and the system jumps from one side to the other each period.

• See diagrams in notes.

Page 179: Econ 600: Mathematical Economics

179

Solving non-autonomous linear difference equations

• Consider the first order non-autonomous linear difference equation xt=axt-1+bt

where the forcing term b is a function of time.• The complementary function will be the same as

that for the first order autonomous linear equation xt = axt-1+bwhich is of the form xt=cat. So we only need to derive a particular solution.

• There are two particular solutions frequently used: the forward solution and the backward solution.

Page 180: Econ 600: Mathematical Economics

180

Backward solution

• The backward solution is obtained by iterating the equation backwards:

• If there is no natural starting point for xt, we can express the solution as a function of all past values of the forcing variables by letting s:

1

0

122

32

33

1232

122

12

1

...

)(

)(

s

jjt

jst

s

ttttttttt

tttttt

ttt

baxa

babbaxaxababbaxa

babxabbaxa

baxx

0lim

jjt

jst

s

st baxax

Page 181: Econ 600: Mathematical Economics

181

Backward solution 2

• For this equation to be well defined, we need to assume that |a|<1, |bt|<B for all t. Then:

as the limit goes to zero.• And the general solution is:

(denoting the constant as cB to reflect that once we consider a boundary condition, the value of cB will depend on the particular solution chosen)

jtj

jBt bax

0

jtj

jtB

gt baacx

0

Page 182: Econ 600: Mathematical Economics

182

Forward solution

• The forward solution is obtained by iterating out difference equation forward.

• First, solve the equation for xt-1

xt-1=(1/a)xt – (bt/a)and then shift it one period forwardxt=(1/a)xt+1 - (bt+1/a)

• Then, we have:

1

01

1

12

2

3

3

3

3

12

2

33

2

12

2

2

2

122

11

11111111

11111

s

jjt

j

st

s

ttttttt

t

ttttt

tt

ba

xa

ba

ba

ba

xa

ba

baa

bx

aa

ba

ba

xaa

b

a

bx

aax

Page 183: Econ 600: Mathematical Economics

183

Forward solution 2

• If there is no natural end point for xt, we can express the solution as a function of all future values of the forcing variables by letting s →∞:

• For this to be well defined, assume |a|>1, |bt| < B for all t. Then:

• And the general solution is:

01

111lim

jjt

j

st

s

st b

aax

ax

01

11

jjt

jFt b

aax

01

11

jjt

jtFg

t baa

acx

Page 184: Econ 600: Mathematical Economics

184

Lag operators

• A common notation when dealing with discrete time is to use lag operators. We can, for example, use these to derive the backward and forward solutions.

• A lag operator is defined by:Lnxt = xt-n for n= …,-2,-1,0,1,2,…

• Thus, we can rewrite our difference equation xt = axt-1 + bt asxt = aL1xt+bt or as xt = aLxt+bt

• Thus,

tt

tt

baL

x

bxaL

1

1

)1(

Page 185: Econ 600: Mathematical Economics

185

Lag operators 2

• If |a| <1 we have:1/(1-aL)=1+aL+a2L2 + ….ie we can use the sum to infinity formula, and so xt=bt/(1-aL) is the backward solution.

• To derive the forward solution, rewrite xt=bt/(1-aL) as:

if a ≠1.1

22

1

11

1

1

...11

11

11

1

11

1

tt

tt

tt

bLa

Laa

x

bL

a

ax

bL

a

Lax

Page 186: Econ 600: Mathematical Economics

186

Capital accumulation

• The standard capital accumulation equation is given by:Kt = (1-δ)Kt-1 + It-1

where δ is depreciation (and so is in (0,1) and I is investment.

• A particular solution can be derived using backward iteration:

and typically an initial condition for K is given.

1

01

1222

122

)1()1(

)1()1(])1)[(1(

s

jjt

jst

s

ttttttt

IK

IIKIIKK

Page 187: Econ 600: Mathematical Economics

187

Household budget constraint

• Suppose an infinitely lived household has the following budget constraint:at = (1+r)at-1 + yt – ctie assets at beginning of period t equal asset income from last period asset holdings (at rate r) plus labor income at beginning of period t less consumption spending at the beginning of period t.

• A particular solution to the budget constraint can be obtained by iterating forward:

s

jjtjt

j

st

s

tttttt

tttt

ycr

ar

ycr

ycr

arr

a

ycr

ar

a

0

11

1111

1

)(1

1

1

1

)(1

1)(

1

1

1

1

1

1

)(1

1

1

1

Page 188: Econ 600: Mathematical Economics

188

Household budget constraint 2

• Multiplying both sides by (1+r) we get:

• Letting s→∞:

• Under a no Ponzi game condition the household is not allowed to let its debt grow indefinitely, so:

s

jjtjt

j

st

s

t ycr

ar

ar0

1 )(1

1

1

1)1(

0

1 )(1

1

1

1)1( lim

jjtjt

j

st

s

st yc

ra

rar

01

1lim

st

s

s

ar

Page 189: Econ 600: Mathematical Economics

189

Household budget constraint 3

• Under weak assumptions on the utility function (strictly increasing utility in at least one good), the household will not want to build up positive assets forever, so this holds with equality.

• Then, we get the lifetime budget constraint

0

10 1

1)1(

1

1

jjt

j

tj

jt

j

yr

arcr

Page 190: Econ 600: Mathematical Economics

190

Linear systems of difference equations

• Now we look at systems of first order difference equations, of the form:x1(t) = A x(t) + b(nx1) (nxn) (nx1) (nx1)

• First suppose that A is a diagonal matrix. Then, we can solve each of the n equations separately.

• With a vector of initial conditions we get a solution (assume aii≠1):

ii xx ~0

ii

itii

ii

iiit a

ba

a

bxx

11

~

Page 191: Econ 600: Mathematical Economics

191

Diagonalizable linear systems

• IF the matrix A is diagonalizable, so that V=(v1,v2, …vn) is invertible and V-1AV is a diagonal matrix with the eigenvalues of A along its diagonal, then we can derive xt

c by solving the homogeneous part of the equation:xt = Axt-1

V-1xt = V-1Axt-1

= V-1AVV-1xt-1

yt=Λyt-1

where yt=V-1xt. This gives an uncoupled system, which we already know how to solve.

• Therefor, yit = ciλit

Page 192: Econ 600: Mathematical Economics

192

Diagonalizable linear systems

• To obtain the solution to the original system, we need to revert from yt back to xt:

• To get xtp, we use the steady state:

xt = xt-1 ↔ xtp = A xt

p + bxt

p = (I-A)-1b (if I-A is invertible)• Thus, the general solution is:

where the constants ci can be found with a set of n boundary conditions.

n

i

tiii

tnn

t

t

nct

ct vc

c

c

c

vvvVyx1

22

11

21 ),,,(

bAIvcxn

i

tiii

gt

1

1

)(

Page 193: Econ 600: Mathematical Economics

193

Stability

• Now, to analyze stability properties of this general solution.• Case a) All eigenvalues real.

If all eigenvalues are less than 1 in absolute value, λit0

as t , and the system is asymptotically stable.If some eigenvalues are greater than one in absolute value, the corresponding terms λi

t as t , and xjt is unstable unless civij=0

• Case b) some eigenvalues complex.See notes. Stability determined by the modulus of the eigenvalue: r < 1 means system is asymptotically stable.r > 1means system is unstable.

• Non-diagonalizable systems: we need to use other methods. Beyond this course.

Page 194: Econ 600: Mathematical Economics

194

Elements of nonlinear systems

• Consider the nonlinear difference equation system: xt = F(xt-1)

• When we work with discrete time, there are not continuous movements along the solution path, but rather jumps. This can mean that we can jump around the steady state, which is not the same as instability.

• As before, to look at behavior near the steady state, we look at the linearized form.

Page 195: Econ 600: Mathematical Economics

195

Grobman-Hartman

• A steady state is a hyperbolic equilibrium if the derivative of F evaluated at the steady state,

has no eigenvalues with modulus equal to one.

• Theorem: If the steady state is a hyperbolic equilibrium of the autonomous difference equation system, then there exists a neighborhood U of

such that the nonlinear function is topologically equivalent to the linear system:

in U.

xxt txDF 1

|)( 1

x

)(}|)({ 11 1xxxDFxx txxtt t

Page 196: Econ 600: Mathematical Economics

196

Phase diagrams

• For n=2, we can use phase diagrams to examine behavior around the steady state.

• If n=2, our system is:x1t+1 = f1(x1t,x2t)x2t+1 = f2(x1t,x2t)

• First, express the system in first differences (the discrete counterpart to derivatives):Δx1t = x1t+1 – x1t = f1(x1t,x2t) – x1t

Δx2t = x2t+1 – x2t = f2(x1t,x2t) – x2t

Page 197: Econ 600: Mathematical Economics

197

Phase diagrams 2

• Obtain the phase lines by setting Δx1t = 0 and Δx2t = 0. This gives:x1t = f1(x1t,x2t) x2t = f2(x1t,x2t)

• To obtain arrows of motion, take derivatives of the first differences: for x1t, we look at either:

or

at a point in the Δx1t = 0 phase line.• Eg: suppose

1),(

1

211

1

1

t

tt

t

t

x

xxf

x

x

t

tt

t

t

x

xxf

x

x

2

211

2

1 ),(

01),(

01

211

01

1

11

tt xt

tt

xt

t

x

xxf

x

x

Page 198: Econ 600: Mathematical Economics

198

Phase diagrams 3

• Then, starting from the Δx1t = 0 line, moving slightly right will increase Δx1t making it strictly positive. So, to the right of the phase line, x1t is increasing (arrows point right).

• Similarly, moving left of the Δx1t = 0 line, will reduce Δx1t below zero, making it strictly negative, so the arrow points left.

• Now do the same for x2(t). Suppose:01

),(

02

212

02

2

22

tt xt

tt

xt

t

x

xxf

x

x

Page 199: Econ 600: Mathematical Economics

199

Phase diagrams 4

• Then, starting from the Δx2t = 0 line, a small movement up will decrease Δx2t, making it strictly negative. So, above the phase line x2 is decreasing.

• Similarly, a small movement downward from the Δx2t = 0 line will make Δx2t positive, making it strictly positive. So, below the phase line, x2 is increasing.

• Finally, combine the phase lines and arrows.