Construction of Gauss Quadrature Rules

Similar documents
Matrices, Moments and Quadrature, cont d

Numerical Integration

Theoretical foundations of Gaussian quadrature

Best Approximation in the 2-norm

Review of Calculus, cont d

Lecture 6: Singular Integrals, Open Quadrature rules, and Gauss Quadrature

Numerical integration

Orthogonal Polynomials

COSC 3361 Numerical Analysis I Numerical Integration and Differentiation (III) - Gauss Quadrature and Adaptive Quadrature

Advanced Computational Fluid Dynamics AA215A Lecture 3 Polynomial Interpolation: Numerical Differentiation and Integration.

Lecture 17. Integration: Gauss Quadrature. David Semeraro. University of Illinois at Urbana-Champaign. March 20, 2014

3.4 Numerical integration

Lecture 14: Quadrature

63. Representation of functions as power series Consider a power series. ( 1) n x 2n for all 1 < x < 1

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.

1 Error Analysis of Simple Rules for Numerical Integration

The Regulated and Riemann Integrals

B.Sc. in Mathematics (Ordinary)

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

Numerical Integration

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

DOING PHYSICS WITH MATLAB MATHEMATICAL ROUTINES

1 The Lagrange interpolation formula

Numerical Analysis. 10th ed. R L Burden, J D Faires, and A M Burden

Chapter 3 Polynomials

Numerical Integration. 1 Introduction. 2 Midpoint Rule, Trapezoid Rule, Simpson Rule. AMSC/CMSC 460/466 T. von Petersdorff 1

INTRODUCTION TO INTEGRATION

1. Gauss-Jacobi quadrature and Legendre polynomials. p(t)w(t)dt, p {p(x 0 ),...p(x n )} p(t)w(t)dt = w k p(x k ),

Numerical Methods I Orthogonal Polynomials

COT4501 Spring Homework VII

Lecture 14 Numerical integration: advanced topics

Discrete Least-squares Approximations

Lecture 12: Numerical Quadrature

Math 1B, lecture 4: Error bounds for numerical methods

Abstract inner product spaces

THE EXISTENCE-UNIQUENESS THEOREM FOR FIRST-ORDER DIFFERENTIAL EQUATIONS.

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

ODE: Existence and Uniqueness of a Solution

Lecture 23: Interpolatory Quadrature

Lecture 19: Continuous Least Squares Approximation

Numerical Analysis: Trapezoidal and Simpson s Rule

Review of Gaussian Quadrature method

Numerical quadrature based on interpolating functions: A MATLAB implementation

p(x) = 3x 3 + x n 3 k=0 so the right hand side of the equality we have to show is obtained for r = b 0, s = b 1 and 2n 3 b k x k, q 2n 3 (x) =

CAAM 453 NUMERICAL ANALYSIS I Examination There are four questions, plus a bonus. Do not look at them until you begin the exam.

Lecture 4: Piecewise Cubic Interpolation

Continuous Random Variables

Numerical Analysis. Doron Levy. Department of Mathematics Stanford University

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230

III. Lecture on Numerical Integration. File faclib/dattab/lecture-notes/numerical-inter03.tex /by EC, 3/14/2008 at 15:11, version 9

MAT 772: Numerical Analysis. James V. Lambers

8 Laplace s Method and Local Limit Theorems

1 The Riemann Integral

Lecture Notes: Orthogonal Polynomials, Gaussian Quadrature, and Integral Equations

Trapezoidal Rule, n = 1, x 0 = a, x 1 = b, h = b a. f (x)dx = h 2 (f (x 0) + f (x 1 )) h3

Lecture 20: Numerical Integration III

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1

n f(x i ) x. i=1 In section 4.2, we defined the definite integral of f from x = a to x = b as n f(x i ) x; f(x) dx = lim i=1

Orthogonal Polynomials and Least-Squares Approximations to Functions

Module 11.4: nag quad util Numerical Integration Utilities. Contents

NUMERICAL INTEGRATION

Lecture 1. Functional series. Pointwise and uniform convergence.

JDEP 384H: Numerical Methods in Business

1 Linear Least Squares

