Numerical approximation of definite integrals. Calculus and Differential Equations I. Overestimates and underestimates

Similar documents
Example A rectangular box without lid is to be made from a square cardboard of sides 18 cm by cutting equal squares from each corner and then folding

g(y(a), y(b)) = o, B a y(a)+b b y(b)=c, Boundary Value Problems Lecture Notes to Accompany

Review Problems for the Final of Math 121, Fall 2014

CHAPTER 11 Numerical Differentiation and Integration

Polynomial Functions. Polynomial functions in one variable can be written in expanded form as ( )

Graphs on Logarithmic and Semilogarithmic Paper

1. Find the zeros Find roots. Set function = 0, factor or use quadratic equation if quadratic, graph to find zeros on calculator

5.2. LINE INTEGRALS 265. Let us quickly review the kind of integrals we have studied so far before we introduce a new one.

Review guide for the final exam in Math 233

Factoring Polynomials

Integration by Substitution

The Definite Integral

Lecture 5. Inner Product

QUADRATURE METHODS. July 19, Kenneth L. Judd. Hoover Institution

MATH 150 HOMEWORK 4 SOLUTIONS

SPECIAL PRODUCTS AND FACTORIZATION

Integration. 148 Chapter 7 Integration

All pay auctions with certain and uncertain prizes a comment

4.11 Inner Product Spaces

Binary Representation of Numbers Autar Kaw

Lecture 3 Gaussian Probability Distribution

Warm-up for Differential Calculus

Babylonian Method of Computing the Square Root: Justifications Based on Fuzzy Techniques and on Computational Complexity

Basic Analysis of Autarky and Free Trade Models

Use Geometry Expressions to create a more complex locus of points. Find evidence for equivalence using Geometry Expressions.

How To Understand The Theory Of Inequlities

MODULE 3. 0, y = 0 for all y

15.6. The mean value and the root-mean-square value of a function. Introduction. Prerequisites. Learning Outcomes. Learning Style

Treatment Spring Late Summer Fall Mean = 1.33 Mean = 4.88 Mean = 3.

4 Approximations. 4.1 Background. D. Levy

6 Energy Methods And The Energy of Waves MATH 22C

Lectures 8 and 9 1 Rectangular waveguides

Second Term MAT2060B 1. Supplementary Notes 3 Interchange of Differentiation and Integration

and thus, they are similar. If k = 3 then the Jordan form of both matrices is

LINEAR TRANSFORMATIONS AND THEIR REPRESENTING MATRICES

RIGHT TRIANGLES AND THE PYTHAGOREAN TRIPLETS

Exponential and Logarithmic Functions

e.g. f(x) = x domain x 0 (cannot find the square root of negative values)

Experiment 6: Friction

AREA OF A SURFACE OF REVOLUTION

Math 135 Circles and Completing the Square Examples

Reasoning to Solve Equations and Inequalities

Euler Euler Everywhere Using the Euler-Lagrange Equation to Solve Calculus of Variation Problems

The invention of line integrals is motivated by solving problems in fluid flow, forces, electricity and magnetism.

Applications to Physics and Engineering

3 The Utility Maximization Problem

9 CONTINUOUS DISTRIBUTIONS

6.2 Volumes of Revolution: The Disk Method

The Velocity Factor of an Insulated Two-Wire Transmission Line

Distributions. (corresponding to the cumulative distribution function for the discrete case).

The Riemann Integral. Chapter 1

Module Summary Sheets. C3, Methods for Advanced Mathematics (Version B reference to new book) Topic 2: Natural Logarithms and Exponentials

Operations with Polynomials

Exam 1 Study Guide. Differentiation and Anti-differentiation Rules from Calculus I

Example 27.1 Draw a Venn diagram to show the relationship between counting numbers, whole numbers, integers, and rational numbers.

Introduction to Integration Part 2: The Definite Integral

Section 5-4 Trigonometric Functions

Numerical Methods of Approximating Definite Integrals

PROF. BOYAN KOSTADINOV NEW YORK CITY COLLEGE OF TECHNOLOGY, CUNY

Or more simply put, when adding or subtracting quantities, their uncertainties add.

DIFFERENTIATING UNDER THE INTEGRAL SIGN

Harvard College. Math 21a: Multivariable Calculus Formula and Theorem Review

PROBLEMS 13 - APPLICATIONS OF DERIVATIVES Page 1

Online Multicommodity Routing with Time Windows

M5A42 APPLIED STOCHASTIC PROCESSES PROBLEM SHEET 1 SOLUTIONS Term

CUBIC-FOOT VOLUME OF A LOG

6.5 - Areas of Surfaces of Revolution and the Theorems of Pappus

AA1H Calculus Notes Math1115, Honours John Hutchinson

DIFFERENTIAL FORMS AND INTEGRATION

On the Robustness of Most Probable Explanations

PHY 222 Lab 8 MOTION OF ELECTRONS IN ELECTRIC AND MAGNETIC FIELDS

FUNCTIONS AND EQUATIONS. xεs. The simplest way to represent a set is by listing its members. We use the notation

SUBSTITUTION I.. f(ax + b)

