Docsity

Final Exam for Numerical Methods | MATH 685, Exams of Mathematical Methods for Numerical Analysis and Optimization

Toggle sidebar
bg1
Math 685/CSI 700/OR 682 Take-home Final Exam
given 04/26/10, due 05/12/10
Problem 1. Consider the problem of evaluating the function f(x) = exfor large positive x. Give the
conditioning of this problem in absolute and relative sense and explain why the problem is ill-conditioned or
well-conditioned.
Problem 2. Find an orthogonal matrix Qand a value αsuch that
Q1
2=α
0
Problem 3. Let Abe a singular upper Hessenberg matrix having no zero entries on its subdiagonal. Show
that QR iteration applied to Aconverges to an exact eigenvalue in only 1 step. This is the reason why
convergence of shifted QR method is accelerated when the shift is approximately equal to an eigenvalue.
Problem 4. Analyze the convergence of the fixed point method xk+1 =f(xk) for computing zeros
α1=−1, α2= 2 of the function f(x) = x2−x−2 when the following iteration functions are used:
(a) f1(x) = x2−2, (b) f2=√2 + x, (c) f3=−√2 + xand (d) f4= 1 + 2/x, x 6= 0.
Problem 5. Use the linear ODE x0=λx to analyze accuracy and stability of the Heun’s method
xk+1 =xk+hk
2(k1+k2), where k1=f(tk, xk), k2=f(tk+hk, yk+hkk1). You should show that the
method is 2nd order accurate and characterize its stability region.
Problem 6.
Suppose that the altitude of the trajectory of a pro jectile is described by the 2nd order ODE y00 =−4.
Suppose that the projectile is fired from position t= 0 and height u(0) = 1 and is to strike a target at
position t= 1, also of height u(1) = 1.
(a) Solve this BVP by the shooting method:
Use the trapezoid rule with step h= 1 to derive a system of 2 equations to determine the initial slope at
t= 0 required to hit the desored target at t= 1 (s0=u0(0)) and the final slope s1=u0(1). Using the initial
slope found above and a step size h= 0.5, use the trapezoid rule once again to estimate the projectile height
at t= 0.5
(b) Solve the same BVP using a finite difference method with h= 0.5. Compare the height estimation at
t= 0.5 with that obtained via shooting method.
(c) Solve the same BVP using collocation method at the point t= 0.5, together with the boundary values,
to determine a quadratic polynomial u(t) approximating the solution. Again, compare the height prediction
at the point t= 0.5 with previous methods.
Problem 7. Extra credit.
(1) Solve Problem 6 using Galerkin method.
(2) Implement each of the above methods numerically for the BVP u00 =−(1+ eu) with the same boundary
conditions as above. Comment on accuracy and stability of each method.
1

Partial preview of the text

Download Final Exam for Numerical Methods | MATH 685 and more Exams Mathematical Methods for Numerical Analysis and Optimization in PDF only on Docsity!

Math 685/CSI 700/OR 682 Take-home Final Exam given 04/26/10, due 05/12/

Problem 1. Consider the problem of evaluating the function f (x) = ex^ for large positive x. Give the conditioning of this problem in absolute and relative sense and explain why the problem is ill-conditioned or well-conditioned.

Problem 2. Find an orthogonal matrix Q and a value α such that

Q

[

]

[

α 0

]

Problem 3. Let A be a singular upper Hessenberg matrix having no zero entries on its subdiagonal. Show that QR iteration applied to A converges to an exact eigenvalue in only 1 step. This is the reason why convergence of shifted QR method is accelerated when the shift is approximately equal to an eigenvalue.

Problem 4. Analyze the convergence of the fixed point method xk+1 = f (xk) for computing zeros α 1 = − 1 , α 2 = 2 of the function f (x) = x^2 − x − 2 when the following iteration functions are used: (a) f 1 (x) = x^2 − 2, (b) f 2 =

2 + x, (c) f 3 = −

2 + x and (d) f 4 = 1 + 2/x, x 6 = 0.

Problem 5. Use the linear ODE x′^ = λx to analyze accuracy and stability of the Heun’s method xk+1 = xk + h 2 k (k 1 + k 2 ), where k 1 = f (tk, xk), k 2 = f (tk + hk, yk + hkk 1 ). You should show that the method is 2nd order accurate and characterize its stability region.

Problem 6. Suppose that the altitude of the trajectory of a projectile is described by the 2nd order ODE y′′^ = −4. Suppose that the projectile is fired from position t = 0 and height u(0) = 1 and is to strike a target at position t = 1, also of height u(1) = 1. (a) Solve this BVP by the shooting method: Use the trapezoid rule with step h = 1 to derive a system of 2 equations to determine the initial slope at t = 0 required to hit the desored target at t = 1 (s 0 = u′(0)) and the final slope s 1 = u′(1). Using the initial slope found above and a step size h = 0.5, use the trapezoid rule once again to estimate the projectile height at t = 0. 5 (b) Solve the same BVP using a finite difference method with h = 0.5. Compare the height estimation at t = 0.5 with that obtained via shooting method. (c) Solve the same BVP using collocation method at the point t = 0.5, together with the boundary values, to determine a quadratic polynomial u(t) approximating the solution. Again, compare the height prediction at the point t = 0.5 with previous methods.

Problem 7. Extra credit. (1) Solve Problem 6 using Galerkin method. (2) Implement each of the above methods numerically for the BVP u′′^ = −(1 + eu) with the same boundary conditions as above. Comment on accuracy and stability of each method.