lecture 24: Gaussian quadrature rules: fundamentals

Similar documents
lecture 16: Introduction to Least Squares Approximation

0 otherwise. sin( nx)sin( kx) 0 otherwise. cos( nx) sin( kx) dx 0 for all integers n, k.

Quadrature Methods for Numerical Integration

Review of the Riemann Integral

INTEGRATION TECHNIQUES (TRIG, LOG, EXP FUNCTIONS)

We will begin by supplying the proof to (a).

Sequence and Series of Functions

1.3 Continuous Functions and Riemann Sums

 n. A Very Interesting Example + + = d. + x3. + 5x4. math 131 power series, part ii 7. One of the first power series we examined was. 2!

General properties of definite integrals

Taylor Polynomials. The Tangent Line. (a, f (a)) and has the same slope as the curve y = f (x) at that point. It is the best

Section IV.6: The Master Method and Applications

THE NATIONAL UNIVERSITY OF IRELAND, CORK COLÁISTE NA hollscoile, CORCAIGH UNIVERSITY COLLEGE, CORK SUMMER EXAMINATION 2005 FIRST ENGINEERING

Closed Newton-Cotes Integration

POWER SERIES R. E. SHOWALTER

Chapter 5. The Riemann Integral. 5.1 The Riemann integral Partitions and lower and upper integrals. Note: 1.5 lectures

EVALUATING DEFINITE INTEGRALS

Probability and Stochastic Processes: A Friendly Introduction for Electrical and Computer Engineers Roy D. Yates and David J.

Convergence rates of approximate sums of Riemann integrals

f(t)dt 2δ f(x) f(t)dt 0 and b f(t)dt = 0 gives F (b) = 0. Since F is increasing, this means that

FOURIER SERIES PART I: DEFINITIONS AND EXAMPLES. To a 2π-periodic function f(x) we will associate a trigonometric series. a n cos(nx) + b n sin(nx),

The Reimann Integral is a formal limit definition of a definite integral

Approximations of Definite Integrals

Limit of a function:

Solutions to Problem Set 7

Notes 17 Sturm-Liouville Theory

Chapter 7 Infinite Series

MA123, Chapter 9: Computing some integrals (pp )

MATRIX ALGEBRA, Systems Linear Equations

INFINITE SERIES. ,... having infinite number of terms is called infinite sequence and its indicated sum, i.e., a 1

f(bx) dx = f dx = dx l dx f(0) log b x a + l log b a 2ɛ log b a.

Linear Programming. Preliminaries

The Definite Integral

Remarks: (a) The Dirac delta is the function zero on the domain R {0}.

lecture 22: Newton Cotes quadrature

Math 3B Midterm Review

