Numerical Quadrature Over a Rectangular Domain in Two or More Dimensions

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

Completion Date: Monday February 11, 2008

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

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

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

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

SECTION A. f(x) = ln(x). Sketch the graph of y = f(x), indicating the coordinates of any points where the graph crosses the axes.

Math 113 (Calculus 2) Exam 4

Numerical Methods. King Saud University

July 21 Math 2254 sec 001 Summer 2015

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

Physics 115/242 Romberg Integration

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES

Mathematical Methods for Numerical Analysis and Optimization

MTH4101 CALCULUS II REVISION NOTES. 1. COMPLEX NUMBERS (Thomas Appendix 7 + lecture notes) ax 2 + bx + c = 0. x = b ± b 2 4ac 2a. i = 1.

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

AP Calculus Testbank (Chapter 9) (Mr. Surowski)

Engineering Mathematics through Applications

Exact and Approximate Numbers:

M.SC. PHYSICS - II YEAR

THE UNIVERSITY OF NEW SOUTH WALES SCHOOL OF PHYSICS PHYS2020 COMPUTATIONAL PHYSICS FINAL EXAM SESSION I Answer all questions

Some Applications of the Euler-Maclaurin Summation Formula

8.3 Numerical Quadrature, Continued

5. Hand in the entire exam booklet and your computer score sheet.

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

JUST THE MATHS UNIT NUMBER NUMERICAL MATHEMATICS 6 (Numerical solution) of (ordinary differential equations (A)) A.J.Hobson

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

NOTE ON IRREDUCIBLE QUARTIC CONGRUENCES*

Linear DifferentiaL Equation

APPLICATIONS OF FD APPROXIMATIONS FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS

CHAPTER 1. INTRODUCTION. ERRORS.

8.7 MacLaurin Polynomials

Numerical Integration exact integration is not needed to achieve the optimal convergence rate of nite element solutions ([, 9, 11], and Chapter 7). In

I. Perturbation Theory and the Problem of Degeneracy[?,?,?]

Infinite series, improper integrals, and Taylor series

Virtual University of Pakistan

Lower Austria. The Big Travel Map. Big Travel Map of Lower Austria.

(308 ) EXAMPLES. 1. FIND the quotient and remainder when. II. 1. Find a root of the equation x* = +J Find a root of the equation x 6 = ^ - 1.

Numerical Methods. King Saud University

EVALUATION OF INTEGRALS RELATED TO THE MAGNETIC FIELD INTEGRAL EQUATION OVER BILINEAR QUADRILATERALS

By C. W. Nelson. 1. Introduction. In an earlier paper by C. B. Ling and the present author [1], values of the four integrals, h I f _wk dw 2k Ç' xkdx

X. Numerical Methods

Some Fully Symmetric Quadrature Rules for Numerical Integration of Complex Cauchy Principal Value Integral

The Use of Large Intervals in Finite- Difference Equations

Problem 1. Possible Solution. Let f be the 2π-periodic functions defined by f(x) = cos ( )

Calculus of Variations Summer Term 2015

Further Mathematics SAMPLE. Marking Scheme

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

Subbalakshmi Lakshmipathy College of Science. Department of Mathematics

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 16. f(x) dx,

Course MA2C02, Hilary Term 2013 Section 9: Introduction to Number Theory and Cryptography

USHA RAMA COLLEGE OF ENGINEERING & TECHNOLOGY

MATH 1242 FINAL EXAM Spring,

Asymptotic Error Estimates for the Gauss Quadrature Formula

ANALYTIC TRANSFORMATIONS OF EVERYWHERE DENSE POINT SETS*

Quadrature Formulas for Infinite Integrals

2018 Best Student Exam Solutions Texas A&M High School Students Contest October 20, 2018

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

COMPOSITIONS AND FIBONACCI NUMBERS

Singular and Invariant Matrices Under the QR Transformation*

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

1. Friedrich Gebhardt, "On the risk of some strategies for outlying observations,"

