Docsity

Matrix Operations and Equation Solving in Economics: Laboratory Exercise 11, Lab Reports of Economics

Toggle sidebar
bg1
ECONOMICS 207
SPRING 2008
LABORATORY EXERCISE 11
KEY
Problem 1. Consider the following matrix and vector.
P=·1 2
2 5 ¸, p =·8
18 ¸,
a. Use elementary row operations to find both the inverse of P and solve the equation Px=p in one set of
operations.
First, augment matrix Pwith an 2 ×2 identity matrix and p. That is,
˜
A=¡P I2×2p¢
=Ã1 2 1 0 8
2 5 0 1 18!
Then using elementary row operation on matrix ˜
Ato create an identity matrix on the left side.
Based on the augmented matrix ˜
A, subtract the first row multiplied by 2 from the second row.
Ã1 2 1 0 8
2−1×2 5 −2×2 0 −1×2 1 18 −8×2!=Ã1 2 1 0 8
01−212!(1)
Based on the matrix on the right side of equation (1), subtract the second row multiplied by 2 from
the first row.
Ã1 2 −1×2 1 −(−2) ×2 0 −1×2 8 −2×2
0 1 −2 0 2 !=Ã1 0 5 −2 4
0 1 −212!(2)
So P−1=Ã5−2
−2 1 !. And the solution for Px=pis x=Ã4
2!.
Date: August 5, 2008.
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19

Partial preview of the text

Download Matrix Operations and Equation Solving in Economics: Laboratory Exercise 11 and more Lab Reports Economics in PDF only on Docsity!

ECONOMICS 207

SPRING 2008

LABORATORY EXERCISE 11

KEY

Problem 1. Consider the following matrix and vector.

P =

[

]

, p =

[

]

a. Use elementary row operations to find both the inverse of P and solve the equation Px=p in one set of

operations.

First, augment matrix P with an 2 × 2 identity matrix and p. That is,

A˜ =

P I 2 × 2 p

Then using elementary row operation on matrix

A to create an identity matrix on the left side.

Based on the augmented matrix

