Numerical Quadrature over a Rectangular Domain in Two or More Dimensions

Similar documents
Numerical Quadrature Over a Rectangular Domain in Two or More Dimensions

Engg. Math. II (Unit-IV) Numerical Analysis

3. Numerical integration

GAUSS-LAGUERRE AND GAUSS-HERMITE QUADRATURE ON 64, 96 AND 128 NODES

ƒ f(x)dx ~ X) ^i,nf(%i,n) -1 *=1 are the zeros of P«(#) and where the num

Completion Date: Monday February 11, 2008

Math 2233 Homework Set 7

n=1 ( 2 3 )n (a n ) converges by direct comparison to

Ma 530 Power Series II

Quantum Mechanics for Scientists and Engineers. David Miller

EXPANSION OF ANALYTIC FUNCTIONS IN TERMS INVOLVING LUCAS NUMBERS OR SIMILAR NUMBER SEQUENCES

Section Taylor and Maclaurin Series

Examples of solutions to the examination in Computational Physics (FYTN03), October 24, 2016

Section 9.7 and 9.10: Taylor Polynomials and Approximations/Taylor and Maclaurin Series

Introduction Derivation General formula Example 1 List of series Convergence Applications Test SERIES 4 INU0114/514 (MATHS 1)

Taylor series - Solutions

JUST THE MATHS UNIT NUMBER DIFFERENTIATION APPLICATIONS 5 (Maclaurin s and Taylor s series) A.J.Hobson

Calculation of the Ramanujan t-dirichlet. By Robert Spira

Introduction Derivation General formula List of series Convergence Applications Test SERIES 4 INU0114/514 (MATHS 1)

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

LECTURE 14 NUMERICAL INTEGRATION. Find

TOPOLOGICAL EQUIVALENCE OF REAL BINARY FORMS

Math 115 HW #5 Solutions

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

The polar coordinates

Section 6.6 Gaussian Quadrature

a 11 a 12 a 11 a 12 a 13 a 21 a 22 a 23 . a 31 a 32 a 33 a 12 a 21 a 23 a 31 a = = = = 12

SOME APPLICATIONS H. F. BLICHFELDT

TAYLOR AND MACLAURIN SERIES

Numerical Methods. King Saud University

Integration is the reverse of the process of differentiation. In the usual notation. k dx = kx + c. kx dx = 1 2 kx2 + c.

EXPANSIONS IN TERMS OF SOLUTIONS OF PARTIAL DIFFERENTIAL EQUATIONS

Lemma 8: Suppose the N by N matrix A has the following block upper triangular form:

CALCULATION OP CERTAIN BESSEL FUNCTIONS 123

= 10 such triples. If it is 5, there is = 1 such triple. Therefore, there are a total of = 46 such triples.

Solution: f( 1) = 3 1)

Math123 Lecture 1. Dr. Robert C. Busby. Lecturer: Office: Korman 266 Phone :

THE CONTIGUOUS FUNCTION RELATIONS FOR pf q WITH APPLICATIONS TO BATEMAN'S ƒ»«and RICE'S # n (r, p, v)

Ed2 + (U2-1)du + u = 0; dt!= Xi(xi, PERTURBATIONS OF DISCONTINUOUS SOLUTIONS OF NON- plane could be exploited).

4 / Gaussian Ensembles. Level Density

3.4 Introduction to power series

SKMM 3023 Applied Numerical Methods

MATH 1372, SECTION 33, MIDTERM 3 REVIEW ANSWERS

11 a 12 a 21 a 11 a 22 a 12 a 21. (C.11) A = The determinant of a product of two matrices is given by AB = A B 1 1 = (C.13) and similarly.

Ch. 03 Numerical Quadrature. Andrea Mignone Physics Department, University of Torino AA

c n (x a) n c 0 c 1 (x a) c 2 (x a) 2...

Asymptotic Error Estimates for the Gauss Quadrature Formula

Study # 1 11, 15, 19

Department of Mathematics, University of California, Berkeley. GRADUATE PRELIMINARY EXAMINATION, Part A Fall Semester 2016

