Chapter 7 Numerical Differentiation and Integration

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

PROGRAM 8 consider a function y = f(x). In order to evaluate definite integral I = a ∫ b y dx = a ∫ b f(x) dx Divide the interval (b-a) of x into n equal.
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.
Computational Methods in Physics PHYS 3437
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Numerical Integration of Functions
NUMERICAL DIFFERENTIATION AND INTEGRATION
Today’s class Romberg integration Gauss quadrature Numerical Methods
Numerical Integration
Newton-Cotes Integration Formula
Lecture 3: Integration. Integration of discrete functions
Chapter 7 Differentiation and Integration
Chapter 6 Numerical Interpolation
Numerical Solution of Ordinary Differential Equation
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
CISE301_Topic71 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM (Term 101) Section 04 Read Chapter 21, Section 1 Read Chapter.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
19.5 Numeric Integration and Differentiation
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 21 Newton-Cotes Integration Formula.
Integrals 5.
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.
Today’s class Numerical Integration Newton-Cotes Numerical Methods
3. Numerical integration (Numerical quadrature) .
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.
CSE 330 : Numerical Methods
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.
Trapezoidal Rule of Integration
5. Integration 2.Quadrature as Box Counting 3.Algorithm: Trapezoid Rule 4.Algorithm: Simpson’s Rule 5.Integration Error 6.Algorithm: Gaussian Quadrature.
Chap. 11 Numerical Differentiation and Integration
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Numerical Integration
Sect. 4.1 Antiderivatives Sect. 4.2 Area Sect. 4.3 Riemann Sums/Definite Integrals Sect. 4.4 FTC and Average Value Sect. 4.5 Integration by Substitution.
Use of Newton-Cotes Formulas and eventual shortcomings Matlab code to increase number of segments with trapezoid, 1/3 and 3/8 rule.
Introduction to Numerical Analysis I
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.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
CSE 330 Numerical Methods Lecture 05 Chapter 5: Numerical Differentiation Md. Omar Faruqe
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.
CHAPTER 3 NUMERICAL METHODS
Chapter 7 Numerical Differentiation and Integration
Numerical Analysis Lecture 42.
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=
Chapter 22.
Numerical Analysis Lecture 27.
Chapter 23.
Chapter 7 Numerical Differentiation and Integration
Copyright © Cengage Learning. All rights reserved.
Composite Numerical Integration
Numerical Analysis Lecture 26.
Copyright © Cengage Learning. All rights reserved.
MATH 174: NUMERICAL ANALYSIS I
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
Numerical Computation and Optimization
Numerical Integration
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

NUMERICAL INTEGRATION Consider the definite integral

Then, if n = 2, the integration takes the form

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.

TRAPEZOIDAL RULE

SIMPSON’S 1/3 RULE

Simpson’s 3/8 rule is

with the global error E given by

ROMBERG’S INTEGRATION We have observed that the trapezoidal rule of integration of a definite integral is of O(h2), while that of Simpson’s 1/3 and 3/8 rules are of fourth-order accurate.

We can improve the accuracy of trapezoidal and Simpson’s rules using Richardson’s extrapolation procedure which is also called Romberg’s integration method.

For example, the error in trapezoidal rule of a definite integral

can be written in the form

By applying Richardson’s extrapolation procedure to trapezoidal rule, we obtain the following general formula

where m = 1, 2, … , with IT0 (h) = IT (h). For illustration, we consider the following example.

starting with trapezoidal rule, for the tabular values Example: Using Romberg’s integration method, find the value of starting with trapezoidal rule, for the tabular values

x 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 y = f(x) 1.543 1.669 1.811 1.971 2.151 2.352 2.577 2.828 3.107

Solution Taking

Let IT denote the integration by Trapezoidal rule, then for

Similarly for

Now, using Romberg’s formula , we have

Thus, after three steps, it is found that the value of the tabulated integral is 1.7671.

DOUBLE INTEGRATION To evaluate numerically a double integral of the form

over a rectangular region bounded by the lines x = a, x = b, y = c, y = d we shall employ either trapezoidal rule or Simpson’s rule, repeatedly With respect to one variable at a time.

Noting that, both the integrations are just a linear combination of values of the given function at different values of the independent variable, we divide the interval [a, b] into N equal

sub-intervals of size h, such that h = (b – a)/N; and the interval (c, d) into M equal sub-intervals of size k, so that k = (d – c)/M. Thus, we have

Thus, we can generate a table of values of the integrand, and the above procedure of integration is illustrated by considering a couple of examples.

Example Evaluate the double integral by using trapezoidal rule, with h = k = 0.25.

Solution Taking x = 1, 1. 25, 1. 50, 1. 75, 2. 0 and y = 1, 1. 25, 1 Solution Taking x = 1, 1.25, 1.50, 1.75, 2.0 and y = 1, 1.25, 1.50, 1.75, 2.0, the following table is generated using the integrand

x y 1.00 1.25 1.50 1.75 2.00 0.5 0.4444 0.4 0.3636 0.3333 0.3077 0.2857 0.307 0.2667 0.25

Keeping one variable say x fixed and varying the variable y, the application of trapezoidal rule to each row in the above table gives

and

Therefore,

By use of the last equations we get the required result as

Example :Evaluate by numerical double integration.

Solution Taking x = y = π/4, 3 π /8, π /2, we can generate the following table of the integrand

x y π/8 π/4 3π/8 π/2 0.0 0.6186 0.8409 0.9612 1.0

Keeping one variable as say x fixed and y as variable, and applying trapezoidal rule to each row of the above table, we get

Similarly, we get

and

Using these results, we finally obtain