21.06.2014 Views

Numerical Methods Contents - SAM

Numerical Methods Contents - SAM

Numerical Methods Contents - SAM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Terminology:<br />

Def. 2.5.5 introduces stability in the sense of<br />

backward error analysis<br />

x<br />

̂x<br />

X<br />

F<br />

y<br />

˜F(x)<br />

Y<br />

Theorem 2.5.7 (Stability of Gaussian elimination with partial pivoting).<br />

Let A ∈ R n,n be regular and A (k) ∈ R n,n , k = 1,...,n − 1, denote the intermediate matrix<br />

arising in the k-th step of Algorithm 2.3.5 (Gaussian elimination with partial pivoting).<br />

For the approximate solution ˜x ∈ R n,n of the LSE Ax = b, b ∈ R n , computed by Algorithm<br />

2.3.5 (based on machine arithmetic with machine precision eps, → Ass. 2.4.2) there is<br />

∆A ∈ R n,n with<br />

2.5.3 Roundoff analysis of Gaussian elimination<br />

max<br />

‖∆A‖ ∞ ≤ n 3 3eps<br />

1 − 3neps ρ ‖A‖ ∞ , ρ := i,j,k |(A(k) ) ij |<br />

max |(A) ,<br />

ij|<br />

i,j<br />

such that (A + ∆A)˜x = b .<br />

F<br />

˜F<br />

✬<br />

✩<br />

Simplification:<br />

equivalence of Gaussian elimination and LU-factorization extends to machine arithmetic,<br />

cf. Sect. 2.2<br />

✫<br />

✪<br />

ρ “small” ➥ Gaussian elimination with partial pivoting is stable (→ Def. 2.5.5)<br />

Ôº½¾½ ¾º<br />

If ρ is “small”, the computed solution of a LSE can be regarded as the exact solution of a LSE with<br />

“slightly perturbed” system matrix (perturbations of size O(n 3 eps)).<br />

Ôº½¾¿ ¾º<br />

✬<br />

Lemma 2.5.6 (Equivalence of Gaussian elimination and LU-factorization).<br />

The following algorithms for solving the LSE Ax = b (A ∈ K n,n , b ∈ K n ) are<br />

numerically equivalent:<br />

✫<br />

❶ Gaussian elimination (forward elimination and back substitution) without pivoting, see Algorithm<br />

2.1.2.<br />

❷ LU-factorization of A (→ Code 2.2.1) followed by forward and backward substitution, see<br />

Algorithm 2.2.5.<br />

Rem. 2.3.7 ➣ sufficient to consider LU-factorization without pivoting<br />

A profound roundoff analysis of Gaussian eliminatin/LU-factorization can be found in [18, Sect. 3.3 &<br />

3.5] and [24, Sect. 9.3]. A less rigorous, but more lucid discussion is given in [42, Lecture 22].<br />

Here we only quote a result due to Wilkinson, [24, Thm. 9.5]:<br />

✩<br />

✪<br />

Ôº½¾¾ ¾º<br />

Bad news: exponential growth ρ ∼ 2 n is possible !<br />

Example 2.5.2 (Wilkinson’s counterexample).<br />

⎛<br />

⎞<br />

1 0 0 0 0 0 0 0 0 1<br />

−1 1 0 0 0 0 0 0 0 1<br />

n=10:<br />

−1 −1 1 0 0 0 0 0 0 1<br />

⎧<br />

⎪⎨ 1 , if i = j ∨j = n ,<br />

−1 −1 −1 1 0 0 0 0 0 1<br />

−1 −1 −1 −1 1 0 0 0 0 1<br />

a ij = −1 , if i > j , , A =<br />

⎪⎩<br />

−1 −1 −1 −1 −1 1 0 0 0 1<br />

0 else.<br />

−1 −1 −1 −1 −1 −1 1 0 0 1<br />

⎜−1 −1 −1 −1 −1 −1 −1 1 0 1<br />

⎟<br />

⎝−1 −1 −1 −1 −1 −1 −1 −1 1 1⎠<br />

−1 −1 −1 −1 −1 −1 −1 −1 −1 1<br />

Partial pivoting does not trigger row permutations !<br />

⎧<br />

⎪⎨ 1 , if i = j ,<br />

A = LU , l ij = −1 , if i > j ,<br />

⎪⎩<br />

0 else<br />

Exponential blow-up of entries of U !<br />

⎧<br />

⎪⎨ 1 , if i = j ,<br />

u ij = 2<br />

⎪⎩<br />

i−1 , if j = n ,<br />

0 else.<br />

Ôº½¾ ¾º<br />

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!