slides_matheconomics
slides_matheconomics
1
Phần dành cho đơn vị
Macroeconomics
Microeconomics
Statistics in Economics
Economic research
----
Course objectives
1
Studying materials
Assessment
CONTENTS
• MATRIX - DETERMINANT
• LINEAR EQUATION
• ONE-VARIABLE FUNCTION
• MULTI-VARIABLE FUNCTION
2
Part 1: Matrix - Determinant
(Chapter 15 and 16)
Contents
1. Matrices
2. Matrix Operations
3. The Transpose
4. Determinants
5. The inverse matrix
6. Rank of the matrix
Matrices
3
Matrices
10
Example
11
Square matrix
4
Diagonal matrix
Diagonal matrix:
a11 0 ... 0 a11
0 a
22 ... 0 a22
A A
... ... ... ... ...
0 0 ... ann ann
Zero matrix
Zero matrix:
0 0 ... 0
0 0 ... 0
A
... ... ... ...
0 0 ... 0
14
Rule
15
5
Matrix operations
16
Matrix operations
2. Matrix addition
A=[aij]mxn; B=[bij]mxn => A+B =[aij+bij]mxn
2 1 4 4 9 3
2 3 0 1 3 5
3. Multiplication by scalars
A=[aij]m x n, kR => kA=[kaij]m x n
17
Matrix operations
Note:
• The matrix (−1)A is usually denoted by −A, and
the difference between the two matrices A and B
of the same dimension, A − B, means the same
as A + (−1)B.
• In our chain store example, B − A denotes the
(net) change in sales revenue for each commodity
from each outlet between one month and the
next. Positive components represent increases
and negative components represent decreases.
• More: exercise for section 15.2 (page 587)
18
6
Matrix operations
19
Matrix Multiplication
20
Matrix Multiplication
1 2 3 1
2 1 1
3 2 0 2 1 1 0
3 0 2 1
21
7
Matrix Multiplication
Rules
• (A.B).C = A.(B.C)
• A(B+C) = AB + AC
• (B+C)A = BA + CA
• k(BC) = (kB)C = B(kC)
• Phép nhân nói chung không có tính giao hoán
• A=[aij]n x n => I.A = A.I = A
22
Exercise
Revenue calculation
24
8
Revenue calculation
3. Suppose quantity of goods sold (items) and price
(USD/item) of 4 types of goods at three markets are
given:
.
Quantity 1 2 3 4 Price 1 2 3 4
M-A 50 40 65 100 M- A 8 15 20 30
M- B 20 80 40 80 M- B 9 14 21 29
M- C 20 100 90 75 M- C 7 13 22 27
25
26
27
9
Matrix of daily international flights
from country A to C
28
Symmetric matrices
1 3 5 7
3 2 1 4
A
5 1 3 6
7 4 6 4
Gaussian emilination
(later in the next lecture)
29
30
10
DETERMINANTS
1. Definition
A is an square matrix by order 1:
A= [a11] => det(A) = a11
31
DETERMINANTS
32
DETERMINANTS
33
11
DETERMINANTS
2. Rules
No 1:AT=A
1 2 1 3
3 4 2 4
No 2: If two rows (or two columns) of A are interchanged, the
determinant changes sign, but the absolute value remains
unchanged
1 2 3 4
3 4 1 2
34
DETERMINANTS
DETERMINANTS
12
DETERMINANTS
a11 0 ... 0
a 21 a 22 ... 0
a11a 22 ...a nn
... ... ... ...
a n1 a m 2 ... a nn
37
DETERMINANTS
38
39
13
THE INVERSE OF THE MATRIX
C11 C 21 ... C n1
... C n 2
1 1 T 1 C12 C 22
A C
A A ... ... ... ...
C C 2 n ... C nn
1n
40
Example
3 1 2
A 2 1 1
0 2 1
3 3 3 1 1 1
1
A 1 2 3 1 2 / 3 1 1 / 3
3
4 6 5 4 / 3 2 5 / 3
41
42
14
THE INVERSE OF THE MATRIX
Example:
1 1 2
A 1 2 2
2 4 3
1 1 2 1 0 0 H1 H2 1 1 2 1 0 0
A I 1 2 2 0 1 0 1 0 1 0 1 1 0
2H H3
2 4 3 0 0 1 0 2 1 2 0 1
H 2 H1
1 0 2 2 1 0 2 H H 1 0 0 2 5 2
1 0 1 0
3 1
2 H2 H3
0 1 0 1
1H 3
0 1 0 1
0 0 1 0 2 1 0 0 1 0 2 1
43
Exercise
44
Matrix rank
Matrix rank is the highest order of the non-zero
determinant of the matrix
45
15
RANK OF THE MATRIX
1 3 4 2
A 2 1 1 4
1 2 1 2
46
47
-
Example:
1 2 3 4
0 2 3 4 1 2 0
1 2 0 2 4 0
B 2 1 0
A C
D 0 0 0
0 0 0 1 0 0 1
0 0 0 0 0 1 3
0 0 0
48
16
RANK OF THE MATRIX
2 5 1 3
A 1 11 7 6
1 2 2 1
49
1. Definition
2. The Crame’s rule (16.8)
3. The Gauss’s rule (15.6)
50
DEFINITION
51
17
DEFINITION
Matrices:
a11 a12 ... a1n
a21 a22 .... a2n
A
... ... ... ...
am1 am2 ... amn
x1 b1
x 2 b2 Then AX = B
X B
... ...
xn bm
52
DEFINITION
53
DEFINTION
18
THE CRAME’S RULE
55
x1 2x 3 6
3x1 4 x 2 6x 3 30
x 2 x 3 x 8
1 2 3
56
57
19
THE GAUSS’S RULE
2x1 4x 2 3x3 4
3 x1 x 2 2x 3 2
4 x 11x 7 x 7
1 2 3
58
Homogeneous Systems of
Equations
59
Homogeneous Systems of
Equations
Example
x1 2 x2 4 x3 3 x4 0
3x 5 x 6 x 4 x 0
1 2 3 4
4
1 x 5 x 2 2 x3 3 x4 0
3x1 8 x2 24 x3 19 x4 0
60
20
Applying in economics
1. Market balance
The market balance is condition in which
the product price (and quantity) expected
by consumers and the price (and quantity)
offered by the producer is the same.
61
Applying in economics
62
Applying in economics
63
21
Applying in economics
64
Applying in economics
65
Apply in economics
- Income of customers.
- ???
66
22
Apply in economics
Apply in economics
68
Apply in economics
Then:
a 10 a 11 P1 a 12 P2 ... a 1 n Pn b 10 b 11 P1 b 12 P2 ... b 1 n Pn
a a 21 P1 a 22 P2 ... a 2 n Pn b 20 b 21 P1 b 22 P2 ... b 2 n Pn
20
.......... .......... .......... .......... .......... .......... .......... .......... .....
a n 0 a n 1 P1 a n 2 P2 ... a nn Pn b n 0 b n 1 P1 b n 2 P2 ... b nn Pn
23
Apply in economics
70
Apply in economics
We have:
xi = xi1+ xi2+ xi3 + …+ xin + di
With xi : the total value or number of units of good i that industry i
is going to produce in a certain year.
xij the number of units of good i which is the input of
industry j or the number of units good i that to be needed by good
j
di the final demand that are used by the customers, the
households, the government, and are exported.
All these variables should be used in value which is measured in
a certain currency
71
Apply in economics
24
Apply in economics
xij
Let a ij we have the following system of linear equations:
xj
x1 a11 x1 a12 x2 ... a1n xn d1
x a x a x ... a x d
2 21 1 22 2 2n n 2
.......... .......... .......... .......... .......... .
xn an1 x1 a n 2 x2 ... a nn xn d1
73
Apply in economics
aij called input (or technical) coefficients: industry j have to pay for
industry i an amount of money aij in order to produce 1$ output.
Ex: a13 = 0.2: to have an output $1, the industry 3 have to pay $0.2 for
industry i
To find solution x1, x2, ..., xn we need to solve the system of linear
equation (1)
74
75
25
Part 3: Functions of one variable
and Derivatives in Use
76
77
78
26
Part 3: Functions of one variable
and Derivatives in Use
Average cost (AC): is the cost per output unit
AC = TC/Q = (FC + VC.Q)/Q
79
80
81
27
Part 4 : Functions of one variable and
Derivatives in Use
Applied
1. In management:
Ex: TC = 0.1Q2+ 10Q + 1000; and P = 50 – 0.1Q
a. Find TR, TC, and π in case of Q = 10 units.
b. Find TR, TC, and π in case of Q = 100 units
c. Find break even Q (is the point of balance making
neither a profit nor a loss).
d. Find Q so that the company has profit.
82
3. Maximum of revenue: MR = 0.
4. Maximum of profit: MR= MC
5. Elasticity of a function: p.228
ey,x = (y/y)(%)/(x/x)(%)
= (y/ x)*x/y
= (dy/dx)*x/y
= f’(x)*(x/y)
Meaning: x change 1%, y change ey,x %
28
Part 4 : Functions of one variable and
Derivatives in Use
1. Suppose we have:
Qd = 20 – P
Qs = -30 + 2P
a. Find quantity and price as market balance?
b. Find elasticity of demand and supply at market
balance?
2. Price balance is 40 USD/unit, if price increase to 80
USE/unit, the quantity demand decrease from 160
units to 120 units. Find elasticity of demand?
85
Part 5
Functions of two
variables and Derivatives
in Use
(Chap 11)
86
Contents
• Definition
• Partial derivatives
• Economic applications
+ Marginal functions
+ Partial Elasticities
+ Multivariable optimization
87
29
Functions of Two Variables
88
If z = f(x,y), then:
z f
z x, f x, ( x, y ) f1, ( x, y )
x x
z f
z,y fy, ( x, y ) f2, ( x, y )
y y
89
' '
Find f x ( 2 ,2 ) and fy (1,2)
Problem 11.2
90
30
Solution
91
f 2f
( )( ) f ' ' x 2 ( x, y ) f ' ' xx ( x, y )
x x x 2
f 2 f
( )( ) f ' ' yx ( x, y )
x y xy
f 2 f
( )( ) f ' ' xy ( x, y )
y x yx
2
f f
( )( ) f ' ' yy ( x, y )
y y y y
92
Interior Extreme
93
31
Interior Extreme
94
Interior Extreme
95
Interior Extreme
32
Interior Extreme
At interior extreme:
Let ps = g’x , qs = g’y , r = L’’xx , s = L’’xy , t = L’’yy.
We have an Heissen matrix:
0 p s qs
H ps r s
qs s t
If det H > 0 , f(x,y) is maximum with g(x,y)=b.
If det H < 0 , f(x,y) is minimum with g(x,y)=b.
97
Interior extreme
98
Applied
1. Maximum profit:
A company produces two products A and B. We have:
Demand function of A: Q1 = 14 – ¼ P1
And B: Q2 = 24 -1/2 P2
Total cost: TC = Q12 + 5Q1Q2 + Q22
Find Q1, Q2 to maximize profit
99
33
Applied
• Ta có Q1 = 14 – ¼ P1 => P1 = 56 – 4 Q1
• Ta có Q2 = 24 -1/2 P2 => P2 = 48 – 2 Q2
• DT = P1Q1 + P2Q2= 56Q1 -4Q12 + 48Q2 -2Q22
• LN = DT –TC = - 5Q12 - 5Q1Q2 + 56Q1 + 48Q2 -3Q22
• LN’(Q1) = - 10Q1 - 5Q2 + 56 = 0
• LN’(Q2) = - 6Q2 - 5Q1 + 48 = 0
• => Q1 = 2.7 ; Q2 = 5.7
• r = LN’’(Q1Q1) = -10
• s = LN’’(Q1Q2) = -5
• t = LN’’(Q2Q2) = -6
• S^2 –rt = 25 – 60 < 0; Vì r < 0 => Q1 = 2.7; Q2 = 5.7 là điểm cực
đại.
• Vậy LN_max =
100
Applied
2. Maximum Q
We have a production function: q=10K1/2L1/2
• Price of K (w) and L (v) both are 4; and with
TC=400=vL+wK.
• Find K and L to maximize quantity (q)? And find
q?
101
Applied
102
34
Applied
4. Partial elasticity:
Let l = f(x,y,z…).
Partial elasticity of I w.r.t x defined:
ef,x = (f/f)(%)/(x/x)(%)
= (f/ x)*x/f
= (δf/ δ x)*x/f
= f’x (x/f)
103
Applied
Ex:Supposed
Qxd = 100 – 2Px + 3Py – 0.3I + 1Ax.
In which:
Px is price of X,
Py is price of Y,
I is income of customers,
A is units of advertisement of X.
If Px=20 (unit); Py = 30 (unit), I=25 (unit) và Ax = 50
(unit).
Find partial elasticity of X demand w.r.t Px (eQd,pX),
w.r.t Py (eQd,Py), and w.r.t income (eQd,I).
104
105
35
• Let Y = F(K, L) be the number of units produced when
K units of capital and L units of labour are used as
inputs in a production process. What is the economic
interpre tation of F K(100, 50) = 5?
• Solution: F K(100, 50) = 5 means that, starting from K
= 100 and holding labour input fixed at 50, a small
increase in K increases output by five units per unit
increase in K.
106
Marginal functions
107
Partial Elasticities
108
36
Problem: 11.8 (1 page 408)
109
Profit maximization
110
111
37
112
113
114
38