Escolar Documentos
Profissional Documentos
Cultura Documentos
OF LINEAR EQUATIONS
Read parts of sections 2.6 and 3.5.3
Conditioning of linear systems.
Estimating errors for solutions of linear systems
Backward error analysis
Relative element-wise error analysis
4-1
4-2
(A + E)x() = b + eb.
4-3
4-4
kA1k
keb k
kxk
+ kEk + O(2).
4-5
kAkkA1k
keb k
kbk
kEk
kAk
+ O(2)
of poor conditioning.
4-6
Example:
Inverse of A is :
A1 = I e1eTn
For the -norm we have
kAk = kA1k = 1 + ||
so that
(A) = (1 + ||)2.
Can give a very large condition number for a large
4-7
+
1
kxk
1 kA k kEk kAk
kbk
4-8
(I E)1 =
k
X
E i + (I E)1E k+1
i=0
4-9
d) (I E)
= limk
Pk
i
E
. We write this as
i=0
(I E)1 =
Ei
i=0
e) Finally:
k
k
X
X
k(I E)1k =
lim
E i
= lim
E i
k
k
lim
4-10
i=0
k
X
i=0
i
E
lim
i=0
k
X
kEki
i=0
1 kEk
4-11
+
1
kxk
1 kA k kEk kAk
kbk
4-12
[kebk/kxk + kEk]
1
kA1kkAk
kebk
kEk
+
1
1 kA kkEk kAkkxk kAk
kA1kkEk
4-13
Simplification when eb = 0 :
kx yk
kxk
kA
1
k kEk
kA1k
kEk
Simplification when E = 0 :
kx yk
kxk
kA
k kAk
kebk
kbk
kxk
1 (A)
4-14
+
1
kxk
1 kA k kEk kbk
kAk
4-15
4-16
ry T
krk2
T
/kAk2 =
y y
kAkkyk2
2
4-17
4-18
krk
kEkkyk+keb k
4-19
4-20
4-21
Proof of Theorem 3
Let D kEkkyk + kebk and E,eb (y). The theorem
states that = krk/D. Proof in 2 steps.
First: Any A, b pair satisfying (1) is such that
krk/D. Indeed from (1) we have (recall that r = b Ay)
Ay + Ay = b + b r = Ay b
krk kAkkyk+kbk (kEkkyk+kebk)
krk
D
A = rz ;
b = r
with =
kEkkyk
kebk
D
D
The vector z depends on the norm used - for the 2-norm:
z = y/kyk2. Here: Proof only for 2-norm
y = b r + r
kEkkyk
r
= b (1 )r = b 1
kEkkyk + kebk
kebk
= b
r = b + r
D
(A + A)y = b + b The desired result
(A + A)y = Ay + r
kyk2
||
kyk2
kry k =
kbk = ||krk =
4-23
kebk
D
kEkkyk krkkyk
D
kyk2
krk = kebk
= kEk
QED
all p-norms).
A norm is monotone if |x| |y| kxk kyk.
It can be shown that these two properties are equivalent.
4-24
4-25
4-26
4-27
2
1
k|A1| |A|k
k
|A
| |A| k
Redo example seen after Theorem 3, (6 6 Vandermonde system) using componentwise analysis.
-
4-28
4-29
2
Hn =
..
1
2
1
3
..
1
1
n n+1
1
3
1
4
.. ..
1
n
1
n+1
..
i.e.,
hij =
1
i+j1
1
2n1
4-31
kA Bk
kAk
Example:
!
1 1
1 0.99
let A =
Then
1
1(A)
0.01
2
and
B=
!
1 1
1 1
1
(A)
4-33
= min
B
kA Bk
kAk
det(B) = 0
(A)
krk
.
kbk
4-34
Proof of inequality.
First, note that A(x x
) = b A
x = r. So:
kx x
k = kA1rk kA1k krk
Also note that from the relation b = Ax, we get
kbk = kAxk kAk kxk
kxk
kbk
kAk
Therefore,
kx x
k
kxk
kA1k krk
kbk/kAk
= (A)
krk
kbk
- Show that
kx
xk
kxk
4-35
krk
1
.
(A) kbk
krk
(A) kbk
kx x
k
kxk
(A)
krk
kbk
4-36
Small Example
Solve Ax = b problem in 3-digit decimal arithmetic:
!
!
!
0.641 0.242
x1
0.883
=
0.321 0.121
x2
0.442
Solution by standard algorithm is y =
residual r = b Ay =
0.708
1.775
!
7.12
104.
1.12
4-37
1
Conclude kA1k1 k(0.001, 0.000)k
= 3000.
1
kx yk
kxk
kA1k kAk
kebk
kbk
3000
8.24 104
1.325
= 1.866,
predicting no accuracy!
Keep over 4 decimal digits to get any accuracy at all!
4-38
Iterative refinement
Define residual vector:
r = b A
x
We have seen that: x x
= A1r, i.e., we have
x=x
+ A1r
Idea: Compute r accurately (double precision) then
solve
A = r