Homework 2 Solution
Homework 2 Solution
Homework 2 Solution
Exercise 1
Given is the set A = {(x, y) ∈ R2 | x2 + y 2 ≤ 1}. Prove that A is a compact set.
a) Do this by directly showing that it is bounded and closed using the definition of closure.
b) Do this by proving that the complement of A is open.
HINT: Use the triangle-inequality k~ak = k~a − ~q + ~qk ≤ k~a − ~qk + k~qk to work out the algebra.
a) Bounded means that there is some number b for which we have that k~ak ≤ b for all ~a ∈ A.
So for some arbitrary ~a = (x, y), we have that
p √
k~ak = x2 + y 2 ≤ 1 = 1 = b
For the definition of closure: consider any convergent sequence ~an in A. Define ~a = limn→∞ ~an .
Then, by definition ~a is a point of closure of A. Hence, to prove that A is closed, we must prove
that ~a ∈ A.
1 point for writing down a conclusion like this.
Decompose ~an and ~a into components: ~an = (xn , yn ) and ~a = (x, y). Then ~a = limn→∞ ~an if
and only if x = limn→∞ xn and y = limn→∞ yn .
1 point for writing down something like this which uses and quotes the theorem that a sequence
converges if and only if its components converge.
We will use the triangle inequality to prove this: k~ak = k~a − ~q + ~qk ≤ k~a − ~qk + k~qk
Hence, we have that k~qk ≥ k~ak − k~a − ~qk. p
Now, as ~q = (u, v) ∈ B (~a), we know by definition that k~a − ~qk < = x2 + y 2 − 1 = k~ak − 1.
1
k~a − ~qk < k~ak − 1.
−k~a − ~qk > −k~ak + 1. So:
k~qk ≥ k~ak − k~a − ~qk > k~ak + (−k~ak + 1) = 1. So: k~qk > 1, meaning that ~q ∈ AC .
1 point for correctly working out the algebra
As we have proven that AC is open, this means that A is closed. As we already proved that A
is bound in part a), this means that A is compact.
q.e.d.
1 point for the final conclusion.
Exercise 2
Consider the following 4 vectors in R4 : ~q = (4, 3, 2, 1), ~u = (1, 1, 0, 1), ~v = (2, 0, 0, 3), and
w
~ = (1, 2, 3, 4).
~ is a valid basis for R4 .
a) Prove that {~q, ~u, ~v , w}
b) Consider the vector ~a = (4, 4, 3, 3) with respect to the standard basis {ê1 , ê2 , ê3 , ê4 }. Trans-
form ~a to the {~q, ~u, ~v , w}-basis.
~
c) Consider the vector ~b = (2, 1, 1, 2) with respect to the the {~q, ~u, ~v , w}-basis.
~ Transform ~b to
the standard basis {ê1 , ê2 , ê3 , ê4 }.
a) Any n lineary independent vectors form a basis of Rn . So to prove this, we must show that
the vectors {~q, ~u, ~v , w}
~ are lineary independent. 1 point for this conclusion.
4 1 2 1
1 2 1 4 1 2
3 1 0 2
det(A) = =2· 1 0 2 −3· 3 1 0 =
2 0 0 3
1 3 4 1 1 3
1 1 3 4
2 1 1 2 1 2 4 2
2 · −1 · −2· − 3 · −3 · +1· =
3 4 1 3 1 3 1 3
2 · (−1 · 5 − 2 · 1) − 3 · (−3 · 1 + 1 · 10) = −35 6= 0
So A is non-singular and, hence, has maximal rank. So {~q, ~u, ~v , w}
~ are lineary independent.
1 point for a computation like this (do not count typo-miscalculations).
1 1 3 4 aw 3
2
1 point writing down the correct linear system.
Replace the second row by −3/4 times the first row plus the second row.
Replace the third row by −2/4 times the first row plus the third row.
Replace the fourth row by −1/4 times the first row plus the fourth row.
4 1 2 1 4
0 0.25 −1.5 1.25 1
0 −0.5 −1 2.5 1
0 0.75 2.5 3.75 2
Replace the third row by +2 times the second row plus the third row.
Replace the fourth row by −3 times the second row plus the fourth row.
4 1 2 1 4
0 0.25 −1.5 1.25 1
0 0 −4 5 3
0 0 7 0 −1
Replace the fourth row by +7/4 times the third row plus the fourth row.
4 1 2 1 4
0 0.25 −1.5 1.25 1
0 0 −4 5 3
0 0 0 8.75 4.25
Now, apply backward substitution to compute aw = 4.25/8.75 ≈ 0.486, av ≈ −0.143, au ≈ 0.714
and aq ≈ 0.771. Hence, the transformed vector is ~a = (0.771; 0.714; −0.143; 0.486).
1 point for correctly solving the linear system (do not count typo-miscalculations).
1 1 3 4 14
1 point for the corect methodology and 1 point for a correct calculation.
The homework has a total of 15 points. Hence, the homework grade is 0.2 · score/15.