APPM/MATH Problem Set 6 Solutions

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

Lecture 3 Dynamics 29

A General Formula of Polynomial Interpolation. A. C. AITKEN. (Received 2nd March Bead 3rd May 1929.) 1. ENUNCIATION AND PEOOF.

TAYLOR SERIES [SST 8.8]

Numerical Analysis Exam with Solutions

Executive Assessment. Executive Assessment Math Review. Section 1.0, Arithmetic, includes the following topics:

This practice exam is intended to help you prepare for the final exam for MTH 142 Calculus II.

SOLVED PROBLEMS ON TAYLOR AND MACLAURIN SERIES

Errata List Numerical Mathematics and Computing, 7th Edition Ward Cheney & David Kincaid Cengage Learning (c) March 2013

= x iy. Also the. DEFINITION #1. If z=x+iy, then the complex conjugate of z is given by magnitude or absolute value of z is z =.

CHAPTER 6 SOLID EARTH TIDES

GENERATING FUNCTIONS OF CENTRAL VALUES IN GENERALIZED PASCAL TRIANGLES. CLAUDIA SMITH and VERNER E. HOGGATT, JR.

(a) To show f(z) is analytic, explicitly evaluate partials,, etc. and show. = 0. To find v, integrate u = v to get v = dy u =

Exact V

ON THE ORDER OF PRIMITIVE GROUPS*

Series Solutions. 8.1 Taylor Polynomials

Taylor series - Solutions

An Approximation to the Integral of the Circular Gaussian Distribution over. an Offset Ellipse. By J. H. Cadwell

Math Exam III - Spring

NATIONAL BOARD FOR HIGHER MATHEMATICS. M. A. and M.Sc. Scholarship Test. September 25, Time Allowed: 150 Minutes Maximum Marks: 30

A-LEVEL Further Mathematics

Section Taylor and Maclaurin Series

Integrating ODE's in the Complex Plane-Pole Vaulting

Final Examination Solutions

AS Mathematics. MPC2 Pure Core 2 Mark scheme June Version: 1.0 Final

Math 113 Final Exam Practice

Math 113 Winter 2005 Departmental Final Exam

Valley Forge Middle School Fencing Project Facilities Committee Meeting February 2016

Math 109 HW 9 Solutions

Practice Exam 2 (Solutions)

Ayuntamiento de Madrid

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems)

BMT 2018 Team Test Solutions March 18, 2018

Mathematics (Course B) Lent Term 2005 Examples Sheet 2

Evaluating Singular and Nearly Singular Integrals Numerically

Section 6.6 Gaussian Quadrature

Transcription:

Numerical Quadrature Over a Rectangular Domain in Two or More Dimensions Part 1. Quadrature over a Square, Using up to Sixteen Equally Spaced Points By J. C. P. Miller 1. Introduction. Except for a section of a paper by Bickley [1] which gives some of the results that follow, there seems to be very little in print concerning numerical quadrature over rectangular domains in two or more dimensions. This is perhaps because numerical evaluations can be readily made by using one-dimensional formulas on each variable in turn such formulas as the Euler-Maclaurin formula, Gregory's formula, Simpson's rule, Newton's three-eighths rule, or Gauss's formulas, to name a few. This restriction to "products" of one-dimensional formulas limits the field unduly, and may lead to an excessively large amount of work. Thus, in n dimensions, use of Gauss's 3-point formula involves 3" points, whereas comparable accuracy may be obtained with about n points. In this first note we explore some of the simple possibilities corresponding to Simpson's rule and the three-eighths rule, applied to 9 or 16 points equally spaced over a square, the corner points being included.. Integration over a Square. We restrict the domain of integration to be a square ; this covers any rectangular domain by change of scale. We take the center of the square as origin of coordinates, and in the first place take the side of the square to be h; and the integral as (.1) /= f [ }{x,y)dxdy. J-h J-h We assume that /(x, y) can be expanded as far as we need in a Taylor series in x and y. In other words, we suppose that/(x, y) can be represented adequately by a polynomial in x and y, with an error term which we shall suppose may be estimated by considering a few of the more significant neglected terms. We shall not give an accurate error analysis. It is clear that polynomial terms involving an odd power of either variable will contribute nothing to the integral; we shall also group ordinates in sets such that the total contribution to their sum is zero for such terms involving an odd power of either variable. For example, the points (h, Ó), ( A, ), (, h), (, h) form one such group. With this grouping we can then eliminate from consideration all terms of the Taylor expansion which do not involve an even power of both variables. 3. Method of Derivation. We seek approximate formulas of the form rh r* (3.1) / = / / f(x, y) dxdy = Y. Ar,,(rh, sh), Received September 18, 1959. 13