( dg. ) 2 dt. + dt. dt j + dh. + dt. r(t) dt. Comparing this equation with the one listed above for the length of see that

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

Best Approximation. Chapter The General Case

Section 6.1 Definite Integral

An optimal 3-point quadrature formula of closed type and error bounds

LECTURE 19. Numerical Integration. Z b. is generally thought of as representing the area under the graph of fèxè between the points x = a and

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral

Math 115 ( ) Yum-Tong Siu 1. Lagrange Multipliers and Variational Problems with Constraints. F (x,y,y )dx

Introduction to Numerical Analysis

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions

Riemann Sums and Riemann Integrals

Math& 152 Section Integration by Parts

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as

1.9 C 2 inner variations

Review of basic calculus

Riemann Sums and Riemann Integrals

Lecture Note 4: Numerical differentiation and integration. Xiaoqun Zhang Shanghai Jiao Tong University

MATH , Calculus 2, Fall 2018

MAT 168: Calculus II with Analytic Geometry. James V. Lambers

7.2 The Definite Integral

The Fundamental Theorem of Calculus. The Total Change Theorem and the Area Under a Curve.

Definite integral. Mathematics FRDIS MENDELU

MA 124 January 18, Derivatives are. Integrals are.

Interpolation. Gaussian Quadrature. September 25, 2011

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.)

Definite integral. Mathematics FRDIS MENDELU. Simona Fišnarová (Mendel University) Definite integral MENDELU 1 / 30

Elementary Linear Algebra

Suppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2.

Undergraduate Research

Jim Lambers MAT 169 Fall Semester Lecture 4 Notes

New Expansion and Infinite Series

Introduction to Finite Element Method

Chapter 5 : Continuous Random Variables

Arithmetic Mean Derivative Based Midpoint Rule

APPROXIMATE INTEGRATION

Transcription:

Jim Lmbers MAT 772 Fll Semester 2010-11 Lecture 15 Notes These notes correspond to Sections 10.2 nd 10.3 in the text. Construction of Guss Qudrture Rules Previously, we lerned tht Newton-Cotes qudrture rule with n nodes hs degree t most n. Therefore, it is nturl to sk whether it is possible to select the nodes nd weights of n n-point qudrture rule so tht the rule hs degree greter thn n. Gussin qudrture rules hve the surprising property tht they cn be used to integrte polynomils of degree 2n 1 exctly using only n nodes. Gussin qudrture rules cn be constructed using technique known s moment mtching, or direct construction. For ny nonnegtive integer k, the k th moment is defined to be μ k x k dx. For given n, our gol is to select weights nd nodes so tht the first 2n moments re computed exctly; i.e., μ k w i x k i, k 0, 1,..., 2n 1. Since we hve 2n free prmeters, it is resonble to think tht pproprite nodes nd weights cn be found. Unfortuntely, this system of equtions is nonliner, so it cn be quite difficult to solve. Suppose g(x) is polynomil of degree 2n 1. For convenience, we will write g P 2,, for ny nturl number k, P k denotes the spce of polynomils of degree t most k. We shll show tht there exist weights {w i } nd nodes {x i} Furthermore, for more generl functions, G(x), such tht g(x) dx w i g(x i ). G(x) dx w i G(x i ) + E[G] 1

