ProblemSet2 Sol
ProblemSet2 Sol
Bachelor in Economics
Bachelor in Business Administration
1
1. Show that the following sets are open, closed, bounded and/or
compact:
(a) The interval [0, 1] ⊂ R.
2
The set is closed and unbounded. All points in the set are
boundary points, and the set contains all of its boundary
points.
(c) A = {(x, y) ∈ R2 | x + y ≤ 1}.
3
Closed but not bounded
(e) A = {(x, y) ∈ R2 | 0 < x2 + y 2 ≤ 1}.
4
Neither open nor closed, but bounded (the origin (0) is a
boundary point which is not included, but there are other
boundary points which are included).
(f) A = {(0, 1) ∈ R2 }.
5
It is a closed and bounded set, thus, compact.
(h) A = {(x, y) ∈ R2 | − 1 ≤ y ≤ 1 , −1 ≤ x ≤ 1}.
V
In Geogebra, paste this a:-1≤y≤1 -1≤x≤1
6
It is a closed and bounded set, thus, compact.
(i) A = {(x, y) ∈ R2 | x2 + y 2 = 4}.
7
It is a closed and bounded set, thus, compact.
(j) A = {(x, y) ∈ R2 | x2 + y 2 > 1}.
8
Open set, unbounded.
(k) A = {(x, y) ∈ R2 | 1 < x2 + y 2 < 9}.
9
Open set, bounded.
(l) A = {(x, y) ∈ R2 | y ≤ 2, y − x2 ≥ 0}.
Open, unbounded.
(n) A = {(x, y) ∈ R2 | y − ex ≥ 0, x ≥ 0, y + x2 − 2 ≤ 0}.
10
It is a closed and bounded set, thus, compact.
(o) A = {(x, y) ∈ R2 | x ≤ 2, y + 2 − x ≥ 0, y − ln x ≤ 0}.
11
It is a closed and bounded set, thus, compact.
12
Solution
13
(c) A = {(x, y) ∈ R2 | y ≥ e2x }. Convex set.
14
(d) A = {(x, y) ∈ R2 | x − y ≤ 2}. Convex set.
15
(f) A = {(x, y) ∈ R2 | y ≤ sin(x)}. Not convex.
16
(h) A = {(x, y) ∈ R2 | y ≥ x12 }. Not convex.
17
(note that this is not the union):
A + B = {z ∈ Rn | w = a + b, a ∈ A, b ∈ B}
Show that the new set A + B is also convex.
Solution
This problem asks to prove that the sum of convex sets is a
convex set.
18
because (n, b) ∈ B and B is convex.
Hence, for a given value λ, (λm+(1−λ)a)+(λn+(1−λ)b) ∈
A + B as it is composed of the sum of two elements belonging
to set A and B respectively.
As we consider all values of λ ∈ [0, 1], we obtain all the points
of the segment zw and we conclude that zw ⊂ A + B so that
A + B is a convex set.
Solution
19
xb
10
xw
0 5
5. Consider a firm with a technology that uses (hours of) labor to
produce straw hats. The production function is
1
y = l2
Solution
20
y y
l l
0 0
l
Production set in (a) Production set in (c)
1 0 −3 −1 1 1 2 0 1
a) −1 6 7 ; b) 1 −1 1 ; c) 1 1 0
0 1 1 1 1 −1 2 0 −2
−4 −6 −2 1 0 3
d) 2 4 2 ; e) −1 1 1
−2 −3 −1 2 1 −1
Solution
You should know how to compute the determinants using the
cofactor expansion. You can use Sarrus’ rule or the Matrix
Calculator to verify the results. The solutions are
(a) This can be found by cofactor expansion down the first column as
6 7 0 −3
1 · (−1)2 + (−1) · (−1)3 = −1 + 3 = 2.
1 1 1 1
(b) 4
(c) -6
(d) 0
(e) -11
21
7. Solve the following equations
x 2x + 1 2x + 1 4 8 6
a) 2x + 1 3x − 1 4x = 0; b) 5 7 12 = 0
3x − 1 4x 6x − 1 3 −1 x
Solution
x 2x + 1 2x + 1
a) 2x + 1 3x − 1 4x = −6x2 + 3x
3x − 1 4x 6x − 1
and
1
−6x2 + 3x = 0 ⇔ x = {0, }
2
4 8 6
b) 5 7 12 = −12x + 180
3 −1 x
and
−12x + 180 = 0 ⇔ x = 15
8. Verify that the following equations are true
a+b a a
a) a a+b a = b2 · (3a + b)
a a a+b
a−b−c 2a 2a
b) 2b b−a−c 2b = (a + b + c)3
2c 2c c−a−b
Solution
a+b a a
[a)] a a+b a | = 3ab2 + b3 = b2 (3a + b)
a a a+b
22
a−b−c 2a 2a
[b)] 2b b−a−c 2b =
2c 2c c−a−b
6abc+3ab2 +a3 +3ac2 +3b2 c+b3 +3ba2 +3bc2 +3ca2 +c3 = (a+b+c)3
3 2 31
8
1 −1 2
3 8 −4 3
a) ; b) ; c) −2 3 1 ; d) −2 1 0
5 − 43 11 2
3 −1 1 0 −1 5
Solution
−1
−4 −3
3 8 4 −8 1 3 32
a) = =
5 − 34 169 −5 3 169 20 −12
−1
−4 83
3 1
−3 2 −11 −
b) = 8 = 3256 14 3
11 2 112 − 3 4 112 28
3 −1 −1 −1 −1 3
1 1 −
−1 2 1 2 1
1 −1 2
−1 −2 3
1 3 1 −2
c) −2 3 1 = − −
15 1 1 2 1 2 1
3 −1 1
−2 3
1 3 1 −2
−
3 −1 −1 −1 −1 3
−4 1 7
1
−5 5 5
15
7 2 −1
−1
2 13
3 15 −31 −1
1
d) −2 1 0 = 30 45 −2
107
0 −1 5 6 9 21
10. Compute the rank of the following matrices
3 2 31
−2 3 1
2 3 2 3 1
a) ; b) ; c) 1 −1 0 ; d) −2 1 0
−4 −6 1 2 3
0 1 1 0 −1 5
23
Solution
Find the largest nonsingular square submatrix.
(a) The matrix is singular, because its determinant is zero. Thus, the rank
is 1.
(b) The rank can
be no larger than 2, because there are only 2 rows. The
2 3
submatrix is nonsingular, so the rank is 2.
1 2
(c) The determinant of the whole matrix is zero (the third column minus
the first gives
the second
column), so the rank is lower than 3. The
3 1
submatrix is nonsingular (determinant is 1), so the rank is
−1 0
2.
(d) The determinant of the whole matrix is nonzero (verify that), so the
rank is 3.
Solution
(a)
1 2 3
det 1 a 1 = −2a + 2
2 3 4
Then, −2a + 2 = 0 ⇔ a = 1. Therefore,
(
1 2 3
2 if a = 1
rk 1 a 1 =
2 3 4 3 if a 6= 1
24
(b)
a 1 0
det 2 2 a = −a3 − a + 2
1 a −1
Then, −a3 − a + 2 = 0 ⇔ a = 1. Therefore,
(
a 1 0
2 if a = 1
rk 2 2 a =
1 a −1 3 if a 6= 1
(c)
a 1 1
det 1 a 1 = a3 − 3a + 2
1 1 a
Then, a3 − 3a + 2 = 0 ⇔ a = {1, −2}. Checking the rank
for these two cases, we find that
1 if a = 1
a 1 1
rk 1 a 1 = 2 if a = −2
1 1 a
3 if a 6= {1, −2}
25
(b) Define the transition matrix.
(c) Compute the vector of markets shares on January 1, 2018.
Solution
26
will be accurate enough, and plans to use ordinarily least squares.
This means that the vector of parameters b is obtained as the so-
lution of the following computation:
b = (X 0 X)−1 X 0 Y
27
14. Classify and if possible, solve the following systems of equa-
tions (we wrote these systems in matrix form in the previous
problem set):
x + 4y + 8z = 0 2x − 5y + 3z = −12
(a) −2x + 5y − 2z = 3 (b) 3x + 2y − 5z = 1
3x + 7y + z = 2 7x − 4y + 2z = 0
x + 2y − 3z = −7
x − 3y + z = −13
(c) 3x + 2y + 5z = −1 (d) 2x + 4y + 3z = 47
4x − y + z = 25 3x + 5y − 2z = 44
x − y + z = 6
(e) x + y − z = 2
x + y + z = 12
Solution
28
(b) Write the system in matrix form
2 −5 3 | −12
A∗ = 3 2 −5 | 1
7 −4 2 | 0
x = 5, y = 7, z = 3
29
Then, det(A) = 4 6= 0, rk(A) = rk(A∗ ) = 3 ⇒ unique
solution. We can solve using Cramér’s Rule:
6 −1 1 1 6 1 1 −1 6
2 1 −1 1 2 −1 1 1 2
12 1 1 16 1 12 1 12 1 1 12 20
x= = ; y= = ; z= =
det(A) 4 det(A) 4 det(A) 4
Therefore, the solution is
x = 4, y = 3, z = 5
Solution
30
Then, det(A) = −64 6= 0, rk(A) = rk(A∗ ) = 3 ⇒
unique solution:
x = −1, y = 5, z = 2
x=y=z=1
31
Given that, rk(A) = rk(A∗ ) = 2, while there are 3 un-
knowns. Therefore, the Rouché-Capelli theorem tells us
that the system is undetermined. The solution will depend
on (3 − 2) = 1 parameter. We can write
1 −2 x 3−z
=
3 1 y 2 + 5z
−1
x 1 −2 3−z
=
y 3 1 2 + 5z
1/7 2/7 3−z
=
−3/7 1/7 2 + 5z
9
z+1
= 87
7z − 1
and z is a free variable that can take any value.
(e) Write the system in matrix form
3 5 | 1
A∗ = 2 −1 | 23
2 25 | −6
Given that rk(A) = 2 6= rk(A∗ ) = 3, the Rouché-Capelli
theorem tells us that the system is incompatible, and thus
has no solution.
16. Classify and solve the following systems of linear equations as
a function of the parameter a:
2x + y + az = 4
ax + y + z = 1
(a) x + z = 2 (b) x + ay + z = 2
x+y+z =2 x + y + az = 3
x + 2y + 3z = 0
(c) x + ay + z = 0
2x + 3y + 4z = 2
32
Solution
⇒ Incompatible
if a 6= {1, −2} then ⇒ rk(A) = 3 = rk(A∗ )
⇒ Compatible and determinate
(c)
1 2 3 | 0
A∗ = 1 a 1 | 0
2 3 4 | 2
33
Then, det(A) = −2a + 2; det(A) = 0 ⇔ a = 1. Hence,
if a = 1 then ⇒ rk(A) = 2 6= 3 = rk(A∗ )
⇒ Incompatible
if a 6= 1 then ⇒ rk(A) = 3 = rk(A∗ )
⇒ Compatible and determinate
34
18. Consider problem 15 (b)
3x + 2y − 4z = 1
5x − y − 2z = 2 . (1)
x + 3y − z = 3
We know from having already done the problem that the solution is x =
1; y = 1; z = 1.
35
36