Chapter 7 Numerical Differentiation and Integration

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

ES 240: Scientific and Engineering Computation. Chapter 17: Numerical IntegrationIntegration  Definition –Total area within a region –In mathematical.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.
Numerical Integration of Functions
NUMERICAL DIFFERENTIATION AND INTEGRATION
Chapter 7 Numerical Differentiation and Integration
Today’s class Romberg integration Gauss quadrature Numerical Methods
Numerical Integration
Chapter 18 Interpolation The Islamic University of Gaza
Newton-Cotes Integration Formula
CHAPTER 4 THE DEFINITE INTEGRAL.
Numerical Integration Formulas
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
CpE- 310B Engineering Computation and Simulation Dr. Manal Al-Bzoor
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 21 Newton-Cotes Integration Formula.
Numerical Integration In general, a numerical integration is the approximation of a definite integration by a “weighted” sum of function values at discretized.
Chapter 4 Numerical Differentiation and Integration 1/16 Given x 0, approximate f ’(x 0 ). h xfhxf xf h )()( lim)('    x0x0 x1x1 h x1x1 x0x0.
1 NUMERICAL INTEGRATION Motivation: Most such integrals cannot be evaluated explicitly. Many others it is often faster to integrate them numerically rather.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Lecture 19 - Numerical Integration CVEN 302 July 22, 2002.
1 Chapter 7 NUMERICAL INTEGRATION. 2 PRELIMINARIES We use numerical integration when the function f(x) may not be integrable in closed form or even in.
Numerical Differential & Integration. Introduction If a function f(x) is defined as an expression, its derivative or integral is determined using analytical.
Wicomico High School Mrs. J. A. Austin AP Calculus 1 AB Third Marking Term.
1 Numerical Integration Section Why Numerical Integration? Let’s say we want to evaluate the following definite integral:
Simpson Rule For Integration.
Integration Copyright © Cengage Learning. All rights reserved.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 22.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 6 - Chapter 21.
Numerical Integration
The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
Quadrature – Concepts (numerical integration) Don Allen.
Numerical Analysis Lecture 28. Chapter 7 Numerical Differentiation and Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
Trapezoidal Rule of Integration
CHAPTER 3 NUMERICAL METHODS
Air Force Admin College, Coimbatore
NUMERICAL DIFFERENTIATION Forward Difference Formula
TOPIC : 7 NUMERICAL METHOD.
Part 6 - Chapter 21.
Chapter 7 Numerical Differentiation and Integration
1. 2 What is Integration? Integration The process of measuring the area under a curve. Where: f(x) is the integrand a= lower limit of integration b=
Copyright © Cengage Learning. All rights reserved.
Numerical Analysis Lecture 25.
Numerical Integration Formulas
Chapter 22.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Analysis Lecture 27.
Interpolation.
TECHNIQUES OF INTEGRATION
Numerical Analysis Lecture 45.
Trapezoidal Rule of Integration
Trapezoidal Rule of Integration
Copyright © Cengage Learning. All rights reserved.
Numerical Analysis Lecture 23.
Numerical Integration:
Numerical Analysis Lecture 26.
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Integration
Numerical Computation and Optimization
Objectives Approximate a definite integral using the Trapezoidal Rule.
CPE 332 Computer Engineering Mathematics II
Copyright © Cengage Learning. All rights reserved.
Numerical Analysis Lecture 24.
Numerical Integration
Air Force Admin College, Coimbatore
Presentation transcript:

Chapter 7 Numerical Differentiation and Integration

INTRODUCTION DIFFERENTIATION USING DIFFERENCE OPREATORS DIFFERENTIATION USING INTERPOLATION RICHARDSON’S EXTRAPOLATION METHOD NUMERICAL INTEGRATION

NEWTON-COTES INTEGRATION FORMULAE THE TRAPEZOIDAL RULE ( COMPOSITE FORM ) SIMPSON’S RULES ROMBERG’S INTEGRATION DOUBLE INTEGRATION

Basic Issues in Integration What does an integral represent? = AREA = VOLUME

Basic definition of an integral:: = = sum of Height x Width

Objective: Evaluate I = without doing calculation analytically. When would we want to do this?

1. Integrand is too complicated to integrate analytically. 2. Integrand is not precisely defined by an equation,i.e., we are given a set of data (xi,ƒ(xi)), i=1,...,n. All methods are applicable to integrands that are functions. Some are applicable to tabulated values.

Key concepts: Integration is a summing process. Thus virtually all numerical approximations can be represented by I = =

where: x = weights xi = sampling points Et = truncation error 2. Closed & Open forms: Closed forms include the end points a & b in xi. Open forms do not.

NUMERICAL INTEGRATION Consider the definite integral

where f (x) is known either explicitly or is given as a table of values corresponding to some values of x, whether equispaced or not. Integration of such functions can be carried out using numerical techniques.

Of course, we assume that the function to be integrated is smooth and Riemann integrable in the interval of integration. In the following section, we shall develop Newton-Cotes

formulae based on interpolation which form the basis for trapezoidal rule and Simpson’s rule of numerical integration.

NEWTON-COTES INTERGRATION FORMULAE In this method, as in the case of numerical differentiation, we shall approximate the given tabulated function, by a polynomial Pn(x) and then integrate this polynomial.

Suppose, we are given the data (xi, yi), i = 0(1)n, at equispaced points with spacing h = xi+1 – xi, we can represent the polynomial by any standard interpolation polynomial. Suppose, we use Lagrangian approximation, then we have

with associated error given by

where and

Then, we obtain an equivalent integration formula to the definite integral in the form

where ck are the weighting coefficients given by

which are also called Cotes numbers which are also called Cotes numbers. Let the equispaced nodes are defined by

so that xk – x1 = ( k – 1)h etc. Now, we shall change the variable x to p such that, x = x0 + ph, then we can rewrite equations.

as

and

or

Also, noting that dx = h dp. The limits of the integral in Equation change from 0 to n and equation reduces to

The error in approximating the integral can be obtained from

Where x0 < ξ < xn. For illustration, consider the cases for n = 1, 2; For which we get

and

Thus, the integration formula is found to be

This equation represents the Trapezoidal rule in the interval [x0, x1] with error term. Geometrically, it represents an area between the curve y = f (x), the x-axis and the ordinates erected at x = x0 ( = a) and x = x1 as shown in the figure.

yn-1 y3 y2 y1 y0 yn xn = b xn-1 x3 x2 x1 x0 = a X O Y (x2, y2) (x1, y1) (x0, y0) y = f(x)

This area is approximated by the trapezium formed by replacing the curve with its secant line drawn between the end points (x0, y0) and (x1, y1).

For n =2, We have

and the error term is given by

Thus, for n = 2, the integration takes the form

This is known as Simpson’s 1/3 rule This is known as Simpson’s 1/3 rule. Geometrically, this equation represents the area between the curve y = f (x), the x-axis and the ordinates at x = x0 and x2 after replacing the arc of the curve between (x0, y0) and (x2, y2) by an arc of a quadratic polynomial as in the figure

xn = b xn-1 x3 x2 x1 x0 = a X O Y (x2, y2) (x0, y0) y2 y1 y0 y = f(x)

Thus Simpson’s 1/3 rule is based on fitting three points with a quadratic. Similarly, for n = 3, the integration is found to be

This is known as Simpson’s 3/8 rule, which is based on fitting four points by a cubic. Still higher order Newton-Cotes integration formulae can be derived for large values of n.

But for all practical purposes, Simpson’s 1/3 rule is found to be sufficiently accurate.