Exit Criteria for Simpson's Compound Rule*

Similar documents
Taylor and Maclaurin Series. Copyright Cengage Learning. All rights reserved.

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

APPM/MATH Problem Set 6 Solutions

Calculation of the Ramanujan t-dirichlet. By Robert Spira

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

MATHEMATICS OF COMPUTATION, VOLUME 26, NUMBER 118, APRIL An Algorithm for Computing Logarithms. and Arctangents. By B. C.

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 =

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

SOME INEQUALITIES FOR THE q-digamma FUNCTION

July 21 Math 2254 sec 001 Summer 2015

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

Some Applications of the Euler-Maclaurin Summation Formula

8.7 Taylor s Inequality Math 2300 Section 005 Calculus II. f(x) = ln(1 + x) f(0) = 0

Introductory Numerical Analysis


Let s Get Series(ous)

Chapter 2: Functions, Limits and Continuity

1) The line has a slope of ) The line passes through (2, 11) and. 6) r(x) = x + 4. From memory match each equation with its graph.

Numerical Methods. King Saud University

ON THE HURWITZ ZETA-FUNCTION

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

Math 113 (Calculus 2) Exam 4

The Hardy-Littlewood Function: An Exercise in Slowly Convergent Series

A REFORMULATION OF THE RADON-NIKODYM THEOREM

The polar coordinates

Polynomial Functions and Their Graphs

INFINITE SEQUENCES AND SERIES

Evaluating Singular and Nearly Singular Integrals Numerically

A Generalized Trapezoid Rule of Error Inequalities

UNIFORM BOUNDS FOR BESSEL FUNCTIONS

Asymptotic behavior for sums of non-identically distributed random variables

Limits at Infinity. Horizontal Asymptotes. Definition (Limits at Infinity) Horizontal Asymptotes

Approximations for the Bessel and Struve Functions

CALCULUS JIA-MING (FRANK) LIOU

6 Lecture 6b: the Euler Maclaurin formula

MATH 236 ELAC FALL 2017 TEST 3 NAME: SHORT ANSWER. Write the word or phrase that best completes each statement or answers the question.

Principles of Scientific Computing Local Analysis

MA2501 Numerical Methods Spring 2015

Math Numerical Analysis Mid-Term Test Solutions

TAYLOR AND MACLAURIN SERIES

ON SOME CONSTANTS FOR OSCILLATION AND STABILITY OF DELAY EQUATIONS

Infinite Series. Copyright Cengage Learning. All rights reserved.

PUTNAM PROBLEMS SEQUENCES, SERIES AND RECURRENCES. Notes

A Partial List of Topics: Math Spring 2009

Polynomial Approximations and Power Series

A collocation method for solving some integral equations in distributions

A NOTE ON A BASIS PROBLEM

ON THE SET OF ALL CONTINUOUS FUNCTIONS WITH UNIFORMLY CONVERGENT FOURIER SERIES

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.

Math 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS

Chapter 2 Formulas and Definitions:

MATH 131A: REAL ANALYSIS (BIG IDEAS)

ON A CHARACTERIZATION OF THE KERNEL OF THE DIRICHLET-TO-NEUMANN MAP FOR A PLANAR REGION

Successive Derivatives and Integer Sequences

Approximation of the attractor of a countable iterated function system 1

The Generating Functions for Pochhammer

A Note on the Recursive Calculation of Incomplete Gamma Functions

Section 3.1. Best Affine Approximations. Difference Equations to Differential Equations

PIERCE EXPANSIONS AND RULES FOR THE DETERMINATION OF LEAP YEARS

Fundamental gaps in numerical semigroups

SOME IDENTITIES INVOLVING THE FIBONACCI POLYNOMIALS*

X. Numerical Methods

MATH 1242 FINAL EXAM Spring,

LIMITS OF DIFFERENTIABLE FUNCTIONS

ALGEBRAIC POLYNOMIALS WITH SYMMETRIC RANDOM COEFFICIENTS K. FARAHMAND AND JIANLIANG GAO

Approximation theory

Section Taylor and Maclaurin Series

C.7. Numerical series. Pag. 147 Proof of the converging criteria for series. Theorem 5.29 (Comparison test) Let a k and b k be positive-term series

Chapter 2. Polynomial and Rational Functions. 2.3 Polynomial Functions and Their Graphs. Copyright 2014, 2010, 2007 Pearson Education, Inc.

Solutions to Homework 2

Taylor and Maclaurin Series

Sharp inequalities and complete monotonicity for the Wallis ratio

MS 2001: Test 1 B Solutions

