Ec203 Notes
Ec203 Notes
1.0 Introduction
A matrix is a rectangular array of numbers considered as an entity with m rows and n columns
in the array. Hence we have an m -by- n matrix (written as m×n ). The dimension/order of a
matrix is stated as the number of rows and column. A matrix is denoted by bold capital letters such as
A,B,.. e.t.c. an example of an m×n matrix is given by:
A=
( a21 a22 ........ a2 n
..... ...... ........ ......
am1 am2 ......... a mn
) (1)
The elements/entries are the mn numbers that constitute A, e.g. aij denotes an element
th th
in the i row and j column.
A matrix with only one row is called a row vector and a matrix with only one column is
called a column vector.
−1 2
Example1: Given A=
(35 −28 ) , B= (−1 2 √ 3 16 ) and C=
[ ]8
7
1
5
6
1 . State the order of the
matrices,
a21 ,c32 ,b23 .
If
A=(aij )m×n , then the elements
a11 ,a 22 ,...,amn constitute the main diagonal that runs
2 −1 5 a b c
whose first column is the first row of A, whose second column is the second row of A and so on.
Thus:
a b c a d g
A=
( )
d e f
g h i ( ) T
⇒A = b e h
c f i
−1 0
Example: Let A =
( ) (
3 2
5 −1 ,B=
1 −1 0 4
2 1 1 1 ) . Find the transpose of A and B.
Solution to be provided in class
a) Equal Matrices: If
A=(aij )m×n and
B=( bij )m×n are two m×n matrices, then A and
i=1,2,3 ...m and j=1,2,3...n . Hence two matrices are equal if they have the same
dimensions and if all their corresponding entries are equal. If A and B are not equal, we write
A ¿ B.
Example: When is
(23t t−1 = t
u )( 2v
u+1 t+w )
Solution to be provided in class
3 −2
( 5 0 )
(i) Calculate A+C and A-C
(ii) Why is it not possible to calculate A+B or A-B? Hence state the restrictions on
matrix addition and subtraction.
Solution to be provided in class
real number, we define α A by: α A= α (aij )m×n =(αa ij )m×n ….. (4). Hence when a
matrix is multiplied by a real number, each element in the matrix is multiplied by the real
number. For example:
k a b = ka kb
[ ][
c d kc kd ]
Example: Given the matrix A=
(−21 24 ) calculate 5A,
1
− A
2 .
Solution to be provided in class
The matrix (−1) A is usually denoted by –A. the difference between the two
matrices A and B of the same dimension, A-B, means the same as A+ (-1)B.
C=AB is the m× p matrix C=(c ij )m× p , whose element in the ith row and the
th
j column is the product sum (or dot product):
n
c ij= ∑ air brj =ai 1 b1 j + ai 2 b 2 j +.. . ..+a ik bkj +. . .. ..+ ain bnj
r=1 of the ith row of A and the
th
j column of B. For example:
a b e f = ae+bg af +bh
[ ][ ] [
c d g h ce +dg cf +dh ]
Dimension: (2×2 )×(2×2)=(2×2 )
= 1 2 (01 2 2
Example: Given the matrices A
(
−2 4 ) , B= 0 5 ) and C=
(35 −20 ) ,
Evaluate AC, CA, AB and BA. Compare answers for AC and CA.
Solution will be provided in class.
The product AB is defined only if the number of columns in A is equal to the number
of rows in B.
If A and B are two matrices, then AB might be defined even if BA is not. For
example, if A is 6 by 3 and B is 3 by 5, then AB is defined (as its 6 by 5) whereas BA
is not defined.
Class Exercise
1. Given the matrices A=
(10 −4−9 ) , B=
(−74 30 ) and C=
(125 −1 −1
0 2 ) ,
calculate if possible:
(i) A+B, A-B, A+4B and A+C
(ii) BC, CB, AC+B
The cost price of each model is: Basic $480, Extra $600, Latest $1020. The retail price of
each model in each of the three shops is given in the Table 2 below:
Table 2
Solution: (i) the numbers sold from Table 1 may be written as a matrix, Q:
PC→ Basic Extra Latest
Q=
shopA
shopB
shopC
( 150
170
201
320
420
63
180
190
58
)
Write the cost of each type of computers as a column matrix:
480
C= 600
( )
1020
If this cost matrix C is pre-multiplied by the numbers sold matrix, Q, the product will be a 3 ¿ 1matrix,
in which the elements in each row give the total cost of computers to each shop:
( )( ) (
170 420 190 600 = 170(480 )+420(600 )+190(1020)
201 63 58 1020 201(480 )+63(600)+58(1020 ) )
447600
=
( )
527400
193440
Cost to: shop A=$447 600, shop B=$527 400, shop C=$193 440
(ii) Total revenue = price * quantity. The quantities are given in matrix Q. the prices are obtained in table
2. Matrix multiplication, however, is carried out by multiplying rows by columns; therefore in order to
multiply quantity and price for each PC, the rows in table 2 must be written as columns in the prices
matrix. That is, prices matrix must be transposed before pre-multiplying by the quantities matrix, Q.
Q*P =
( 170 420 190
201 63 58 ) ( 750 690 720
1580 1390 1780 ) ( )
=
642,300
267,190
(iv) Profit = TR – TC
Class Exercise
a) The percentage of voters who will vote for party candidates A,B and C is given in the following
table:
A B C No. of voters
Area1 60% 20% 20% 25 000
Area 2 45% 30% 25% 60 000
Area 3 38% 30% 32% 98 000
Use matrix multiplication to calculate the total number of votes for each candidate
1.4 Determinants
A determinant is a square array of numbers or symbols, for example:
1 0 −2
a b 2 5 |2 2 3 |
| | | |
A= c d B= 3 −4 D= 1 3 2
How to evaluate a 2×2 determinant
a b
| |=(a)(d)−(c )( d)
c d
Hence the value of the determinant B is:
2 5
| |=(2)(−4 )−(3)(5)=−8−(15)=−23
3 −4
Cramer’s rule: Expansion by Cofactors
a b c
Given A =
( )d e f
g h i , its determinant has a value of:
a b c
e f d f d e
|d e f |=a| |−b| |+c| |
h i g i g h
g h i
= a(ei−hf )−b(di−gf )+c (dh−ge )
1 2 −1 0 1 0 1 −1 0
|3 1 0 | |3 1 1 | |1 3 2 |
0 0 1 , 1 2 −1 and 1 2 1
Solution to be provided in class
Sarrus’ Rule
Write down the determinant twice, except that the last column in the second determinant
should be omitted:
a b c a b
|d e f d e |
g h i g h
First multiply along the three lines falling to the right, giving all these products a plus sign:
aei+bfg+cdh
Then multiply along the three lines rising to the right, giving these products a minus sign:
−gec−hfa−idb
a b c
A n= d e f
g h i ( ) , since each element of A has a cofactor
[|C ij|] , it is possible
(iv) Divide the adjoint of A by the |A| . The result is the inverse of A. That is:
1
A−1 = adjA
|A|
4 1 −2
Class exercise
a) Evaluate the following determinants:
1 0 −2 15 −4 14
|2 2 3 | |−4 6 34 |
D= 1 3 2 E= −3 −2 1
a11 a12 .. .. . a1 n x 1 b1
( a21 a22
. .. .. . .. . .
a n1 a n2
.. .. . .
.. .. . .
.. .. . .
)( ) ( )
a2 n x 2 = b 2
.. .. .. .. .. ..
ann x n bn
The general linear system of equations with n equations and n unknowns has a unique solution iff
D1 D2 Dn
x 1= , x2 = ,. . .. . , x n =
|A| |A| |A|
Where
D1 , D2 ,...,Dn are defined as the determinant obtained from |A| by replacing
the jth column vector with the column vector whose components are
b1 ,b 2 ,...,b n
Example: find the solutions of the following system for all values of p:
px+ y=1
x− y+z=0
2 y−z=3
Class exercise
1. Given the supply and demand functions for two related goods, A and B,
¿¿¿ ¿¿¿
Good A: ¿ Good B: ¿
(a) Write down the equilibrium for each good. Hence deduce two equations in
Pa and
Pb
(b) Use Cramer’s rule to find the equilibrium prices and quantities for goods A and B
investment),
G0 (public consumption and investment), a and b all represent
The Leontief model describes an economy with n interlinked industries, each of which produces a single
commodity using only one process of production. To produce its good, each industry must use inputs
from at least some other industries. For example, the steel industry needs goods from the coal industry as
well as from many other industries. In addition to supplying its own good to other industries that need it,
each industry also faces external demand for its product from consumers, governments, foreigners, and so
on. The amount needed to meet this external demand is called the final demand.
Let
x i denote the total number of units of good i that industry i is going to produce in a certain
year.
Let
aij x j= {the number of units of good i needed to produce
xj units of good i ……
(1)
In order that
x 1 units of good 1, x 2 units of good 2, ….., x n units of good n can all be produced,
If we require industry i also to supply bi units to meet final demand, then equilibrium between
supply and demand requires that:
………………………………………. (4)
[ −a21 (1−a22 )
. . ..
−an 1
. .. ..
−an 2
. .. . . −a2 n
. .. . . . .. . ..
. .. . .. (1−a mn )
] [] x2
...
xn
…. (5)
If the ones (1s) in the principal diagonal of the matrix on the left are ignored, the matrix is simply
−A=[−aij ] . On the other hand, the matrix is the sum of the identity matrix,
I n and the matrix
−A . Thus (5) can also be written as:
( I−A ) x=d
Where x and d are, respectively, the variable vector and the final demand vector.
Matrix ( I−A ) is called the technology matrix. If ( I−A ) is non-singular, then the inverse
( I−A )−1 can be found, and (5) will give the unique solution:
x=( I− A )−1 d
NB: in input/output analysis, total input = total output for each sector.
Example:
Input to
Step 2: Calculate the matrix of technical coefficients, A, by dividing each column of inputs by total input.
Input to
−1
Step 3: get the inverse of the matrix ( I−A ) , since it is required in the equation x=( I− A ) d :
( )
600 900 300
1 0 0 0 .75 −0 .25 −0 . 42
( 0
0
1
0 1)
0 −
210
600
170
250
900
0
140
300
30
(
= −0 . 35 0 .72
−0 . 28 0 .00
−0 . 47
0 . 90 )
( I−A ) = 600 900 300
( )
0 .00 0 . 90 −0. 28 0. 90 −0 . 28 0 .90
0 . 648 0 .4466 0 .2016
C= −|
+|
−0 . 25 0 . 42
0 .00 0 . 90
−0 .25 −0 . 42
| +|
| −|
0.75
−0. 28
0 .75
−0. 42
0.90
−0.42
| −|
| +|
0 .75
−0 . 28
0 .75
−0 .25
0 .00
−0 .25
|
(
| = 0 . 225 0 .5574 0 .070
0 .4199 0 .4995 0 .4525
)
0 .72 −0 . 47 −0. 35 −0 .47 −0 . 35 0 .72
x=( I− A )−1 d
( )
T ind . =
T serv
1
0 . 289678 (
0. 4466 0 .5574
0 .2016 0 . 070 )( ) (
0 . 4995 550 = 2346 . 50
0 . 4525 300 949 .50 )
Class exercise
dy
In this topic, dx is reinterpreted as a ratio of two quantities, dy and dx .
Given a function y=f ( x ) , we can use the difference quotient Δy / Δx to represent the rate of
The magnitude of Δy can be found, once Δy / Δx and the variation in x are known. If Δx is
dy
infinitesimal, Δy will be infinitesimal and Δy / Δx approaches the derivative dx . Therefore, (1)
becomes:
dy
dy=( )dx '
dx or dy≡f ( x )dx (2)
The symbols dy and dx are called the differentials of y and x respectively. Dividing (2)
(dy ) '
≡f (x )
This implies that (dx ) may be interpreted as the quotient of two separate differentials dy
and dx . Once given the derivative of a function y=f ( x ) , the differential dy can immediately be
written.
dy =( 2 [ 2 ] +3 )∗0.01=0.07
???? How does this figure compare with the actual change in y ?
When x=2 ; y=( 22+ ( 3∗2 )−2 ) =8 , when X =2.001; y =2.0012+ ( 3∗2.001 ) −2=8.007001
Therefore the true change in y is ∆ y =8.007001−8=0.007001 ⇒ our answer dy =0.007
constitutes as approximation with an error of0.007001−0.007=0.000001 .
( ΔQ/Q )
For a demand function Q=f ( P) , the elasticity is defined as ( ΔP/P ) . If the change in P is
infinitesimal, the expressions ΔP and ΔQ will reduce to the differentials dP and dQ , and the
elasticity measure will then assume the sense of the point elasticity of demand, denoted by
εd .
dQ/Q dQ/dP
ε d≡ =
dP /P Q/ P
dQ/dP can be construed as the derivative, or the marginal function of the demand function
Q=f ( P) . Q/ P is the average function of the demand function. Therefore ε d is the ratio of the
marginal function to the average function of the demand function.
This implies that for any given total function y=f ( x ) , we can write the formula for the point
elasticity with respect to x as:
dy /dx marginalfunction
ε yx = =
y /x averagefunction
Example: Find
ε d if the demand function is Q=30−0.42 P
dQ
Solution: Marginal function: =−0.42
dP
Q 30−0.42 P
Average function: =
P p
−0.42 P
So their ratio will give ε P=
30−0.42 P
Example 2: If the Savings function of an economy is defined as S=100+ 0.2Y −0.31 iwhere Sis
Savings and Y is national income and i is interest rate. Find the partial income elasticity of savings
and partial interest elasticity of savings.
Class Exercise
approximation to Δy .
2. Given the import function, M =250+ 0.4 Y , where M is imports and Y is national income,
of change of S with respect to an infinitesimal change in Y or MPS. Therefore the MPS may
resulting from an infinitesimal change in i can be denoted by (∂ S/∂ i)di . The total change in
S will then be equal to:
dS=(∂ S /∂Y )dy+ ( dS/di ) di
OR
dS=SY dy +Si di
The expression dS , being the sum of the changes from both sources, is called the total
differential of the savings function. The process of finding such a total differential is called total
differentiation. If Y change while i remains constant, di=0 , the total differential will reduce
dS ∂ S
=
dY ∂Y ( ) icons tant
It is clear that the partial derivative (∂ S/∂ Y ) can also be interpreted as the ratio of two
differentials dS and dY with the proviso that i , the other independent variable in the
function, is held constant.
Example 1: find the total differential dz given z=4 x 2−8 y 2+ 6
Consider any function y=f ( x , w ) where x=g(w ) with the variables y , x and w
f g
y x w
f
w , the ultimate source of change, can affect y through two channels:
(1) Indirectly, via the function g and then f (the straight arrows)
needed to express both effects jointly. To obtain the total derivative, first differentiate y totally, to get
dy dx dw
=f x +f w
dw dw dw
∂ y dx ∂ y
+
= ∂ x dw dw
Example 1: Find the total derivative dy/dw , given the function y=f ( x , w )=3 x−w2 where
2 2
Example 2: Suppose we have a production function Q=Q( K , L)=25 KL−K −2 L where the two
factors K and L ate functions of time, t: K=g(t )=0 .3 t , L=h(t )=0 . 2 t . Find the rate of change of
output with respect to time.
Class Exercise
2. Evaluate the total derivative dz/dt given the function z=f ( x , y )=x3 +4 xy − y 2 where
x=2 t , y=2−t
dP
3. Use the total derivatives to find
dY 0 for a market model whose equilibrium identity is
Let u and v be two functions of the variables x 1 and x 2 , then the following rules are
valid:
(iv)
d ( uv )= v1 ( vdu−udv )
2
(quotient rule)
dy y=5 x 2 + 3 x 2
Example 1: Find the total differential of the function 1
u=5 x v=3 x 2
Let 12 and
dy=d (5 x 2 )+d (3 x 2 )
1
x 1+ x 2
y=
x
b) 22
price P but also of an exogenously determined income Y 0 . The quantity supplied QS , on the
other hand, is a function of price alone. Hence the model can be written as:
Qd =Q s
Qd =D( P , Y 0 ) ( dD /dP≺0 ;dD/dY 0 )
QS =S (P ) ( dS /dP≻0 ) (1)
Both D and S functions are assumed to possess constinuous derivatives, or, in other words, have
smooth graphs. When income changes, it will upset a given equilibrium by causing a shift in the
function. Hence,
Y 0 is the only exogenous variable, thus the comparative static analysis of this
Even though this equation cannot be solved explicitly for the equilibrium price, P , we shall assume
that there does exist a static equilibrium. From experience with specific function models, we expect
Rigorous foundation fro this expression can be provided by appealing to the implicit function
theorem. In as much as (2) is in the form of F( P , Y 0 )=0 , the satisfaction of the conditions of the
equilibrium solution. In that case, we can indeed write the implicit function
P=P(Y 0 ) , and
It then requires only a straight application of the implicit function rule to produce the comparative
static derivative,
d P /dY 0 . The result is:
∂ F /∂Y 0 ∂ D/∂Y 0
d P /dY 0 =− =− ≻0
∂ F /∂ P ∂ D/∂ P−∂ S/∂ P (5)
∂D
∂D/∂ P refers to the derivative ∂ P evaluated at the initial equilibrium, that is, at P=P ,a
the demand function of this commodity takes the form: Qd =D( P , t 0 ) where
∂ D/∂ P≺0;∂ D/∂ t0 and t 0 represents given consumer taste for the commodity, and where both
partial derivates are continuous.
(ii) How would you write the equilibrium solution for P and Q?
(iii) How would P,Q , that is, equilibrium price and quantity respectively, vary with a change
in consumer taste?
3. DIFFERENTIAL EQUATIONS
Introduction
The first derivative dy/dt is the only one that appears in a first order differential equation, but
2 3
it may appear in various powers, dy/dt , (dy/dt ) or (dy/dt ) .
The word order refers to the highest order of the derivatives (or differentials) appearing in the
differential equation.
The solution to a differential equation is often referred to as the intergral of that equation.
The highest power attained by the derivative in the equation is referred to as the degree of the
differential equation.
In cases where the derivative dy/dt appears only in its first degree, and likewise the
dependent variable y , and furthermore, no product of the form y (dy/dt ) occurs, then the
equation is said to be linear. Thus a first order linear differential equation will generally take the
form:
dy
+u(t ) y=w(t )
dt ………….(1)
Where u and w are two functions of time as is y. in contrast to dy/dt and y , however, no
restriction is placed on the independent variable t, thus the functions u and w may represent
2 t
expressions as t ,e or some more complicated functions of t, on the other hand, u and w may
also be constants.
First-order Linear Differential Equations with a constant coefficient and a constant term
When the function u (the coefficient of the dependent variable y) is a constant, and when the
function w is a constant additive term, then (1) reduces to the special case of a first-order linear
differential equation with a constant coefficient and a constant term.
If u and w are constant functions and if w is identically (equal to) zero then (1) becomes:
dy
+ay =0
dt …………(2)
Where ‘a’ is some constant. This differential equation is said to be homogeneous, on account of
the zero constant term. More accurately, because every term therein is uniformly in the first
degree in terms of y and dy/dt , in particular, the constant 0 can be regarded as in the first
degree in terms of y because 0y=0. Equation (2) can be written alternatively as:
1 dy
=−a
y dt ……….(2’)
1 dy
∫ y dt =∫ −a
1
∫ y dy=∫ −adt
ln y=−at−c
y=e−at −c
y= Ae−at where A=e
−c
In (3) there appears an arbitrary constant A, therefore, it is a general solution. When a particular
value is substituted for A, the solution becomes a particular solution of (2); there is an infinite
number of particular solutions, one for each possible value of A, including the value of y(0). This
latter value however, has a special significance: y(0) is the only value that can make the solution
satisfy the initial condition. Since this represents the result of definitising the arbitrary constant,
we shall refer to 3’ as the definite solution of the differential equation (2) or (2’).
NB: 1. The solution is not a number or some value, but rather a function y(t).
2. The solution y(t) is free of any derivative or differential expressions, so that as soon as a
specific value t is substituted into it, a corresponding value of y can directly be calculated.
When a non-zero constant takes the place of a zero in (2), we have a non-homogeneous
differential equation:
dy
+ay =b
dt ……(4)
The solution of this equation will consist of the sum of two terms, one of which is termed the
complementary function (denoted by
y c ), and the other known as the particular integral
(denoted by
y p ).
NB: A homogeneous equation is a reduced equation of (4), equation (4) is the complete equation.
Therefore, the complementary function is nothing but the general solution of the reduced
equation (homogeneous equation), whereas the particular integral is simply any particular
solution of the complete equation.
−at
Therefore y c =Ae (by 3)
Particular integral
ay=b
b
y=
a
b
y p = (a≠0)
a
The sum of the complementary function and the particular integral then constitutes the general
solution of the complete equation (4).
b
⇒ y (t )= y c + y p = Ae−at +
a (General Solution, case of a≠0) …..(5)
Let y take the value y(o) when t=0; then by setting t=0 in (5), we get:
b
y (0 )= A+
a
b
⇒ A= y (0 )−
a
b b
y (t )=[ y (0 )− ]e−at +
Thus we can rewrite (5) into: a a (Definite Solution, case of a≠0)
dy
+4 y=0
Example 1: Solve the equation dt with the initial condition y(0)=1 .
dy
+2 y=6
Example 2: Solve the equation dt with the initial condition y(0 )=10
What if a=0 , then the solution in 5’ is undefined and the differential equation is of the
extremely simple form:
dy
=b
dt ….(6)
∫ dy=∫ bdt
y (t )=bt +c …..(7)
Where c is an arbitrary constant. The two terms in 7 can, in fact, again be identified as the
complementary function and the particular integral of the given differential equation,
respectively. Since a=0 , the complementary function can simply be expressed as:
−at 0
y c =Ae = Ae = A
OR ∫ dy=∫ 0dt
y=c
y c =A
yp?
dy
y=kt , =k
Let dt
⇒ k=b
∴ y p =bt
∴ y(t )= y c + y p = A+bt
(General Solution)
dy
=2
Example: Solve the equation dt , with the initial condition y (0 )=5
Practice Questions
Find the general solution and the definite solution of the following differential equations
dy
+4 y=8 , y (0 )=2
a) dt
dy
+10 y=15 , y (0 )=0
b) dt
dy
=15 , y (0 )=1
c) dt
May possess a convenient property that the function f is in the variable y alone, while the
function g involves only the variable t so that the equation reduces to:
(2) is said to be separable because the terms involving y consolidated into f(y) can
mathematically be separated from the terms involving t, which are collected under g(t). We use
simple integration techniques to solve such equations.
2
Example 1: Solve the equation 3 y dy−tdt =0
Practice Questions
dy
=−2 y 2 t
a) dt
3
dy t
= 6
b) dt y +1
The Framework
Suppose that, for a particular commodity, the demand and supply functions are as follows:
Qd =a−bP ,( a ,b≻0 )
Qs =−c +dP ,( c , d≻0 ) ………..(1)
a+c
P= =
b+ d some positive constant (1’)
P is attainable (if ever) after a due process of adjustment, during which not only will price
change over time but
Qd ,Q s being functions of price, must change over time as well,
implying that P and Q can all be taken as functions of time.
Dynamic question: Does the time path P(t) tend to converge to P , as t→∞
The time path
Assume, for the sake of simplicity, that the rate of price change (w.r.t. time)at any moment is
always directly proportional to the excess demand ( Q d −Q s ) prevailing at that moment.
dP
=α (Q d −Qs ),(α≻0 )
i.e. dt ……(2)
α represents a (constant) adjustment coefficient.
dP
=0 Qd =Q s
dt iff
By virtue of the demand and supply functions in (1), we can express (2) in the form
dP
=α (a−bP+ c−dP )=α(a+ c )−α (b+d )P
dt
dP
or + α(b+ d )P=α (a+c )
dt
4. DIFFERENCE EQUATIONS
1. Introduction
Difference equations are used to model systems where changes occur at discrete points in time. The
terminology used to describe and solve difference equations is similar to that used for differential
equations. At the end of this topic a student should be able to:
Write down a difference equation to model simple systems that change at discrete points in time
Solve first-order and second-order difference equations
Apply concept to economic problems
Let f (t , y) be a function defined for all positive integers t and all real numbers x
y t+1 =ay t +b ,
Consider the difference equation t=0,1 ,. . .. where a is a constant. Given y 0 , it is possible to
calculate
y t algebraically for small values of t . This can be done either by using the Iterative
method or the General method.
is found
y 2 will be immediately obtainable, and so forth by repeated application (iteration) of the
pattern of change specific in the difference equation. Results of iteration will then permit the inference of
a time path.
Example1 : find the solution of the difference equation Δy=2 assuming an initial value of
y 0 =15
where a and c are two constants. The general solution will consist of the sum of the particular
integral,
yp and a complementary function,
yc
t
Complementary function: Let y t = Ab (with Ab t ≠0 ), find y t+1 and substitute into the
homogeneous equation. (Illustration to be provided in class)
t t
⇒ y c (= Ab )=A (−a ) …………………………..(2)
Particular integral: let
y t =k (a constant), evaluate y t+1 and substitute into the complete equation.
(Illustration to be provided in class)
c
⇒ y p =k= (a≠−1)
1+a …………………………..(3)
NB: Since
yp is a constant, a stationary equilibrium is indicated.
If a=−1 , (3) is not defined, hence let y t =kt , evaluate y t+1 and substitute into the complete
equation.
Adding
y c and y p together gives the following general solution:
c
y t = A(−a )t +
1+a (General solution, a≠−1 )………………(5)
t
y t = A(−a ) +ct= A+ ct (General solution, a=−1 )…………..(6)
c c
y t =( y 0− )(−a)t +
The definite version of (5) is 1+1 1+ a ……………………………….(5’)
Examples: (a) y t+1 −5 y t =1( y 0 =7/4 (b) y t+2 +3 y t =4( y 0=4 ) (Illustration to be provided in
class)
Particular integral: the solution of (7) is expected to have two components: a particular integral and a
c
⇒ y p (=k )=
1+a1 +a2 (case of a1 +a2 ≠−1 )…………………….(8)
⇒ y p (=k )=3
If
a1 +a2 =−1 , the trial solution y t =k breaks down, then we try y t =kt instead. (Illustration
to be provided in class).
c
⇒ y p (=kt )= t
a 1 +2 (a case where
a1 +a2 =−1 )………………………..(9)
⇒ y p =4 t
t
Complementary Function: try a solution of the form y t = Ab , evaluate y t+1 , y t+2 and substitute
trial solution into the homogeneous equation. (Illustration to be provided in class)
t t
y c =A 1 b1 + A 2 b2 ……………………..(10)
When a21 =4 a2 , the roots of the characteristic equation would be repeated, that is,
−a1
b=(b1 =b 2 )=
2 . If we express the complementary function in the form of (10), the two
use the old trich of multiplying bt by the variable t . The complementary function for the repeated
root case is:
t t
y c =A 3 b + A 4 tb
4. Economic Application
1. A model by B.J Ball and E. Smolelesky is based on the following system:
Ct =cY t−1 , K=σY t−1 , Y t =C t +K t −K t−1
Where
Ct denotes consumption, K t is capital stock, Y is net national product and c and
σ are positive constants. Give an economic interpretation of the equations. Derive and solve
References
Subject to m constraints
a11 x 1 +a 12 x 2≤b1
a21 x 1 +a22 x 2≤b2
−−−−−−−−−−
am 1 x 1 +a m 2 x2 ≤b m (inequality constraints)
LP problems with only two decision variables can be solved by a simple geometric method.
Procedure:
Example: you need to buy some filing cabinets. You know that cabinet X costs $10 per unit,
requires six square feet of floor space, and holds eight cubic feet of files. Cabinet Y costs $20 per
unit, requires eight square feet of floor space, and holds twelve cubic feet of files. You have been
given $140 for this purchase, though you don’t have to spend that much. The office has room for
no more than 72 square feet of cabinets. How many of which model should you buy, in order to
maximize storage volume?
3 x1 +6 x 2≤150
x 1 +0 .5 x 2 ≤22
x 1 +x 2≤27 . 5
max z=20 x 1 +30 x2 s.t x 1≥0 , x 2 ≥0
The output pair ( x1 ,x 2 ) is called admissible (or feasible) for the problem if all the five
For example: for the flour constraint, 3 x1 +6 x 2≤150 , if we use all the flour then
3 x1 +6 x 2=150 , and we call this the flour border. We can find similar borders for other
inputs.
The diagram below shows the straight lines that represent the flour border, sugar border and the
butter border:
In order for ( x1 , x 2 ) to be admissible, it has to be on or below (to the ‘southwest’ of) each of
admissible pairs for the problem, called the admissible (or feasible) region, is the set S shown
in the diagram above.
The five corner points O , A , B ,C and D are called extreme points of the set S
Point B (5,22 .5) maximizes profits for the baker and the total profit is 775.
Practice Question: a firm produces small and medium television sets. The profit is 800 for each
small and 1000 for each medium television set. Each television has to be processes in three
different divisions. Each small TV requires respectively, 4, 2 and 2 hrs in divisions 1, 2 and 3.
The corresponding numbers for the medium TV sets are 2, 8 and 4. Suppose divisions 1 and 2
both have a capacity of at most 16hrs per day and division 3 has a capacity of at most 11 hours
per day. Formulate and solve the LP problem for the firm
Confronted with an optimisation problem involving scarce resources, an economist will often
ask: what happens to the optimal solution if the availability of resources changes?
For linear programs, the answer to this question is intimately related to the so-called Duality
Theory of LP.
Suppose the baker were to receive (free of charge) one extra kilo of flour. How much would this
extra kilo add to his maximum profit? How much would an extra kilo of sugar contribute to
profit? Or an extra kilo of butter?
If the baker receives one extra kilo of flour, his flour border would become 3 x1 + 6 x 2=151 .
The admissible set S will expand slightly and point B will move slightly up along the butter
'
border. The new optimal point B will be at the intersection of the lines 3 x1 +6 x 2=151 and
x 1 + x 2=27 . 5
Solving these equations gives x 1=14 /3 and x 2=137 /6 . Then the criterion function becomes
If the baker receives an extra kilo of sugar, the admissible set will expand, and the optimal point
is still at B (Recall, at the optimum in the original problem, the baker had 5.75kilos of unused
sugar. Hence there is no extra profit)
An extra kilo of butter would give a new optimal point at the intersection of the lines
3 x1 +6 x 2≤150 and x 1 + x 2=28 . 5 . Solving these equations gives x 1=7 , x 2 =21. 5 with
The three numbers u¿1 =10/3 ,u ¿2=0 ,u ¿3=10 are related to the flour, sugar and butter
constraints respectively. They are the marginal profits from an extra kilo of each ingredient.
Multiply (1) by 10/3, (2) by 0 and (3) by 10. Because the multipliers are all ¿ , the inequalities
Add the inequalities, using the obvious fact that if A<B, C<D, and E<F, then A+C+E<B+D+F.
NB: the pattern revealed in this example turns up in all linear programming problems
1 ¿ ¿
In fact the numbers u1 , u2 , u3 are solutions to a new LP problem called the dual of the original
problem.