Math 106: Review for Final Exam, Part II - SOLUTIONS. (x x 0 ) 2 = !

ON A CUBIC CONGRUENCE IN THREE VARIABLES. IP

Some Observations on Interpolation in Higher Dimensions

Math 2300 Calculus II University of Colorado

Legendre s Equation. PHYS Southern Illinois University. October 18, 2016

MATH141: Calculus II Exam #4 review solutions 7/20/2017 Page 1

Series Solution of Linear Ordinary Differential Equations

Series Solutions of Differential Equations

Introduction to Series and Sequences Math 121 Calculus II Spring 2015

AS PURE MATHS REVISION NOTES

Fourier Analysis Fourier Series C H A P T E R 1 1

Answers to Problem Set Number MIT (Fall 2005).

Lecture 32: Taylor Series and McLaurin series We saw last day that some functions are equal to a power series on part of their domain.

WRT in 2D: Poisson Example

A SYMBOLIC-NUMERIC APPROACH TO THE SOLUTION OF THE BUTCHER EQUATIONS

Math 106: Review for Exam II - SOLUTIONS

Two special equations: Bessel s and Legendre s equations. p Fourier-Bessel and Fourier-Legendre series. p

Additional material: Linear Differential Equations

2016 EF Exam Texas A&M High School Students Contest Solutions October 22, 2016

Scientific Computing

Introduction to Data Analysis

L11.P1 Lecture 11. Quantum statistical mechanics: summary

Engg. Math. I. Unit-I. Differential Calculus

EFFECTIVE CONDUCTIVITY, DIELECTRIC CONSTANT AND PERMEABILITY OF A DILUTE SUSPENSION*)

Power Series Solutions We use power series to solve second order differential equations

Physics 116A Determinants

Math Review for Exam Answer each of the following questions as either True or False. Circle the correct answer.

Optimal Numerical Differentiation Using Three Function Evaluations

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 1 x 2. x n 8 (4) 3 4 2

MCV4U - Practice Mastery Test #9 & #10

MAS153/MAS159. MAS153/MAS159 1 Turn Over SCHOOL OF MATHEMATICS AND STATISTICS hours. Mathematics (Materials) Mathematics For Chemists

Math 211. Lecture #6. Linear Equations. September 9, 2002

GENERALIZATIONS OF MIDPOINT RULES

Math 142, Final Exam. 12/7/10.

Need for transformation?

1 Res z k+1 (z c), 0 =

11.10a Taylor and Maclaurin Series

Introduction and Review of Power Series

Partitions with Parts in a Finite Set and with PartsOutsideaFiniteSet

Numerical Methods in Physics and Astrophysics

Some Integrals Involving Associated Legendre Functions

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

Approximate Integration Formulas for Ellipses

d 1 µ 2 Θ = 0. (4.1) consider first the case of m = 0 where there is no azimuthal dependence on the angle φ.

AP Calculus (BC) Chapter 9 Test No Calculator Section Name: Date: Period:

Chapter 7. Linear Algebra: Matrices, Vectors,

Fully Symmetric Interpolatory Rules for Multiple Integrals over Infinite Regions with Gaussian Weight

\ABC (9) \AX BI Ci\ = 0, r; vi -iv ~*i -n*yi -o

ASYMPTOTIC DISTRIBUTION OF THE MAXIMUM CUMULATIVE SUM OF INDEPENDENT RANDOM VARIABLES

Solutions Parabola Volume 49, Issue 2 (2013)

Transcription:

