


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Exam; Class: Numerical Analysis; Subject: Mathematics; University: University of California - Berkeley; Term: Summer 2009;
Typology: Exams
1 / 4
This page cannot be seen from the preview
Don't miss anything!



JUSTIN BLANCHARD
(b) g(x) = x − (^) ff ′^ ((xx)) = x − x
(^2) − 2 /x 2 x+2/x^2 =^ x^ −^ x^
x^3 − 2 2 x^3 +2 =^
x(x^3 + 4) 2(x^3 + 1) (c) The convergence is at least quadratic, for either of the following reasons: 2^1 /^3 is a simple root of f (x), as f ′(2^1 /^3 ) = 2 · 21 /^3 + 2/ 22 /^3 6 = 0. Alternatively, g′(2^1 /^3 ) = 0 after the calculation g′(x) = (4x
(^3) +4)2(x (^3) +1)−x(x (^3) +4)(6x (^2) ) 22 (x^3 +1)^2 =^
8(x^3 +1)^2 − 6 x^3 (x^3 +4) 22 (x^3 +1)^2. (d) (This was intended to be a harder problem.) By definition, the order of convergence is α iff limn→∞
pn+1− 21 /^3 pn− 21 /^3
∣ =^ λ^6 = 0.^ If^ pn =^ x, this fraction’s numerator is g(x) − 21 /^3 = x
(^4) − 24 / (^3) x (^3) +4x− 2 2(x^3 +1).^ Factor out (x^ −^2
1 / (^3) ) as many times
as possible: (x−^2
1 / (^3) ) (^3) (x+2 1 / (^3) ) 2(x^3 +1). (Alternatively, Taylor-expand^ x
(^4) − 24 / (^3) x (^3) + 4x − 2 with center
x = 2^1 /^3 .) It follows that the order of convergence is 3
Date: Thursday 8/13. 1
x 0 = 0 f [x 0 ] = 1 f [x 0 , x 1 ] = 1 x 1 = 0 f [x 1 ] = 1 f [x 0 , x 1 , x 2 ] = 0 f [x 1 , x 2 ] = 1 f [x 0 , x 1 , x 2 , x 3 ] = 1 x 2 = 1 f [x 2 ] = 2 f [x 0 , x 1 , x 2 ] = 1 f [x 2 , x 3 ] = 2 x 3 = 1 f [x 3 ] = 2
Using the co-
efficients above, we can read off the polynomial P (x) = 1+1(x−0)+0(x−0)^2 +1(x−0)^2 (x−1) = 1 + x − x^2 + x^3. Plugging in x = 0.5 yields 1. 375
− 3
1 t^2 +1 dt^ to an integral of the form^
− 1 f^ (x)^ dx. (b) Find the coefficients below for the three-point Gaussian quadrature rule: ∫ (^1)
− 1
f (x) dx ≈ af
(c) What is this rule’s degree of precision? (d) Estimate the integral from (a) using this rule. Express your answer as a fraction. Solution:
(a) Let t = 3x to get
− 1
9 x^2 + 1 dx
(b) Method one:
f (x) = x^0 :
− 1
x^0 dx =
= +a
=⇒ a + b + c = 2
f (x) = x^1 :
− 1
x^1 dx =0 = −a
=⇒ a = c
f (x) = x^2 :
− 1
x^2 dx =
= +a
=⇒ a = c =
=⇒ b =
Method two: Integrate Lagrange polynomials: for instance, a =
− 1
(x−0)(x−
3 /5) (−
3 / 5 −0)(−
3 / 5 −
3 /5) dx, etc. (This strategy leads to a mess, and will not be elaborated here.) (c) Method one: It’s 5 because Gaussian quadrature achieves degree of precision 2(# nodes) − 1. Method two: Continue the tests above. The first one that fails is f (x) = x^6 , so the degree is 5.
(d) (^59) 9(3/^3 5)+1 + 89 (3) + (^59) 9(3/^3 5)+1 = (^92) · 32 ·^5 ·/^35 + 89 ·^3 = (^325) · 16 + 83 = 15348 =
cn(t − ti)n. Then y′(t) =
ncn(t − ti)n−^1 , and
τi+1 =
y(ti + h) − wi+ h
= − 4 c 0 h−^1 +
cn[1 + 3(−1)n^ + 2n(−1)n−^1 ]hn−^1 = 0 + 0 + 0 + 4c 3 h^2 +...
Thus, the local truncation error is O(h^2 ) (b) The characteristic polynomial for this method is λ^2 − 4 λ + 3 = (λ − 3)(λ − 1). Since | 3 | > 1, the method is unstable.
Find a Cholesky (LL∗) factorization for this matrix: A =
Solution: If you remember (or re-derive, as described in class) a Cholesky factorization algorithm, you can practically write down the answer. If not, there is still hope: A = LL∗^ must take the form
a 0 0 0 b c 0 0 d e f 0 g h i j
a b d g 0 c e h 0 0 f i 0 0 0 j
a^2 ab ad ag ???? ???? ????
Without further computation, you can find a = 1, b = 0, d = 1, g = 1, and write
0 c 0 0 1 e f 0 1 h i j
0 c e h 0 0 f i 0 0 0 j
0 c^2 ce ch ???? ????
Write down c = 1, e = 0, h = 2, and
1 0 f 0 1 2 i j
0 0 f i 0 0 0 j
1 0 1 + f 2 1 + f i ????
Write down f = 1, i = 0, and
1 2 0 j
0 0 0 j
1 2 1 5 + j^2
Finally, j = 1, and the desired factorization has