11.08.2013 Views

Untitled - Cdm.unimo.it

Untitled - Cdm.unimo.it

Untitled - Cdm.unimo.it

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

272 Polynomial Approximation of Differential Equations<br />

Figure 12.2.1 - The function U(x) = e −x sin 7x<br />

1+x 2 , x ∈ [0,4].<br />

In our first experiment, we discretize the equation in a bounded subset of I, i.e.,<br />

the interval ]0,2[. For any n ≥ 2, we use the collocation method at the nodes ˆη (n)<br />

j :=<br />

η (n)<br />

j +1, 0 ≤ j ≤ n, obtained by shifting the Chebyshev Gauss-Lobatto points in [−1,1]<br />

(see (3.1.11)). Thus, we want to find a polynomial pn ∈ Pn such that<br />

(12.2.2)<br />

⎧<br />

⎨<br />

−p ′′ n(ˆη (n)<br />

i ) − p ′ n(ˆη (n)<br />

i ) = exp(−ˆη (n)<br />

i ) f(ˆη (n)<br />

i ), 1 ≤ i ≤ n − 1,<br />

⎩<br />

pn(0) = 0, pn(2) = 0.<br />

To determine a unique solution of (12.2.2), we force the homogeneous Dirichlet boundary<br />

cond<strong>it</strong>ion at the point x = 2. This cond<strong>it</strong>ion is suggested by the behavior prescribed<br />

for U at infin<strong>it</strong>y. We note that U(2) ≈ −.04533, so that the lim<strong>it</strong> limn→+∞ pn does<br />

not coincide w<strong>it</strong>h the function U. We examine for instance the approximation of the<br />

quant<strong>it</strong>y U ′ (0) = 7. We give in table 12.2.1 the error En := |U ′ (0) − p ′ n(0)|, n ≥ 2,<br />

for different n. As expected En does not decay to zero, but approaches a value of the<br />

same order of magn<strong>it</strong>ude of the error |U(2) − pn(2)|. Of course, we can improve on<br />

these results by increasing the size of the computational domain.

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

Saved successfully!

Ooh no, something went wrong!