Vectors. Vectors in Plane ( 2

( ) k ( ) 1 T n 1 x = xk. Geometric series obtained directly from the definition. = 1 1 x. See also Scalars 9.1 ADV-1: lim n.

B. Examples 1. Finite Sums finite sums are an example of Riemann Sums in which each subinterval has the same length and the same x i

Important Facts You Need To Know/Review:

Definite Integral. The Left and Right Sums

Graphing Review Part 3: Polynomials

The Weierstrass Approximation Theorem

5.1 - Areas and Distances

Particle in a Box. and the state function is. In this case, the Hermitian operator. The b.c. restrict us to 0 x a. x A sin for 0 x a, and 0 otherwise

1. (25 points) Use the limit definition of the definite integral and the sum formulas to compute. [1 x + x2

Riemann Integration. Chapter 1

MAS221 Analysis, Semester 2 Exercises

The Basic Properties of the Integral

Week 13 Notes: 1) Riemann Sum. Aim: Compute Area Under a Graph. Suppose we want to find out the area of a graph, like the one on the right:

[ 20 ] 1. Inequality exists only between two real numbers (not complex numbers). 2. If a be any real number then one and only one of there hold.

Convergence rates of approximate sums of Riemann integrals

is infinite. The converse is proved similarly, and the last statement of the theorem is clear too.

ALGEBRA. Set of Equations. have no solution 1 b1. Dependent system has infinitely many solutions

Math 104: Final exam solutions

BC Calculus Path to a Five Problems

Options: Calculus. O C.1 PG #2, 3b, 4, 5ace O C.2 PG.24 #1 O D PG.28 #2, 3, 4, 5, 7 O E PG #1, 3, 4, 5 O F PG.

Riemann Integral and Bounded function. Ng Tze Beng

Chapter System of Equations

In an algebraic expression of the form (1), like terms are terms with the same power of the variables (in this case

MATH 104 FINAL SOLUTIONS. 1. (2 points each) Mark each of the following as True or False. No justification is required. y n = x 1 + x x n n

The total number of permutations of S is n!. We denote the set of all permutations of S by

Crushed Notes on MATH132: Calculus

10.5 Power Series. In this section, we are going to start talking about power series. A power series is a series of the form

Second Mean Value Theorem for Integrals By Ng Tze Beng. The Second Mean Value Theorem for Integrals (SMVT) Statement of the Theorem

UNIVERSITY OF BRISTOL. Examination for the Degrees of B.Sc. and M.Sci. (Level C/4) ANALYSIS 1B, SOLUTIONS MATH (Paper Code MATH-10006)

A GENERAL METHOD FOR SOLVING ORDINARY DIFFERENTIAL EQUATIONS: THE FROBENIUS (OR SERIES) METHOD

Notes on Dirichlet L-functions

Numbers (Part I) -- Solutions

M3P14 EXAMPLE SHEET 1 SOLUTIONS

Unit 1. Extending the Number System. 2 Jordan School District

( a n ) converges or diverges.

y udv uv y v du 7.1 INTEGRATION BY PARTS

Numerical Solutions of Fredholm Integral Equations Using Bernstein Polynomials

9.5. Alternating series. Absolute convergence and conditional convergence

MATH 118 HW 7 KELLY DOUGAN, ANDREW KOMAR, MARIA SIMBIRSKY, BRANDEN LASKE

Double Sums of Binomial Coefficients

GRAPHING LINEAR EQUATIONS. Linear Equations. x l ( 3,1 ) _x-axis. Origin ( 0, 0 ) Slope = change in y change in x. Equation for l 1.

Infinite Series Sequences: terms nth term Listing Terms of a Sequence 2 n recursively defined n+1 Pattern Recognition for Sequences Ex:

Approximate Integration

2. Infinite Series 3. Power Series 4. Taylor Series 5. Review Questions and Exercises 6. Sequences and Series with Maple

ANALYSIS HW 3. f(x + y) = f(x) + f(y) for all real x, y. Demonstration: Let f be such a function. Since f is smooth, f exists.

MTH 146 Class 16 Notes

BC Calculus Review Sheet

The Definite Riemann Integral

Certain sufficient conditions on N, p n, q n k summability of orthogonal series

SM2H. Unit 2 Polynomials, Exponents, Radicals & Complex Numbers Notes. 3.1 Number Theory

Numerical Methods. Lecture 5. Numerical integration. dr hab. inż. Katarzyna Zakrzewska, prof. AGH. Numerical Methods lecture 5 1

Math 140B - Notes. Neil Donaldson. September 2, 2009

The Exponential Function

Schrödinger Equation Via Laplace-Beltrami Operator

Eigenfunction Expansion. For a given function on the internal a x b the eigenfunction expansion of f(x):

Review of Sections

( ) dx ; f ( x ) is height and Δx is

INTEGRATION IN THEORY

CMDA 4604: Intermediate Topics in Mathematical Modeling Lecture 19: Interpolation and Quadrature

Content: Essential Calculus, Early Transcendentals, James Stewart, 2007 Chapter 1: Functions and Limits., in a set B.

Chapter 25 Sturm-Liouville problem (II)

Stalnaker s Argument


Transcription:

133 lecture 24: Gussi qudrture rules: fudmetls 3.4 Gussi qudrture It is cler tht the trpezoid rule, b 2 f ()+ f (b), exctly itegrtes lier polyomils, but ot ll qudrtics. I fct, oe c show tht o qudrture rule of the form w f ()+w b f (b) will exctly itegrte ll qudrtics over [, b], regrdless of the choice of costts w d w b. However, otice tht geerl qudrture rule with two poits, w 0 f (x 0 )+w 1 f (x 1 ), hs four prmeters (w 0, x 0, w 1, x 1 ). We might the hope tht we could pick these four prmeters i such fshio tht the qudrture rule is exct for four-dimesiol subspce of fuctios, P 3. This sectio explores geerliztios of this questio. 3.4.1 A specil 2-poit rule Suppose we cosider more geerl clss of 2-poit qudrture rules, where we do ot iitilly fix the poits t which the itegrd f is evluted: I( f )=w 0 f (x 0 )+w 1 f (x 1 ) for ukows odes x 0, x 1 2 [, b] d weights w 0 d w 1. We wish to pick x 0, x 1, w 0, d w 1 so tht the qudrture rule exctly itegrtes ll polyomils of the lrgest degree possible. Sice this qudrture rule is lier, it will suffice to check tht it is exct o moomils. There re four ukows; to get four equtios, we will require I( f ) to exctly itegrte 1, x, x 2, x 3. f (x) =1: f (x) =x : f (x) =x 2 : f (x) =x 3 : 1dx = I(1) =) b = w 0 + w 1 x dx = I(x) =) 1 2 (b2 2 )=w 0 x 0 + w 1 x 1 x 2 dx = I(x 2 ) =) 1 3 (b3 3 )=w 0 x 2 0 + w 1x 2 1 x 3 dx = I(x 3 ) =) 1 4 (b4 4 )=w 0 x 3 0 + w 1x 3 1