1. x i re rel, distinct, nd < x i < b for i 0, 1,..., n 1. 2. The weights {w i } stisfy w i > 0 for i 0, 1,..., n 1. 3. The error E[G] stisfies E[G] G(2n) (ξ) (2n)! (x x i) 2 dx. Notice tht this method is exct for polynomils of degree 2n 1 since the error functionl E[G] depends on the (2n) th derivtive of G. To prove this, we shll construct n orthonorml fmily of polynomils {q i (x)} n so tht { 0 r s, q r (x)q s (x) dx 1 r s. This cn be ccomplished using the fct tht such fmily of polynomils stisfies three-term recurrence reltion β j q j (x) (x α j )q j 1 (x) β j 1 q j 2 (x), q 0 (x) (b ) 1/2, q 1 (x) 0, α j xq j 1 (x) 2 dx, β 2 j xq j (x)q j 1 (x) dx, j 1, β 0 1. We choose the nodes {x i } to be the roots of the n th -degree polynomil in this fmily, which re rel, distinct nd lie within (, b), s proved erlier. Next, we construct the interpolnt of degree n 1, denoted p (x), of g(x) through the nodes: L (x) g(x i )L,i (x),, for i 0,..., n 1, L,i (x) is the ith Lgrnge polynomil for the points x 0,..., x. We shll now look t the interpoltion error function e(x) g(x) p (x). Clerly, since g P 2, e P 2. Since e(x) hs roots t ech of the roots of q n (x), we cn fctor e so tht e(x) q n (x)r(x), r P. It follows from the fct tht q n (x) is orthogonl to ny polynomil in P tht the integrl of g cn then be written s I(g) p (x) dx + q n (x)r(x) dx 2

w i p (x) dx g(x i )L,i (x) dx g(x i ) g(x i )w i L,i (x) dx L,i (x) dx, i 0, 1,..., n 1. For more generl function G(x), the error functionl E[G] cn be obtined from the expression for the interpoltion error presented erlier. Exmple We will use Gussin qudrture to pproximte the integrl 0 e x2 dx. The prticulr Gussin qudrture rule tht we will use consists of 5 nodes x 1, x 2, x 3, x 4 nd x 5, nd 5 weights w 1, w 2, w 3, w 4 nd w 5. To determine the proper nodes nd weights, we use the fct tht the nodes nd weights of 5-point Gussin rule for integrting over the intervl [ 1, 1] re given by i Nodes r 5,i Weights c 5,i 1 0.9061798459 0.2369268850 2 0.5384693101 0.4786286705 3 0.0000000000 0.5688888889 4 0.5384693101 0.4786286705 5 0.9061798459 0.2369268850 To obtin the corresponding nodes nd weights for integrting over [ 1, 1], we cn use the fct tht in generl, ( ) b + b b f(x) dx f t + dt, 2 2 2 1 s cn be shown using the chnge of vrible x [(b )/2]t+(+b)/2 tht mps [, b] into [ 1, 1]. We then hve ( ) b + b b f(x) dx f t + dt 2 2 2 1 3

5 f i1 ( b 2 r 5,i + 5 f(x i )w i, i1 ) + b b 2 2 c 5,i b x i 2 r + b 5,i + 2, w b i 2 c 5,i, i 1,..., 5. In this exmple, 0 nd b 1, so the nodes nd weights for 5-point Gussin qudrture rule for integrting over [0, 1] re given by which yields It follows tht 0 e x2 dx x i 1 2 r 5,i + 1 2, w i 1 2 c 5,i, i 1,..., 5, 5 i1 i Nodes x i Weights w i 1 0.95308992295 0.11846344250 2 0.76923465505 0.23931433525 3 0.50000000000 0.28444444444 4 0.23076534495 0.23931433525 5 0.04691007705 0.11846344250 e x2 i wi 0.11846344250e 0.953089922952 + 0.23931433525e 0.769234655052 + 0.28444444444e 0.52 + 0.23931433525e 0.230765344952 + 0.11846344250e 0.046910077052 0.74682412673352. Since the exct vlue is 0.74682413281243, the bsolute error is 6.08 10 9, which is remrkbly ccurte considering tht only fives nodes re used. The high degree of ccurcy of Gussin qudrture rules mke them the most commonly used rules in prctice. However, they re not without their drwbcks: They re not progressive, so the nodes must be recomputed whenever dditionl degrees of ccurcy re desired. An lterntive is to use Guss-Kronrod rules. A (2n + 1)-point Guss-Kronrod rule uses the nodes of the n-point Gussin rule. For this reson, prcticl qudrture procedures use both the Gussin rule nd the corresponding Guss-Kronrod rule to estimte ccurcy. 4

Becuse the nodes re the roots of polynomil, they must be computed using trditionl root-finding methods, which re not lwys ccurte. Errors in the computed nodes led to lost degrees of ccurcy in the pproximte integrl. In prctice, however, this does not normlly cuse significnt difficulty. 5