14 jr. C. P. MILLER in which Ar,, = A,,r A\T\,\,\, and which will be exact for appropriate polynomial functions/(x, y) of sufficiently low degree. Two approaches, not entirely distinct, may be used: (i) We may give /(x, y) special forms and choose coefficients A,,, to fit these exactly. Such forms are 1, x (or the equivalent symmetrical form x y), x4, xv, etc (ii) We may expand /(x, y) as a Taylor series and evaluate / both by means of the integral and by means of the sum, and equate coefficients. We shall give an example of each approach, in order to bring out an interesting point concerning the proper choice of special forms. 4. Nine-point Formulas (i). Consider the nine points, grouped as indicated by the semi-colons: (, ); (A, ), (-A, ), (, A), (, -A); (A, A), (-A, A), (A, A), ( A, A); and the four special functions/(x, y) = 1, x, x4, x*y with values at the nine points as follows (4.1) 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 The values of Z/4A are (4.) Hence, we wish to have (4.3) 1, h h h Ao.o 4i4i.o 4a4i.i = 1 AUo 4Aul = i AIl 4Aitl = i 4Aia = i We note at once that two of the equations are incompatible. Since we have 4 equations for 3 unknowns, we can still solve them if we discard the third (since the correct result for xs must have precedence over the correct result for x4). We obtain, = _ 4 Alo = i = TfV which is precisely the Simpson's rule "product," multipliers (A) H- 36 see Bickley [1], eq. (), with to give I/Ah. The main error term clearly concerns the coefficients of the terms in x* and y* and is 18 \dx* "*" oy/o.o'

NUMERICAL QUADRATURE IN TWO OR MORE DIMENSIONS 15 5. Nine-point Formulas (ii). We now consider the same problem by expanding and equating coefficients. We have, using/,., iorf(rh, sh), and/ simply for/(, ), ~e,.r 4,4/.,4» 4 «4/. (5.1) f(x, y) =/o ^T-r - 77^7-1- -77- x^tt, 77!dx! ay 4! dx* 4! dxóy 4! ÓY whence (5.) 7-4A y -lv J _^_y- J...j Following Bickley [1], we write this concisely in terms of (5.3) V m - -*- and D4 m -*!_. Then, adding further terms for later use, (5.4) //4A - / ' jj V/o Jj (VVo 3>4/) i (v7o 45>V/) l A _,. A,_4,,,_4, x. A 9j (V8/o 8OV/ ^3D8/o) We have likewise /o,o = /o /i,o /o,i /_M /,_! =4/o I; AV/o A4(vVo - D4/o) (5.5) h\v*f - 3SDV/,) 1 Ä8( vffo - 4»V/o 3û8/o) fi.i /-i.i /i.-i /-1.-1 = 4/o j ***% i A4(vVo 43D4/o) j A6(V% 1»V/o) j h\v*f 4oV/o 4-163D8/») From these relations we obtain, for terms to A4 in 7/4A (5.6) Ao.o 44 i,o 4Ai,i = 1 Ai,o 4,,, = i Aua 4AlA = i - AAlA 16AlA = A The first three equations are as in (4.3), and the second and third remain incompatible. Neglecting the third we can solve to give (see Bickley [1], eq. ()) the multipliers for I/Ah; (B) 7 16 7 16 88 16 7 16 7 18 The main error term is -? V*/o.

