Closed Newton-Cotes Integration

Similar documents
Approximations of Definite Integrals

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

Quadrature Methods for Numerical Integration

Definite Integral. The Left and Right Sums

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

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:

Numerical Integration - (4.3)

EVALUATING DEFINITE INTEGRALS

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

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

Orthogonal functions - Function Approximation

1.3 Continuous Functions and Riemann Sums

MA123, Chapter 9: Computing some integrals (pp )

MAS221 Analysis, Semester 2 Exercises

The Definite Integral

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

Review of Sections

Test Info. Test may change slightly.

Review of the Riemann Integral

The Definite Riemann Integral

Trapezoidal Rule of Integration

Math 3B Midterm Review

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

lecture 16: Introduction to Least Squares Approximation

Course 121, , Test III (JF Hilary Term)

Riemann Integration. Chapter 1

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

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

Chapter System of Equations

Trapezoidal Rule of Integration

BC Calculus Review Sheet

Convergence rates of approximate sums of Riemann integrals

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

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

The Weierstrass Approximation Theorem

Calculus II Homework: The Integral Test and Estimation of Sums Page 1

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

Convergence rates of approximate sums of Riemann integrals

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

Approximate Integration

Interpolation. 1. What is interpolation?

lecture 24: Gaussian quadrature rules: fundamentals

BC Calculus Path to a Five Problems

10.5 Test Info. Test may change slightly.

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

Numerical Integration

Numerical Integration by using Straight Line Interpolation Formula

INTEGRATION TECHNIQUES (TRIG, LOG, EXP FUNCTIONS)

MTH 146 Class 16 Notes

9.5. Alternating series. Absolute convergence and conditional convergence

Limit of a function:

Vectors. Vectors in Plane ( 2

DEPARTMENT OF ELECTRICAL &ELECTRONICS ENGINEERING SIGNALS AND SYSTEMS. Assoc. Prof. Dr. Burak Kelleci. Spring 2018

FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING. Lectures

Sequence and Series of Functions

lecture 22: Newton Cotes quadrature

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

POWER SERIES R. E. SHOWALTER

1.1 The FTC and Riemann Sums. An Application of Definite Integrals: Net Distance Travelled

Basic Limit Theorems

F x = 2x λy 2 z 3 = 0 (1) F y = 2y λ2xyz 3 = 0 (2) F z = 2z λ3xy 2 z 2 = 0 (3) F λ = (xy 2 z 3 2) = 0. (4) 2z 3xy 2 z 2. 2x y 2 z 3 = 2y 2xyz 3 = ) 2

18.01 Calculus Jason Starr Fall 2005

 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!

8.1 Arc Length. What is the length of a curve? How can we approximate it? We could do it following the pattern we ve used before

INTEGRATION IN THEORY

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.

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.

1 Tangent Line Problem

Riemann Integral Oct 31, such that

1 Section 8.1: Sequences. 2 Section 8.2: Innite Series. 1.1 Limit Rules. 1.2 Common Sequence Limits. 2.1 Denition. 2.

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

Section 6.3: Geometric Sequences

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

n 2 + 3n + 1 4n = n2 + 3n + 1 n n 2 = n + 1

Chapter 7 Infinite Series

5.1 - Areas and Distances

Notes 17 Sturm-Liouville Theory

Simpson s 1/3 rd Rule of Integration

General properties of definite integrals

AP Calculus Notes: Unit 6 Definite Integrals. Syllabus Objective: 3.4 The student will approximate a definite integral using rectangles.

f ( x) ( ) dx =

Numerical Solutions of Fredholm Integral Equations Using Bernstein Polynomials

Homework 3 solutions

Solutions to Problem Set 7

12.2 The Definite Integrals (5.2)

2.1.1 Definition The Z-transform of a sequence x [n] is simply defined as (2.1) X re x k re x k r

Math 2414 Activity 17 (Due with Final Exam) Determine convergence or divergence of the following alternating series: a 3 5 2n 1 2n 1

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

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

Section 11.5 Notes Page Partial Fraction Decomposition. . You will get: +. Therefore we come to the following: x x

Exploring the Rate of Convergence of Approximations to the Riemann Integral

Statistics for Financial Engineering Session 1: Linear Algebra Review March 18 th, 2006

( ) 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.

SUTCLIFFE S NOTES: CALCULUS 2 SWOKOWSKI S CHAPTER 11

Numerical Solution of Fuzzy Fredholm Integral Equations of the Second Kind using Bernstein Polynomials

Section IV.6: The Master Method and Applications

Error Analysis of the High Order Newton Cotes Formulas

Uncertainty Analysis for Uncorrelated Input Quantities and a Generalization

Section 11.8: Power Series

COMPOSITE TRAPEZOID RULE FOR THE RIEMANN-STIELTJES INTEGRAL AND ITS RICHARDSON EXTRAPOLATION FORMULA

Transcription:

