School of Mathematics and Statistics Autumn Semester 2008-2009 Numerical Linear Algebra Two Hours Marks Will Be Awarded For Your Best FOUR Answers
School of Mathematics and Statistics Autumn Semester 2008-2009 Numerical Linear Algebra Two Hours Marks Will Be Awarded For Your Best FOUR Answers
School of Mathematics and Statistics Autumn Semester 2008-2009 Numerical Linear Algebra Two Hours Marks Will Be Awarded For Your Best FOUR Answers
1 (i) (a) Write down the conditions that must be satised by any matrix
norm, kAk, and dene the subordinate matrix norm. (5 marks)
(4 marks)
kδ xk K(A) kδAk
≤n kδAk
o .
kxk 1 − K(A) kAk kAk
(9 marks)
then:
(a) write scilab code to determine bounds on kδxk1 /kxk1 ; (5 marks)
AMA226 2 Continued
AMA226
2 (i) Given m + 1 data points (xj , fj ), j = 0, 1, ..., m, where the xj values are all
distinct, and a set of suitably chosen basis functions, φ0 (x), φ1 (x), φ2 (x),
then derive the normal equations
m
X m
X m
X m
X
a0 φ0 (xj )φk (xj ) + a1 φ1 (xj )φk (xj ) + a2 φ2 (xj )φk (xj ) = fj φk (xj ),
j=0 j=0 j=0 j=0
k = 0, 1, 2
for determining the best least square t to the data of the function
Y (x) = a0 φ0 (x) + a1 φ1 (x) + a2 φ2 (x)
without weights.
(8 marks)
(ii) Hence, by choosing the basis functions φ0 (x) ≡ 1, φ1 (x) ≡ x and φ2 (x) ≡
x 2 , write down the normal equations for the best quadratic t, and write
scilab code to compute this t for the data
(10 marks)
(iii) Given that the best quadratic t of the previous part is given by
P2 (x) = −2.25 x 2 + 16.38 x − 7.44
1
x1 x12 . . . x1n f1
a1
.. .. .. .. .. ..
A= , f = , α=
. . . ... . . .
1 xm xm2 . . . xmn fm an
r̂ ≡ P r = P (Aα − f )
for some arbitrary x = (x0 , x1 , ..., xm )T and where e0 is the rst column of
the (m + 1) × (m + 1) identity matrix. Show that x̂, dened according to
x̂ = P x,
satises
x̂ = −sign(x0 )||x||2 e0 .
(7 marks)
3 (continued)
where (a0 , a1 , a2 ) are chosen such that krk2 is minimised. A series of orthog-
onal transformations P ≡ P4 P3 P2 P1 , based on the Housholder Reection
matrix, is applied to r to obtain r̂ ≡ P r where
−3.3166 −3.3166 −4.6433 −0.2517
0.0000 2.0977 4.1952 0.1432
0.0000 0.0000 1.1717 0.8349
a
0
0.0000 0.0000 0.0000 −0.0662
r̂ ≡
a1 −
.
0.0000 0.0000 0.0000 a2
0.0000
.. .. .. ..
. . . .
0.0000 0.0000 0.0000 0.0000
Determine the values of (a0 , a1 , a2 ) which minimizes kr̂k2 and state the
value of this minimized kr̂k2 . Work correct to four decimal places.
(7 marks)
4 (i) (a) The real symmetric matrix A has eigenvalues λ1 , λ2 , ..., λn satisfying
|λ1 | > |λ2 | ≥ |λ3 | ≥ ... ≥ |λn | > 0
(b) Supposing that A and z0 are already dened, then write scilab code
which impliments ten iterations of the Power Method to produce
an estimate of (λ1 , x1 ) . (5 marks)
(ii) (a) Suppose now that A is a real symmetric matrix and that an estimate
of (λ2 , x2 ) is also required. The method of Hotelling's Deation,
B = A − λ1 x1 xT1 ,
(b) Write additional scilab code which takes the results of your Power
Method code (above) and uses Hotelling's Deation to produce the
matrix B , and then applies ten iterations of the Power Method to
the matrix B to obtain an estimate of (λ2 , x2 ). (5 marks)
AMA226 6 Continued
AMA226
(b) Starting from Ax = b, write down the Jacobi iteration, and hence
prove that strict diagonal dominance of the matrix A is sucient
to guarantee the convergence of the method. (8 marks)
(ii) (a) Use the Jacobi iterative method to obtain two successive approxi-
mations to the solution of the system Ax = b where
12 −5 −2
1
A = −5 12 −3 and b= 1 ,
−2 −3 12 1
using x(0) = (0, 0, 0)T as the starting vector and working correct to
four signicant gures. (5 marks)
(b) Write scilab code with implements the Jacobi method to generate
an approximate solution to the system Ax = b dened above that
will iterate until kAx − bk∞ ≤ 10−5 . (7 marks)
AMA226 7