134 Three of these costrits re olier equtios of the ukows x 0, x 1, w 0, d w 1 : thus questios of existece d uiqueess of solutios becomes bit more subtle th for the lier equtios we so ofte ecouter. I this cse, solutio does exist: w 0 = w 1 = 1 2 (b ), x 0 = 1 p 2 (b + ) 3 6 (b ), x 1 = 1 p 2 (b + )+ 3 6 (b ). Notice tht x 0, x 1 2 [, b]: If this were ot the cse, we could ot use these poits s qudrture odes, sice f might ot be defied outside [, b]. Whe [, b] = [ 1, 1], the iterpoltio poits re ±1/ p 3, givig the qudrture rule I( f )= f ( 1/ p 3)+ f (1/ p 3). 3.4.2 Geerliztio to higher degrees Emboldeed by the success of this humble 2-poit rule, we cosider geerliztios to higher degrees. If some two-poit rule ( + 1 itegrtio odes, for = 1) will exctly itegrte ll cubics (3 = 2 + 1), oe might ticipte the existece of rules bsed o + 1 poits tht exctly itegrte ll polyomils of degree 2 + 1, for geerl vlues of. Towrd this ed, cosider qudrture rules of the form I ( f )= Â w j f (x j ), for which we will choose the odes {x j } d weights {w j } ( totl of 2 + 2 vribles) to mximize the degree of polyomil tht is itegrted exctly. The primry chllege is to fid stisfctory qudrture odes. Oce these re foud, the weights follow esily: i theory, oe could obti them by itegrtig the polyomil iterpolt t the odes, though better methods re vilble i prctice. I prticulr, this procedure for ssigig weights esures, t miimum, tht I ( f ) will exctly itegrte ll polyomils of degree. This ssumptio will ply key role i the comig developmet. Orthogol polyomils, itroduced i Sectio 2.5, ply cetrl role i this expositio, d they suggest geerliztio of the iterpoltory qudrture procedures we hve studied up to this poit. Let {f j } +1 be system of orthogol polyomils with respect to the ier product h f, gi = f (x)g(x)w(x) dx

