Homework 2
Homework 2
Homework Set #2
Due: Sunday, November 22 , 2020.
{x |k x − a k≤k x − b k} = {x | cT x ≤ d}
for appropriate c ∈ Rn and d ∈ R. Provide c and d explicitly (in terms of a and b),
and draw a picture showing a, b, c and the halfspace (for n=2, hand-drawing is fine
let’s give Matlab/Python/Julia stuff a break... you pick your favorite a, b.). Remember
that the set {x | cT x = d} (border) is called an hyperplane.
(a) Show that X(s) is monic, which means that its leading coefficient is one: X(s) =
sn + ...
(b) Show that sn−1 coefficient of X(s) is given by − Tr A. (Remember Tr A is the
trace of the matrix A which is the sum of the diagonal entries of A, i.e., Tr A =
Pn
i=1 Aii .)
1
(d) Let λ1 , ..., λn denote the eigenvalues of A, so that
U∗ AU = T
is upper triangular with diagonal entries tii = λi , i = 1, ..., n. Remember that a unitary
matrix U has the property U∗ U = UU∗ = I where U∗ is the hermitian transpose of
U.
(a) (Cayley-Hamilton Theorem) Using Schur’s Theorem above, prove the Cayley-
Hamilton Theorem which states: Let pA (t) be the characteristic polynomial of
A ∈ Rn×n , (i.e., pA (t) = det(tI − A)), then
pA (A) = 0
Note: Don’t just plug in A into determinant expression. First right the nth
characteristic polynomial in terms of t’s powers and then plug in A to replace t.
In other words, you should write a polynomial containing powers of A and show
that this polynomial is equal to the zero matrix.
(b) Using the result of (a) and assuming
2
6. Theory in Action for Big Data!: Eigenvectors as community detectors
It is a bit weird but we will assume that to be true for Cii too... Anyway, we define
IA ⊂ {1, . . . , 2N } as the indices of the people in community A, and IB = I¯A .
3
• Display C using imshow and print. Can you tell communities from this
picture?
• Check out eigenvalues, eigenvectors? Are they helpful in detecting IA ? How?
Display relevant eigenvector(s) using stem function.
• How accurate is your result? (Run this test 1000 times and report the average
percentage of correct identification of each person’s community.)
Please include your plots as printouts attached to your handwritten solution with clear
labeling including problem number.