MATH 2140 Numerical Methods

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Today’s class Romberg integration Gauss quadrature Numerical Methods
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW III.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 22 Integration of Equations.
Numerical Integration Lecture (I)1
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
Quadrature Greg Beckham. Quadrature Numerical Integration Goal is to obtain the integral with as few computations of the integrand as possible.
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.
Numerical Integration In general, a numerical integration is the approximation of a definite integration by a “weighted” sum of function values at discretized.
7.7 Approximate Integration
1 Numerical Integration Dr. Asaf Varol
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
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.
Integration. Indefinite Integral Suppose we know that a graph has gradient –2, what is the equation of the graph? There are many possible equations for.
D MANCHE Finding the area under curves:  There are many mathematical applications which require finding the area under a curve.  The area “under”
Lecture 19 – Numerical Integration 1 Area under curve led to Riemann sum which led to FTC. But not every function has a closed-form antiderivative.
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
1 Numerical Integration Section Why Numerical Integration? Let’s say we want to evaluate the following definite integral:
MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)
5.1.  When we use the midpoint rule or trapezoid rule we can actually calculate the maximum error in the calculation to get an idea how much we are off.
MECH345 Introduction to Finite Element Methods Chapter 1 Numerical Methods - Introduction.
In this section, we will investigate how to estimate the value of a definite integral when geometry fails us. We will also construct the formal definition.
Section 5.9 Approximate Integration Practice HW from Stewart Textbook (not to hand in) p. 421 # 3 – 15 odd.
6. Numerical Integration 6.1 Definition of numerical integration. 6.2 Reasons to use numerical integration. 6.3 Formulas of numerical Integration. 6.4.
5.5 Numerical Integration. concave down concave up concave down concave up concave down.
SECTION 4-2-B More area approximations. Approximating Area using the midpoints of rectangles.
Numerical integration is the process of approximating a definite integral using well-chosen sums of function values. It is needed when we cannot find.
2/28/2016 Perkins AP Calculus AB Day 15 Section 4.6.
Clicker Question 1 What is ? (Hint: u-sub) – A. ln(x – 2) + C – B. x – x 2 + C – C. x + ln(x – 2) + C – D. x + 2 ln(x – 2) + C – E. 1 / (x – 2) 2 + C.
Approximating Antiderivatives. Can we integrate all continuous functions? Most of the functions that we have been dealing with are what are called elementary.
Numerical Integration using Trapezoidal Rule
Numerical Integration
5.5 Numerical Integration
CHEM-E7130 Process Modeling Lecture 6
Numerical Integration
NUMERICAL DIFFERENTIATION Forward Difference Formula
5.5 The Trapezoid Rule.
Lecture 19 – Numerical Integration
Part 6 - Chapter 21.
Chapter 7 Numerical Differentiation and Integration
Section 4-2-B More approximations of area using
NUMERICAL INTEGRATION
Copyright © Cengage Learning. All rights reserved.
Integration with Unequal Segments
NUMERICAL DIFFERENTIATION AND INTEGRATION
Integration & Area Under a Curve
NUMERICAL DIFFERENTIATION AND INTEGRATION
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
Chapter 7 Numerical Differentiation and Integration
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
Using integrals to find area works extremely well as long as we can find the antiderivative of the function. Sometimes, the function is too complicated.
Warm-up 2/4 Find the AVERAGE VALUE of
MATH 2140 Numerical Methods
SKTN 2393 Numerical Methods for Nuclear Engineers
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
MATH 2140 Numerical Methods
Numerical Integration
Presentation transcript:

MATH 2140 Numerical Methods Faculty of Engineering Mechanical Engineering Department MATH 2140 Numerical Methods Instructor: Dr. Mohamed El-Shazly Associate Prof. of Mechanical Design and Tribology melshazly@ksu.edu.sa Office: F072

Numerical Integration

BACKGROUND Integration is frequently encountered when solving problems and calculating quantities in engineering and science. Integration and integrals are also used when solving differential equations. One of the simplest examples for the application of integration is the calculation of the length of a curve (Fig. 9-1 ).

For example, the total rate of heat flow through a cross section of width W and height ( b - a) is related to the local heat flux via an integral (see Fig. 9-2): where q" is the heat flux and Q is the heat flow rate. Experimental measurements may yield discrete values for the heat flux along the surface as a function of y, but the quantity to be determined may be the total heat flow rate. In this instance, the integrand may be specified as a known set of values for each value of y.

The need for numerical integration The integrand can be an analytical function or a set of discrete points (tabulated data). When the integrand is a mathematical expression for which the antiderivative can be found easily, the value of the definite integral can be determined analytically. Numerical integration is needed when analytical integration is difficult or not possible, and when the integrand is given as a set of discrete points.

Overview of Approaches in Numerical Integration In all cases the numerical integration is carried out by using a set of discrete points for the integrand. When the integrand is an analytical function, the location of the points within the interval [a, b] can be defined by the user or is defined by the integration method. When the integrand is a given set of tabulated points (like data measured in an experiment), the location of the points is fixed and cannot be changed.

Closed and open methods In closed integration methods, the endpoints of the interval (and the integrand) are used in the formula that estimates the value of the integral. In open integration methods, the interval of integration extends beyond the range of the endpoints that are actually used for calculating the value of the integral (Fig. 9-6). The trapezoidal (Section 9.3) and Simpson's (Section 9.4) methods are closed methods, whereas the midpoint method (Section 9.2) and Gauss quadrature (Section 9.5) are open methods. There are various methods for calculating the value of an integral from the set of discrete points of the integrand. Most commonly, it is one by using Newton-Cotes integration formulas.

RECTANGLE AND MIDPOINT METHODS Rectangle method

Composite rectangle method

Midpoint method

Composite midpoint method

TRAPEZOIDAL METHOD

Composite Trapezoidal Method

Example 1: Single Application of the Trapezoidal Rule

Example 2: Multiple-Application Trapezoidal Rule

Example: 3