Helicopter Theme and Variations

Real Analysis and Multivariable Calculus: Graduate Level Problems and Solutions. Igor Yanovsky

19. The Fermat-Euler Prime Number Theorem

INTERCHANGING TWO LIMITS. Zoran Kadelburg and Milosav M. Marjanović

Physics 43 Homework Set 9 Chapter 40 Key

EQUATIONS OF LINES AND PLANES

Answer, Key Homework 10 David McIntyre 1

P.3 Polynomials and Factoring. P.3 an 1. Polynomial STUDY TIP. Example 1 Writing Polynomials in Standard Form. What you should learn

Karlstad University. Division for Engineering Science, Physics and Mathematics. Yury V. Shestopalov and Yury G. Smirnov. Integral Equations

CURVES ANDRÉ NEVES. that is, the curve α has finite length. v = p q p q. a i.e., the curve of smallest length connecting p to q is a straight line.

Econ 4721 Money and Banking Problem Set 2 Answer Key

TITLE THE PRINCIPLES OF COIN-TAP METHOD OF NON-DESTRUCTIVE TESTING

Derivatives and Rates of Change

Radius of the Earth - Radii Used in Geodesy James R. Clynch February 2006

5 The Integral CHAPTER. 5.1 Approximating and Computing Area. Preliminary Questions. Exercises

Module 2. Analysis of Statically Indeterminate Structures by the Matrix Force Method. Version 2 CE IIT, Kharagpur

ORBITAL MANEUVERS USING LOW-THRUST

Linear Equations in Two Variables

ITS HISTORY AND APPLICATIONS

Mathematics. Vectors. hsn.uk.net. Higher. Contents. Vectors 128 HSN23100

Lower Bound for Envy-Free and Truthful Makespan Approximation on Related Machines

c. Values in statements are broken down by fiscal years; many projects are

PHY 140A: Solid State Physics. Solution to Homework #2

Bayesian Updating with Continuous Priors Class 13, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

Physics 6010, Fall 2010 Symmetries and Conservation Laws: Energy, Momentum and Angular Momentum Relevant Sections in Text: 2.6, 2.

Optiml Control of Seril, Multi-Echelon Inventory (E&I) & Mixed Erlng demnds

Project 6 Aircraft static stability and control

Transcription:

Numericl pproximtion of definite integrls You should lredy be fmilir with the left nd right-hnd Riemnn sums used in the definition of the definite integrl: MATH 50 A I f (x) dx = lim f ( ) x = lim n n where x =(b )/n nd = + i x. n f ( ) x, The left nd right rules respectively pproximte the integrl I with LEFT(n) nd RIGHT(n), where i=1 LEFT(n) = f ( ) x, RIGHT(n) = n f ( ) x, i=1 with x nd defined s bove. Link to Geogebr Numericl pproximtion of definite integrls (continued) The midpoint rule consists in pproximting the definite integrl by evluting f t the midpoint between nd +1 : ( ) xi + +1 MID(n) = f x. The trpezoid rule pproximtes the re under the grph of f between nd +1 with the re of the corresponding trpezoid: ( ) f (xi )+f(+1 ) TRAP(n) = x. From the bove formul, one cn see tht TRAP(n) = 1 (LEFT(n)+RIGHT(n)). Overestimtes nd underestimtes 1 Assume tht f is incresing between nd b nd tht we pproximte I = f (x) dx with LEFT(n). Which of the following sttements is correct? 1 LEFT(n) is n underestimte LEFT(n) is n overestimte 3 LEFT(n) isexct If f is incresing on [, b], then LEFT(n) f (x) dx RIGHT(n). 3 Similrly, if f is decresing on [, b], then RIGHT(n) f (x) dx LEFT(n).

Overestimtes nd underestimtes (continued) In order to ensure tht TRAP(n) isnoverestimte,whichof the following requirements do we need? 1 f is incresing f is concve up 3 f is concve down 4 f is decresing If f is concve up on [, b], then MID(n) f (x) dx TRAP(n). Similrly, if f is concve down on [, b], then TRAP(n) f (x) dx MID(n). Exmple of ppliction Assume tht the function f is positive, decresing, nd concve down on [, b]. Let I = f (x) dx. Assume tht the vlues of LEFT(10), RIGHT(10), TRAP(10), nd MID(10) re, in rndom order, given by 0.703, 0.74, 0.735, 0.745. Use the bove to ssign vlue to ech of LEFT(10), RIGHT(10), TRAP(10), nd MID(10). Then, indicte which of the sttements below is correct: 1 0.703 I 0.74 0.74 I 0.735 3 0.735 I 0.745 Approximtion errors If we use numericl method, sy the left rule, to pproximte definite integrl I, we define the bsolute error E L (n), s E L (n) =I LEFT(n). One cn show tht E L (n) nd E R (n) re liner functions of 1/n. Similrly, E T (n) nd E M (n) decrese qudrticlly s n is incresed. This cn be improved by using Simpson s rule, given by SIMP(n) = 1 ( MID(n)+TRAP(n)). 3 One cn show tht the error E S (n) decreses like 1/n 4. Numericl integrtion of ODEs dy = g(x, y) dx The bove differentil eqution my formlly be integrted s y(x + h) y(x) = x+h x g(t, y(t)) dt. If we know y(x), numericl pproximtion of y(x + h) my thus be obtined by finding n estimte of the integrl in the right-hnd-side of the bove eqution. Euler s method consists in ssuming tht g(t, y(t)) is constnt on the intervl [x, x + h], nd equl to g(x, y(x)), where s the left end-point of the intervl. We thus hve y(x + h) y(x)+hg(x, y(x)).

