Professional Documents
Culture Documents
Kautsky1982 1
Kautsky1982 1
1. Introduction
An interpolatory quadrature
mj- 1
Q(f)"= ~ ~ d~if~i)(v~)
j=l i=0
has the weights d~i chosen, for given distinct knots v 1..... vs and multiplicities
ml, m2, ..., m,, in such a way that
b
Q(f)=~f(t)w(t)dt
a
/~ 4:0 and a non-derogatory lower Hessenberg matrix K such that, for all t,
where, as in the rest of this paper, e j : = ( 0 ..... 0,1,0 ..... 0) T is the j-th unit
vector of appropriate dimension. Furthermore, v is an eigenvalue of K of
multiplicity m and
rj = pC/)(0/J!, j =0,1 ..... m- 1 (2.2)
where
b
Consider now the polynomial basis Po, Pl ..... Pn which is orthonormal with
respect to the weight function w on the interval (a, b). These polynomials satisfy
the three term relation
tp(t) = J_p(t) + fl.p.(t) e_. (2.6)
3. The Method
0 0 ... x,
Obviously, for q =(qo, qa ..... q.- 0 r,
t q(t) = I(q(t) + qo q.(t) e./v (3.2)
where
J
qs(t)=qo I~ ( t - x s ) , j=O, 1..... n - 1 . (3.3)
s=l
The qSs are of exact degree j and so there exists a lower triangular matrix L
such that p=L_q. Substituting this into (2.1) gives us directly that L = A . The
choice of qo 4:0 is arbitrary and, as
especially in the case of knots with high multiplicity, takes advantage of the
special form of the right and left principle vectors corresponding to the knot
which appears last in the diagonal of the m a t r i x / ( .
L e m m a 2. Suppose I( has the knot v, of multiplicity m, in its last m places on the
main diagonal. Denote
Z r R = ( 2 * ) - ~I (3.8)
where here 2 * = 1. Consider first the special case n = m. Then from (a) we have
that R is a multiple of Ir, and so (b) follows immediately.
N o w suppose n > m. Then (2.10) gives
showing that ~1i=0 all i since pl:t:0. Noting that pi:t:0, i = 1 , 2 .... , n - m and
that ~ _ ~= 0 , i = 1 , 2 .... , n then (2.10) written as
~ _ : = l L - l el
Po
where then n x n transformation matrix L - 1:= [ a j satisfies the identity
Using (2.7) and L e m m a 1 we now show that, given the first diagonal
element all~=qo/Po of L -x, the vector ~ can be explicitly calculated from /(
and the top half of J only. In fact we have the following result.
L e m m a 3. Let J* be the principal submatrix of J of order n*, 1 < n*< n and let
L*, = [a*] be an n x n* matrix satisfying
(a) f f*l j-- - O ' l j ~ j = l , . . . , n*,
(b) KL*=L*J*.
Interpolatory Quadratures 413
Then ~r*=~ij for all l <j<n* and 1 < i < m i n ( n , 2 n * - j + 1). In particular, if
n* > n_ then ~_= 1 L* e I .
=2 p0
Proof. Defining ~rio-~i,,,
+ - * * 1 = 0 we may write the first n - 1 rows of equation
(b) as
r 1 "q'-(~j--Xi) ff~"~-fljG~,j+l'
10"*i,j_ i=1, 2, ..., n-l,
(3.10)
j = l , 2 ..... n*,
UT=q~OeT (3.11)
Po -1.
Now we can write
k=l k=l
Thus
1
having used a~ = Po Q Tul = Q r el. Letting
F r o m L e m m a 2, part (c), it follows that we need only compute 33i for i = n-m
-4-1, ..., n.
The choice qo = p 2 above leads to the normalization (cf. (3.5))
1
elTf j = q o 6jo = ~ o 6jo , j = 0 , 1,2 . . . . . m - 1
b_.=(x,I-J) u_,,/e_T,u_,,.
This is in fact a method for solving an inverse eigenvalue problem, i.e.
finding vector b such that the matrix J + e , b T has prescribed eigenvalues.
4. The Algorithm
Y
k=O k=O
t7
and set din_i_ 1. (m-i-I)!"
Remark. The factoring (3.13) in Step 1.1 of the algorithm can be stably and
efficiently computed using, for example, the procedure IMQLT2 described in
[6]. In fact, as observed in [3] and [4] this procedure can be modified to
produce the required vector Q r e l without forming the whole matrix Q.
Two work vectors of lengths
will suffice for the computation of all the left and right principal vectors
required. It will require (t+ 1)n* locations to save products of the form
( ~ - v i I ) ~' (4.1)
so that the computation of (3.14) in step 2.2 of the algorithm will require fewer
multiplications. This saving of computation time at the expense of storage may
be worthwhile for example in dealing with knots of high multiplicity or in the
case where several quadratures which have some knots in common are to be
computed.
The choice of the parameter n* will depend on the nature of the
quadrature(s) being computed. In the case that only one quadrature is needed
416 J. Kautsky and S. Elhay
t h e n t h e o b v i o u s c h o i c e is
,ntegerpart
H o w e v e r , s u p p o s e s e v e r a l q u a d r a t u r e s a r e r e q u i r e d w h i c h all h a v e t h e s a m e
weight function w and which have between k and 2k knots. Then by choosing
n*=k o n l y o n e f a c t o r i n g will b e n e e d e d for all t h e q u a d r a t u r e s a n d a n y
p r o d u c t s (4.1) c o r r e s p o n d i n g t o k n o t s c o m m o n t o s e v e r a l q u a d r a t u r e s c a n b e
saved.
5. T e s t s
I n [ 1 ] a m e t h o d is s u g g e s t e d for t h e s o l u t i o n o f c o n f l u e n t V a n d e r m o n d e
s y s t e m s a n d t h i s m e t h o d c a n t h e r e f o r e b e u s e d t o f i n d t h e w e i g h t s o f in-
terpolatory quadratures by solving the system of linear equations that the
w e i g h t s satisfy.
The 2-norm condition number K of this system increases rapidly with the
size o f t h e s y s t e m as is d e m o n s t r a t e d i n T a b l e 1 a n d Fig. 1. H e r e K w a s
Table 1. Condition numbers for confluent Vandermonde matrices, loglo(X) for s knots, equally
spaced in [ - 1 , 1], of multiplicity m. The order of the matrix is n = m s
1 4 4 0.9 1 28 28 12.3
2 2 4 0.8 2 14 28 12.2
1 8 8 2.7 4 7 28 13.0
2 4 8 2.5 7 4 28 13.2
4 2 8 2.3 14 2 28 10.9
1 12 12 4.6 1 32 32 14.2
2 6 12 4.4 2 16 32 14.1
3 4 12 4.6 4 8 32 15.1
4 3 12 4.1 8 4 32 15.4
6 2 12 4.0 16 2 32 12.6
1 16 16 6.5 1 36 36 16.2
2 8 16 6.3 2 18 36 16.1
4 4 16 6.7 3 12 36 17.1
8 2 16 5.7 4 9 36 17.1
1 20 20 8.4 6 6 36 17.7
2 10 20 8.3 9 4 36 17.6
4 5 20 8.7 12 3 36 15.8
5 4 20 8.8 18 2 36 14.4
10 2 20 7.4 1 40 40 18.1
1 24 24 10.4 2 20 40 18.0
2 12 24 10.2 4 10 40 19.2
3 8 24 11.0 5 8 40 19.8
4 6 24 10.9 8 5 40 19.6
6 4 24 11.0 10 4 40 19.8
8 3 24 9.9 20 2 40 16.2
12 2 24 9.1
InterpolatoryQuadratures 417
21
20
~9
18
17
16
].
15
I.
13
I 9
o 12
11
10 I 9
9
I
8
7
I
6
5
[ range of r for systems
with given size and (at
3 leost 3 knots.
2 9 x for 2 knot systems,
1 6
I I I ~ I I I I I I I
8 12 16 20 24 28 32 36 40 Zd,
order of matrix
Fig. 1. Intervals showing the range of Ioglo(K) for the data of Table 1
§ v,,, Legendre
w:--1
\ \
\ \ \ §
I I
, \, 'b, \, I I I
5 10 15 20 25 30 35 40 45
order of t<
Fig. 2. Comparison of the maximal relative errors of the weights produced by M1 and M2 for
multiplicities 1, 2 and 5
8
Type of weight function:
Jacobi
1 t 1/2
w:-- (i-~)
I ~'~ ~ Legend:
\ \ \ ofmultiplicitYKnots M1 Ivl2
1 9 A
'4\ 2 9 []
X v
"h, "\
\\\ \ \
, I 1 ~1 \ 1 \ I I , t
5 10 15 20 25 30 35 z0 /,5
order of
Fig. 3. Comparison of the maximal relative errors of the weights produced by M1 and M2 for
multiplicities 1, 2 and 5
multiplicity M1 M2
9 of Knots
\\\ 1 9
.
,s
o
\ b \ s x ~,
, , , X,\ ,\ I ,
5 I0 15 20 25 30 35
order of I<
Fig. 4. Comparison of the maximal relative errors of the weights produced by M1 and M2 for
multiplicities 1, 2 and 5
420 J. Kautsky and S. Elhay
~ \ ...~ 9 ""~'~'~"-7,~'x~.
~ .... x"~""--x w : (1-t2) -'2
~ "q'+"'~--~K_~.m,~-.m~+~" ""+... /"... '--~,:$, [ca.b] =[-I,1] .
r ~(o)7.r~{ol..a(O)_(o)~.(o) Knots: vj
j = 1,2. . . . s.
o
oa
"T
~\\ ~ \ ~" ~ ' \ . Legend:
multiplicity M2
\ :\ of Knots M1
\ : 2 +
\ \ \ 5 •
\\~, h\ \ ...
\ \ \
\ t3..~ :
5 10 15 20 25 30 35 Z,0 1,5
order of I~
Fig. 5. Comparison of the maximal relative errors of the weights produced by M1 and M2 for
multiplicities 1, 2 and 5
knot in a symmetric quadrature with n large because then the weight for
f(1)(O) vanishes but is calculated with the same absolute error as the neigh-
bouring large magnitude weights. Otherwise the loss of accuracy in the calcu-
lation by M1 in single precision decreases at a much slower rate than that of
M2 and appears to level out as n increases. We have, in fact, extended the
computation by M 1 shown in Fig. 3 until exponent overflow which occured at
n=95, 98 and 105 for multiplicities 1, 2, and 5 respectively. Throughout this
computation the error E 1 satisfied 3.6<-log10(E~)<5.7. By extrapolating
from Figure 1 we estimate the condition number of the equivalent Vander-
monde matrix to be roughly 105~
The algorithm described in this paper for the calculation of the weights of
interpolatory quadratures requires as input the diagonal element ctl, ~2, ..., c~,
and the subdiagonal elements /Yl,/~a .... ,/~,_~ of the symmetric tridiagonal
matrix J associated with the polynomials orthonormal with respect to the
weight function w of the approximated integral. In Table 2 we list the explicit
formulae for J for some typical weight functions as well as the monomial
InterpolatoryQuadratures 421
q-
.~+
~Y L ~ ~ +1~ ~
+
+ +
In
o
0
r
+
+
o
7 +
+
d-
o
t~ +
T
~.= A"" if"
o N 7 I I I
8 r-~
I ~ I I I I
t...d
o ~
8
o o~.~
422 J. Kautsky and S. Elhay
moments b
pj=~w(t)tJdt, j=0,1 .....
a
N o t e that only #o is needed in our algorithm and that for some of the
weight functions the evaluation of J is in fact more stable than that of the
moments. Thus the accuracy of M1 and the remarkable stability, even in
extreme cases, may be attributable to several factors.
(i) We use the Jacobi matrix rather than the moments.
(ii) The right and left principal vectors that are produced are already
normalized - no linear combinations of vectors need be formed to normalize
them.
(iii) The forward substitution for the right principal vectors being from a
bidiagonal matrix with all super-diagonal elements equal to 1 involves only
one multiplication and one addition per element produced.
(iv) Each left principal vector -zi is found from -~i-1 by the c o m p u t a t i o n of
only 1 new element.
(v) The inner products that are formed are between vectors that have m a n y
(never explicitly calculated) zeros.
It seems that the problem of finding the weights via the Jacobi matrix is
better conditioned than that of finding them via the moments. In any case
factors !ii) to (v) will undoubtedly have a d a m p i n g effect on the propagation of
round-off error.
The matrix J is available also for a wider range of weight functions than is
shown in Table2. F o r example, it may be readily obtained for any wl=w p
where J is k n o w n for w and p is a polynomial or where the weight function
m a y be approximated by an expression of the form w 1 (see [-4]). For a
discussion of the evaluation of Jacobi matrices from modified moments and by
other means see Sects. 5.2 and 5.3 of [2] and the references there.
Furthermore, the problem of computing the weights of interpolatory
quadratures is potentially a very difficult one - the condition of the problem
m a y be arbitrary large for sufficiently large n and certain knot positions.
U n d e r these circumstances we consider the performance of our algorithm very
satisfactory.
References
1. Galimberti, G., Pereyra, V.: Solving Confluent Vandermonde Systems of Hermite Type. Numer.
Math. 18, 44-60 (1971)
2. Gautschi, W.: A survey of Gauss-Christoffel quadrature formulae. In: Christoffel, E.B.: The
Influence of his work on Mathematics and the Physical Sciences. Butzer, P., Feher, F. (eds.).
Birkh~iuser, pp. 72-147, 1981
3. Golub, G.H., Welsch, J.H.: Calculation of Gauss quadrature rules. Math. Comput. 23, 221-230
(1969)
4. Golub, G.H., Kautsky, J.: Calculation of Gauss Quadratures with Multiple Free and Fixed
Knots. N.A. Project NA-82-01, Stanford University, 1981 (to appear in Numer. Math.)
5. Kautsky, J.: Matrices related to interpolatory quadratures. Numer. Math. 36, 309-318 (1981)
6. Martin, R.S., Wilkinson, J.H.: The Implicit QL Algorithm. Numer. Math. 12, 277-383 (1968)