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.

Ordinary Differential Equations 205<br />

There are several reasons for preferring cond<strong>it</strong>ions (9.4.23) to exact boundary condi-<br />

tions. For instance, as noticed in section 8.6, the eigenvalues of the matrix corresponding<br />

to system (7.4.16) are more appropriate for computation than the eigenvalues of problem<br />

(8.6.8). In add<strong>it</strong>ion, for the approximation of the solution of (9.1.5), the new approach<br />

gives better numerical results. We compare the two ways of imposing the boundary<br />

cond<strong>it</strong>ions in table 9.4.1. Take µ := 1 and f, σ1, σ2 such that the exact solution of<br />

(9.1.5) is U(x) := cos(e x ), x ∈ Ī. Then, compute the error En := pn − Ĩw,nUw<br />

for various n. In the first column, pn is obtained by the collocation method w<strong>it</strong>h the<br />

cond<strong>it</strong>ions p ′ n(−1) = σ1, p ′ n(1) = σ2. In the second column, pn is obtained by the<br />

collocation method w<strong>it</strong>h the cond<strong>it</strong>ions (9.4.23).<br />

n Column 1 Column 2<br />

6 .1090 × 10 −1 .2009 × 10 −3<br />

8 .4130 × 10 −2 .1840 × 10 −4<br />

10 .2723 × 10 −3 .5941 × 10 −6<br />

12 .6896 × 10 −5 .1495 × 10 −7<br />

14 .1404 × 10 −5 .1471 × 10 −8<br />

16 .7122 × 10 −7 .4405 × 10 −10<br />

Table 9.4.1 - Errors corresponding to the Legendre<br />

collocation approximation of problem (9.1.5).<br />

For other Jacobi ultraspherical weights, we generalize (9.4.21) and (9.4.22) by defining<br />

(9.4.24) Bw,n(ψ,φ) :=<br />

+ µ<br />

n<br />

j=0<br />

ψ(η (n)<br />

j ) (φ − ˜ φ)(η (n)<br />

j ) ˜w (n)<br />

j<br />

<br />

(ψ −<br />

I<br />

˜ ψ) ′ [(φ − ˜ φ)w] ′ dx +<br />

+ µ<br />

n<br />

j=0<br />

<br />

I<br />

˜ψ ′ ˜ φ ′ dx<br />

ψ(η (n)<br />

j ) ˜ φ(η (n)<br />

j ) χ (n)<br />

j , ∀ψ,φ ∈ Pn,

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

Saved successfully!

Ooh no, something went wrong!