Week 3 Self check questions and solutions
Question 1:
Let . Proof that the LU decomposition exists with nonsingular and if and only if the determinant of all minors is nonzero.
(Note: The minors are the submatrices ).
Does the LU decomposition exist for the following matrix? Justify your answer.
Solution:
First assume that the LU Decomposition exists. We then have with nonsingular and and hence, for each minor .
Since and are nonsingular it follows that also the minors are nonsingular and therefore have nonzero determinant.
Now assume that all minors have nonzero determinant. We proceed by induction. Let the statement be true for all matrices have dimension . We now partition as
with , , . Here is a nonsingular LU decomposition of
, which exists by induction hypothesis. To construct an LU decomposition of dimension we need to find , and a nonzero such that the above decomposition is valid.
By inspection we obtain and , which exists since and are nonsingular. For we have the expression
Since is nonsingular exists. It is left to show that . However, this follows from
and that and are nonzero by induction hypothesis.
For the matrix
the first subblock is singular. Hence, its determinant is zero and therefore the LU decomposition does not exist.
Question 2:
Let be tridiagonal, that is only the main diagonal and the first upper and lower off-diagonals can be nonzero.
Assume that an LU decomposition exists. Show that it can be computed in operations.
Solution
In each outer loop of the Gaussian elimination only one off-diagonal element needs to be reduced. Hence, the cost for each outer loop is constant and independent of , leading to a total cost of .
Question 3:
Proof the Sherman-Morrison formula
if .
Solution:
We have
Similarly, we show that
Hence, the formula holds.