Docsity

Solved Final Exam - Computational Methods, Fall 2008 | AMSC 460, Exams of Mathematics

Toggle sidebar
bg1
AMSC/CMSC 460 Final Exam 5/20/08
Work any five of the six problems. Indicate the problems you have
worked on the upper left hand corner of the cover of your exam
book.
1. Determine coefficients A0and A1and an abscissa x1such that the integral formula
Z1
0
f(x)dx ∼
=A0f(0) + A1f(x1)
is exact for all polynomials of degree two or less.
Answer: Using the method of undetermined coefficients, we must have
1 = R1
01dx =A0+A1= 1
1
2=R1
0x dx =A1x1
1
3=R1
0x2dx =A1x2
1
Dividing the third equation by the second, we get x1=2
3. From the second equation we then get
A1=3
4. Finally, from the first equation we get A0=1
4.
2. Let Ax =b, where Ais nonsingular, and let r=b−Ay. Show that for any
consistent norm
ky−xk ≤ kA−1kkrk.(∗)
Hence show that if b6= 0 then
ky−xk
kxk≤κ(A)krk
kAkkxk,(∗∗)
where κ(A) = kAkkA−1k.
Answer: We have r=b−Ay =Ax −Ay =A(x−y). Since Ais nonsingular, x−y=A−1r, and
(∗) follows on taking norms.
Since b6= 0,x=A−1b6= 0. Hence from (∗)
ky−xk
kxk≤ kA−1kkrk
kxk=kAkkA−1kkrk
kAkkxk.
3. An arrowhead matrix of order nhas the form illustrated below for n= 7
A7=
d10 0 0 0 0 c1
0d20 0 0 0 c2
0 0 d30 0 0 c3
0 0 0 d40 0 c4
0 0 0 0 d50c5
0 0 0 0 0 d6c6
b1b2b3b4b5b6d7
1
pf3

Partial preview of the text

Download Solved Final Exam - Computational Methods, Fall 2008 | AMSC 460 and more Exams Mathematics in PDF only on Docsity!

Work any five of the six problems. Indicate the problems you have

worked on the upper left hand corner of the cover of your exam

book.

1. Determine coefficients A 0 and A 1 and an abscissa x 1 such that the integral formula

1

0

f (x) dx

= A 0 f^ (0) +^ A 1 f^ (x 1 )

is exact for all polynomials of degree two or less.

Answer: Using the method of undetermined coefficients, we must have

0 1 dx = A 0 + A 1 = 1

1 2

1 0

x dx = A 1 x 1

1 3

0 x

2 dx = A 1 x

2 1

Dividing the third equation by the second, we get x 1 =

2 3

. From the second equation we then get

A 1 =

3 4

. Finally, from the first equation we get A 0 =

1 4

2. Let Ax = b, where A is nonsingular, and let r = b − Ay. Show that for any

consistent norm

‖y − x‖ ≤ ‖A

− 1

‖‖r‖. (∗)

Hence show that if b 6 = 0 then

‖y − x‖

‖x‖

≤ κ(A)

‖r‖

‖A‖‖x‖

where κ(A) = ‖A‖‖A

− 1

Answer: We have r = b − Ay = Ax − Ay = A(x − y). Since A is nonsingular, x − y = A

− 1 r, and

(∗) follows on taking norms.

Since b 6 = 0, x = A

− 1 b 6 = 0. Hence from (∗)

‖y − x‖

‖x‖

≤ ‖A

− 1 ‖

‖r‖

‖x‖

= ‖A‖‖A

− 1 ‖

‖r‖

‖A‖‖x‖

3. An arrowhead matrix of order n has the form illustrated below for n = 7

A 7 =

d 1 0 0 0 0 0 c 1

0 d 2 0 0 0 0 c 2

0 0 d 3 0 0 0 c 3

0 0 0 d 4 0 0 c 4

0 0 0 0 d 5 0 c 5

0 0 0 0 0 d 6 c 6

b 1 b 2 b 3 b 4 b 5 b 6 d 7

Write down the L and U factors of A 7. Justify your answer. [Hint: It is very easy to

apply Gaussian elimination symbolically to A.]

Answer:

L =

m 1 m 2 m 3 m 4 m 5 m 6 1

where mi = bi/di.

U =

d 1 0 0 0 0 0 c 1

0 d 2 0 0 0 0 c 2

0 0 d 3 0 0 0 c 3

0 0 0 d 4 0 0 c 4

0 0 0 0 d 5 0 c 5

0 0 0 0 0 d 6 c 6

0 0 0 0 0 0 dˆ 7

where dˆ 7 = d 7 − m 1 c 1 − m 2 c 2 − · · · − m 6 c 6.

4. Let x be an n-vector and let e be the n-vector of all ones. Solve the least squares

problem

‖x − eμ‖ 2 = min.

and show that μ is the average of the components xi of x. [Hint: You can easily

compute the QR factorization of e = qρ of e. Determine q and ρ and proceed as in

class. Or you can use the normal equations (A

T

A)x = A

T

b for the least squares solution

of ‖b − Ax‖ 2 = min.]

Answer: The QR factorization of e is given by q = e/

n and ρ =

n. Hence μ satisfies the

equation

√ nμ = ρμ = q

T x =

n

e

T x,

and

μ =

e

T x

n

Alternatively, with A = e and b = x, the normal equation become e T eμ = e T x. Since e T e = n,

the solution is the same as above.

Since e

T x =

i xi, we have

μ =

i xi

n

which is the average of the components of x.