Gauss Quadrature 2
Gauss Quadrature 2
Gérard MEURANT
October, 2008
1 Quadrature rules
see Gautschi
If the measure is positive, k = N is maximal for interpolatory
quadrature since if k = N + 1 the condition in the last theorem
would give that the polynomial
N
Y
(λ − tj )
j=1
Z b
pi (λ)pj (λ) dα(λ) = δi,j
a
P(λ) = [p0 (λ) p1 (λ) · · · pN−1 (λ)]T , e N = (0 0 · · · 0 1)T
wj P(tj )T P(tj ) = 1, j = 1, . . . , N
Then
wj P(tj )T P(tj ) = wj ω 2 kqk2 = wj ω 2 = 1
Hence, wj = 1/ω 2 . To find ω we can pick any component of the
eigenvector q, for instance, the first one which is different from
zero ω = p0 (tj )/q1 = 1/q1 . Then, the weight is given by
wj = q12
with 2
b N
f (2N) (η)
Z Y
RG [f ] = (λ − tjG ) dα(λ)
(2N)! a j=1
QN
The monic polynomial j=1 (tjG − λ) which is the determinant χN
of JN − λI can be written as γ1 · · · γN−1 pN (λ)
Theorem
Suppose f is such that f (2n) (ξ) > 0, ∀n, ∀ξ, a < ξ < b, and let
N
X
LG [f ] = wjG f (tjG )
j=1
f (2N) (η)
I [f ] − LG [f ] = (γ1 · · · γN−1 )2
(2N)!
The Gauss–Radau rule
This gives
pN−1 (a)
ωN+1 = a − γN
pN (a)
Note that
(JN − aI )P(a) = −γN pN (a)e N
Let δ(a) = [δ1 (a), · · · , δN (a)]T with
pl−1 (a)
δl (a) = −γN l = 1, . . . , N
pN (a)
I we generate γN
I we solve the tridiagonal system for δ(a), this gives δN (a)
I we compute ωN+1 = a + δN (a)
γN e N
JN
ĴN+1 =
γN (e N )T ωN+1
gives the nodes and the weights of the Gauss–Radau quadrature
rule
Theorem
Suppose f is such that f (2n+1) (ξ) < 0, ∀n, ∀ξ, a < ξ < b. Let
N
X
UGR [f ] = wja f (tja ) + v1a f (a)
j=1
wja , v1a , tja being the weights and nodes computed with z1 = a and
let LGR
N
X
LGR [f ] = wjb f (tjb ) + v1b f (b)
j=1
wjb , v1b , tjb being the weights and nodes computed with z1 = b.
The Gauss–Radau rule is exact for polynomials of degree less than
or equal to 2N and we have
LGR [f ] ≤ I [f ] ≤ UGR [f ]
Theorem (end)
Moreover ∀N ∃ ηU , ηL ∈ [a, b] such that
2
b N
f (2N+1) (ηU )
Z Y
I [f ] − UGR [f ] = (λ − a) (λ − tja ) dα(λ)
(2N + 1)! a j=1
2
b N
f (2N+1) (ηL )
Z Y
I [f ] − LGR [f ] = (λ − b) (λ − tjb ) dα(λ)
(2N + 1)! a j=1
The Gauss–Lobatto rule
We would like to have
Let
pl−1 (a) pl−1 (b)
δl = − , µl = − , l = 1, . . . , N
γN pN (a) γN pN (b)
then
(JN − aI )δ = e N , (JN − bI )µ = e N
1 −δN ωN+1 a
=
1 −µN γN2 b
γN e N
JN
ĴN+1 =
γN (e N )T ωN+1
Theorem
Suppose f is such that f (2n) (ξ) > 0, ∀n, ∀ξ, a < ξ < b and let
N
X
UGL [f ] = wjGL f (tjGL ) + v1GL f (a) + v2GL f (b)
j=1
tjGL , wjGL , v1GL and v2GL being the nodes and weights computed
with a and b as prescribed nodes. The Gauss–Lobatto rule is exact
for polynomials of degree less than or equal to 2N + 1 and
I [f ] ≤ UGL [f ]
Proof.
N
X N
X
wl f (tl ) = (e 1 )T z l f (tl )(z l )T e 1
l=1 l=1
N
!
X
1 T l l T
= (e ) z f (tl )(z ) e1
l=1
= (e ) ZN f (ΘN )ZNT e 1
1 T
= (e 1 )T f (JN )e 1
The anti–Gauss rule
A usual way of obtaining an estimate of I [f ] − LN
G [f ] is to use
another quadrature rule Q[f ] of degree greater than 2N − 1 and to
estimate the error as Q[f ] − LN
G [f ]
Laurie proposed to construct a quadrature rule with N + 1 nodes
called an anti–Gauss rule
N+1
X
H N+1 [f ] = $j f (ϑj ),
j=1
such that
I [p] − H N+1 [p] = −(I [p] − LN
G [p])
where αk 6= δk and αk δk ≥ 0
We assume that there exists two sequences of mutually orthogonal
(sometimes called bi–orthogonal) polynomials p and q such that
with hpi , qj i = 0, i 6= j
Let
P(λ)T = [p0 (λ) p1 (λ) · · · pN−1 (λ)]
Q(λ)T = [q0 (λ) q1 (λ) · · · qN−1 (λ)]
and
ω1 γ1
β1 ω2 γ2
JN =
.. .. ..
. . .
βN−2 ωN−1 γN−1
βN−1 ωN
In matrix form
βj · · · β1
pj (λ) = qj (λ)
γj · · · γ1
f (2N) (η) b
Z
R[f ] = pN (λ)2 dα(λ)
(2N)! a
Rb
The integral a f (λ)dα(λ) is now a 2 × 2 symmetric matrix. The
most general quadrature formula is of the form
Z b N
X
f (λ)dα(λ) = Wj f (Tj )Wj + R[f ]
a j=1
λ[p0 (λ), . . . , pN−1 (λ)] = [p0 (λ), . . . , pN−1 (λ)]JN +[0, . . . , 0, pN (λ)ΓN ]
where
Ω1 ΓT
1
Γ1 Ω2 ΓT
2
JN =
.. .. ..
. . .
T
ΓN−2 ΩN−1 ΓN−1
ΓN−1 ΩN
is a symmetric block tridiagonal matrix of order 2N
The nodes tj are the zeros of the determinant of the matrix
orthogonal polynomials that is the eigenvalues of JN and ui is the
vector consisting of the two first components of the corresponding
eigenvector
However, the eigenvalues may have a multiplicity larger than 1
Let θi , i = 1, . . . , l be the set of distinct eigenvalues and ni their
multiplicities. The quadrature rule is then
l ni
(w j )(w j )T f (θi )
X X
i i
i=1 j=1
But
−p0 (a)T pN (a)−T
0
(JN − aI ) .
. ..
= .
.
T
−pN−1 (a) pN (a) −T ΓTN
I We first solve
δ0 (a) 0
.
.. .
(JN − aI ) = ..
δN−1 (a) ΓT
N
I We compute
ΩN+1 = aI2 + δN−1 (a)T ΓT
N
The block Gauss–Lobatto rule
The generalization of the Gauss–Lobatto construction to the block
case is a little more difficult
We would like to have a and b as double eigenvalues of the matrix
JN+1
It gives
−1
I2 pN (a)pN−1 (a) ΩN+1 aI2
−1 =
I2 pN (b)pN−1 (b) ΓT
N bI2
(JN − λI )δ(λ) = (0 . . . 0 I2 )T
Then, as before
Theorem
2N
X
f (ti )ui uiT = e T f (JN )e
i=1
where e T = (I2 0 . . . 0)
P.J. Davis and P. Rabinowitz, Methods of numerical
integration, Second Edition, Academic Press, (1984)
W. Gautschi, Orthogonal polynomials: computation and
approximation, Oxford University Press, (2004)
G.H. Golub and G. Meurant, Matrices, moments and
quadrature, in Numerical Analysis 1993, D.F. Griffiths and
G.A. Watson eds., Pitman Research Notes in Mathematics,
v 303, (1994), pp 105–156
G.H. Golub and J.H. Welsch, Calculation of Gauss
quadrature rules, Math. Comp., v 23, (1969), pp 221–230
D.P. Laurie, Anti–Gaussian quadrature formulas,
Math. Comp., v 65 n 214, (1996), pp 739–747
J. Stoer and R. Bulirsch, Introduction to numerical
analysis, second edition, Springer Verlag, (1983)