

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Math 151B Homework #5 โ Due Friday 2/
Consider the boundary value problem
y โฒโฒ = 1
with y(0) = 0 and y(3) = 9.
a. What is the exact solution?
Answer:
y(x) =
x 2 โ
x
b. Write down a set of second-order discrete difference equation which approximates this problem.
Answer:
y(xiโ 1 ) โ 2 y(xi) + y(xi+1)
h^2
y(xiโ 1 ) โ 2 y(xi) + y(xi+1) = h 2
c. Write the above as a matrix equation, for the case h = 1.
Answer: x 0 = 0, x 1 = 1, x 2 = 2, x 3 = 3
y(0) โ 2 y(1) + y(2) = 1
y(1) โ 2 y(2) + y(3) = 1
2 y(1) โ y(2) = y(0) โ 1
โy(1) + 2y(2) = y(3) โ 1
y(1) y(2)
d. Consider the general form for iteratively solving a linear system
x (k) = T x (kโ1)
Answer:
Tj = D โ 1 (โL โ U )
1 2 0 (^0 )
1 2 1 2 0
c = D โ 1 b
1 2 0 (^0 )
1 2 4
Answer:
Tg = (D + L)โ^1 (โU )
1 2 0 โ^1412
1 2 0 โ 1 4
c = (D + L) โ 1 b
1 2 0 โ^1412
1 2 15 4
e. For Jacobi iteration, is T convergent?
Answer:
The eigenvalues are ฮป 1 = ฮป 2 = 1/2, so Tj is convergent.
f. For Gauss-Seidel iteration, is T convergent?
Answer:
The eigenvalues are ฮป 1 = 0 and ฮป 2 = โ 1 /4, so Tj is convergent.
g. Have you ever seen a question with so many parts?
Answer:
If you have then the answer is yes.
If you havenโt, now you have, so the answer is yes.