21.06.2014 Views

Numerical Methods Contents - SAM

Numerical Methods Contents - SAM

Numerical Methods Contents - SAM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Idea: Partition integration domain [a,b] by mesh (grid, → Sect.9.2) M := {a =<br />

x 0 < x 1 < ... < x m = b}<br />

Apply quadrature formulas from Sects. 10.2, 10.4 on sub-intervals I j :=<br />

[x j−1 , x j ], j = 1, ...,m, and sum up.<br />

composite quadrature rule<br />

Analogy: global polynomial interpolation ←→ piecewise polynomial interpolation<br />

(→ Sect. 9.2)<br />

Formulas (10.3.2), (10.3.3) directly suggest efficient implementation with minimal number of f-<br />

evaluations.<br />

✸<br />

How to rate the “quality” of a composite quadrature formula ?<br />

Note: Here we only consider one and the same quadrature formula (local quadrature formula) applied<br />

on all sub-intervals.<br />

Clear:<br />

It is impossible to predict the quadrature error, unless the integrand is known.<br />

Example 10.3.1 (Simple composite polynomial quadrature rules).<br />

Possible:<br />

Predict decay of quadrature error as m → ∞ (asymptotic perspective) for certain classes<br />

of integrands and “uniform” meshes.<br />

✬<br />

✩<br />

Ôº¿ ½¼º¿<br />

✫<br />

Gauge for “quality” of a quadrature formula Q n :<br />

∫ b<br />

Order(Q n ) := max{n ∈ N 0 : Q n (p) = p(t) dt ∀p ∈ P n } + 1<br />

a<br />

Ôº ½¼º¿<br />

✪<br />

Composite trapezoidal rule, cf. (11.4.2)<br />

∫b<br />

a<br />

f(t)dt = 1 2 (x 1 − x 0 )f(a)+<br />

m−1 ∑<br />

1<br />

2 (x j+1 − x j−1 )f(x j )+<br />

j=1<br />

1<br />

2 (x m − x m−1 )f(b) .<br />

Composite Simpson rule, cf. (10.2.4)<br />

∫b<br />

f(t)dt =<br />

a<br />

1<br />

6 (x 1 − x 0 )f(a)+<br />

m−1 ∑<br />

1<br />

6 (x j+1 − x j−1 )f(x j )+<br />

(10.3.2)<br />

(10.3.3)<br />

3<br />

2.5<br />

2<br />

1.5<br />

1<br />

0.5<br />

2.5<br />

1.5<br />

0<br />

−1 0 1 2 3 4 5 6<br />

3<br />

2<br />

By construction:<br />

polynomial quadrature formulas (10.2.1) exact for f ∈ P n−1<br />

⇒ n-point polynomial quadrature formula has at least order n<br />

Remark 10.3.2 (Orders of simple polynomial quadrature formulas).<br />

n<br />

Order<br />

0 midpoint rule 2<br />

1 trapezoidal rule (11.4.2) 2<br />

2 Simpson rule (10.2.4) 4<br />

3 3 8 -rule 4<br />

4 Milne rule 6<br />

△<br />

j=1<br />

m∑<br />

2<br />

3 (x j − x j−1 )f( 2 1(x j + x j−1 ))+<br />

j=1<br />

1<br />

6 (x m − x m−1 )f(b) .<br />

1<br />

0.5<br />

0<br />

−1 0 1 2 3 4 5 6<br />

Ôº ½¼º¿<br />

Focus:<br />

asymptotic behavior of quadrature error for<br />

mesh width h := max<br />

j=1,...,m |x j − x j−1 | → 0<br />

Ôº ½¼º¿

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

Saved successfully!

Ooh no, something went wrong!