A, subtract the first row multiplied by 2 from the second row. ( 1 2 1 0 8

2 − 1 × 2 5 − 2 × 2 0 − 1 × 2 1 18 − 8 × 2

Based on the matrix on the right side of equation (1), subtract the second row multiplied by 2 from

the first row. ( 1 2 − 1 × 2 1 − (−2) × 2 0 − 1 × 2 8 − 2 × 2

So P

− 1

. And the solution for P x = p is x =

Date: August 5, 2008.

1

b. Find the determinant of the matrix P.

P =

[

]

, p =

[

]

∣P

= 1 × 5 − 2 × 2 = 1

c. Find the inverse of the matrix P using the cofactor/adjoint method.

The adjoint of matrix P is given by

adj(P ) =

)T

Then the inverse of matrix P is given by

P

− 1

∣P

d. Solve the equation Px=p using the inverse you found in part 1c

The solution is given by

x = P

− 1 p

5 × 8 − 2 × 18

− 2 × 8 + 1 × 18

Problem 2. Consider the following matrix and vector.

Q =

[

]

, q =

[

]

a. Use elementary row operations to find both the inverse of Q and solve the equation Qx=q in one set of

operations.

First augment matrix Q with an 2 × 2 identity matrix and matrix q. That is,

A =

Q I 2 × 2 q

Then using elementary row operations on the augmented matrix

A to create an identity matrix on the

left side.

Based on the augmented matrix

A, subtract the first row multiplied by 1/2 from the second row.

1 − 2 × (1/2) 3 − 4 × (1/2) 0 − 1 × (1/2) 1 − 1

Based on the augmented matrix on the right side of equation (3), subtract the second row multiplied

by 4 from the first row. ( 2 4 − 1 × 4 1 − (− 1 /2) × 4 0 − 1 × (4) 0 − (−1) × (4)

Based on the augmented matrix on the right side of equation (4), divide the first row by 2. ( 2 / 2 0 3 / 2 − 4 / 2 4 / 2

So Q

− 1

And the solution is given by x =

b. Find the determinant of the matrix Q.

Q =

[

]

, q =

[

] , ∣ ∣ ∣ ∣ ∣

= 2 × 3 − 4 × 1 = 2

c. Find the inverse of the matrix Q using the cofactor/adjoint method.

The adjoint of matrix Q is given by

adj(Q) =

)T

Then the inverse of matrix Q is given by

Q

− 1

Q

d. Solve the equation Qx=q using the inverse you found in part 2c

The solution is given by

x = Q

− 1 q

(3/2) × 0 + (−2) × (−1)

(− 1 /2) × 0 + 1 × (−1)

Problem 3. Consider the following matrix and vector.

F =

 (^) , f =

a. Use elementary row operations to find both the inverse of F and solve the equation Fx=f in one set of

operations.

First augment the matrix F with an identity matrix I 3 × 3 and matrix f. That is,

A =

F I 3 × 3 f

Then using elementary row operations on matrix A˜ to make the left side be an identity matrix.

Based on

A, add the first row multiplied by 4 to the second row.

−4 + 1 × 4 5 + (−1) × 4 −6 + 2 × 4 0 + 1 × 4 1 0 −2 + 3 × 4

Based on the matrix on the right side of equation (6), subtract the first row multiplied by 2 from the

third row.

2 − 1 × 2 − 3 − (−1) × 2 3 − 2 × 2 0 − 1 × 2 0 1 − 1 − 3 × 2

Based on the matrix on the right side of equation (7), add the second row to the third row.

Based on the matrix on the right side of equation (8), add the third row multiplied by −2 to the first

and the second row.

1 − 1 2 + 1 × (−2) 1 + 2 × (−2) 0 + 1 × (−2) 0 + 1 × (−2) 3 + 3 × (−2)

0 1 2 + 1 × (−2) 4 + 2 × (−2) 1 + 1 × (−2) 0 + 1 × (−2) 10 + 3 × (−2)

Based on the matrix on the right side of equation (9), add the second row to the first row.

So F

− 1

. And the solution of^ F^ x^ =^ f^ is given by

x =

d. Solve the equation Fx=f using the inverse you found in part 3c

F =

 (^) , f =

The solution is given by

x = F

− 1 f

− 3 × 3 + (−3) × (−2) + (−4) × (−1)

0 × 3 + (−1) × (−2) + (−2) × (−1)

2 × 3 + 1 × (−2) + 1 × (−1)

e. Solve the equation Fx=f using Cramer’s rule.

Using Cramer’s rule, the solution is given by

x =

|F |

3 ×

− (−1) ×

+ 2 ×

1 ×

− 3 ×

+ 2 ×

1 ×

− (−1) ×

+ 3 ×

3 × (−3) + (−12) + 2 × 11

1 × (−12) − 3 × 0 + 2 × 8

1 × (−11) + 1 × 8 + 3 × 2

Problem 5. For each of the following problems, find the critical points. For each critical point state whether

the function is at a relative maximum, relative minimum, or otherwise. Check to see if there are potential

points of inflection at points other than critical points.

a. f (x) = x

4 −

20 3 x

3

x 2

2

  • 60x.

Figure 1. f (x) = x 4 −

20 3

x 3

x 2

2

  • 60x
  • 2 2 4

x

  • 50

50

100

f @ x D

The inflection points are

1 6

The derivatives of f (x) = x 4 −

20 3

x 3

x 2

2

  • 60x are given by

f

′ (x) = 4x

3 − 20 x

2

  • x + 60 (11)

f

′′ (x) = 12x

2 − 40 x + 1 (12)

f

(3) = 24x − 40 (13)

Set the first derivative, equation (11), to be zero. That is,

f

′ (x) = 4x

3 − 20 x

2

  • x + 60 = 0 (14)

By guess, x = 4 is a solution of equation (14), we try to factorize 4x

3 − 20 x

2

  • x + 60 by (x − 4).

4 x

2 − 4 x − 15

x − 4

4 x

3 − 20 x

2

  • x + 60

− 4 x

3

  • 16x

2

− 4 x

2

  • x

4 x

2 − 16 x

− 15 x + 60

15 x − 60

Then,

f

′ (x) = 4x

3 − 20 x

2

  • x + 60 = 0

⇒ (x − 4)(4x

2 − 4 x − 15) = 0

⇒ (x − 4)(2x + 3)(2x − 5) = 0

⇒ x = 4 or x = − 3 / 2 or x = 5/ 2

Check the second derivative, equation (12), when x = 4, x = − 3 /2, and x = 5/2 respectively.

f

′′ (4) = 12 × 4

2 − 40 × 4 + 1 = 33 > 0

f

′′ (− 3 /2) = 12 × (− 3 /2)

2 − 40 × (− 3 /2) + 1 = 88 > 0

f

′′ (5/2) = 12 × (5/2)

2 − 40 × (5/2) + 1 = − 24 < 0

In addition, f (− 3 /2) < f (4). So x = − 3 /2 is a global minimum point. x = 4 is a local minimum point.

x = 5/2 is local maximum point.

Set the second derivative, equation (12), to be zero.

f

′′ (x) = 12x

2 − 40 x + 1 = 0

⇒ x =

40 ±

√ 402 − 4 × 12 × 1 2 × 12

⇒ x =

10 ±

√ 97 6

Since the third derivative, equation (13), is zero only when x = 40/24 = 5/3. So x =

10 ±

√ 97 6

are two

inflection points.

We still need to check the second derivative when x = 4 and x = −2. The second derivative is given

by

f

′′ (x) =

d

[

2 x 2 − 4 x − 16

(x 2

  • 5x + 3) 2

]

d x

(4x − 4)(x 2

  • 5x + 3) 2 − (2x 2 − 4 x − 16)[2(x 2
  • 5x + 3)(2x + 5)]

(x 2

  • 5x + 3) 4

(4x − 4)(x 2

  • 5x + 3) − (2x 2 − 4 x − 16)(4x + 10)

(x 2

  • 5x + 3) 3

4 x

3 − 4 x

2

  • 20x

2 − 20 x + 12x − 12 − (8x

3 − 16 x

2 − 64 x + 20x

2 − 40 x − 160)

(x 2

  • 5x + 3) 3

− 4 x

3

  • 12x

2

  • 96x + 148

(x 2

  • 5x + 3) 3

4(x

3 − 3 x

2 − 24 x − 37)

(x^2 + 5x + 3)^3

Then,

f

′′ (4) = −

3 − 3 × 4 2 − 24 × 4 − 37)

2

  • 5 × 4 + 3) 3

