Answer Key To Practice Questions For Midterm Econ104 Fall2024
Answer Key To Practice Questions For Midterm Econ104 Fall2024
1
We compute the following:
α−1
∂f x−y+z 1(x + y − z) − (x − y + z) · 1
= α ·
∂x x+y−z (x + y − z)2
α−1
2α(y − z) x−y+z
= 2
(x + y − z) x + y − z
α−1
∂f x−y+z −(x + y − z) − (x − y + z) · 1
= α ·
∂y x+y−z (x + y − z)2
α−1
−2αx x−y+z
= 2
(x + y − z) x + y − z
α−1
∂f x−y+z (x + y − z) − (x − y + z) · (−1)
= α ·
∂z x+y−z (x + y − z)2
α−1
2αx x−y+z
=
(x + y − z)2 x + y − z
Then, we obtain
∂f (x, y, z) ∂f (x, y, z) ∂f (x, y, z)
x +y +z
∂x ∂y ∂z
α−1
2α x−y+z
= 2
[x(y − z) − xy + xz] = 0.
(x + y − z) x + y − z
This completes the argument.
Question 1.2 (Inverse Matrix) Consider the following system of linear equa-
tions:
x − y + 2z = 1
−x + 2y + z = 0
2x + y − z = 2.
Use the inverse matrix to solve this system of equations. You are required to
leave every step for deriving the inverse matrix.
Let us define
1 −1 2
A = −1 2 1 .
2 1 −1
Then, we can rewrite the system of equations in matrix form:
1 −1 2 x 1
−1 2 1 y = 0
2 1 −1 z 2
2
We first compute the determinant of A:
2 1 −1 2 −1 2
|A| = 1(−1)1+1 − 1(−1)2+1 + 2(−1)3+1
1 −1 1 −1 2 1
= (−2 − 1) + (1 − 2) + 2(−1 − 4) = −14.
We next compute every cofactor of A:
2 1
A11 = (−1)1+1 = −2 − 1 = −3
1 −1
−1 1
A12 = (−1)1+2 = −(1 − 2) = 1
2 −1
−1 2
A13 = (−1)1+3 = (−1 − 4) = −5
2 1
−1 2
A21 = (−1)2+1 = −(1 − 2) = 1
1 −1
1 2
A22 = (−1)2+2 = (−1 − 4) = −5
2 −1
1 −1
A23 = (−1)2+3 = −(1 + 2) = −3
2 1
−1 2
A31 = (−1)3+1 = (−1 − 4) = −5
2 1
1 2
A32 = (−1)3+2 = −(1 + 2) = −3
−1 1
1 −1
A33 = (−1)3+3 = (2 − 1) = 1.
−1 2
So, we have
A11 A21 A31 3 −1 5
1 1 1
A−1 = adj(A) = − A12 A22 A32 = −1 5 3 .
|A| 14 14
A13 A23 A33 5 3 −1
Therefore, we obtain
x 1 3 −1 5 1 (3 + 10)/14 13/14
y = A−1 0 = 1 −1 5 3 0 = (−1 + 6)/14 = 5/14 .
14
z 2 5 3 1 2 (5 − 2)/14 3/14
Question 1.3 (Single-Variable Optimization) Let a ≥ 0 be a nonnegative
constant and f be the following function:
1
f (x) = − x3 + 2x2 + (a − 5)x − 72.
3
3
Let D = {x ∈ R| x ≥ 0} be the set of nonnegative real numbers. We consider
the following optimization problem:
max f (x).
x∈D
√ √
Since a√> 5, 2 − a − 1 < 2 − 5 − 1 = 0. This implies that f (0) <
√ a − 1). Therefore,√f achieves the global maximum value at x =
f (2 +
2 + a − 1. So, x = 2 + a − 1 is the global maximum point of f over
D when a > 5.
4
√
When 1 ≤ a ≤ 5, we have 2− a − 1 ≥ 0. As we did in the previous ques-
tion, we characterize those intervals over which f is strictly increasing,
strictly decreasing, or constant:
√
< 0 if 0 ≤ x < 2
√ − a−1
= 0 if x = √ 2− a−1
√
′
f (x) > 0 if 2 − a −√1 < x < 2 + a − 1
= 0 if x = 2 + √a − 1
< 0 if x > 2 + a − 1
Therefore, the
√ global maximum point of f over D must be either x = 0
or x = 2 + a − 1. We first compute
f (0) = −72.
We next compute
√
f (2 + a − 1)
1 √ √ √
= − (2 + a − 1)3 + 2(2 + a − 1)2 + (a − 5)(2 + a − 1) − 72
3
1 √ √ √
(2 + a − 1) −(2 + a − 1)2 + 6(2 + a − 1) + 3(a − 5) − 72
=
3
1 √ √ √
= (2 + a − 1) −4 − 4 a − 1 − a + 1 + 12 + 6 a − 1 + 3a − 15 − 72
3
1 √ √
= (2 + a − 1) −6 + 2a + 2 a − 1 − 72
3
2 √ √
= (2 + a − 1) −3 + a + a − 1 − 72.
3
This implies that
√ √
f (2 + a − 1) > f (0) ⇔ −3 + a + a − 1 > 0
√ √
f (2 + a − 1) = f (0) ⇔ −3 + a + a − 1 = 0
√ √
f (2 + a − 1) < f (0) ⇔ −3 + a + a − 1 < 0
This is equivalent to
√ √
f (2 + a − 1) > f (0) ⇔ a−1>3−a
√ √
f (2 + a − 1) = f (0) ⇔ a−1=3−a
√ √
f (2 + a − 1) < f (0) ⇔ a − 1 < 3 − a.
Finally, we conclude the following relationship:
√
f (2 + a − 1) > f (0) ⇔ a > 2
√
f (2 + a − 1) = f (0) ⇔ a = 2
√
f (2 + a − 1) < f (0) ⇔ a < 2.
5
Therefore, the global maximum points of f over D in this case are
√
2 + √a − 1 if a > 2
0, 2 + a − 1 if a = 2
0 if a < 2
1. Find AA = A2 .
2
a b 0 a b 0 a − b2 2ab b2
A2 = −b a b −b a b = −2ab a2 − 2b2 2ab .
2
0 −b a 0 −b a b −2ab a − b2
2
2. Under what conditions, does the matrix A defined above have the prop-
erty that A = −AT ?
Therefore, A = −AT if a = 0.
−(C T BC)T =
|{z} −(BC)T (C T )T
∵ (XY )T =Y T X T
=
|{z} −(BC)T C = −C T B T C = C T (−B T )C
∵ (C T )T =C
=
|{z} C T BC.
∵ B=−B T
6
4. Let D be any square matrix. Show that D1 = (D + DT )/2 is symmetric.
1
−DT + D
=
2
1
D − DT (∵ A + B = B + A)
=
2
= D2 ,
7
where A, B are n × n matrices and α ∈ R is a scaler.
Question 2.1 (Multivariate Calculus) Find all first- and second-order par-
tial derivatives of f (x, y, z) = 3xyz + x2 y − xz 3 .
We first compute the first-order partial derivatives of f :
∂f
= 3yz + 2xy − z 3
∂x
∂f
= 3xz + x2
∂y
∂f
= 3xy − 3xz 2
∂z
We next compute the second-order derivatives of f :
∂ 2f
= 2y
∂x2
∂ 2f
= 0
∂y 2
∂ 2f
= −6xz
∂z 2
2
∂ f ∂ 2f
= = 3z + 2x
∂x∂y ∂y∂x
2
∂ f ∂ 2f
= = 3x
∂y∂z ∂z∂y
2
∂ f ∂ 2f
= = 3y − 3z 2 .
∂z∂x ∂x∂z
Question 2.2 (Inverse Matrix) Consider the following system of linear equa-
tions:
y − 2z = 2
−2x + z = 3
x − 2y = −1.
Use the inverse matrix to solve this system of equations. You are required to
leave every step for deriving the inverse matrix.
8
Let us define
0 1 −2
A = −2 0 1 .
1 −2 0
Then, we can rewrite the system of equations in matrix form:
0 1 −2 x 2
−2 0 1 y = 3
1 −2 0 z −1
We first compute the determinant of A:
1 −2 1 −2
|A| = −2(−1)2+1 + 1(−1)3+1
−2 0 0 1
= 2(0 − 4) + (1 − 0) = −7.
We next compute every cofactor of A:
0 1
A11 = (−1)1+1 =0+2=2
−2 0
−2 1
A12 = (−1)1+2 = −(0 − 1) = 1
1 0
−2 0
A13 = (−1)1+3 = (4 − 0) = 4
1 −2
1 −2
A21 = (−1)2+1 = −(0 − 4) = 4
−2 0
0 −2
A22 = (−1)2+2 = (0 + 2) = 2
1 0
0 1
A23 = (−1)2+3 = −(0 − 1) = 1
1 −2
1 −2
A31 = (−1)3+1 = (1 − 0) = 1
0 1
0 −2
A32 = (−1)3+2 = −(0 − 4) = 4
−2 1
0 1
A33 = (−1)3+3 = (0 + 2) = 2.
−2 0
So, we have
A11 A21 A31 2 4 1
1 1 −1
A−1 = adj(A) = − A12 A22 A32 = 1 2 4 .
|A| 14 7
A13 A23 A33 4 1 2
9
Therefore, we obtain
x 2 2 4 1 2 −(4 + 12 − 1)/7 −15/7
y = A−1 3 = −1 1 2 4 3 = −(2 + 6 − 4)/7 = −4/7 .
7
z −1 4 1 2 −1 −(8 + 3 − 2)/7 −9/7
2uv + v 2 = 2x + y
u − v = x2 − y 2 .
We start from
2v 2(u + v) du 2dx + dy
= .
1 −1 dv 2xdx − 2ydy
10
Setting dy = 0, we obtain
2v 2(u + v) du 2dx
=
1 −1 dv 2xdx
2v 2(u + v) ∂u/∂x 2
⇔ =
1 −1 ∂v/∂x 2x
Since
2 4
= −6 ̸= 0,
1 −1
this matrix has its inverse. Therefore,
−1
∂u/∂x 2 4 2 1 1 4 2 5/3
= = = .
∂v/∂x 1 −1 2 6 1 −2 2 −1/3
We start from
2v 2(u + v) du 2dx + dy
= .
1 −1 dv 2xdx − 2ydy
Setting dx = 0, we obtain
2v 2(u + v) du dy
=
1 −1 dv −2ydy
2v 2(u + v) ∂u/∂y 1
⇔ = .
1 −1 ∂v/∂y −2y
11
Question 2.4 (Single-Variable Optimization) Let a ∈ R be a positive con-
stant and f be the function given by
x
f (x) = .
(x2 − a)1/3
Answer the following questions. (HINT: Your answer will depend on the value
of a.)
3. Find all the intervals over which f is strictly increasing, strictly decreas-
ing, or constant.
′
We first compute f (x):
12
always positive for any x defined over D. Therefore, we obtain
√
> 0 if x < −√3a
= 0 if x √ = − 3a
√
< 0 if −√3a < x <√− a
′
f (x) < 0 if − a < √x < a
√
< 0 if a < √ 3a
= 0 if x = 3a
> 0 if x > √3a
From the previous part of the √ question, we found two stationary points
of f over D. They are x = ± 3a. Since any point in D is an interior
point, by the necessity of local extreme points, any local extreme point
is a stationary point.
′′
Second, we compute f (x):
′′ 2x · 3(x2 − a)4/3 − (x2 − a)4(x2 − a)1/3 · 2x
f (x) =
9(x2 − a)8/3
2x(x2 − a)1/3 {3(x2 − a) − 4(x2 − 3a)}
=
9(x2 − a)8/3
−2x(x2 − 9a)
=
9(x2 − a)3
√ √
−2x(x + 3 a)(x − 3 a)
= .
9(x2 − a)3
Third, using the sign of the second derivative, we classify whether each
stationary point is a local maximum point or local minimum point for f
over D. We therefore compute the following:
√ √ √ √ √
′′ √ 2 3a(− 3a + 3 a)(− 3a − 3 a
f (− 3a) =
9(3a − a)3
√ √ √ √ √
−2 3a(3 3a − 3a)( 3a + 3 a)
=
72a3
< 0 √ √
√ √ √
′′ √ −2 3a( 3a + 3 a)( 3a − 3 a)
f ( 3a) =
9(3a − a)3
√ √ √ √ √
2 3a( 3a + 3 a)(3 a − 3a)
=
72a3
> 0.
13
√ √
This implies that x = − 3a is a local maximum point and x = 3a is a
local minimum point for f .
√ √
Therefore, there are three inflection points for f over D: x = −3 a, 0, 3 a.
14