135 for some weight fuctio w 2 C(, b) tht is o-egtive over (, b) d tkes the vlue of zero oly o set of mesure zero. Now we wish to costruct iterpoltory qudrture rule for itegrl tht icorportes the weight fuctio w(x) i the itegrd: I ( f )=  w j f (x j ) f (x)w(x) dx. It is our im to mke I (p) exct for ll p 2 P 2+1. First, we will show tht y iterpoltory qudrture rule I will t lest be exct for the weighted itegrl of degree- polyomils. Showig this is simple modifictio of the rgumet mde i Sectio 3.1 for uweighted itegrls. Give set of distict odes x 0,...,x, costruct the polyomil iterpolt to f t those odes: This weight fuctio plys essetil role i the discussio: it defies the ier product, d so it dicttes wht it mes for two fuctios to be orthogol. Chge the weight fuctio, d you will chge the orthogol polyomils. I the Sectio 3.4.4 we shll see some useful exmples of weight fuctios. p (x) =  f (x j )`j(x), where `j(x) is the usul Lgrge bsis fuctio for polyomil iterpoltio. The iterpoltory qudrture rule will exctly itegrte the weighted itegrl of the iterpolt p : f (x)w(x) dx p (x)w(x) dx = =  f (x j )`j(x) w(x) dx  f (x j ) `j(x)w(x) dx. Thus we defie the qudrture weights for the weighted itegrl to be givig the rule w j := `j(x)w(x) dx, I ( f )=  w j f (x j ) f (x)w(x) dx. Apply this rule to degree- polyomil, p. Sice p 2 P, it is its ow degree- polyomil iterpolt, so the itegrl of the iterpolt delivers the exct weighted itegrl of p: p(x)w(x) dx =  w j p(x j )=I (p). Note tht the weight fuctio w(x) c iclude ll sorts of stiess, ll of which is bsorbed i the qudrture weights w 0,...,w. This is the cse regrdless of how the (distict) odes x 0,...,x were chose. Now we seek wy to choose the odes so tht the qudture rule is exctly for higher degree polyomils.

136 To begi, cosider rbitrry p 2 P 2+1. Usig polyomil divisio, we c lwys write p(x) =f +1 (x)q(x)+r(x) for some q, r 2 P tht deped o p. Itegrtig this p, we obti p(x)w(x) dx = f +1 (x)q(x)w(x) dx + r(x)w(x) dx = hf +1, qi + r(x)w(x) dx = r(x)w(x) dx. The lst step is cosequece tht importt bsic fct, proved i Sectio 2.5, tht the orthogol polyomil f +1 is orthogol to ll q 2 P. Now pply the qudrture rule to p, d ttempt to pick the iterpoltio odes {x j } to yield the vlue of the exct itegrl computed bove. I prticulr, I (p) =  w j p(x j )= =  w j f +1 (x j )q(x j )+  w j f +1 (x j )q(x j )+  w j r(x j ) r(x)w(x) dx. This lst sttemet is cosequece of the fct tht I ( ) will exctly itegrte ll r 2 P. This will be true regrdless of our choice for the distict odes {x j } [, b]. (Recll tht the qudrture rule is costructed so tht it exctly itegrtes degree- polyomil iterpolt to the itegrd, d i this cse the itegrd, r, is degree polyomil. Hece I (r) will be exct.) Notice tht we c force greemet betwee I (p) d R b p(x)w(x) dx provided  w j f +1 (x j )q(x j )=0. We cot mke ssumptios bout q 2 P, s this polyomil will vry with the choice of p, but we c exploit properties of f +1. Sice f +1 hs exct degree + 1 (recll this property of ll orthogol polyomils), it must hve + 1 roots. If we choose the iterpoltio odes {x j } to be the roots of f +1, the  w j f +1 (x j )q(x j ) = 0 s required, d we hve qudrture rule tht is exct for ll polyomils of degree 2 + 1. Before we c declre victory, though, we must exercise some cutio. Perhps f +1 hs repeted roots (so tht the odes {x j } re ot distict), or perhps these roots lie t poits i the complex ple

137 where f my ot eve be defied. Sice we re itegrtig f over the itervl [, b], it is crucil tht f +1 hs + 1 distict roots i [, b]. Fortutely, this is oe of the my beutiful properties ejoyed by orthogol polyomils. Theorem 3.6 (Roots of Orthogol Polyomils). Let {f k } +1 k=0 be system of orthogol polyomils o [, b] with respect to the weight fuctio w(x). The f k hs k distict rel roots, {x (k) j } k j=1, with x(k) j 2 [, b] for j = 1,..., k. Proof. The result is trivil for f 0. Fix y k 2{1,..., + 1}. Suppose tht f k, polyomil of exct degree k, chges sig t j < k distict roots {x (k) ` } j`=1, i the itervl [, b]. The defie q(x) =(x x (k) 1 )(x x(k) 2 ) (x x(k) j ) 2 P j. This fuctio chges sig t exctly the sme poits s f k does o [, b]. Thus, the product of these two fuctios, f k (x)q(x), does ot chge sig o [, b]. See the illustrtio i Figure 3.8. f k (x) q(x) 0 0 f k (x)q(x) b b b As the weight fuctio w(x) is oegtive o [, b], it must lso be tht f k qw does ot chge sig o [, b]. However, the fct tht q 2 P j for j < k implies tht f k (x)q(x)w(x) dx = hf k, qi = 0, sice f k is orthogol to ll polyomils of degree k 1 or lower (Lemm 2.3). Thus, we coclude tht the itegrl of some cotiuous ozero fuctio f k qw tht ever chges sig o [, b] must be zero. This is cotrdictio, s the itegrl of such fuctio must lwys be positive. Thus, f k must hve t lest k distict zeros i [, b]. As f k is polyomil of degree k, it c hve o more th k zeros. 0 Figure 3.8: The fuctios f k, q, d f k q from the proof of Theorem 3.9.

138 We hve rrived t Gussi qudrture rules: Itegrte the polyomil tht iterpoltes f t the roots of the orthogol polyomil f +1. Wht re the weights {w j }? Write the iterpolt, p, i the Lgrge bsis, p (x) = Â f (x j )`j(x), where the bsis polyomils `j re defied s usul, (3.2) `j(x) = k=0,k6=j (x x k ) (x j x k ). Itegrtig this iterpolt gives I ( f )= p (x)w(x) dx = Â f (x j )`j(x)w(x) dx = Â f (x j ) `j(x)w(x) dx, revelig formul for the qudrture weights: w j = `j(x)w(x) dx. This costructio proves the followig result. Theorem 3.7. Suppose I ( f ) is the Gussi qudrture rule I ( f )= Â w j f (x j ), where the odes {x j } re the + 1 roots of degree-( + 1) orthogol polyomil o [, b] with weight fuctio w, d w j = R b `j(x)w(x) dx. The I ( f )= for ll polyomils f of degree 2 + 1. f (x)w(x) dx As side-effect of this high-degree exctess, we obti iterestig ew formul for the weights i Gussi qudrture. Sice the Lgrge bsis polyomil `k is the product of lier fctors (see (3.2)), `k 2 P, d (`k) 2 2 P 2 P 2+1. Thus the Gussi qudrture rule exctly itegrtes (`k) 2 w(x). We write (`k(x)) 2 w(x)dx = Â w j (`k(x j )) 2 = w k (`k(x k )) 2 = w k,

139 where we hve used the fct tht `k(x j )=0 if j 6= k, d `k(x k )=1. This leds to other formul for the Gussi qudrture weights: (3.3) w k = `k(x)w(x) dx = (`k(x)) 2 w(x) dx. This ltter formul is more computtiolly ppelig th the former, becuse it is more umericlly relible to itegrte positivevlued itegrds. This is et fct, but, s described i Sectio, there is still-better wy to compute these weights: by computig eigevectors of symmetric tridigol mtrix. Of course, i my circumstces we re ot simply itegrtig polyomils, but more complicted fuctios, so we wt better isight bout the method s performce th Theorem 3.7 provides. Oe voids flotig poit errors tht c be itroduced by ddig qutities tht re similr i mgitude but opposite i sig, kow s ctstrophic ccelltio. Oe c prove the followig error boud. See, e.g., Süli d Myers, pp. 282 283. Theorem 3.8. Suppose f 2 C 2+2 [, b] d let I ( f ) be the usul ( + 1)-poit Gussi qudrture rule o [, b] with weight fuctio w(x) d odes {x j }. The f (x)w(x) dx I ( f )= f (2+2) (x) (2 + 2)! y 2 (x)w(x) dx for some x 2 [, b] d y(x) = (x x j).