Docsity

Theoretical Assignment 4 Solutions - Numerical Linear Algebra | MATH 434, Study notes of Linear Algebra

Toggle sidebar
bg1
MATH 434/534
Theoretical Assignment 4 Solution
Chapter 4
4.11
(a) Show that if f(x) = log(x), then the condition number, c(x) = 1
log(x).
(b) Using the above result (or otherwise), show that log(x) is ill-conditioned near x= 1.
-Solution-
(a)
Using the definition of a condition number of a function, c(x) = |x|f0(x)
|f(x)|. we have
c(x) = |x|1
x
log(x)=|x|1
|x|
log(x)=1
log(x).
(b)
Form part (a), we have c(x) = 1
log(x). Taking limx→1on both sides, we have
lim
x→1c(x) = lim
x→1
1
log(x)=∞.
Therefore, log(x) is ill-conditioned near x= 1.
4.16
(a) How are Cond2(A) and Cond2(A−1) related
(b) Show that
(i) Cond(A)≥1 for a norm k·k such that kIk ≥ 1;
(ii) Cond2(ATA) = {C ond2(A)}2;
(iii) Cond(cA) = C ond(A) for any given norm.
-Solution-
(a)
Cond2(A) = kAk
A−1
=
A−1
kAk=Cond2(A−1)
Therefore, Cond2(A) = C ond2(A−1).
(b)
(i) Show that Cond(A)≥1 for a norm k·k such that kIk ≥ 1.
Cond(A) = kAk
A−1
≥
AA−1
=kIk= 1
(ii) Show that Cond2(ATA) = (Cond2(A))2.
Cond2(ATA) =
ATA
2
A−1AT−1
2
=
ATA
2
(A−1)TTA−1T
2
pf3
pf4
pf5

Partial preview of the text

Download Theoretical Assignment 4 Solutions - Numerical Linear Algebra | MATH 434 and more Study notes Linear Algebra in PDF only on Docsity!

MATH 434/

Theoretical Assignment 4 Solution

Chapter 4

(a) Show that if f (x) = log(x), then the condition number, c(x) =

∣∣ ∣ (^) log(^1 x)

∣∣ ∣.

(b) Using the above result (or otherwise), show that log(x) is ill-conditioned near x = 1.

-Solution- (a)

Using the definition of a condition number of a function, c(x) =

|x|

∣∣ ∣f^ ′^ (x)

∣∣ ∣ |f (x)|. we have

c(x) =

|x|

∣∣ ∣ (^1) x

∣∣ ∣ log(x)

|x| (^) |^1 x| log(x)

log(x)

(b) Form part (a), we have c(x) = (^) log(^1 x). Taking limx→ 1 on both sides, we have

xlim→ 1 c(x) = lim x→ 1

log(x)

Therefore, log(x) is ill-conditioned near x = 1.

(a) How are Cond 2 (A) and Cond 2 (A−^1 ) related (b) Show that (i) Cond(A) ≥ 1 for a norm ‖·‖ such that ‖I‖ ≥ 1; (ii) Cond 2 (AT^ A) = {Cond 2 (A)}^2 ; (iii) Cond(cA) = Cond(A) for any given norm.

-Solution- (a)

Cond 2 (A) = ‖A‖

∥∥ ∥A−^1

∥∥ ∥ =

∥∥ ∥A−^1

∥∥ ∥ ‖A‖ = Cond 2 (A−^1 )

Therefore, Cond 2 (A) = Cond 2 (A−^1 ).

(b) (i) Show that Cond(A) ≥ 1 for a norm ‖·‖ such that ‖I‖ ≥ 1.

Cond(A) = ‖A‖

∥∥ ∥A−^1

∥∥ ∥ ≥

∥∥ ∥AA−^1

∥∥ ∥ = ‖I‖ = 1

(ii) Show that Cond 2 (AT^ A) = (Cond 2 (A))^2.

Cond 2 (AT^ A) =

∥∥ ∥AT^ A

∥∥ ∥ 2

∥∥ ∥∥A−^1

( AT^

)− 1 ∥∥ ∥∥ 2 =

∥∥ ∥AT^ A

∥∥ ∥ 2

∥∥ ∥∥

( (A−^1 )T^

)T ( A−^1

)T ∥∥ ∥∥

Since

∥∥ ∥AT^ A

∥∥ ∥ 2 = ‖A‖^22 , we have

Cond 2 (AT^ A) =

∥∥ ∥AT^ A

∥∥ ∥ 2

∥∥ ∥∥

( (A−^1 )T^

)T ( A−^1

)T ∥∥ ∥∥ 2 = ‖A‖^22

∥∥ ∥∥

( A−^1

)T ∥∥ ∥∥

2

2

However,

∥∥ ∥AT^

∥∥ ∥ 2 = ‖A‖ 2. Therefore, we have

Cond 2 (AT^ A) = ‖A‖^22

∥∥ ∥(A−^1 )T^

∥∥ ∥

2 2 = ‖A‖^22

∥∥ ∥(A−^1 )

∥∥ ∥

2 2 =

{ ‖A‖ 2

∥∥ ∥(A−^1 )

∥∥ ∥ 2

} 2 = {Cond 2 (A)}^2

(iii) Show that Cond(cA) = Cond(A) for any given norm.

Cond(cA) = ‖cA‖

∥∥ ∥(cA)−^1

∥∥ ∥ = |c| ‖A‖

|c|

∥∥ ∥A−^1

∥∥ ∥ = Cond(A)

(a) Let A be an orthogonal matrix. Then show that Cond 2 (A) = 1. (b) Show that Cond 2 (A) = 1 if and only if A is a scalar multiple of an orthogonal matrix.

