exercises
exercises
for
1
PROBLEM 2 :
Use the Banach Lemma (with the matrix infinity norm) to prove that the
n by n matrix Tn given below is invertible for all positive integers n :
5 1 1
1 5 1 1
1 1 5 1 1
Tn = diag[1, 1, 5, 1, 1] ≡
1 1 5 1 1 .
. . . . .
1 1 5 1
1 1 5
Also use the Banach Lemma to derive an upper bound on the infinity
n , and on the condition number of Tn .
norm of the inverse matrix T−1
2
PROBLEM 3 :
Use the Banach Lemma (with the matrix infinity norm) to prove that the
n by n matrix Sn given below is invertible for all positive integers n :
Sn = diag[hi , 2(hi + hi+1 ), hi+1 ] ≡
2(h0 + h1 ) h1
h1 2(h1 + h2 ) h2
h2 2(h2 + h3 ) h3
h3 2(h3 + h4 ) h4 ,
· · ·
hn−2 2(hn−2 + hn−1 ) hn−1
hn−1 2(hn−1 + hn )
where hi > 0, for all i. (This matrix arises in cubic spline interpolation.)
3
PROBLEM 4 :
Ax = f ,
4
PROBLEM 5 :
Show L and U.
5
PROBLEM 6 :
6
PROBLEM 7 :
cond(A) ≡ k A k k A−1 k ,
is large.
but where the multiplier that arises in the LU-decomposition is not big
in absolute value.
7
PROBLEM 8 :
cond(A) ≤ 10 ,
8
PROBLEM 9 :
9
PROBLEM 10 :
H3 x = f ,
Lg = f ,
followed by solving U x = g.
10
PROBLEM 11 :
11
PROBLEM 12 :
12
PROBLEM 13 :
13
PROBLEM 14 :
14
PROBLEM 15 :
√
Use the methods below to compute 2, i.e., solve the equation
x2 − 2 = 0 ,
15
PROBLEM 16 :
16
PROBLEM 17 :
Prove that if c ∈ [0, 4] and x(0) ∈ [0, 1] then x(k) ∈ [0, 1] for all k.
17
PROBLEM 18 :
18
PROBLEM 19 :
x(k+1) = tan(x(k) ) , k = 0, 1, 2, · · · .
19
PROBLEM 20 :
x(k+1) = f (x(k) ) ,
where
f (x) = ex .
20
PROBLEM 21 :
x(k+1) = f (x(k) ) ,
where
f (x) = e−x .
21
PROBLEM 22 :
x(k+1) = f (x(k ) ,
where
1 + x2
f (x) = .
1+x
22
PROBLEM 23 :
For each fixed point determine all values of xc for which the fixed point is
attracting.
23
PROBLEM 24 :
24
PROBLEM 25 :
25
PROBLEM 26 :
x1 − e−x2 = 0 ,
2 e−x1 − x2 = 0 .
(0) (0)
Use x1 = 0 and x2 = 0 as initial guesses.
(1) (1)
Determine x1 and x2 .
26
PROBLEM 27 : Lagrange Interpolation
27
PROBLEM 28 :
The points {xk }4k=0 are distinct in [−1, 1], but they are otherwise arbitrary.
Q4
( Use a tight bound on k k=0 (x − xk ) k∞ in your derivation.)
28
PROBLEM 29 :
x0 = −1 , x1 = −0.5 , x2 = 0 , x3 = 0.5 , x4 = 1 .
Q4
( Use a tight bound on k k=0 (x − xk ) k∞ in your derivation.)
29
PROBLEM 30 :
The points {xk }4k=0 are the roots of T5 (x) (Chebyshev points).
Q4
( Use a tight bound on k k=0 (x − xk ) k∞ in your derivation.)
30
PROBLEM 31 :
Taylor’s Theorem :
If f ∈ C n+1 [a, b] and x ∈ [a, b], then f (x) = pn (x) + Rn (x), where
n
X f (k) (x0 )
pn (x) = (x − x0 )k
k=0
k!
f (n+1) (ξ(x))
Rn (x) = (x − x0 )n+1 , for some ξ(x) ∈ [a, b]
(n + 1)!
31
PROBLEM 32 :
32
PROBLEM 33 :
k f − p5 k ∞ ,
33
PROBLEM 34 :
34
PROBLEM 35 :
The formula should approximate f ′′′ (x2 ) in terms of the values of f (x)
at the points x0 , x1 , x2 , x3 , and x4 .
Use Taylor expansions to determine the leading error term of the formula.
If f (x) = ex then how small should h be so the error is less than 10−6 ?
35
PROBLEM 36 :
36
PROBLEM 37 :
37
PROBLEM 38 :
38
PROBLEM 39 :
39
PROBLEM 40 :
40
PROBLEM 41 :
The local Trapezoidal Rule for the reference interval [−h/2, h/2] is
h/2
h
Z h i
f (x) dx ∼
= f (−h/2) + f (h/2) .
−h/2 2
41
PROBLEM 42 :
E3 ≡ Span{ 1 , x2 , x4 }
42
PROBLEM 43 :
43