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.

148 APPENDIX A. OLD EXAMS<br />

The normal equations should involve the vector c = [c 0 c 1 c 2 ] ⊤ , which uniquely determines a<br />

function in F.<br />

P10 (9 pnts) Consider the following approximation:<br />

f ′′ (x) ≈<br />

3f(x − h) − 4f(x) + f(x + 3h)<br />

6h 2<br />

• Derive this approximation using Taylor’s Theorem.<br />

• Assuming that f(x) has bounded derivatives, give the accuracy of the above approximation.<br />

Your answer should be something like O ( h ?) .<br />

P11 (11 pnts) Consider the ODE:<br />

{ x ′ (t) = x(t)g(t)<br />

x(0) = 1<br />

• Use the Fundamental Theorem of Calculus to write a step update of the form:<br />

x(t + h) = x(t) +<br />

∫ t+h<br />

• Approximate the integral using the Trapezoid Rule to get an explicit step update of the<br />

form<br />

x(t + h) ← Q(t, x(t), h)<br />

• Suppose that g(t) ≥ m > 0 for all t. Do you see any problem with this stepping method<br />

if h > 2/m?<br />

Hint: the actual solution to the ODE is<br />

P12 (9 pnts) Consider the ODE:<br />

x(t) = eR t<br />

0 g(r) dr .<br />

{<br />

x ′ (t) = e x(t) + sin (x(t))<br />

x(0) = 0<br />

Write out the Taylor’s series method of order three to approximate x(t + h) given x(t). It is<br />

permissible to write the update as a small program like:<br />

x ′ (t) ← Q 0 (x(t))<br />

x ′′ (t) ← Q 1 (x(t), x ′ (t))<br />

.<br />

t<br />

??<br />

x(t + h) ← R(x(t), x ′ (t), x ′′ (t), . . .)<br />

rather than write the update as a monstrous equation of the form<br />

P13 (15 pnts) Consider the data:<br />

x(t + h) ← M(x(t)).<br />

k 0 1 2<br />

x k −0.5 0 0.5<br />

f(x k ) 5 15 9<br />

• Construct the divided differences table for the data.

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

Saved successfully!

Ooh no, something went wrong!