MA2213 Lecture 4 Numerical Integration. Introduction Definition is the limit of Riemann sums I(f)

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.
MANE 4240 & CIVL 4240 Introduction to Finite Elements Numerical Integration in 1D Prof. Suvranu De.
MECH300H Introduction to Finite Element Methods Lecture 2 Review.
CHAPTER 4 THE DEFINITE INTEGRAL.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 32.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
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.
Index FAQ Numerical Approximations of Definite Integrals Riemann Sums Numerical Approximation of Definite Integrals Formulae for Approximations Properties.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc.
5.2 Definite Integrals Quick Review Quick Review Solutions.
Applied Discrete Mathematics Week 9: Relations
Integration. Problem: An experiment has measured the number of particles entering a counter per unit time dN(t)/dt, as a function of time. The problem.
Simpson’s 1/3 rd Rule of Integration. What is Integration? Integration The process of measuring the area under a.
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.
3. Numerical integration (Numerical quadrature) .
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Techniques of Integration
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.
4.6 Numerical Integration -Trapezoidal Rule -Simpson’s Rule
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.
Chapters 5 and 6: Numerical Integration
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
Wicomico High School Mrs. J. A. Austin AP Calculus 1 AB Third Marking Term.
1 Preliminaries Precalculus Review I Precalculus Review II
MA2213 Lecture 5 Linear Equations (Direct Solvers)
 Finding area of polygonal regions can be accomplished using area formulas for rectangles and triangles.  Finding area bounded by a curve is more challenging.
The Integral chapter 5 The Indefinite Integral Substitution The Definite Integral As a Sum The Definite Integral As Area The Definite Integral: The Fundamental.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Integration Copyright © Cengage Learning. All rights reserved.
1 §12.4 The Definite Integral The student will learn about the area under a curve defining the definite integral.
Learning Objectives for Section 13.4 The Definite Integral
Chapter 5-The Integral Calculus, 2ed, by Blank & Krantz, Copyright 2011 by John Wiley & Sons, Inc, All Rights Reserved.
Quadrature rules 1Michael Sokolov / Numerical Methods for Chemical Engineers / Numerical Quadrature Michael Sokolov ETH Zurich, Institut für Chemie- und.
The previous mathematics courses your have studied dealt with finite solutions to a given problem or problems. Calculus deals more with continuous mathematics.
Section 5.9 Approximate Integration Practice HW from Stewart Textbook (not to hand in) p. 421 # 3 – 15 odd.
CHAPTER 3 NUMERICAL METHODS
Antidifferentiation: The Indefinite Intergral Chapter Five.
Lecture III Indefinite integral. Definite integral.
Chapter 5 Integration. Indefinite Integral or Antiderivative.
MA4229 Lectures 9, 10 Weeks 5-7 Sept 7 - Oct 1, 2010 Chapter 7 The theory of minimax approximation Chapter 8 The exchange algorithm.
Warm up Problems More With Integrals It can be helpful to guess and adjust Ex.
The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.
Chapter 6 Integration Section 4 The Definite Integral.
Chapters 5 and 6: Numerical Integration Code development trapezoid rule Simpson’s rule Gauss quadrature Laguerre quadrature Analysis changing the variable.
When you see… Find the zeros You think…. To find the zeros...
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
MA2213 Lecture 9 Nonlinear Systems. Midterm Test Results.
Answers for Review Questions for Lectures 1-4. Review Lectures 1-4 Problems Question 2. Derive a closed form for the estimate of the solution of the equation.
Chapter 4, Integration of Functions
NUMERICAL DIFFERENTIATION Forward Difference Formula
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 INTEGRATION
Copyright © Cengage Learning. All rights reserved.
4.3 Elements of Numerical Integration
Elements of Numerical Integration
Copyright © Cengage Learning. All rights reserved.
MATH-321 In One Slide MATH-321 & MATLAB Command.
Numerical Computation and Optimization
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Integration
Objectives Approximate a definite integral using the Trapezoidal Rule.
Numerical Integration
Elements of Numerical Integration
Presentation transcript:

MA2213 Lecture 4 Numerical Integration

