Midpoint Approximation

Similar documents
APPROXIMATE INTEGRATION

6.5 Numerical Approximations of Definite Integrals

Math& 152 Section Integration by Parts

The Fundamental Theorem of Calculus

Numerical Analysis: Trapezoidal and Simpson s Rule

Z b. f(x)dx. Yet in the above two cases we know what f(x) is. Sometimes, engineers want to calculate an area by computing I, but...

INTRODUCTION TO INTEGRATION

Section 6.1 Definite Integral

Definite integral. Mathematics FRDIS MENDELU

Suppose we want to find the area under the parabola and above the x axis, between the lines x = 2 and x = -2.

NUMERICAL INTEGRATION

1 The Riemann Integral

Definite integral. Mathematics FRDIS MENDELU. Simona Fišnarová (Mendel University) Definite integral MENDELU 1 / 30

Math 131. Numerical Integration Larson Section 4.6

Sections 5.2: The Definite Integral

Big idea in Calculus: approximation

Chapter 7 Notes, Stewart 8e. 7.1 Integration by Parts Trigonometric Integrals Evaluating sin m x cos n (x) dx...

5.1 How do we Measure Distance Traveled given Velocity? Student Notes

1 Part II: Numerical Integration

Lecture 12: Numerical Quadrature

Section Areas and Distances. Example 1: Suppose a car travels at a constant 50 miles per hour for 2 hours. What is the total distance traveled?

The Fundamental Theorem of Calculus, Particle Motion, and Average Value

The Regulated and Riemann Integrals

Review on Integration (Secs ) Review: Sec Origins of Calculus. Riemann Sums. New functions from old ones.

The Riemann Integral

38 Riemann sums and existence of the definite integral.

Definite Integrals. The area under a curve can be approximated by adding up the areas of rectangles = 1 1 +

Calculus and linear algebra for biomedical engineering Week 11: The Riemann integral and its properties

Math 1B, lecture 4: Error bounds for numerical methods

Chapter 6 Notes, Larson/Hostetler 3e

Week 10: Riemann integral and its properties

Chapter 2. Numerical Integration also called quadrature. 2.2 Trapezoidal Rule. 2.1 A basic principle Extending the Trapezoidal Rule DRAWINGS

Integrals - Motivation

Math 3B: Lecture 9. Noah White. October 18, 2017

Unit Six AP Calculus Unit 6 Review Definite Integrals. Name Period Date NON-CALCULATOR SECTION

DOING PHYSICS WITH MATLAB MATHEMATICAL ROUTINES

Distance And Velocity

Fundamental Theorem of Calculus

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

AN INTEGRAL INEQUALITY FOR CONVEX FUNCTIONS AND APPLICATIONS IN NUMERICAL INTEGRATION

5: The Definite Integral

Overview of Calculus I

Section 5.4 Fundamental Theorem of Calculus 2 Lectures. Dr. Abdulla Eid. College of Science. MATHS 101: Calculus 1

Tangent Line and Tangent Plane Approximations of Definite Integral

n f(x i ) x. i=1 In section 4.2, we defined the definite integral of f from x = a to x = b as n f(x i ) x; f(x) dx = lim i=1

Math 116 Calculus II

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

Math 120 Answers for Homework 13

Lecture 14: Quadrature

AB Calculus Review Sheet

different methods (left endpoint, right endpoint, midpoint, trapezoid, Simpson s).

Numerical Integration

63. Representation of functions as power series Consider a power series. ( 1) n x 2n for all 1 < x < 1

( ) where f ( x ) is a. AB Calculus Exam Review Sheet. A. Precalculus Type problems. Find the zeros of f ( x).

( ) as a fraction. Determine location of the highest

The Trapezoidal Rule

x = b a n x 2 e x dx. cdx = c(b a), where c is any constant. a b

Math 190 Chapter 5 Lecture Notes. Professor Miguel Ornelas

cos 3 (x) sin(x) dx 3y + 4 dy Math 1206 Calculus Sec. 5.6: Substitution and Area Between Curves

THE HANKEL MATRIX METHOD FOR GAUSSIAN QUADRATURE IN 1 AND 2 DIMENSIONS

Section 4.8. D v(t j 1 ) t. (4.8.1) j=1

Chapters 4 & 5 Integrals & Applications

Chapter 5. Numerical Integration

Lab 11 Approximate Integration

Improper Integrals. MATH 211, Calculus II. J. Robert Buchanan. Spring Department of Mathematics

FINALTERM EXAMINATION 2011 Calculus &. Analytical Geometry-I

The Fundamental Theorem of Calculus. The Total Change Theorem and the Area Under a Curve.

Chapter 6. Riemann Integral

Lecture 17. Integration: Gauss Quadrature. David Semeraro. University of Illinois at Urbana-Champaign. March 20, 2014

Polynomial Approximations for the Natural Logarithm and Arctangent Functions. Math 230

5 Accumulated Change: The Definite Integral

7.2 Riemann Integrable Functions

