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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A.4. FIRST MIDTERM, FALL 2004 149<br />

• Construct the Newton form of the polynomial p(x) of lowest degree that interpolates<br />

f(x) at these nodes.<br />

• Suppose that these data were generated by the function f(x) = 40x 3 − 32x 2 − 6x + 15.<br />

Find a numerical upper bound on the error |p(x) − f(x)| over the interval [−0.5, 0.5].<br />

Your answer should be a number.<br />

P14 (15 pnts) • Write out the iteration step of Newton’s Method for finding a zero of the<br />

function f(x). Your iteration should look like<br />

x k+1 = ??<br />

• Write the Newton’s Method iteration for finding 3√ 25/4.<br />

• Letting x 0 = 5 2 , find the x 1 and x 2 for your iteration. Note that 3√ 25/4 ≈ 1.842.<br />

P15 (15 pnts) • Let x be some given number, and let f(·) be a given, “black box” function.<br />

Using Taylor’s Theorem, derive a O (h) approximation to the derivative f ′ (x). Call your<br />

approximation φ(h); the approximation should be defined in terms of f(·) evaluated at<br />

some values, and should probably involve x and h.<br />

• Let f(x) = x 2 + 1. Approximate f ′ (0) using your φ(h), for h = 1 2 .<br />

• For the same f(x) and h, get a O ( h 2) approximation to f ′ (0) using the method of<br />

Richardson’s Extrapolation; your answer should probably include a table like this:<br />

A.4 First Midterm, <strong>Fall</strong> 2004<br />

D(0, 0)<br />

D(1, 0) D(1, 1)<br />

[Definitions] Answer no more than two of the following.<br />

P1 (12 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 (12 pnts) Write the general form of the iterated solution to the problem Ax = b. Let Q be<br />

your “splitting matrix,” and use the factor ω. Your solution should look something like:<br />

??x (k) =??x (k−1) +?? or x (k) =??x (k−1) +??<br />

For one of the following variants, describe what Q is, in relation to A : Richardson’s, Jacobi,<br />

Gauss-Seidel.<br />

P3 (12 pnts) Write the iteration for Newton’s Method or the Secant Method for finding a root to<br />

the equation f(x) = 0. Your solution should look something like:<br />

x k+1 =?? + ??<br />

??<br />

[Problems] Answer no more than four of the following.<br />

P1 (14 pnts) Perform bisection on the function graphed below. Let the first interval be [0, 256].<br />

Give the second, third, fourth, and fifth intervals.<br />

P2 (14 pnts) Give a O ( h 4) approximation to sin (h + π/2) . Find a reasonable C such that the<br />

truncation error is no greater than Ch 4 .<br />

P3 (14 pnts) Use Newton’s Method to find a good approximation to 3√ 24. Use x 0 = 3. That is,<br />

iteratively define a sequence with x 0 = 3, such that x k → 3√ 24.<br />

P4 (14 pnts) One of the roots of x 2 − bx + c = 0 as found by the quadratic formula is subject<br />

to subtractive cancellation when |b| ≫ |c| . Which root is it? Rewrite the expression for that<br />

root to eliminate subtractive cancellation.

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

Saved successfully!

Ooh no, something went wrong!