PUTNAM TRAINING POLYNOMIALS. Exercises 1. Find a polynomial with integral coefficients whose zeros include

PROJECTIVE GEOMETRIES IN EXPONENTIALLY DENSE MATROIDS. II

1 Functions and Graphs

CHAPTER I. Rings. Definition A ring R is a set with two binary operations, addition + and

MATH 1231 MATHEMATICS 1B CALCULUS. Section 5: - Power Series and Taylor Series.

COMPLETE MONOTONICITIES OF FUNCTIONS INVOLVING THE GAMMA AND DIGAMMA FUNCTIONS. 1. Introduction

Math 227 Sample Final Examination 1. Name (print) Name (sign) Bing ID number

The Infinity Norm of a Certain Type of Symmetric Circulant Matrix

On the Largest Integer that is not a Sum of Distinct Positive nth Powers

EQ: What are limits, and how do we find them? Finite limits as x ± Horizontal Asymptote. Example Horizontal Asymptote

8.3 Numerical Quadrature, Continued

Error Estimates for Trigonometric Interpolation. of Periodic Functions in Lip 1. Knut Petras

2tdt 1 y = t2 + C y = which implies C = 1 and the solution is y = 1

Absolutely convergent Fourier series and classical function classes FERENC MÓRICZ

Things to remember: x n a 1. x + a 0. x n + a n-1. P(x) = a n. Therefore, lim g(x) = 1. EXERCISE 3-2

All quadratic functions have graphs that are U -shaped and are called parabolas. Let s look at some parabolas

Mean Convergence of Interpolation at Zeros of Airy Functions

ESTIMATES ON THE NUMBER OF LIMIT CYCLES OF A GENERALIZED ABEL EQUATION

A GENERAL CLASS OF LOWER BOUNDS ON THE PROBABILITY OF ERROR IN MULTIPLE HYPOTHESIS TESTING. Tirza Routtenberg and Joseph Tabrikian

f (x) = x 2 Chapter 2 Polynomial Functions Section 4 Polynomial and Rational Functions Shapes of Polynomials Graphs of Polynomials the form n

Numerical Integration for Multivariable. October Abstract. We consider the numerical integration of functions with point singularities over

Evaluating infinite integrals involving Bessel functions of arbitrary order

CHAPTER 10: POLYNOMIALS (DRAFT)

y(a, x) = f f "V' dt (a > 0) (1) ^ (-1)"

4.1 Classical Formulas for Equally Spaced Abscissas. 124 Chapter 4. Integration of Functions

Upper Bounds for Partitions into k-th Powers Elementary Methods

A GENERALIZATION OF STIRLING NUMBERS

Transcription:

MATHEMATICS OF COMPUTATION, VOLUME 26, NUMBER 119, JULY, 1972 Exit Criteria for Simpson's Compound Rule* By J. H. Rowland and Y. L. Varol Abstract. In many automated numerical algorithms, the calculations are stopped when the difference between two successive approximations is less than a preassigned tolerance. The dependability of this procedure for Simpson's compound rule has been investigated. Classes of functions have been determined for which the above criterion is (a) always valid, and (b) asymptotically valid. A new exit rule is proposed which appears to be less conservative than the standard technique. 1. Introduction. Let / be integrable on [a, a + h], and na + h If = I[a, a + h]f(x) = / f(x) dx. Simpson's compound rule, with 2m + 1 points, approximates // by S(m)f = S(m)[a, a + h\f(x) (1), I" m-l -] = Ka) + 4 /(* _,) + 2 f{x2i) + f(a + h), Om _,!,_i J x, = a + jh/2m. A traditional method of applying Simpson's rule is to evaluate S(17, S12'/, SU)f, and accept S<2m) as a sufficiently accurate result when (2) 15""'/ - 5(2ffl)/l < «. e is the preassigned tolerance. Adaptive routines use essentially the same method applied to a number of subintervals. Such a procedure may be justified in terms of a stopping inequality. Definition. The inequality \Sim)f - S<2m)/ ^ \Si2m)f - If\ will be referred to as the stopping inequality. The validity of the stopping inequality is sufficient to insure that the value Si2m)f, accepted as the final result by the above exit criterion, will be within the tolerance e. Clenshaw and Curtis [2] have given an example (2) is satisfied while the error is much greater than e. On the other hand, Lyness [5], among others, has observed that an exit procedure based on (2) is likely to be too conservative when /l4) is Lipschitz continuous. Received May 28, 1971, revised November 16, 1971. AMS 1969 subject classifications. Primary 6555; Secondary 6580. Key words and phrases. Numerical integration, exit criteria, stopping inequality. * The results of this paper are contained in the second author's doctoral thesis submitted to the University of Wyoming in May 1971. The research was supported by the National Science Foundation Grant GJ-916. 699 Copyright 1972, American Mathematical Society