Numericl integrtion of ODEs (continued) Numericl error dy dx = g(x, y) If we use the midpoint rule, then we obtin the modified Euler method mentioned in the lb, y(x + h) y(x)+hg (x + h ), y(x)+h g(x, y(x)). If we use the trpezoid rule, we obtin Heun s method (sometimes lso clled improved Euler s method) y(x+h) y(x)+ h (g(x, y(x)) + g(x + h, y(x)+hg(x, y(x)))). Numericl simultions re very powerful tools, but if we wnt to trust their predictions, it is essentil to know their limittions. In prticulr, we need to be ble to understnd nd control numericl errors. All of the bove methods re susceptible to two types of error: 1 The discretiztion error is due to pproximtion errors in the numericl method. The round-off error is due to the fct tht computer does not perform exct clcultions. For instnce, in MATLAB, eps returns the distnce from 1.0 to the next lrgest double-precision number. Discretiztion error Tylor polynomils The discretiztion error hs two sources: 1 The locl discretiztion error e n, which is the error mde t ech time step due to the fct tht we pproximte n integrl on the right-hnd side of the eqution: e n =ỹ n y(x n ), where y(x n ) is the exct solution, nd ỹ n is the numericl pproximtion of y(x n ) ssuming tht y(x n 1 )isknown exctly. The globl discretiztion error E n, which is the error mde on y(x n ) when it is evluted from n initil condition y 0 fter n numericl integrtion steps: E n = y n y(x n ), where y n is the numericl solution obtined fter n steps. We now turn to the question of pproximting function of one vrible by polynomils. The Tylor polynomil of degree n of the function f ner x = is polynomil tht mtches the vlue of f nd of its first n derivtives t the point x =. The figure bove shows the grph of cos(x) nd of the Tylor polynomils of degree up to 8 ner x =0.

Tylor polynomils (continued) The Tylor polynomil of degree n, centered t x =, of function f is given by P n (x) =f ()+(x )f ()+ (x ) f ()+ +! (x )n f (n) (). n! Of course, the bove ssumes tht f hs is t lest n times differentible ner. In wht follows, we ssume tht f is smooth, for simplicity. One cn show tht the error mde by replcing f by its Tylor polynomil of degree n is given by f (x) =P n (x)+r n (x), where ξ (, x). R n (x) = (x )n+1 f (n+1) (ξ), (n + 1)! Link to d Arbeloff Tylor Polynomils softwre Numericl pproximtion of definite integrls revisited f (x) dx = f (x) dx, = + i x, x = b n. For the left rule, for ech x [, +1 ], we hve f (x) =f ( )+(x ) f (ξ(x)), ξ(x) (, x). From this formul, we see tht if f is positive nd bounded by M between nd +1,then 0 f (x) f ( ) M(x ), which gives tht LEFT is n underestimte nd f (x) dx f ( ) x M (x ) dx = M ( x). Approximtion errors For the midpoint rule, we hve, with m = + +1, f (x) =f (m)+(m x) f (m)+ 1 (x m) f (ξ(x)), We cn check tht ( f (m)+(m x) f (m) ) dx = f (m) x, ξ(x) (, x). so tht if f is positive ndboundedbymbetween nd +1,then 0 f (x) [ f (m)+(m x) f (m) ] M (x m), which gives tht MID is n underestimte nd tht the lrger f, the lrger the error. Approximtion errors (continued) Finlly, for the trpezoid rule, we hve (by integrtion by prts) f (x) dx =[(x m)f (x)] +1 (x m) f (x) dx. We cn use Tylor expnsion for f (x) nerx = m to see tht if f is positive between nd +1, then TRAP gives n overestimte. Moreover, the error over n intervl of length s bounded by M( x) 3 /1, where M is the mximum of f over tht intervl. For ll of these methods, if the error on the integrl between nd +1 is of order ( x) p+1,thenthe error on the integrl between nd b is of order 1/n p,wheren is the number of sub-intervls.

Numericl integrtion of ODEs revisited A numericl method is consistent if the locl discretiztion error goes to zero s h 0. A numericl method is convergent if the globl discretiztion error goes to zero s h 0. Typiclly, one uses Tylor expnsions to decide whether numericl method is consistent nd convergent. A numericl method my lso be unstble, in the sense tht numericl solution to y = λy with λ<0 cn disply growth. These re topics typiclly discussed in n introductory course on numericl nlysis, such s MATH 475. Finlly, one should keep in mind tht numericl method is mp of the form y n+1 = G(y n, n), nd tht if G is nonliner, chos my be observed. Link to Chos on the Web