Numerical Analysis Lecture 27.

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.
Computational Methods in Physics PHYS 3437
MATHEMATICAL METHODS.
CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
EE3561_Unit 6(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 6 Numerical Differentiation Dr. Mujahed AlDhaifallah ( Term 342)
NUMERICAL DIFFERENTIATION AND INTEGRATION
Chapter 7 Numerical Differentiation and Integration
Today’s class Romberg integration Gauss quadrature Numerical Methods
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
Lecture 18 - Numerical Differentiation
Numerical Integration
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
1 Chapter 6 NUMERICAL DIFFERENTIATION. 2 When we have to differentiate a function given by a set of tabulated values or when a complicated function is.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 27 Numerical Integration & Differentiation.
Numerical Solution of Ordinary Differential Equation
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
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 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.
Simpson Rule For Integration.
Lecture 22 - Exam 2 Review CVEN 302 July 29, 2002.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 22.
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
Engineering Analysis – Computational Fluid Dynamics –
Chap. 11 Numerical Differentiation and Integration
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Lecture 40 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
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.
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
CSE 330 Numerical Methods Lecture 05 Chapter 5: Numerical Differentiation Md. Omar Faruqe
Quadrature – Concepts (numerical integration) Don Allen.
CPE 332 Computer Engineering Mathematics II Part III, Chapter 11 Numerical Differentiation and Integration Numerical Differentiation and Integration.
Numerical Analysis Lecture 28. Chapter 7 Numerical Differentiation and Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 20 Numerical Integration of Functions.
DIFFERENTIAL EQUATIONS
Chapter 7 Numerical Differentiation and Integration
Numerical Analysis Lecture 42.
Numerical Analysis Lecture 25.
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Chapter 22.
NUMERICAL DIFFERENTIATION AND INTEGRATION
NUMERICAL DIFFERENTIATION AND INTEGRATION
CSE Differentiation Roger Crawfis.
Chapter 23.
Numerical Analysis Lecture 45.
Chapter 7 Numerical Differentiation and Integration
Numerical Analysis Lecture 23.
POLYNOMIAL INTERPOLATION
Numerical Integration:
Numerical Analysis Lecture 26.
MATH 2140 Numerical Methods
Numerical Analysis Lecture 19.
Numerical Analysis Lecture 37.
MATH 174: NUMERICAL ANALYSIS I
APPROXIMATE INTEGRATION
Numerical Analysis Lecture 21.
APPROXIMATE INTEGRATION
CPE 332 Computer Engineering Mathematics II
Numerical Analysis Lecture11.
Numerical Analysis Lecture 24.
The structure and evolution of stars
Numerical Integration
Presentation transcript:

Numerical Analysis Lecture 27

Chapter 7 Numerical Differentiation and Integration

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

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

DIFFERENTIATION USING DIFFERENCE OPERATORS

Introduction Consider a function of single variable y = f (x). If the function is known and simple, we can easily obtain its derivative (s) or can evaluate its definite integral

However, if we do not know the function as such or the function is complicated and is given in a tabular form at a set of points x0,x1,…,xn, we use only numerical methods for differentiation or integration of the given function.

We shall discuss numerical approximation to derivatives of functions of two or more variables in the lectures to follow when we shall talk about partial differential equations.

In what follows, we shall derive and illustrate various formulae for numerical differentiation of a function of a single variable based on finite difference operators and interpolation.

Subsequently, we shall develop Newton-Cotes formulae and related trapezoidal rule and Simpson’s rule for numerical integration of a function.

DIFFERENTIATION USING DIFFERENCE OPERATORS

We assume that the function y = f (x) is given for the values of the independent variable x = x0 + ph, for p = 0, 1, 2, … and so on. To find the derivatives of such a tabular function, we proceed as follows

Case I: Using forward difference operator ∆ and combining equations and

Remember the Differential operator, D is known to represents the property

This would mean that in terms of ∆ :

Therefore,

In other words,

Also, we can easily verify

Case II: Using backward difference operator , we have On expansion, we have

we can also verify that

Hence,

and

The formulae for Dy0and D2y0 are useful to calculate the first and second derivatives at the beginning of the table of values in terms of forward differences; while formulae for y’n and y’’n

are used to compute the first and second derivatives near the end points of the table, in terms of backward differences. Similar formulae can also be derived for computing higher order derivatives.

Case III: Using central difference operator δ and following the definitions of differential operator D, central difference operator δ and the shift operator E, we have

Therefore, we have But,

Using the last two equations we get That is,

Therefore, Also

Hence

For calculating the second derivative at an interior tabular point, we use the equation

while for computing the first derivative at an interior tabular point, we in general use another convenient form for D, which is derived as follows. Multiply the right hand side of

which is unity and noting the Binomial expansion by which is unity and noting the Binomial expansion

We get

On simplification, we obtain Therefore the equation can also be written in another useful form as

The last two equations for y” and y’ respectively are known as Stirling’s formulae for computing the derivatives of a tabular function. Similar formulae can be derived for computing higher order derivatives of a tabular function.

The equation for y’ can also be written as

In order to illustrate the use of formulae derived so far, for computing the derivatives of a tabulated function, we shall consider some examples in the next lecture.

Numerical Analysis Lecture 27