P 3 (x) = f(0) + f (0)x + f (0) 2. x 2 + f (0) . In the problem set, you are asked to show, in general, the n th order term is a n = f (n) (0)

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019

Math Calculus with Analytic Geometry II

Calculus II: Integrations and Series

NUMERICAL INTEGRATION. The inverse process to differentiation in calculus is integration. Mathematically, integration is represented by.

11 An introduction to Riemann Integration

Space Curves. Recall the parametric equations of a curve in xy-plane and compare them with parametric equations of a curve in space.

We divide the interval [a, b] into subintervals of equal length x = b a n

AP Calculus AB Unit 5 (Ch. 6): The Definite Integral: Day 12 Chapter 6 Review

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Riemann Sums and Riemann Integrals

( ) where f ( x ) is a. AB Calculus Exam Review Sheet. A. Precalculus Type problems. Find the zeros of f ( x).

III. Lecture on Numerical Integration. File faclib/dattab/lecture-notes/numerical-inter03.tex /by EC, 3/14/2008 at 15:11, version 9

3.4 Numerical integration

AP Calculus Multiple Choice: BC Edition Solutions

Riemann Sums and Riemann Integrals

2 b. , a. area is S= 2π xds. Again, understand where these formulas came from (pages ).

Numerical Integration. 1 Introduction. 2 Midpoint Rule, Trapezoid Rule, Simpson Rule. AMSC/CMSC 460/466 T. von Petersdorff 1

Section 6: Area, Volume, and Average Value

Review of Calculus, cont d

If u = g(x) is a differentiable function whose range is an interval I and f is continuous on I, then f(g(x))g (x) dx = f(u) du

We know that if f is a continuous nonnegative function on the interval [a, b], then b

Exam 2, Mathematics 4701, Section ETY6 6:05 pm 7:40 pm, March 31, 2016, IH-1105 Instructor: Attila Máté 1

UNIFORM CONVERGENCE MA 403: REAL ANALYSIS, INSTRUCTOR: B. V. LIMAYE

Section 17.2 Line Integrals

Chapter 6. Infinite series

Lecture 6: Singular Integrals, Open Quadrature rules, and Gauss Quadrature

Integration Techniques

Transcription:

Midpoint Approximtion Sometimes, we need to pproximte n integrl of the form R b f (x)dx nd we cnnot find n ntiderivtive in order to evlute the integrl. Also we my need to evlute R b f (x)dx where we do not hve formul for f (x) but we hve dt describing set of vlues of the function. Review We might pproximte the given integrl using Riemnn sum. Alredy we hve looked t the left end-point pproximtion nd the right end point pproximtion to R b f (x)dx in Clculus. We lso looked t the midpoint pproximtion M: Midpoint Rule If f is integrble on [, b], then f (x)dx M n = nx f ( x i ) x = x(f ( x ) + f ( x ) + + f ( x n)), i= where x = b n nd x i = +i x nd x i = (x i +x i ) = midpoint of [x i, x i ].

Midpoint Approximtion Exmple Use the midpoint rule with n = 6 to pproximte R 4 (= ln(4) =.86946) Fill in the tbles below: x = 4 6 = x dx. x i x 0 = x = / x = x = 5/ x 4 = x 5 = 7/ x 6 = 4 x i = (x i + x i ) = 5/4 = 7/4 = 9/4 4 = /4 5 = /4 6 = 5/4 f ( x i ) = x i 4/5 4/7 4/9 4/ 4/ 4/5 M 6 = P 6 f ( x ˆ i) x = 4 + 4 + 4 + 4 + 4 + 4 5 7 9 5 =.769477

