Integration For a function f, The “integral of f from a to b” is the area under the graph of the function. If f is continuous, then the area is well defined,

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

A Riemann sum is a method for approximating the total area underneath a curve on a graph. This method is also known as taking an integral. There are 3.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
CHAPTER 4 THE DEFINITE INTEGRAL.
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.
Definition: the definite integral of f from a to b is provided that this limit exists. If it does exist, we say that is f integrable on [a,b] Sec 5.2:
Numerical Integration UC Berkeley Fall 2004, E77 Copyright 2005, Andy Packard. This work is licensed under the.
Simpson’s 1/3 rd Rule of Integration. What is Integration? Integration The process of measuring the area under a.
Lecture 28: Comparison of different numerical integrators 1.Adaptive Simpson’s and Trapezoid Rules 2. Romberg Integration 3. Adaptive Gaussian Quadrature.
1 NUMERICAL INTEGRATION Motivation: Most such integrals cannot be evaluated explicitly. Many others it is often faster to integrate them numerically rather.
Numerical Integration
Numerical Integration Approximating Definite Integral.
Automatic Integration
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.
1 Simpson’s 1/3 rd Rule of Integration. 2 What is Integration? Integration The process of measuring the area under a curve. Where: f(x) is the integrand.
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
4.6 Numerical Integration. The Trapezoidal Rule One method to approximate a definite integral is to use n trapezoids.
1 Numerical Integration Section Why Numerical Integration? Let’s say we want to evaluate the following definite integral:
1 Trapezoidal Rule of Integration. What is Integration Integration: The process of measuring the area under a function.
 Finding area of polygonal regions can be accomplished using area formulas for rectangles and triangles.  Finding area bounded by a curve is more challenging.
Section 7.2a Area between curves.
5.c – The Fundamental Theorem of Calculus and Definite Integrals.
Homework questions thus far??? Section 4.10? 5.1? 5.2?
EE3561_Unit 7Al-Dhaifallah EE 3561 : Computational Methods Unit 7 Numerical Integration Dr. Mujahed AlDhaifallah ( Term 342)
Integration Copyright © Cengage Learning. All rights reserved.
Section 15.3 Area and Definite Integral
In this section, we will introduce the definite integral and begin looking at what it represents and how to calculate its value.
Trapezoidal Rule of Integration
數值方法 2008, Applied Mathematics NDHU 1 Numerical Integration.
Double Integrals over Rectangles
Section 5.9 Approximate Integration Practice HW from Stewart Textbook (not to hand in) p. 421 # 3 – 15 odd.
CHAPTER 3 NUMERICAL METHODS
5.7 Inverse Trigonometric Functions: Integration and Completing the Square.
Numerical Methods Root Finding 4. Fixed-Point Iteration---- Successive Approximation Many problems also take on the specialized form: g(x)=x, where we.
1. Does: ? 2. What is: ? Think about:. Finding Area between a Function & the x-axis Chapters 5.1 & 5.2 January 25, 2007.
4 Numerical Methods Root Finding.
SECTION 4-2 (A) Application of the Integral. 1) The graph on the right, is of the equation How would you find the area of the shaded region?
Section 5.6: Approximating Sums Suppose we want to compute the signed area of a region bounded by the graph of a function from x = a to x = b.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
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.
Essential Question: How is a definite integral related to area ?
Approximating Antiderivatives. Can we integrate all continuous functions? Most of the functions that we have been dealing with are what are called elementary.
Quadrature – Concepts (numerical integration) Don Allen.
[5-4] Riemann Sums and the Definition of Definite Integral Yiwei Gong Cathy Shin.
4-2 AREA AP CALCULUS – MS. BATTAGLIA. SIGMA NOTATION The sum of n terms a 1, a 2, a 3,…, a n is written as where i is the index of summation, a i is the.
Calculus 4-R Unit 4 Integration Review Problems. Evaluate 6 1.
Application of the Integral
Numerical Integration
Air Force Admin College, Coimbatore
Use the Midpoint Rule to approximate the given integral with the specified value of n. Compare your result to the actual value and find the error in the.
Clicker Question 1 What is ? A. x tan(x2) + C
Midpoint and Trapezoidal Rules
NUMERICAL 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=
Riemann Sums Approximate area using rectangles
Integration Review Problems
Find the area under the curve {image} from x = 1 to x = t
Copyright © Cengage Learning. All rights reserved.
Ch. 6 – The Definite Integral
Copyright © Cengage Learning. All rights reserved.
Numerical Computation and Optimization
Numerical Integration
Numerical Computation and Optimization
Objectives Approximate a definite integral using the Trapezoidal Rule.
Inverse Trigonometric Functions: Integration
Jay James Mike Norton Stephen Nesemann Kaitlyn Richardson
Numerical Integration
Air Force Admin College, Coimbatore
Presentation transcript:

Integration For a function f, The “integral of f from a to b” is the area under the graph of the function. If f is continuous, then the area is well defined, as the common limit of upper and lower sums. The integral is denoted a b x graph of f(x)

Numerical Integration: Trapezoid a b x graph of f(x) a b x approximate this region with this trapezoid

Composite Trapezoid a b x graph of f(x) Apply “ trapezoid ” approximation to k subdivisions of [a b] a b x graph of f(x) “ trapezoid ” approximation with 3 subdivisions of [a b]

Composite Trapezoid a b x graph of f(x) “ trapezoid ” approximation with 3 subdivisions of [a b] h Let h=(b-a)/3. The sum of all the approximations is

Simpson’s Rule: Suppose f(x)=x Let a = 2 and b = 8 ½ (64-4) = 30 1/6(6)(2 + 4*5 +8) = 30

Derivation of Simpson’s Rule: Suppose f(x)=x 3

Simpson’s Rule: Derivation Put all of those together, along with Hence: If f is any cubic polynomial, then This is the basis for Simpson ’ s rule.

Simpson’s Rule For any function f, the Simpson ’ s approximation to is Evaluate the function at the endpoints and in the middle

Composite Simpson’s Rule a b x graph of f(x) Simpson on 3 subdivisions of [a b] h h=(b-a)/3 Add them up. Total of 7 function evaluations.

Numerical Integration: Ad-Hoc stopping criteria Pick a method (trapezoid, or Simpson’s). Set a stopping tolerance TOL. Pick k, an initial number of subdivisions Iterate as below –Apply composite method using k divisions –Apply composite method using 2k divisions –If answers are within TOL, stop, and return the 2k division answer –If answers are not within TOL, increase k and repeat..

Adaptive Stepsize Only use small h (the “stepsize”) where the convergence demands it. Recursive implementation is straightforward. function I = adr(fh,a,b,tol) Compute I1 using 1 subdivision Compute I2 using 2 subdivisions If the answers are within tol, I = I2; Else m = (a+b)/2; ILeft = adr(fh,a,m,tol/2); IRight = adr(fh,m,b,tol/2); I = ILeft + IRight; end