Numerical Quadrature over a Rectangular Domain in Two or More Dimensions Part 2. Quadrature in several dimensions, using special points By J. C. P. Miller 1. Introduction. In Part 1 [1], several approximate formulas were developed for quadrature over a rectangular domain (reduced to a square by scale changes) in the form (1.1) / = Í f f(x,y) dxdy = Y, A..t f(sh, th) l-rh J-rh using some or all of a lattice of 9 or 16 points equally spaced over the square. In this note, the restriction to equal spacing is relaxed, to allow points to be chosen to give greater accuracy in the approximation to the integral. The restriction to two dimensions or variables is also removed in some cases. It is still assumed that the integrand f(xx, x2,, xn) may be expanded in a power series as far as we please in all variables in other words, that for the precision desired, the integrand may be replaced by a polynomial of suitable degree. Considerations of symmetry once again ensure that we need concern ourselves only with terms of even degree in each variable separately. By scale changes we also make the range of integration h to +h in each variable. 2. Expansion in Taylor Series. We need then, to find values x,,t', A, such that 1=1 dxi f(xi, :r«,, xn) dxa J-h J-k (2.1) _ = (2A)" _, A,f(xi,t, Xi.t,, xn,t) where the points {.r,.i} are chosen in symmetrical groups which are such that ^2f(xi,t, x2,t,, x,t) is free of all odd powers, just as the integral / is free of such powers by symmetry. We expand f(xi,.r2,,.r ) as a Taylor series and evaluate the integral. We use the notation of Bickley [2], somewhat extended, namely, s2 = p, = v=* &.s = * - + i dxr t.u dx,-dxu2 -»V (2'2) av * av 2,2,2 = j* 7 5T JT 5 = 3 <t>»82,2,2,2 Z-i* - o- ït rr ; = Q0 t\7,v dx,-dxu-dx,- t.u.v.w dxfoxsdxsdxu,' where the asterisk indicates that the suffixes t, u, v, w are unequal in pairs throughout. Received October 19, 1959. 130

