next up previous
Next: About this document ...

Math428: Problem Set #1

1.
Consider a refinement study where the exact solution, I, is not known. Suppose one suspects that an approximation In that uses npanels has an error bound of the form

\begin{displaymath}\vert I - I_n\vert \leq \frac{C}{n^p}
\end{displaymath}

for some integer p. Prove that one can perform a refinement study without knowing I by using successive terms. That is, prove that

\begin{displaymath}\vert I_n - I_{n/2}\vert \leq \frac{D}{n^p}.
\end{displaymath}

How are C and D related to one another?


This problem highlights a basic theme in bounding errors: You begin with the term to be bounded and use the given information.


\begin{align*}\vert I_n - I_{n/2}\vert & = \vert I_n \textcolor{blue}{- I + I} -...
...2^p)}&
\text{\textcolor{blue}{So we see that $D = C(1+2^p)$ .}} \\
\end{align*}


2.
Use midpoint rule estimate

\begin{displaymath}\int_{\frac{1}{10}}^1 \frac{\cos\left(\frac{\ln(x)}{x}\right)}{x} dx
\end{displaymath}

with 100, 200, 400 and 800 panels. Verify through this refinement that you are achieving the correct convergence rate. (This problem is related to the first ``Hundred Digit Challenge'' problems, but $\epsilon$ is fixed at 0.1.) Estimate the number of panels required to compute the first eight digits accurately.


See the solution to problem 3.


3.
Repeat problem 2 using Simpson's Rule.


This is just a question of computing things. To compute Simpson's rule, I took the intermediate step of using the trapezoid rule because it is conceptually simpler to do this. All but the last line of the table was posted in the lecture notes, so I complete the table here.

N MN M2N-MN TN T2N-TN SN S2N-SN
100 2.8664e-01 8.8986e-03 3.1909e-01 -1.6223e-03 2.9746e-01 5.2458e-04
200 2.9554e-01 1.8820e-03 3.0286e-01 -3.6624e-03 2.9798e-01 3.3855e-05
400 2.9742e-01 4.4824e-04 2.9920e-01 -8.9022e-04 2.9801e-01 2.0871e-06
800 2.9787e-01 1.1069e-04 2.9832e-01 -2.2099e-04 2.9802e-01 1.2988e-07

Here, we see that Simpson's rule picks up more than a digit of accuracy at every refinement while the other require more than two refinements to capture one more digit of accuracy.


4.
Prove that the Trapezoid Rule

\begin{displaymath}I \approx I_n = \frac{1}{2} f(x_1) h + \sum_{i=2}^{n} f(x_i) h +
\frac{1}{2} f(x_{n+1}) h
\end{displaymath}

has an error bound

\begin{displaymath}\vert I - I_n\vert \leq \frac{M(b-a)^3}{12 n^2}
\end{displaymath}

where $\vert f''(x)\vert \leq M$ for all x on the domain of integration.


There are many ways to do this problem. In class, we discussed either using Taylor series or polynomial test functions.


5.
[related to KC 6.1:5] Derive a procedure for determining a polynomial of degree at most 2 for which p(0), p(1) and $p'(\xi)$is prescribed, $\xi$ being any preassigned point.


For simplicity, I introduce the following notation:

\begin{displaymath}p(0) = p_0, \ \ \ \ p(1) = p_1, \ \ \ \ p'(\xi) = p_\xi'.
\end{displaymath}