700 j. h. rowland and y. l. varol The purpose of this paper is to determine classes of functions for which (a) the stopping inequality is valid for all m, (b) the stopping inequality is valid for all m greater than some threshold m0. On the basis of the analysis presented here, we will also discuss a modification of the standard exit procedure. 2. Functions with Fourth Derivatives of Constant Sign. In this section, we will show that the stopping inequality is valid for all m if does not change sign on the interval of integration. We will also show that the inequality is sharp. Before doing this, let us establish several lemmas. Lemma 1. Let / CU)[a, a + h]. Then 5 f - 11 = ~n7 L 8\ h P {X) dx' and 4\gi(x) = \x\2 - Ix), OS^i, gt(x) = 4(1 x) = g4(l + x) for all x. Proof. This result follows from the Euler-Maclaurin sum formula. In particular, it can be obtained by setting q = 4 in formula (A.5) of [5] and using the symmetry properties of Bernoulli polynomials [1, p. 804]. Lemma 2. Let f CU)[a, a + h] and a be a real number. Then s^f _ If _ a(s^f _ If) = j +* Glm{x~ a) ; a)r\x) dx, Gt(x;a) = gi(x) a2~igi(2x) for all x. Proof. This follows directly from Lemma 1. Lemma 3. The functions g4 and Gt have the following properties: g4(x) ^ Ofor all x, G4(x; a) =i 0 for all x when a ^ 2, Gt(x; a) takes on both signs when a > 2. Proof. The first statement follows directly from the definition of g4. Note that 4!G4(x; a) = %xs[3x(a - 1) + 2 - a], 0 ^ x ^ \. It follows that Gt is nonnegative on [0, ] when a S 2. Now, g4(x) is increasing and gt(2x) is decreasing on [\, ]; so C74 is nonnegative there. Then, G4 is nonnegative every since it is symmetric about \ and periodic. Finally, note that 4! C74(J; a) = 4V and the term 3x(a 1) + 2 a is negative if a > 2 and x is near zero. Thus, G4 takes on both signs when a > 2. We are now ready to prove several theorems concerning the stopping inequality. Theorem 1. Letf C(i)[a, a + h]andassume /<4) does not change sign in[a, a + h]. Then, the stopping inequality is valid for all m. Proof. First, assume fl4) 2: 0. Replace m by 2m in Lemma 1 and apply Lemma 3