NUMERICAL QUADRATURE IN TWO OR MORE DIMENSIONS 131 This gives, with/o for/(0, 0, 0,, 0) J m I/(2h)~ - /, + V2/, + (v4 + 3>4j /o (25) +^(v6+4av + ^3«)/o where we have used such formulas as + j (v8 + 8VV + 3>8 + ip VV 4- if if) /. + (2.4) Si = pl = (V4-2D4)* & - jj!* - (V6-3VV + 33')* t dxi4 í OX«.5 d6tf> Ä4.2 = (,«dxt*dxu ; = (vv - 336)<*. See David & Kendall [3] for extended tables of coefficients. 3. Summation over Sets of Points. We now choose appropriate sets of symmetrically placed points. We tabulate and label a few sets below. (3.1) Label Coordinates 0 (0, 0,, 0) a(a) (±ah, 0,, 0) with all permutations ß(b) (±bh, ±bh,0,,q) with all permutations l(c,d) (±ck, ±dh, 0,,0) with all permutations «(e) (±eh, ±eh, ±eh, 0,, 0) with all permutations 1 2» Number of Points 2n(n - 1) in(n - 1) 4n(n - l)(n - 2)/3 In the formula (2.1) we have one arbitrary constant for the point 0, two constants for each set of type a, ß, or «, three constants for each set of type 7, and so on. We naturally wish to minimize the total number of points, but we note also that sets of type 0 and a alone are useless when dealing with terms involving 3D4, 36, Q8, etc., while sets of 0, a, ß, y, only are useless for 36 or Q8, and so on. If we expand f(xi, Xt,, z») at each point and sum over the set, we obtain the following expressions for the sums: (3.21) 0 / (3.22) a(a) 2nf0 + % a2 V2/o + % <*4S4 + % a Se + = a8s8 + 6! 8! - 2nfa + ^ a2 V2 / +? a4 (V4-2 4)/0 2Ä + Ti a (V " 3V + 33 "

132 i. C. P. MILLER + j os (V8-4V4 5>4 + 2D8 + 4V2 3* - 4Q8)/. 4- (3.23) ß(b) 2n(n-l)/, + 4(n~1)AVvV«+ ^V {(* - I)?4-2(n - 4) >M/o + ^ b6 {(n -1)V* - 3(n - 6)V2 3D 4-3(n - 16)3*}/o o! + ^- 6* {(n - DV8-4(n - 8)V*»4 + 2(n 4-6)»8 O; + 4-4(n - 43)^* - 4(n - 64)Q8}/«(3.24) y(c,d) 4n(n - 1)/, 4-4(w ~ 1)fe' (c2 + d*)v2/0 + j [(n - l)(c44-d4)v4-2{(n- l)(c4 4- d4) - 6c2 d2}»4]/, + ^[(n-l)(c6 + d>6-3í(n-l)(c*-(-d*) -5c2ds(c24-dî).}Vî»4 + 3{(n- l)(c64-d*) - 15c2d2(c24-d2)}3*]/o 4-4A8[(n-l)(C8 + d8)v8-4{(n - l)(c8 + d8) - 7c2d2 (c4 + d4)}v4 î>4 + 2{(n.- Dtf + d*) -28c2d2(c4-r-d4)-r-70c4d4} >8 + 4{(n - l)(c8 + d8) - 7c2dV 4- d4) - 70c4d4}^ 3* - 4{ (n - l)(c8 4- d8) - 28c1 d2 (c44- d4) - 70c4d^tfl/o + (3.25) «( ) n(n - 1)(» - 2)/0 + 4(w ~ ff» ~ 2) AVv2/ + 1^2) Ä4e4 {(n _ 1)V4 _ 2(n _ 7) D4)/o -r^'e'lu- l)(n - 2)V* - 3(» - 2)(n - 11)V2»4 4-3(n2-33n 4-122)3"}/0

NUMERICAL QUADRATURE IN TWO OR MORE DIMENSIONS 133 + í e"((n - l)(n - 2)v* - 4(n - 2)(n - 15)V4»4 o! 4-2(n - 2)(n + 13) >8 4-4(n2-87n 4-380)V2 36-4(n2-129n 4-1094)Q8}/0 4- We use parts of (3.22), (3.23) and (3.25> in the present note; the rest is given for reference. 4. Formulas Accurate to Terms in A4. We now seek a formula to give J accurately as far as terms in h4, that is, including the first four distinct terms in (2.3). We need a(a) and ß(b) and shall retain the point 0; this gives five disposable constants, counting the three multipliers, which we shall now denote by.40, A a, As. This is apparently more than we need, but in fact, the fifth constant turns out to provide an essential extra degree of freedom. We attempt, then, to satisfy as well as possible (4.1) J = A,/o + A-af(xa) + Aaf(xß) using xa and x for typical sets of coordinates. /o, v"2/o, V*f0 and SD4/o, we obtain: (4.2) Ao + 2nAa + 2n(n - l)aß =1 2a2Aa + 4(n - l)b2aß = i 2a Aa + 4(n - 1)0% = J - Aa*Aa - 8(n - 4)6% = rv If we now equate coefficients of We write.40 = X and retain this, and solve for a, b, Aa, Ag. It may be noted that the second and third equations are no longer inconsistent, as they were for equally spaced points in Part 1 [1]. We use the last two equations to give Aa and Aß in terms of a4 and b*; then substitute in the first two equations and eliminate a2 to give fa0. 15(1 + 4 30, 18(5n - 7) + 9(14-5n)X A o4 2 o2 n(n 1) whence (aa) * - 30, 6 /(5n-14){(5n + 4)A-4j V ' ' 62 5n 4-4 5n + 4 \ ' 2n(n - 1) The values of 1/62 are real for X = 0 only if n = 2.8, that is, if n = 1 or 2. When n 3, we must have X > 4/(5n -(- 4) for real values of b2, indicating that the fifth disposable constant is essential. We next consider several special cases; error terms will be considered individually. 5. Quadrature over a Square. Case n = 2. We take X = 0 in (4.3) ; then 7 _ 3( (5.1) L-S + 27 = 0 b* b2

134 J. C. P. MILLER whence (5.21) L = 3 ^-0 Aa = 0 A,-\ or f.^s (5-22) 1 9 = -7 1 3-y 15. 10 A.-5. 9 A,-üg. The first of these (5.21) is a degenerate case; it is in fact the product-gauss two-point formula, with error term of order A4 instead of the expected order A6. The second case (5.22) gives a useful approximate formula j _,/<«). g{/(y^»,o)+/(- ^o) + /(o,4/í*)+/(o,-1/5*)} +àk%m»)+'(i*-i') +/(-Í,Í»)+/(-Í^-Í,)} with the main error term tm*\ A' / 212, 1612 2 A, (5-4) 6!V-Ï4Ï75V +4725V5)j/o- We may also seek a formula with a = b; this turns out to be the "product- Gauss" formula, see 6. Another idea that comes to mind is to choose X so that a and b are both rational; this does not seem to be possible, although one or other of a, b may take any value we please. Thus,cz\,,î 5-4U a 64. 2. 121 (5.5) a = 1 gives 6 = ^ with A0 = Aa = - A, =,_-».. A6 /4V6 4-268V2sA, (5.6) and main error term I - =-1 /0 ; 2 2.... 2.5.1 (5.7) 6 = 1 gives a - = with.40 = g 4 = 4 =,,.,,.., A8 /2V6 4-344V2»4\, (5.8) and main error term -f- ^ I-_-) / Note the possibly useful opposition of signs in the two error terms. 6. Quadrature over Cube and Hypercube. We now consider general n. Equation (4.4) gives the following restrictions for Aa = X if a, b are to be realn 1 2 3 4 5

NUMERICAL QUADRATURE IN TWO OR MORE DIMENSIONS 135 Since we have one disposable constant, and X = 0 is excluded for n = 3, it is not as easy as in 5 to pick out an obviously convenient formula there remains scope for investigation. One choice is of interest. This is to put a» b. We then find <6.2) 2.2 3. 25n2. - 115n 4-162 a - b = 5 Ao = -Ï62-. 5(14 - on). 25 Aa-Í62 A,~m' The points given by a = ±y/z/b, b = ±\/3/5 are the "Product-Gauss'' points with at most two non-zero coordinates. In detail we have (6.31) w = 1 A" = t A'-h (Ai, = Êi) 3points (6.32) n = 2 Ao = ^ Aa = g A, = J^ 9 points (6.33) n = 3 A0 = ± Aa = -JL A* = ^ 19 points 17 ^ 2"i (6.34) n = 4 A0 = ^ A. - -^ A, - g 33 points We observe that for n = 1, 2 these are respectively the Gauss and Product- Gauss formulas. For n = 3, although the error term is still of order k* in J/(2A)n, the number of points is fewer than 3", (it is, in fact, 2n2 4-1) and the Gauss coefficients are lost. The leading error term in I/(2h)n is (6.4) _g.(_v6 + 3vV-^36)fo which does not depend on n. Of course, 36/o = 0 if n = 1 or 2. For comparison we quote the 3-dimensional Product-Gauss formula, which uses the sets of points 0, a(\/3/5), ß(y/Z/b) and t(y/%/5).,a*\ o a 64 a 4 ^25. 125 0 (6.5) n = 3 A* = m Aa = A, = Ay = 2/points with leading error term (6.6) IC, (-Vs 4-3VV - 336) / = -i S6. The form of error term for (6.33) and (6.5) suggests further the complete elimination of 3% to yield,ft»v, 430 289. 341. 893 (6.7) n = 3 Ao = - Aa = A3 =,_.w, Ay = 5103 5103 " 10206 y 40824 27 points

136 J. C. P. MILLER with leading error term (6.8) i^ (_V64-3vV)/o o.7! which vanishes for a harmonic function, and, in fact, also for the example of the next section with f(x, y, z) = cos x cos y cos z, since this is a solution of the partial differential equation VV - 32D4o> = 0. In this 3-dimensional case, the further relevant error terms are (fi{)) rs-ö, (-HV8-16VV + 98D84-70V236)/o. 11 zo.ö! 7. Numerical Examples. (i) As in Part 1 [1, 9] we use./ = I / = } f í cosí cos y dxdy = 0.70807342 4 4 J-i J i for a non-harmonic illustrative example for two-dimensional formulas, and list the integral (./), its error (E), and the estimated correction (C), which is minus the error estimate. Formula (5.3) with h = 1 gives and with A =./ = 0.707362 with K = -0.000711 and C = 4-0.000782,./ = 0.70806 42 with E = -0.00000 92 and C = 4-0.00000 94. The Gauss-product and with A \ formula (6.32) with A = 1 gives./ = 0.708125 with K = 4-0.000052 and C = -0.000064,./= 0.70807 415 with E = -f-0.00000 073 and C = -0.00000 076. (ii) For an example with a harmonic integrand, as in Part 1 [1], we use 1 1 f1'- f"./'. 1 I = 1 / / sin x sinh y dxdy = 0.12922 70591. 4 4 Jo -'o Formula (5.3) with h = 1.2 gives./' = 0.12922 71000 with K = 4-0.00000 00409 and C = -0.00000 00409, while formula (6.32), the Gauss-product formula, also with A = 1.2, gives./' = 0.12922 70778 with E = 4-0.00000 00187 and C = -0.00000 00188. In each of these two cases our original error estimate vanishes since the integrand is harmonic, and the error is of order h ; in fact, they are respectively about S AV/o/8! and M av/o/8!. yll-so J 14i)