3

f

′′ (−2) = −

3 − 3 × (−2) 2 − 24 × (−2) − 37)

2

  • 5 × (−2) + 3) 3

3

So x = −2 is a local maximum point. x = 4 is a local minimum point.

Problem 6. Solve the following system of equations.

360 x

− 2 / 3 1 x

2 / 5 2

432 x

1 / 3 1 x

− 3 / 5 2

x 1 = 27.

From the second equation,

432 x

1 / 3 1 x

− 3 / 5 2

⇒ 432 x

1 / 3 1 x

− 3 / 5 2

x

− 3 / 5 2 =^ x

− 1 / 3 1

⇒ x

− 1 / 3 1

x

− 3 / 5 2

⇒ x

− 2 / 3 1

x

− 6 / 5 2

Substitute x

− 2 / 3 1 =

2

x

− 6 / 5 2 into the first equation.

360 x

− 2 / 3 1 x

2 / 5 2 −^160 =^0

x

− 6 / 5 2

x

2 / 5 2 −^160 =^0

⇒ x

− 4 / 5 2

2

= 2 − 4

⇒ x

1 / 5 2

⇒ x 2 = 32

Substitute x 2 = 32 into x

− 1 / 3 1

x

− 3 / 5 2

x

− 1 / 3 1

x

− 3 / 5 2

⇒ x

− 1 / 3 1

− 3 / 5 = 3

− 1

⇒ x

1 / 3 1

⇒ x 1 = 27

So the solution is

x 1 = 27, x 2 = 32

b. Maximize this function by taking its derivative with respect to the variable input x and setting the

resulting equation equal to zero.

d P rof it

d x

d

− 10 x 3

  • 200x 2 − 770 x

d x

⇒ − 30 x

2

  • 400x − 770 = 0

⇒ 3 x

2 − 40 x + 77 = 0

⇒ (x − 11)(3x − 7) = 0

⇒ x = 11 or x = 7/ 3

c. If you identify more than one critical value from setting the first derivative of profit equal to zero, show

which ones, if any, maximize profit.

Two points, x = 11 and x = 7/3, are identified from setting the first derivative of profit equal to zero.

We need to check the second derivative. The second derivative is given by

d

2 P rof it

d x 2

d

− 30 x

2

  • 400x − 770

d x

= − 60 x + 400

When x = 11,

d 2 P rof it

d x 2

= − 60 ×11+400 = − 260 < 0. When x = 7/3,

d 2 P rof it

d x 2

= − 60 × 7 /3+400 =

So x = 11 is the point where the profit attains its maximum.

d. Explain in words why the value of the marginal product for this firm is equal to the price of the single

variable input at the profit maximizing level of input use. You can use the following information in

explaining this phenomenon. Say something about the benefits of using an input not being less than the

cost of the input.

Output =y = f (x)

M P =Marginal Product =

d f (x)

dx

= f

′ (x) =

∆y

∆x

Revenue =pf (x)

Cost =wx

P rof it = π =Revenue − Cost = pf (x) − wx

dπ

dx

The first derivative of profit is given by

d P rof it

d x

d (pf (x) − wx)

d x

= pf

′ (x) − w

So setting the first derivative to zero in order to maximize the profit can be expressed by below equation.

pf

′ (x) − w = 0 (15)

In fact, the left side of equation (15) is the output price times the marginal product, i.e. the value of

the marginal product. And the right side of equation (15) is the price of input variable. As a result,

value of the marginal product for this firm is equal to the price of the single variable input at the profit

maximizing level of input use.

In other words, when the value of the marginal product is higher than the price of input variable, the

firm can profit from increasing the input. On the other hand, when the value of the marginal product is

less than the price of input variable, the firm can profit from decreasing the input. Thus, when the value

of the marginal product is equal to the price of input variable, the firm attains the optimal input level

for maximizing profit.