


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!



AMSC/CMSC 460 Fall ’05 Practice Final Problems (Osborn)
‖b − Ax‖ and ‖x − x∗‖
to be? (‖ · ‖ here is any vector norm; the answers to these questions does not depend strongly on the particular norm.) How many correct digits would you expect x∗ to have?
f (a + h) − f (a) h
or
f (a + h) − f (a − h) 2 h for small h. Assess the error in these approximations, i.e., estimate the sizes of
f ′(a) −
f (a + h) − f (a) h and f ′(a) −
f (a + h) − f (a − h) 2 h in term of h. Explain your analysis, mentioning any theorems you use.
= f (t, y), y(t 0 ) = y 0. (1)
(b) Consider the specific initial value problem
dy dt
= t/y, y(0) = 1,
whose solution is y(t) =
t^2 + 1. i. Let h = 0.1, and approximate y(0.3) using the Euler Method with three steps. ii. Let h = 0.05, and approximate y(0.3) using the Euler Method with six steps. iii. The Global Error (the error at t = 0.3 in this example) for the Euler Method satisfies
Global Error ≤ Ch, (2) for some constant S. Compute the Global Errors in (i) and (ii), and verify that (3) correct for this example, and find an approximate value for C.
= f (t), 0 ≤ t ≤ 1 y(0) = 0,
which is a special case of (2). Let h = 1/n, tk = kh, k = 1, · · · , n, let yk be the Euler approximation at tk, and view yk as an approximation to y(tk) : y(tk) ≈ yk. k = 0, 1 , · · · , n.
(a) Let ek = y(tk) − yk be the error at the kth mesh point. Show that
y(tk+1) = y(tk)+hf (tk)+
h^2 y′′(ξk) 2
, for some ξk betweentk and tk− 1 ,
and then show that
|ek+1| ≤ |ek| +
h^2 M 2 , k = 0, 1 , · · · , n, (3)
where M = max 0 ≤t≤ 1
|y′′(t)|.
(b) Use (4) to show that
|ek| ≤
M h 2 , for k = 0, 1 , · · · , n.
(x 1 , y 1 ) = (1, 3 .2), (x 2 , y 2 ) = (2, 5 .2), (x 3 , y 3 ) = (3, 6 .85), (x 4 , y 4 ) = (4, 8 .7), (x 5 , y 5 ) = (5, 11 .1).
Find the line that is the best fit to these points in the least-squares sense:
(a) Using the Normal Equations (b) Using the backslash operator (c) Using polyfit.
Xβ ≈ y, (4)
where the design matrix X is m × n and the data vector y is m × 1 (a column)
(a) State the QR factorization result (full version).