NUMERICAL QUADRATURE IN TWO OR MORE DIMENSIONS 137. (iii) For a three-dimensional example, we consider J = -1 = - / / I cos x cos y cos z dxdydz = sin3 1 == 0.59582 3237. 8 8 J-i J-i J-i With A = 1, formula (6.33) gives J = 0.59987 with E == 4-0.00405 and C = -0.00473 while formula (6.5), the Gauss-product formula, gives J = 0.595889 with E = 4-0.000066 and C = -0.000095 and the special formula (6.7) gives J = 0.595806 with E = -0.000017 and C = 4-0.000020 The last is exceptional in having an error of order A, since, as remarked in 6, sin x sin y sin z satisfies V*<t> 3 >40 = 0. It exhibits accidentally what may be expected with a harmonic integrand. With A = $ these three formulas give (6.33) J = 0.595871 with E = 4-0.000048 and C = -0.000050 (6.5)./ = 0.59582 415 with E = 4-0.00000 091 and C = -0.00000 100 (6.7) J = 0.59582 319 with "=-0.00000 004 and C = 4-0.00000 0054 (iv) For n = 4, we consider J = / = / / / / cos x cos y cos? cos w dxdydzdw 16 16 J-i J-i J-i J-i With A = 1, we have = sin4 1 = 0.50136 80. (6.34) J = 0.514 with E = 4-0.013 and C = -0.019 33 points (Gauss)4 / = 0.501441 with E = 4-0.000073 81 points and with h = 5, we have (6.34) J = 0.50153 with E = 4-0.00016 and C = -0.00017 (Gauss)4 J = 0.50136 90 with E = 4-0.00000 10. These numerical examples illustrate that the extra points used in the Gaussproduct formulas may, sometimes at any rate, have a useful effect in reducing error, even though the order of the error, as represented by the power of A in its leading term, remains the same. Comparison of (6.4) and (6.6) shows a much reduced coefficient of 36/0 in the latter, and (6.7) is a definite improvement on the Gauss-product in the present case. More investigation is clearly needed of other formulas and of other integrands, particularly those which do not so easily separate into a product of integrals. Once again I am pleased to acknowledge help and advice received from Dr. J. W. Wrench, Jr. with the numerical examples and also to express my appreciation of

13S J. C. P. MILLER in the Uni- facilities placed at my disposal at the Digital Computer Laboratory versity of Illinois, at Urbana, Illinois. The University Mathematical Laboratory Cambridge, England; and The Digital Computer Laboratory University of Illinois, Urbana, Illinois 1. J. C. P. Miller, "Numerical quadrature over a rectangular domain in two or more dimensions, Part 1.," Math. Comp. (MTAC), v. 14, 1960, p. 13-20. 2. W. G. Bickley, "Finite difference formulae for the square lattice," Quart. Jn. Mech. and Appl. Math., v. 1, 1948, p. 35-42. 3. F. X. David & M. G. Kendall, "Tables of symmetric functions, Parts II and III," Biomelrika, v. 38, 1951, p. 435-462. See page 439.