16 J. C. P. MILLER The difference in the fourth equation between (4.3) and (5.6) leads to different formulas. The cause is reflected in the error term. In the second case we have ignored a term in V*fa and removed the remaining term in >4/ ; in 4 we have ignored a term in d%\ and removed the remaining term in D4/. The error term in the product-simpson formula can be expressed alternatively in the form ^ (VV - 3>4/o). It is perhaps a moot point which formula will give better results, unless it is known that /(x, y) is exactly, or almost a harmonic function. It is perhaps worth noting that for the method of 4 to yield the formula (B) it is necessary only to take a harmonic function instead of xy in deriving the last equation. For example, f(x,y) = x4 6xy -f- y4 gives values (5.7) and 7/4A = -^h* and the fourth equation (5.8) -4.4,.o 164,,, 4 TS- 6. Five-point and Other Formulas. The impossibility of removing all of the A4 terms in the error in 7/4A by using 9 points, suggests the possibility of using fewer points, in fact five or eight, while still retaining an error of order A4. There are three possibilities, using the first two equations only of (4.3) or (5.6). (i) Take.l,o = ; this yields multipliers (C) -1 4-1 4 4-1 4-1 H- 1 with main error ttöa4(vvo >4/). (ii) Take An. =, giving (D) 1 1 1 1 H- 6 with main error TirA4(V4/o 7 >4/o). (iii) Take ~4i,o =, giving the "diagonal Simpson's rule" (E) 1 1 8 1 1 - - 1 with main error T ira4(v4/o 8SD4/ )-

