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.

134 Polynomial Approximation of Differential Equations<br />

The matrices (7.2.13) and (7.2.14) have been presented for instance in gottlieb,<br />

hussaini and orszag(1984), together w<strong>it</strong>h the entries of the matrices corresponding<br />

to the second derivatives.<br />

{ ˜ d (1)<br />

ij<br />

For the Laguerre Gauss-Radau case, the entries of the n × n matrix ˜ Dn =<br />

} 0≤i≤n−1 , are obtained by (3.2.11). These are<br />

0≤j≤n−1<br />

(7.2.15) ˜ d (1)<br />

ij =<br />

⎧<br />

⎪⎨<br />

⎪⎩<br />

n − 1<br />

−<br />

α + 2<br />

n! Γ(α + 2) L (α)<br />

n (η (n)<br />

i )<br />

Γ(n + α + 1) η (n)<br />

i<br />

−Γ(n + α + 1)<br />

n! Γ(α + 2) η (n)<br />

j L(α) n (η (n)<br />

j )<br />

L (α)<br />

n (η (n)<br />

i )<br />

L (α)<br />

n (η (n)<br />

j )<br />

η (n)<br />

i<br />

2 η (n)<br />

i<br />

− α<br />

η (n)<br />

i<br />

1<br />

− η(n)<br />

j<br />

For the computation one has to recall (3.1.19) and (1.6.1).<br />

i = j = 0,<br />

1 ≤ i ≤ n − 1, j = 0,<br />

i = 0, 1 ≤ j ≤ n − 1,<br />

i = j 1 ≤ i ≤ n − 1, 1 ≤ j ≤ n − 1,<br />

1 ≤ i = j ≤ n − 1.<br />

In all the examples discussed, the algor<strong>it</strong>hm to perform the derivative in the physical<br />

space corresponds to a matrix-vector multiplication. Therefore, <strong>it</strong>s cost is proportional<br />

to n 2 . The matrices Dn and ˜ Dn, in the various cases, are full and do not display<br />

any particular property. This means that in general we cannot improve the procedure<br />

of evaluating a derivative, as suggested in the previous section. Nevertheless, for the<br />

Chebyshev case, a faster algor<strong>it</strong>hm exists. In view of the results in section 4.3, when n is<br />

a power of 2, we can go from the physical space to the frequency space (and conversely)<br />

by applying the FFT w<strong>it</strong>h a cost proportional to nlog 2n. Therefore, we can use (7.1.8),<br />

the cost of which is only proportional to n. This observation makes the Chebyshev<br />

Lagrange basis preferable, when large values of n are taken into account.

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

Saved successfully!

Ooh no, something went wrong!