Closed Newto-Cotes Itegrtio Jmes Keeslig This documet will discuss Newto-Cotes Itegrtio. Other methods of umericl itegrtio will be discussed i other posts. The other methods will iclude the Trpezoidl Rule, Romberg Itegrtio, d Gussi Itegrtio. 1 Priciple of Newto-Cotes Itegrtio We oly cover the Newto-Cotes closed formuls. The itervl of itegrtio [, b] is prtitioed by the poits. {, + b, + 2 b },..., b We estimte the itegrl of f(x) o this itervl by usig the Lgrge iterpoltig polyomil through the followig poits. { ( (, f()), + b (, f + b )) },..., (b, f(b)) The formul for the itegrl of this Lgrge polyomil simplifies to lier combitio of the vlues of f(x) t the poits { x i = + i b } i = 0, 1, 2,...,. I the ext sectio we give method for clcultig the coefficiets for this lier combitio. 2 The Newto-Cotes Closed Formul We wish to estimte the followig itegrl. b f(x)dx 1

We use the vlue of the fuctio t the followig poits { + i b i = 0, 1, 2,..., }. Our estimte will hve the followig form. b f(x)dx = A 0 f() + A 1 f ( + b ) ( + A 2 f + 2 b ) + + A f(b) So, wht vlues should we use for the coefficiets d how c we clculte them? There re severl pproches to this. It turs out tht these {A 0, A 1,..., A } coefficiets will be proportiol to the legth of the itervl, b. We use the itervl [0, ] d the poits {0, 1, 2,..., } d ormlize the coefficiets we get by dividig by the legth of the itervl,. By this mes we get ormlized set of coefficiets { 0, 1,..., }. We would the hve A i = (b ) i s our coefficiets for prticulr itervl [, b]. Our estimte of the itegrl will the be give by the followig. b f(x) dx (b ) i f i=0 ( + i b ) We ow compute the ormlized coefficiets { 0, 1,..., }. Let M be ( + 1) ( + 1) Vdermode mtrix. 1 0 0 0 1 1 1 1 M = Vdermode([0, 1, 2,..., ]) = 1 2 2 2 2.... 1 2 Let M T be the trspose of M. Let A be colum vector with etries i. Let B be colum vector with etries b i = The we get the mtrix equtio Solvig for A we get the followig. Our ormlized coefficiets re 1 A. 0 x i dx = i+1 i + 1. M T A = B. A = ( M T ) 1 B 2

Exmple 2.1. Let = 5. Determie { 0, 1, 2, 3, 4, 5 }. The Vdermode mtrix tht ws used i the bove lysis is the followig for = 5. 1 0 0 0 0 0 1 1 1 1 1 1 Vdermode([0, 1, 2, 3, 4, 5]) = 1 2 4 8 16 32 1 3 9 27 81 243 1 4 16 64 256 1024 1 5 25 125 625 3125 The ormlized coefficiets re the followig. { 19 288, 25 96, 25 144, 25 144, 25 96, 19 } 288 3 Altertive Method for Determiig the Normlized Coefficiets As stted t the begiig of this sectio, the Newto-Cotes estimte uses the itegrl of the Lgrge iterpoltig polyomil through the followig poits. ( {(, f()), + b (, f + b )),..., (b, f(b))} Cosider the poits { 0, 1, 2,..., 1}. The the ormlized coefficiet i is give by the followig itegrl formul. i = 1 0 L i (x)dx You c esily verify the umbers i Exmple 2.1 usig the progrm for the Lgrge iterpoltig polyomil d itegrtig. lgrge([0,1/5,2/5,3/5,4/5,1], [0,0,1,0,0,0]) The polyomil p give by the progrm is the Lgrge polyomil tht is oe t 2 5 d zero t the other poits. The coefficiet 2 is give by itegrtig p. We get the correct umber. 2 = 1 0 p dx = 25 144 3

4 TN-Ispire CX CAS Progrm for Closed Newto-Cotes Here is TN-Ispire CX CAS progrm for the closed Newto-Cotes ormlized coefficiets. The iput vrible is the umber i the bove lysis. The output is the colum vector coef whose compoets re the + 1 ormlized coefficiets. Figure 1: Screeshot of the progrm Newto-Cotes closed coefficiets with exmple 5 Progrm for the Newto-Cotes Itegrl Here is progrm tht computes the Newto-Cotes estimte of the itegrl b f(x) dx usig + 1 eqully spced poits i the itervl [, b]. The vrible f is the give fuctio with x s the ssumed vrible. The vribles d b re the edpoits of the itervl of itegrtio. The vrible is the umber of itervls ito which [, b] is subdivided. The output vrible cot is the estimte of the itegrl. 4

Figure 2: Screeshot of the progrm Newto-Cotes evlutio of the itegrl 6 Error Alysis of Newto-Cotes Oe would expect tht the error would grow smller s we use lrger i the Newto- Cotes method. It turs out tht this is ot correct. The reso is tht usig eqully spced poits, the Lgrge iterpoltig polyomil my give very bd pproximtio of the fuctio wy from the iterpoltio poits. It c be so bd tht the itegrls of these polyomils do ot coverge to the itegrl of the fuctio f(x) s. The clssic exmple is the followig fuctio over the itervl [ 4, 4]. f(x) = 1 1 + x 2 Here is exmple of how diverget the Lgrge polyomil c be i this cse. The 1 grph plots d the Lgrge polyomil for twety-oe eqully spced poits o the 1+x 2 itervl [ 4, 4]. 5

Figure 3: Plot of 1 1+x 2 d Divergig Lgrge Polyomil 6