Professional Documents
Culture Documents
MATH10098
†
All students: You have an additional 1 hour to assemble and submit your PDF.
Important instructions
(1) (Total: 55 marks) This question is about solving a system of linear equations Ax =
b, with A ∈ Rn×n an invertible matrix and b ∈ Rn . In the following, assign unit
cost to the elementary arithmetic operations addition, subtraction, multiplication
and division. Justify all of your answers.
kx − x̂kp k∆bkp
≤ κp (A) ,
kxkp kbkp
a) α =? b) α =?
kx−x̂k∞
kxk∞
0.05 0.15
Based on the result in part (i), decide which column corresponds to which
value of α. Carefully justify your answer. [10 marks]
You may use, without proof, the following
formulae for the determinant
b11 b12
and inverse of a matrix B = : det(B) = b11 b22 − b12 b21 and
b 21 b22
−1 1 b22 −b12
B = det(B) .
−b21 b11
(b) Suppose A is symmetric. Then A diagonalises as A = QDQT , where the
diagonal matrix D ∈ Rn×n has the eigenvalues λi of A as diagonal entries, and
Q ∈ Rn×n are the eigenvectors of A,
the columns qi of the orthogonal matrix P
in the same order. This means that A = ni=1 λi qi qT
i .
(ii) Suppose we want to use (1) to compute the solution x. What is the
computational cost of this approach? Explicitly state the cost of all steps
and the total cost, and do not use O(·) notation. Implement all steps
efficiently. You may assume that the eigenvalues and eigenvectors of A are
computed using Algorithm QR-Eig, and that Algorithm QR-Eig converges
after kmax iterations and uses Algorithm MGS (Modified Gram-Schmidt) to
compute QR factorisations. [12 marks]
(iii) Is the approach in part (ii) an efficient method for computing x? Compare
its computational cost to that of Algorithm GE (Gaussian elimination).
[4 marks]
(iv) Based on the expression in (1), briefly explain why computing x in this
way is very susceptible to rounding errors in floating point arithmetic when
κ2 (A), the condition number of A in the 2-norm, is large. [5 marks]
(c) Suppose you have already solved the system Ax = b using Algorithm GE
(Gaussian elimination). Show that the solution z to AT z = b can be computed
in O(n2 ) cost. (This does not include the cost of solving the original system
Ax = b.) [7 marks]
(d) The minimiser of kAx − bk2 , for b ∈ Rm and A ∈ Rm×n with m ≥ n and
rank(A) = n, solves the normal equations AT Ax = AT b. Briefly discuss why
computing the minimiser x via solving the normal equations with Algorithm
GEPP (Gaussian elimination with partial pivoting) typically leads to a large
error in the computed solution x
b. [5 marks]
(2) (Total: 30 marks) This question is about iterative methods for solving a linear
system Ax = b, with A ∈ Rn×n invertible and b ∈ Rn . In the following, assign unit
cost to the elementary arithmetic operations addition, subtraction, multiplication
and division. Justify all of your answers.
Fill in the second row of the table, i.e. predict what errors you expect to
observe at iteration k = 2. Carefully justify your answer. [10 marks]
(3) (Total: 15 marks) This question is about computing eigenvalues and eigenvectors
of a symmetric matrix A ∈ Rn×n . We order the eigenvalues of A in decreasing order
of absolute value,
|λ1 | ≥ |λ2 | ≥ · · · ≥ |λn |,
and choose the corresponding eigenvectors x1 , . . . , xn to be an orthonormal basis of
Rn . Justify all of your answers.
(a) Recall Theorem 6.5 on the convergence of the approximate eigenvalue λ(k) and
approximate eigenvector z(k) computed by Algorithm PI (Power Iteration):
Theorem 6.5 Suppose |λ1 | > |λ2 | and xT1 z(0) 6= 0. Then there exists a sequence
{σk }k∈N with σk = ±1 such that as k → ∞,
[End of Paper]