Trpezoidl Rule We cn lso pproximte definite integrl R b f (x)dx using n pproximtion by trpezoids s shown in the picture below for f (x) 0 The re of the trpezoid bove the intervl [x i, x i+ ] is x Trpezoidl Rule If f is integrble on [, b], then h (f (xi )+f (x i+ ) f (x)dx T n = x (f (x0) + f (x) + f (x) + + +f (xn ) + f (xn)) i. where x = b n nd x i = + i x nd.

Trpezoidl Rule x f (x)dx Tn = (f (x 0 ) + f (x ) + f (x ) + + +f (x n ) + f (xn)) where x = b n nd x i = + i x nd. Exmple Use the trpezoidl rule with n = 6 to pproximte R 4 dx. (= x ln(4) =.86946) x = 4 6 = x i x 0 = x = / x = x = 5/ x 4 = x 5 = 7/ x 6 = 4 x i x 0 = x = / x = x = 5/ x 4 = x 5 = 7/ x 6 = 4 f (x i ) = x i

Trpezoidl Rule x f (x)dx Tn = (f (x 0 ) + f (x ) + f (x ) + + +f (x n ) + f (xn)) where x = b n nd x i = + i x nd. Exmple Use the trpezoidl rule with n = 6 to pproximte R 4 dx. (= x ln(4) =.86946) x = 4 6 = x i x 0 = x = / x = x = 5/ x 4 = x 5 = 7/ x 6 = 4 x i x 0 = x = / x = x = 5/ x 4 = x 5 = 7/ x 6 = 4 f (x i ) = x i / / /5 / /7 /4 T 6 = x = 4 ( + =.405574. (f (x0) + f (x) + f (x) + f (x) + f (x4) + f (x5) + f (x6)) + + + + + ) 4 5 7

Error of Approximtion The error when using n pproximtion is the difference between the true vlue of the integrl nd the pproximtion. The error for the midpoint pproximtion bove bove is E M = Z 4 dx M6 =.86946.769477 = 0.009608 x The error for the trpezoidl pproximtion bove is E T = Z 4 dx T6 =.86946.405574 = 0.09068 x Error Bounds If f (x) K for x b. Let E T nd E M denote the errors for the trpezoidl pproximtion nd midpoint pproximtion respectively, then E T K(b ) K(b ) nd E n M 4n

Error of Approximtion Error Bounds If f (x) K for x b. Let E T nd E M denote the errors for the trpezoidl pproximtion nd midpoint pproximtion respectively, then Exmple () pproximtion of R 4 f (x) =, x K(b ) E T nd E M n K(b ) 4n Give n upper bound for the error in the trpezoidl dx when n = 0. x f (x) = x, f (x) = x We cn use the bove formul for the error bound with ny vlue of K for which f (x) K for x 4. Since f (x) = f (x) = x is decresing function on the intervl [, 4], we hve tht f (x) f () = on the intervl [, 4]. So we cn use K = in the formul for the error bound bove. Therefore when n = 0, T 0 Z 4 x dx = E K(b ) (4 ) T = = 0.045 n (0) Note tht the bound for the error given by the formul is conservtive since it turns out to give E T 0.045 when n = 0, compred to true error of E T = 0.00696667.

Error of Approximtion K(b ) E T nd E M n K(b ) Exmple(b) Give n upper bound for the error in the midpoint pproximtion of R 4 dx when n = 0. x As bove, we cn use K = to get E M 4n K(b ) 4n = () 4(0) = 0.05. (c) Using the error bounds given bove determine how lrge should n be to ensure tht the trpezoidl pproximtion is ccurte to within 0.00000 = 0 6? We wnt E T 0 6. We hve E T K(b ), where K = since f (x) for x 4. n Hence we will certinly hve E T 0 6 if we choose vlue of n for which (4 ) n 0 6. Tht is (06 )(7) n q (0 or n 6 )(7) =., n = will work.

Simpson s Rule We cn lso pproximte definite integrl using prbols to pproximte the curve s in the picture below. [note n is even]. Three points determine unique prbol. We drw prbolic segment using the three points on the curve bove x 0, x, x. We drw second prbolic segment using the three points on the curve bove x, x, x 4 etc... The re of the prbolic region beneth the prbol bove the intervl [x i, x i+ ] is x [f (x i ) + 4f (x i ) + f (x i+ )]. We estimte the integrl by summing the res of the regions below these prbolic segments to get Simpson s Rule for even n: x f (x)dx Sn = (f (x 0 ) + 4f (x ) + f (x ) + 4f (x ) + f (x 4 ) + + f (x n ) + 4f (x n ) + f (xn)) where x = b n nd x i = + i x nd. In fct we hve S n = Tn + Mn.

Simpson s Rule x f (x)dx Sn = (f (x 0 ) + 4f (x ) + f (x ) + 4f (x ) + f (x 4 ) + + f (x n ) + 4f (x n ) + f (xn)) Exmple Use Simpson s rule with n = 6 to pproximte R 4 ln(4) =.86946) Fill in the tbles below: dx. (= x x = 4 = 6 x i x 0 = x = / x = x = 5/ x 4 = x 5 = 7/ x 6 = 4 f (x i ) = x i / / /5 / /7 /4 S 6 = x (f (x0) + 4f (x) + f (x) + 4f (x) + f (x4) + 4f (x5) + f (x6)) = h i + 8 + + 8 + + 8 + =.876984 6 5 7 4 The error in this estimte is E S = Z 4 dx S6 = x.86946.876984 = 0.0040405

Error Bound Simpson s Rule Error Bound for Simpson s Rule Suppose tht f (4) (x) K for x b. If E S is the error involved in using Simpson s Rule, then K(b )5 E S 80n 4 Exmple How lrge should n be in order to gurntee tht the Simpson rule estimte for R 4 dx is ccurte to within 0.00000 = x 0 6? f (x) =, f (x) =, f (x) =, x x x f (4) (x) = 4 4 (for k 4 ) = K x 5 We hve E S 4()5 80n 4 f () (x) = ( ) x 4, We wnt E S 0 6, hence if we find vlue of n for which 4() 5 0 6 it is gurnteed tht E 80n 4 S 0 6. q From 4()5 0 6 we get tht 0 6 4()5 n 4 or n 4 0 80n 4 80 6 4()5 = 75. 80 n = 76 will work. This is conservtive upper bound of the error, the ctul error for n = 76 is 8 0 8