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

Comparing Exponential and Linear Functions Lesson 3.2.
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.
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.
Riemann Sums and the Definite Integral Lesson 5.3.
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"
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.
Chapter 7 – Techniques of Integration
4.6 Numerical Integration Trapezoid and Simpson’s Rules.
1 Numerical Integration Section Why Numerical Integration? Let’s say we want to evaluate the following definite integral:
Trapezoidal Approximation Objective: To find area using trapezoids.
Homework questions thus far??? Section 4.10? 5.1? 5.2?
Volumes of Revolution Disks and Washers
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.
Derivatives of Products and Quotients Lesson 4.2.
Riemann Sums, Trapezoidal Rule, and Simpson’s Rule Haley Scruggs 1 st Period 3/7/11.
Section 5.9 Approximate Integration Practice HW from Stewart Textbook (not to hand in) p. 421 # 3 – 15 odd.
Antiderivatives Lesson 7.1A. Think About It Suppose this is the graph of the derivative of a function What do we know about the original function? Critical.
Finding Limits Graphically and Numerically Lesson 2.2.
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
Finding Areas Numerically. y4y4 h y5y5 The basic idea is to divide the x-axis into equally spaced divisions as shown and to complete the top of these.
Riemann Sums Lesson 14.2 Riemann Sums are used to approximate the area between a curve and the x-axis over an interval. Riemann sums divide the areas.
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.
Shifting a Function’s Graph
The Area Between Two Curves
Midpoint and Trapezoidal Rules
NUMERICAL INTEGRATION
MTH1170 Numeric Integration
Area and the Definite Integral
5.5 Trapezoidal Rule.
Review Calculus.
Trapezoid rule for integration
5. 7a Numerical Integration. Trapezoidal sums
Area of a single trapezoid = h
Integration Review Problems
Quadratic Inequalities
The Fundamental Theorems of Calculus
Derivatives of Products and Quotients
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
Numerical Integration
Trigonometric Substitution
Fitting Curves to Data Lesson 4.4B.
Shifting a Function’s Graph
Piecewise Defined Functions
Antiderivatives Lesson 7.1A.
Area & Definite Integral Applications
5. 7a Numerical Integration. Trapezoidal sums
Summation Formulas Constant Series.
Area of a single trapezoid = h
Parametric Equations Lesson 10.1.
Area as the Limit of a Sum
Area of a single trapezoid = h
The Natural Log Function: Integration
Concavity and Rates of Change
Presentation transcript:

Numerical Integration Lesson 6.5

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

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 Lesson 6.5 Page 250 Exercises 1 – 21 odd