Numerical Integration

Slides:



Advertisements
Similar presentations
ES 240: Scientific and Engineering Computation. Chapter 17: Numerical IntegrationIntegration  Definition –Total area within a region –In mathematical.
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.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall Trapezoidal Rule Section 5.5.
Section 5.7 Numerical Integration. Approximations for integrals: Riemann Sums, Trapezoidal Rule, Simpson's Rule Riemann Sum: Trapezoidal Rule: Simpson’s.
Newton-Cotes Integration Formula
Homework Homework Assignment #47 Read Section 7.1 Page 398, Exercises: 23 – 51(Odd) Rogawski Calculus Copyright © 2008 W. H. Freeman and Company.
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.
Numerical Integration Lesson News from Space A new species has been trapped … the rare zoid Math students have long known of efforts of "trapezoid"
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.
CHAPTER 4 SECTION 4.6 NUMERICAL INTEGRATION
Integrals 5.
Area of a single trapezoid = h
Numerical Integration Approximating Definite Integral.
MAT 1235 Calculus II Section 7.7 Approximate (Numerical) Integration
4.6 Numerical Integration -Trapezoidal Rule -Simpson’s Rule
Chapters 5 and 6: Numerical Integration
Chapter 7 – Techniques of Integration
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
Simpson’s Rule Mini Whiteboards To check your understanding of the video.
1 Numerical Integration Section Why Numerical Integration? Let’s say we want to evaluate the following definite integral:
Homework questions thus far??? Section 4.10? 5.1? 5.2?
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.
Riemann Sums, Trapezoidal Rule, and Simpson’s Rule Haley Scruggs 1 st Period 3/7/11.
Clicker Question 1 What is an antiderivative of f(x) = (5x – 3)  ? – A. (5/(  + 1))(5x – 3)  +1 – B. (1/(  + 1))(5x – 3)  +1 – C. 5  (5x – 3)  -
Integral calculation. Indefinite integral. Differentiation Rules If f(x) = x 6 +4x 2 – 18x + 90 f’(x) = 6x 5 + 8x – 18 *multiply by the power, than subtract.
Exam Questions relay. Simpson’s Rule Objectives: To recognise and apply Simpson’s rule to approximate areas bounded by curves.
The Natural Log Function: Integration Lesson 5.7.
Antiderivatives and Indefinite Integration
Section 7.6 – Numerical Integration. represents the area between the curve 3/x and the x-axis from x = 4 to x = 8.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Prentice Hall 5.5 Trapezoidal Rule.
6. Numerical Integration 6.1 Definition of numerical integration. 6.2 Reasons to use numerical integration. 6.3 Formulas of numerical Integration. 6.4.
Estimating area under a curve
Section 7.6 – Numerical Integration. represents the area between the curve 3/x and the x-axis from x = 4 to x = 8.
Lesson 7-7 Numerical Approximations of Integrals -- What we do when we can’t integrate a function Riemann Sums Trapezoidal Rule.
Warm up 10/16 (glue in). Be seated before the bell rings DESK homework Warm-up (in your notes) Agenda : go over hw Finish Notes lesson 4.5 Start 4.6.
Parametric Equations Lesson Movement of an Object Consider the position of an object as a function of time  The x coordinate is a function of.
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.
Shifting a Function’s Graph
NUMERICAL DIFFERENTIATION Forward Difference Formula
Lecture 19 – Numerical Integration
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
MTH1170 Numeric Integration
Area and the Definite Integral
5.5 Trapezoidal Rule.
Trapezoid rule for integration
Numerical Integration
Derivatives of Products and Quotients
The Normal Distribution…
Area and the Definite Integral
The Area Question and the Integral
Volumes of Revolution Disks and Washers
Representation of Functions by Power Series
The Area Between Two Curves
Finding Limits Graphically and Numerically
Fitting Curves to Data Lesson 4.4B.
Piecewise Defined Functions
Antiderivatives Lesson 7.1A.
Area & Definite Integral Applications
Summation Formulas Constant Series.
Section 5.2 Definite Integrals.
Parametric Equations Lesson 10.1.
Area as the Limit of a Sum
Objectives Approximate a definite integral using the Trapezoidal Rule.
The Natural Log Function: Integration
Concavity and Rates of Change
Presentation transcript:

Numerical Integration Lesson 5.6

News from the Internet A new species has been trapped … the rare zoid Math students have long known of efforts of "trapezoid" expeditions Trapezoids were so effective, zoids were thought to be extinct!

Trapezoidal Rule Instead of calculating approximation rectangles we will use trapezoids More accuracy Area of a trapezoid a b • Which dimension is the h? Which is the b1 and the b2 b1 b2 h

Trapezoidal Rule Trapezoidal rule approximates the integral dx f(xi) f(xi-1) Trapezoidal rule approximates the integral Calculator function for f(x) ((2*f(a+k*(b-a)/n),k,1,n-1)+f(a)+f(b))*(b-a)/(n*2) trap(a,b,n)

Trapezoidal Rule Entering the trapezoidal rule into the calculator f(x) must be defined for this to work

Trapezoidal Rule Try using the trapezoidal rule Check with integration

Snidly Fizbane Simpson Simpson's Rule As before, we divide the interval into n parts n must be even Instead of straight lines we draw parabolas through each group of three consecutive points This approximates the original curve for finding definite integral – formula shown below Snidly Fizbane Simpson a b •

Simpson's Rule Our calculator can do this for us also The function is more than a one liner We will use the program editor Choose APPS, 7:Program Editor 3:New Specify Function, name it simp

Simpson's Rule Enter the parameters a, b, and n between the parentheses Local variables discarded when function finishes Initialize dx Enter commands shown between Func and endFunc Initialize total with the two end values One for loop for the 4* values, one for the 2* values Return the value

Simpson's Rule Specify a function for f(x) When you call simp(a,b,n), Make sure n is an even number Note the accuracy of the approximation

Assignment A Lesson 5.6 Page 350 Exercises 1 – 23 odd

Error Estimation Trapezoidal error for f on [a, b] Where M = max value of |f ''(x)| on [a, b] Simpson's error for f on [a, b] Where K = max value of |f (4)(x)| on [a, b]

Using Data Given table of data, use trapezoidal rule to determine area under the curve dx = ? x 2.00 2.10 2.20 2.30 2.40 2.50 2.60 y 4.32 4.57 5.14 5.78 6.84 6.62 6.51

Using Data Given table of data, use Simpson's rule to determine area under the curve x 2.00 2.10 2.20 2.30 2.40 2.50 2.60 y 4.32 4.57 5.14 5.78 6.84 6.62 6.51

Assignment B Lesson 5.6 Page 350 Exercises 27 – 39 odd 49, 51, 53