-Solution- (a) Since A is an orthogonal matrix, AT^ = A−^1. Now look at the Cond 2 (A). Letting ρ(A) be the maximum eigenvalue of A, we have

Cond 2 (A) = ‖A‖ 2

∥∥ ∥A−^1

∥∥ ∥ 2 =

√ ρ(AT^ A)

√ ρ ((A−^1 )T^ (A−^1 ))

Since AT^ = A−^1 , AT^ A = A−^1 A = I and A = (A−^1 )T^. Therefore we have

Cond 2 (A) =

√ ρ(AT^ A)

√ ρ ((A−^1 )T^ (A−^1 ))

=

√ ρ(I)

√ ρ (A(A−^1 ))

=

√ ρ(I)

√ ρ (I)) = 1

(b) First we will show that Cond 2 (A) = 1 if A is a scalar multiple of an orthogonal matrix. Let O be an orthogonal matrix and c be a scalar constant. Then, let A = cO and ρ(A) be the maximum eigenvalue of A. Then consider the Cond 2 (A)

Cond 2 (A) = Cond 2 (cO) = Cond 2 (O) =

√ ρ(OT^ O) =

√ ρ(I) = 1

Therefore, we can see that bii = (^) a^1 ii. By the definition of a maximum row-sum norm ‖·‖∞, that is, ‖A‖∞ = max 1 ≤i≤m

∑n j=1 |aij^ |, we have

‖U ‖∞ ≥ max |uii| and

∥∥ ∥U −^1

∥∥ ∥∞ ≥

min |uii|

Take

U =

 

 

Then Cond(U ) = 4. 9025 × 105.

Let A = LDLT^ be a symmetric positive definite matrix where L is a unit lower triangular matrix. Let D = diag(dii). Then show that

Cond 2 (A) ≥

max(dii) min(dii)

Hence construct an example for an ill-conditioned nondiagonal symmetric positive definite matrix.

-Solution- Since A = LDLT^ is a symmetric positive definite matrix and L is a lower triangular matrix, we have the diagonal entries of a diagonal matrix, dii > 0 for i = 1, 2 ,... , n. Therefore, we have

A = LDLT

  

  

  

d 11 0 0 0

0 0 dnn

  

  

  

where dii > 0 for i = 1, 2 ,... , n. Since dii > 0 for i = 1, 2 ,... , n, we have

A = LDLT^ =

( LD

1 2

) ( D

1 (^2) LT^

)

( D

1 (^2) L

) ( D

1 (^2) L

)T

where D

1 (^2) = diag(

d 11 ,

d 22 ,... ,

dnn). Let a lower triangular matrix L̂ = LD

1 (^2). Then we have

A = LDLT

( D

1 (^2) L

) ( D

1 (^2) L

)T = L̂ L̂ T

Now consider Cond 2 (A). Using Cond 2 (AT^ A) = {Cond 2 (A)}^2 , we have

Cond 2 (A) = Cond 2 (L̂ L̂ T^ )

{ Cond 2 (L̂ T^ )

} 2 · · · (∗)

Now look at only Cond 2 (L̂ T^ ).

Cond 2 (L̂ T^ ) =

∥∥ ∥̂L L̂ T^

∥∥ ∥ 2

∥∥ ∥∥

(̂ L L̂ T^

)− 1 ∥∥ ∥∥ 2

=

∥∥ ∥∥

(̂ LT^

)T (̂ LT^

)∥∥ ∥∥ 2

∥∥ ∥∥ ∥

{(̂ L−^1

)T }T^ (̂ L−^1

)T ∥∥ ∥∥ ∥ 2 =

∥∥ ∥̂LT^

∥∥ ∥

2 2

∥∥ ∥∥

(̂ L−^1

)T ∥∥ ∥∥

2 2

∥∥ ∥̂L

∥∥ ∥

2 2

∥∥ ∥̂L−^1

∥∥ ∥

2 2

Now consider

∥∥ ∥̂L

∥∥ ∥ 2 and

∥∥ ∥̂L−^1

∥∥ ∥ 2.

Using the standard basis ei = (0, 0 ,... , 0 ︸ ︷︷ ︸ i− 1 zeros

, 1 , 0 , 0 ,... , 0), and the definition of matrix norms

‖A‖p = max‖x‖p=1 ‖Ax‖p, we have

∥∥ ∥̂L

∥∥ ∥ 2 = max ‖x‖ 2 = ‖Aei‖ 2 = max

√ dii

Since the diagonal entries of L̂ −^1 are the reciprocal of the diagonal entries of L̂ , it can be expressed as √^1 dii for i = 1, 2 ,... , n. Therefore, we have

∥∥ ∥̂L−^1

∥∥ ∥ 2 = max ‖x‖ 2 =

‖Aei‖ 2 = max

dii

min

dii

From (∗∗), we have

Cond 2 (L̂ T^ ) =

( max

√ dii

) 2 (^ 1 min

dii

) 2

max(dii) min(dii)

From (∗) and (∗ ∗ ∗), since max(min(ddiiii)) , now we have

Cond 2 (A) =

{ Cond 2 (L̂ T^ )

} 2

( max(dii) min(dii)

) 2 ≥

max(dii) min(dii)

Prove that for a given norm, Cond(AB) ≤ Cond(A)Cond(B)

-Solution-

Cond(AB) = ‖(AB)‖

∥∥ ∥(AB)−^1

∥∥ ∥

≤ ‖A‖ ‖B‖

∥∥ ∥A−^1

∥∥ ∥

∥∥ ∥B−^1

∥∥ ∥

= ‖A‖

∥∥ ∥A−^1

∥∥ ∥ ‖B‖

∥∥ ∥B−^1

∥∥ ∥ = Cond(A) · Cond(B)

Therefore, Cond(AB) ≤ Cond(A) · Cond(B).