Introduction Definition is the limit of Riemann sums I(f) is called an integral and the process of calculating it is called integration – it has an enormous range of applications

Method of Exhaustion was used in ancient times to compute areas and volumes of standard geometric objects Example: area of region between the x-axis, the graph of a function y = f(x), and the vertical lines x = a, and x = b, is given by

Fundamental Theorem of Calculus (Newton and Leibniz) implies that where F is any antiderivative of f, this means that Unfortunately, not all integrands f have ‘closed form’ antiderivatives

Left Riemann Sum [f(x 0 ) + f(x 1 ) f(x n-1 )] *Delta x

Right Riemann Sum [f(x 1 ) + f(x 2 ) f(x n )] * Delta x Midpoint Rule Animation

Midpoint Rule [f(m 1 ) + f(m 2 ) f(m n )] * Delta x Animation

Trapezoidal Rule The trapezoid approximation associated with a uniform partition a = x0 < x1 <... < xn = b is given by.5*[f(x0) + 2f(x1) f(xn-1) + f(xn)]*Delta x

Review Questions How can the trapezoidal rule be obtained from the left and right Riemann sums ? How can the trapezoidal rule be obtained from the midpoint rule ? How can the trapezoidal rule be obtained by approximating the integral of a f by the integral of an interpolant of f ?

Simpson’s Rule is obtained by computing the integral of a quadratic interpolating polynomial where

Simpson’s Rule in general divides the interval [a,b] into equal length intervals and applies the previous formula to each interval to obtain (for positive even integers n) whereand

Quadrature is based on the exact integration of polynomials of increasing degree, [a,b] is not subdivided Theorem 1 If nodes whenever are given then there exist unique weights such that in is a polynomial with degree

Quadrature 1 st Proof (Theorem 1) The quadrature equations have a nonsingular coefficient matrix (why)? 2 nd Proof Question What are?

Gaussian Quadrature is based on strategic choice of nodes (only a genius could make such a choice) so that when weightsare chosen with then also (as if by MAGIC) for polynomials f with degree We seem to get n extra equations for free ! Let us examine cases for n = 1 and for n = 2.

Gaussian Quadrature Case n = 1 for polynomials f of as large degree as possible. is to hold For f(x) = 1 Question Why is this quadrature formula exact for ALL linear polynomials ? For f(x) = x

Gaussian Quadrature Case n = 2 is to hold for the polynomials f(x) = This yields the system of four nonlinear equations whose solution is

Gaussian Quadrature Example Not bad for an estimate based on 2 nodes ! Question Why is where and why is this useful ?

Gaussian Quadrature Case n > 2 Findsuch that for Gauss solved this using orthogonal polynomials. Error Bounds Trapezoidal Simpson Gauss minimax error

Orthogonal Polynomials Definition A sequence (finite or infinite) of polynomials is called orthogonal over an interval [a,b] if Question 1. Show that condition 1 implies that (called the scalar product of the 2 functions) is a basis for { poly. deg < k}

Orthogonal Polynomials Question 2. Show that conditions 1 and 2 imply for polynomials Theorem 2. with deg hasdistinct roots in Proof Assume thathas only m < k distinct roots with odd multiplicity in Define Sincedoes not change sign on This contradicts Question 2.

Gaussian Quadrature Theorem 2. If zeros ofwhere are chosen to be the and are orthogonal by Thm 1 so that whenever f is a poly. deg < n are chosen then this same equation holds if f has deg. < 2n polynomials over Proof Divide to obtainwhere g and h are polynomials with Then

Homework Due at End of Lab 2 Question 1. for the function Compute the least squares approximation over the interval [-1,1] from the set S of functions that are continuous on [-1,1] and linear on [-1,0] and on [0,1]. Express your solution as a linear combination of the basis functions for S described in the 1 st vufoil in Lecture 3. The coefficients of this linear combination are solutions of a system of 3 linear equation whose matrix of coefficients is the Gramm matrix that you computed for Question 4 in the previous Homework. Write a MATLAB program in an MATLAB.m-file to solve this linear system of equations.