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.

130 Polynomial Approximation of Differential Equations<br />

where<br />

(7.2.3) d (1)<br />

ij :=<br />

<br />

d<br />

dx l(n)<br />

<br />

j (ξ (n)<br />

i ), 1 ≤ i ≤ n, 1 ≤ j ≤ n.<br />

Since the polynomials p and p ′ are uniquely determined by their values at the nodes<br />

ξ (n)<br />

i , 1 ≤ i ≤ n, the linear transformation (7.2.2) is equivalent to performing an exact<br />

derivative in the space Pn−1. The associated n × n matrix Dn := {d (1)<br />

ij<br />

} 1≤i≤n , allows<br />

1≤j≤n<br />

us to pass from the the vector {p(ξ (n)<br />

j )}1≤j≤n to the vector {p ′ (ξ (n)<br />

i )}1≤i≤n, w<strong>it</strong>h a<br />

computational cost proportional to n 2 .<br />

The next step is to give an explic<strong>it</strong> expression to the entries d (1)<br />

ij , 1 ≤ i ≤ n,<br />

1 ≤ j ≤ n. Computing the derivatives of the Lagrange polynomials in (3.2.4) yields<br />

(7.2.4)<br />

<br />

d<br />

dx l(n)<br />

<br />

j<br />

(x) = u′ n(x)(x − ξ (n)<br />

j ) − un(x)<br />

u ′ n(ξ (n)<br />

j ) (x − ξ (n)<br />

j ) 2<br />

After evaluation of (7.2.4) at the nodes, one obtains<br />

(7.2.5) d (1)<br />

ij =<br />

⎧<br />

⎪⎨<br />

⎪⎩<br />

u ′ n(ξ (n)<br />

i )<br />

u ′ n(ξ (n)<br />

j )<br />

u ′′ n(ξ (n)<br />

i )<br />

2 u ′ n(ξ (n)<br />

i )<br />

ξ (n)<br />

i<br />

1<br />

− ξ(n)<br />

j<br />

, x ∈ I, x = ξ (n)<br />

j , 1 ≤ j ≤ n.<br />

if i = j,<br />

if i = j.<br />

To get (7.2.5) one recalls that un(ξ (n)<br />

i ) = 0, 1 ≤ i ≤ n. The diagonal entries (i.e.,<br />

i = j) are obtained by noting that<br />

(7.2.6) lim<br />

x→ξ (n)<br />

i<br />

<br />

d<br />

dx l(n)<br />

<br />

i (x) = lim<br />

x→ξ (n)<br />

i<br />

u ′′ n(x)<br />

2 u ′ n(ξ (n)<br />

i ) = u′′ n(ξ (n)<br />

i )<br />

2 u ′ n(ξ (n)<br />

, 1 ≤ i ≤ n.<br />

i )<br />

Recalling that un is solution of a Sturm-Liouville problem, we can express the values<br />

u ′′ n(ξ (n)<br />

i ), 1 ≤ i ≤ n, in terms of u ′ (ξ (n)<br />

i ), 1 ≤ i ≤ n. This gives

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

Saved successfully!

Ooh no, something went wrong!