NUMERICAL QUADRATURE IN TWO OR MORE DIMENSIONS 17 The first of these has little to commend it, with its large SD4/o error term, and its negative multipliers. The other two (see Bickley [1], eqs. (3, 4)) are reasonably good. Over large areas, with many contiguous squares of area 4A, they average respectively 3 and points per square. With a square of side 6A, for example, they give (F) 1 1 1 -H 6 and 1 1 8 8 8 4 4 8 8 8 4 4 8 8 8 1 1 1 The first of these has interior points with multipliers (or zero) only. We note also that combination in proportions tvtt gives precisely the formula (B). One further formula is obtained by combining (D) and (E) in equal proportions: (G) -i- 4 with main error tto-a4(vvo i 4/) and with simple multipliers and a good error term. 7. 16-point Formulas. These follow exactly the pattern for nine-point formulas; we merely quote results. The method of 4, with the same special functions, and with similar neglect of the incompatible third equation gives for 7/9A, where the multipliers /3A/ -3A/ / fix, y) dx, dy, ih/ J-Zhll (A') 1 1 3 9 9 3 3 9 9 3 1 1 -f- 64 with main error term -^A3(V4/ SD4/). The formula corresponding to (B) of 5 is (BO 7 13 13 7 13 47 47 13 13 47 47 13 7 13 13 7 3 with main error term ^ra4v4/o. 8. Twelve-point Formulas and Others. As in 6 we can use the first two equations after setting one of the coefficients -ái,i, A\, or A3,i equal to zero. This yields

18 J. C. P. MILLES twelve-point formulas (i) with illti - : (CO - 3 3 - - 3 3 - - - 16 with main error term ^o-a*(v*/o 473D4/o) (ii) with Ai,t : (D') 11 1 1 1 1 11 16 with main error term ïv^c^vo 73D4/o) (iii) The "diagonal three-eighths rule", with Am = : (EO 1 1 1 1-5- 16 with main error term TtrA4(V4/ 13D4/). (GO Also, as in 6, we may combine the last two in the ratio :f, 1 1 7 7 7 7 1 1 -^48 to give with main error term ^ haiv*fo i3)4/o). Finally, we write out multipliers over a square of side 6A for the 1-point formulas (ii) and (iii) above (which average respectively 8 and 5 points per square of side 3A) (FO 1 1 1 1 16 4 -s- 16 Note once again the multipliers or only in the interior in the first case. 9. Numerical Illustrations and Comments. We consider the application of the formulas to two examples: (i) f(x, y) = cos x cos y; and (ii) fix, y) = sin x sinh y, a harmonic function. / cos x cos ydxdy = 4 sin 1 whence \I -.7873.

NUMERICAL QUADRATURE IN TWO OR MORE DIMENSIONS 19 The series (5.4) gives /o V//3! vvo/5! 4SD4/o/3-5! v*/,/71 4a>V/o/7! V/o/9! 8»V/o/9! 16 3ù8/o/5-9! Sum 1..333333 33333 11111 1587 1587 44 88 9.7878 This indicates the need for another term, and the alternation in sign, in this case, of terms with successive powers of A. Table I shows the results of applying various formulas, with various values of A. s are given to 5 decimals (based on calculations with 6-decimal function values). The column e gives the error (formula true value) and column C gives the computed value of the leading correction term, as listed in earlier paragraphs; «and C are in units of the 5th decimal. Table I Formula h - 1 h «1/ * - 1/3 (A) (B) (C) (D) (E) (G).7171.7641.639.69353.76398.7876 894 1834-8498 -1454 5591 69-1111 - 1 1667-6667 -5.7858.799.7345.773.71114.79 51 1-46 -77 37 115-53 -17 481 8-3 -1.7817.779 1-15 Formula /< - /3 1/3 (A') (BO (CO (DO (EO (GO.71199.7168.61988.7175.7469.7154 39 81-8819 -63 346 733-494 -988 1617 741-4198 -95.783.785.7319.7773.71.7849 3 45-488 -34 193 4-4 -48 511 36 - -44 Table II h -.6 Formula Formula (A) (B) (D) (E) (G).19414.197.19879.1848.19181 187 65-745 -46-186 -65 745 47 (AO (BO (DO (E (GO.1931.197.19517.18689.1941 83 9-538 14-83 -9 538-14

J. C. P. MILLER We note that the correction estimate C is numerically larger than the actual error e in each case; this is due to the sign alternation mentioned earlier. We see also that, even with A = 1, C is quite a reasonable estimate of the size of e. Formulas (C), (C), as expected, are not very good. Formulas (E), (E')i are also poor, since v^/o and D4/o have the same sign. The "product-simpson" rule gives the best results best of all with A = f. Formulas (D) and (D'), as exhibited in (F), (F for a square of side 6A, suggest that (D) gives better results than (D') when the same points are used. In practice, it is useful to use two formulas, and to compare results to give an estimate of the possible error. For this purpose (A) and (D) or (A') and (D') seem suitable pairs, unless it is known that / is harmonic or V*f is expected to be small compared with Sü4/o..'»1, (ii) I = / / sin x sinh y dx dy = (1 - cos 1.)(cosh 1.-1) =.51698. Jo Ja Approximations to I/A =>.1971 are listed; all 6 working decimals are shown in Table II. In this case, for a harmonic integrand, the superiority of (B) and (B') is evident; (G') is also good. In (B) and (B'), since V/ =, the error terms are of order A8 instead of A4. The quadrature of a harmonic function will be considered further in a later note. I am glad to acknowledge help received with numerical calculations from Dr. J. W. Wrench, Jr. in Washington, D. C, and from W. R. Rosenkrantz at the University of Illinois; I am also grateful for facilities placed at my disposal at the Digital Computer Laboratory of the University of Illinois. The University Mathematical Laboratory Cambridge, England; and The Digital Computer Laboratory University of Illinois, Urbana, Illinois. 1. W. G. Bickley, "Finite difference formulae for the square lattice," Quart. Jn. Mech. andappl. Math., v. 1, 194S, p. 35-4.