exit criteria for simpson's compound rule 701 to obtain 0 ^ s(2m) _ //_ Then, using Lemmas 2 and 3 with a = 2, we have 0 ^ S{2m)f - If g S(m)f - s(2 7> which implies the stopping inequality. The case /<4> g 0 is similar. We will now show that the stopping inequality is sharp for the class of functions covered by Theorem 1. Theorem 2. Let 0 < K < 1 and mbea positive integer. Then there exists a function f such that f(4) has constant sign in [a, a + h] and \S'2m)f If\ > K \Sim)f - 5<2ra)/l- Proof. Let a = (1 + K)/K in Lemma 2 to obtain the equation K(S(m)f - 5(2m7) - (s 7 m Kh* r (m^x ~ a> 1_+jKW w m = ^rla G\ h k / Since the kernel C74 is negative on part of the interval [a, a + h], we can choose /<4) S: 0 so that the right-hand side of the above equation is negative. Hence, K(Sim)j - Sl2m)f) < S(2m)f - If. Applying Lemma 3 to Lemma 2 with a = 1, we see that the left side of this inequality is nonnegative, and the result follows. 3. Asymptotic Validity of the Stopping Inequality. When /(4) is not of constant sign, we cannot give a rigorous bound such as that given in Theorem 1. However, we can show that under certain conditions the stopping inequality is asymptotically valid; that is, there exists an integer m0 such that the stopping inequality is satisfied for all m ~:= m0. Theorem 3. Let f C(2a+1,[a, a + h] with q ^ 2. Assume If{2,) = 0 for r = 2,3,, q 1, but //<2a) 9* 0. Then, as m > <*>, the stopping inequality is eventually satisfied. Proof. Using formula (A.5) of [5], we see that, as m», 5<m7 - // = c2a Kh r" fa\x) dx + Oim-2"-1), m Ja c2a is a nonzero constant. From this, we can write (3) S^f -If= c2a r" r\x) dx + (Km-2*-1), Im J a S'-'j - s'-'l - 1 - i) / r'm dx + 0{m -). Hence, 5(2m7 _ 7/ (4) Hm (m), -(i^t) s(m7-5(2m7 225-1 ' which implies that the stopping inequality is eventually satisfied. In the limit, the si2m)f approximation is roughly 22 times as accurate as the S(m)f approximation. Usually, q = 2 and the exit criterion based on (2) is roughly fifteen times too accurate.

702 j. h. rowland and y. l. varol Let us now point out that even for functions in Cl )[a, a + ft], m may have to be very large before the stopping inequality will be satisfied. Theorem 4. Let k be a positive integer. There exists a function f C^'fa, a + h] such that the stopping inequality fails for the first k applications of Simpson's rule. Proof. Without loss of generality, we can assume the interval [a, a + h] to be [-1, 1]. Let a * 0. Then, / C("'[-1, f(x) = e"1 sin(2*irjc), 1] and // = 2V(1 - e2a)/e\a2 + 22V) ^ 0. Clearly, /(>,) = 0 at all points x, required by Sim)f, m = 1, 2, 4,, 2*. Thus, S<m'/ = 0 for m = 1, 2, 4,, 2k, and the stopping inequality fails for the first k approximations. The stopping inequality is not always asymptotically valid. To see this, let / C<2)[0, 1] be defined by In terms of generalized functions, so Lemma 1 implies that f(x) = ifix, i) - Fix, i), Fix, 0=0, 0 ^ x g t, = (x - tf, t < X < 1. f*\x) = 9S(x - I) - 68(x - ); -V-* Mi) - 2..(f); Using this equation, one can show that the ratio (5<2m)/ - If)/(Sim)f - S(2m)/)is periodic and takes on the value 499/285, whenever m is an odd power of 2. Thus, the stopping inequality fails infinitely often asm-^», 4. Modified Exit Procedure. If / satisfies the hypothesis of Theorem 3, then (3) implies that (5) lim gl2m)j _ gi4,m)_j = 2. If 22 1 is approximated by 22a in (4), then (4) and (5) imply that the quantity (S<2m)/ - 5(4m,/)2/(5(m>/ - S<2 7) is asymptotically close to SUm)f - If. This leads us to propose the following two-step exit rule: Accept the approximation SUm)f, if (a) (S<m,f - S{2m)f)/(S(2m)f - S(4m>/) is close to a power of 2, and (b) (S<2m>/ - SUm)f)2/\Sim)f - Sl3m)f\ S t. Condition (a) serves as a test to determine whether the Ofm-2"-1) terms are small enough so that the asymptotic formulas will be good approximations, while (b)

EXIT CRITERIA FOR SIMPSON'S COMPOUND RULE 703 requires that an asymptotic estimate of the error not exceed e. Lyness [5] has proposed that the standard exit criterion (2) be replaced by \S{m)f - S(2""/ ^ 15«. When q = 2, one can see from (5) that condition (b) is similar, since it roughly requires that S(4m7 - S(2m,f not exceed 16e. One evident disadvantage of such an exit procedure is that it cannot be applied before the third approximation. Nevertheless, sample calculations given in [7] indicate that the above procedure seems to be less conservative than the standard rule. It was also observed that the quantity in (a) tended to stray away from a power of two near the point at which round-off error began to dominate the truncation error. This quantity might be useful in determining the point of diminishing returns, as suggested by Lyness [6]. Acknowledgement. The authors would like to thank the referee for suggestions which considerably simplified the presentation. Department of Mathematics University of Wyoming Laramie, Wyoming 82070 Department of Mathematics University of the Negev Beer-Sheva, Israel 1. M. Abramowitz & I. A. Stegun (Editors), Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables, Nat. Bur. Standards Appl. Math. Series, 55, Superintendent of Documents, U.S. Government Printing Office, Washington, D.C., 1964. MR 29 #4914. 2. C. W. Clenshaw & A. R. Curtis, "A method for numerical integration on an automatic computer," Numer. Math., v. 2, 1960, pp. 197-205. MR 22 #8659. 3. P. J. Davis & P. Rabinowitz, Numerical Integration, Blaisdell, Waltham, Mass., 1967. MR 35 #2482. 4. K. Knopp, Theory and Application of Infinite Series, Blackie, London, 1947. 5. J. N. Lyness, "Notes on the adaptive Simpson quadrature routine," /. Assoc. Comput. Mach., v. 16, 1969, pp. 483-495. MR 39 #2326. 6. J. N. Lyness, "The effect of inadequate convergence criteria in automatic routines," Comput. J., v. 12, 1969, pp. 179-281. 7. Y. L. Varol, Exit Criteria for Some Numerical Algorithms, Ph.D. Thesis, University of Wyoming, Laramie, 1971.