03.03.2014 Views

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

Numerical Methods Course Notes Version 0.1 (UCSD Math 174, Fall ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

A.3. FINAL EXAM, FALL 2003 147<br />

• Write four linear equations involving z i to make this rule exact for polynomials of the<br />

highest possible degree.<br />

• Solve your system for z using naïve Gaussian Elimination.<br />

A.3 Final Exam, <strong>Fall</strong> 2003<br />

P1 (4 pnts) Clearly state Taylor’s Theorem for f(x + h). Include all hypotheses, and state the<br />

conditions on the variable that appears in the error term.<br />

P2 (4 pnts) State the conditions that characterize S(x) as a natural cubic spline on the interval<br />

[a, b]. Let the knots be a = t 0 < t 1 < t 2 < . . . < t n = b.<br />

P3 (4 pnts) Let x 0 = 3, x 1 = −5, x 2 = 0. Write out the Lagrange Polynomial l 0 (x) for these<br />

nodes; that is, write the polynomial that has value 1 at x 0 and has value 0 at x 1 , x 2 .<br />

P4 (4 pnts) Consider the ODE:<br />

{ x ′ (t) = f(t, x(t))<br />

x(a) = c<br />

Write out the Euler Method to step from x(t) to x(t + h).<br />

P5 (7 pnts) Compute the LU factorization of the matrix<br />

⎡<br />

−1 1<br />

⎤<br />

0<br />

A = ⎣ 1 1 −1 ⎦<br />

−2 0 2<br />

using naïve Gaussian Elimination. Show all your work. Your final answer should be two<br />

matrices, L and U. Verify your answer, i.e., verify that A = LU.<br />

P6 (9 pnts) Let α be given. Determine a quadrature rule of the form<br />

∫ α<br />

−α<br />

f(x) dx ≈ Af(0) + Bf ′′ (−α) + Cf ′′ (α)<br />

that is exact for polynomials of highest possible degree. What is the highest degree polynomial<br />

for which this rule is exact?<br />

P7 (9 pnts) Suppose that φ(n) is some computational function that approximates a desired quantity,<br />

L. Furthermore suppose that<br />

φ(n) = L + a 1 n − 1 2 + a 2 n − 2 2 + a 3 n − 3 2 + . . .<br />

Combine two evaluations of φ(·) in the manner of Richardson to get a O ( n −1) approximation<br />

to L.<br />

P8 (9 pnts) Find the least-squares best approximate of the form y = ln (cx) to the data<br />

x 0 x 1 . . . x n<br />

y 0 y 1 . . . y n<br />

Caution: this should not be done with basis vectors.<br />

P9 (9 pnts) Let<br />

F = {f(x) = c 0 x + c 1 log x + c 2 cos x | c 0 , c 1 , c 2 ∈ R } .<br />

Set up (but do not attempt to solve) the normal equations to find the least-squares best f ∈ F<br />

to approximate the data:<br />

x 0 x 1 . . . x n<br />

y 0 y 1 . . . y n

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!