27.12.2012 Views

Wave Propagation in Linear Media | re-examined

Wave Propagation in Linear Media | re-examined

Wave Propagation in Linear Media | re-examined

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

1.575<br />

1.57<br />

1.565<br />

6Towards a quadratu<strong>re</strong> rout<strong>in</strong>e<br />

20 40 60 80 100<br />

Figu<strong>re</strong> 6.1: Sequences of partial sums for R 1 s<strong>in</strong> x<br />

0 x dx. The partition po<strong>in</strong>ts a<strong>re</strong> the zeros ( ) or ext<strong>re</strong>ma<br />

( ) of the <strong>in</strong>tegrand. The <strong>in</strong>ner sequences a<strong>re</strong> obta<strong>in</strong>ed when the <strong>in</strong>tegration range for the sub<strong>in</strong>tervals<br />

is a full period.<br />

In[6]:= sequ = Table[NIntegrate[S<strong>in</strong>[x]/x,<br />

fx,2 i Pi + Pi/2,2 (i+1) Pi + Pi/2g],<br />

fi,0,100g];<br />

partial = FoldList[Plus,NIntegrate[S<strong>in</strong>[x]/x,fx,0,Pi/2g],sequ];<br />

SequenceLimit[partial] - N[Pi/2]<br />

Out[6]= -7<br />

-2.13857 10<br />

Fig. 6.1 shows the sequences of partial sums calculated for this example and <strong>re</strong>veals that the<br />

ext<strong>re</strong>ma a<strong>re</strong> <strong>in</strong>deed mo<strong>re</strong> suitable as partition po<strong>in</strong>ts because the errors jSn , Sj dec<strong>re</strong>ase like<br />

1=n 2 <strong>in</strong> this case. When the zeros a<strong>re</strong> used to subdivide the <strong>in</strong>tegration range, the errors<br />

behave like 1=n, which gives only half the speed of convergence.<br />

Proof We shall rst derive an estimate for the magnitude of the partial <strong>in</strong>tegrals. The second meanvalue<br />

theo<strong>re</strong>m states that if two functions f(x) and g(x) a<strong>re</strong> cont<strong>in</strong>uous on [a; b] and g(x) is also<br />

monotonic, then the<strong>re</strong> exists a po<strong>in</strong>t 2 [a; b] such that<br />

Z b<br />

a<br />

Z<br />

f(x) g(x) dx = g(a+)<br />

a<br />

Z b<br />

f(x) dx + g(b,) f(x) dx : (6.2)<br />

We set f(x) = s<strong>in</strong> x, g(x) =1=x and choose the <strong>in</strong>tegration <strong>in</strong>terval [(n + ) ; (n +1+ ) ], whe<strong>re</strong><br />

136

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

Saved successfully!

Ooh no, something went wrong!