Since we have three pieces of information, we anticipate that we are going to be able to fit this with a second order polynomial. (In retrospect, we know that there is something fishy about $p_\xi'$. Remember, we lose some information when we differentiate.) Anyway, here we go!

p(x) = c0 + c1 x + c2 x2.


\begin{align*}c_0 & = p_0, \\
c_0 + c_1 + c_2 & = p_1, \\
c_1 + 2 c_2 \xi & = p_\xi'.
\end{align*}
This can be solved by brute force and substitution, or we can examine the corresponding linear system.

\begin{displaymath}\left[
\begin{array}{ccc}
1 & 0 & 0 \\
1 & 1 & 1 \\
0 & 1 &...
...ft[
\begin{array}{c}
p_0 \\
p_1 \\
p_\xi'
\end{array}\right]
\end{displaymath}

If we study the matrix, we see that its determinant is $2\xi - 1$. Thus, the system is not invertible if $\xi = \frac{1}{2}$. If $\xi
\neq \frac{1}{2}$, the coefficients are uniquely determined from the data about p.

In the degenerate case, $\xi = \frac{1}{2}$, we must conclude that we must assume that some of the coefficients of the second order polynomial are linearly dependent, and we can introduce an extra order to the polynomial. Thus,

p(x) = c0 + c1 x + c2 x2 + c3 x3.

And,
\begin{align*}c_0 & = p_0, \\
c_0 + c_1 + c_2 + c_3& = p_1, \\
c_1 + c_2 + \frac{3}{4} c_3 & = p_\xi'.
\end{align*}
By inspection, we see that
c1 and c2 only appear together as a sum. Thus, we can define a new variable, d = c1 + c2, and we must accept that we have no specific information about c1 and c2. If we know either c1 or c2, the other is then determined by d. The new linear system is

\begin{displaymath}\left[
\begin{array}{ccc}
1 & 0 & 0 \\
1 & 1 & 0 \\
0 & 1 &...
...t[
\begin{array}{c}
p_0 \\
p_1 \\
p_\xi'
\end{array}\right].
\end{displaymath}

The determinant of the corresponding matrix is $\frac{3}{4}$, so we know that c0, d and c3 can always be determined uniquely. Again, there is some freedom is choosing the pair c1 and c2 as long as the sum is d.


6.
[KC 7.2: 1] Derive the Newton-Cotes formula for

\begin{displaymath}\int_0^1 f(x) dx
\end{displaymath}

based on the nodes $0, \frac{1}{3}, \frac{2}{3}, 1$.


Here, since we must integrate the polynomial explicitly, I would recommend using a divided difference table as shown in the class notes.

0 f(0)      
    $3 \left[f\left(\frac{1}{3}\right)-f(0)\right]$    
$\frac{1}{3}$ $f\left(\frac{1}{3}\right)$   $\frac{9}{2} \left[f\left(\frac{2}{3}\right)-2
f\left(\frac{1}{3}\right)+
f(0)\right]$  
    $3 \left[f\left(\frac{2}{3}\right)-f\left(\frac{1}{3}\right)\right]$   $\frac{9}{2}\left[f(1)-3 f\left(\frac{2}{3}\right)+
3 f\left(\frac{1}{3}\right)-f(0)\right]$
$\frac{2}{3}$ $f\left(\frac{2}{3}\right)$   $\frac{9}{2}\left[f(1)-
2 f\left(\frac{2}{3}\right)+f\left(\frac{1}{3}\right)\right]$  
    $3 \left[f(1)-f\left(\frac{2}{3}\right)\right]$    
1 f(1)      

Thus, the correct interpolating polynomial is
\begin{multline*}p(x) =
f(0) + 3 \left[f\left(\frac{1}{3}\right)-f(0)\right] x +...
...right]
x \left(x-\frac{1}{3}\right) \left(x-\frac{2}{3}\right).
\end{multline*}

To find the quadrature coefficients, we integrate over the panel.
\begin{multline*}\int_0^1 p(x) dx =
f(0) + \frac{3}{2} \left[f\left(\frac{1}{3}\...
...eft(\frac{2}{3}\right)+
3 f\left(\frac{1}{3}\right)-f(0)\right].
\end{multline*}
Now, we collect terms for each evaluation of
f.

\begin{displaymath}\int_0^1 p(x) dx = \frac{1}{8} f(0) +
\frac{3}{8} f\left(\fra...
...t) +
\frac{3}{8} f\left(\frac{2}{3}\right) +
\frac{1}{8} f(1).
\end{displaymath}

This is ``Simpson's $\frac{3}{8}$ Rule'' which is discussed a little bit in class. See? Building your own quadrature is not so bad, eh?



 
next up previous
Next: About this document ...
Louis F Rossi
2002-02-20