NUMERICAL DIFFERENTIATION Forward Difference Formula

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

Numerical Integration
Section 8.5 Riemann Sums and the Definite Integral.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
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.
Mathematics1 Mathematics 1 Applied Informatics Štefan BEREŽNÝ.
Lecture 18 - Numerical Differentiation
Lecture 3: Integration. Integration of discrete functions
Curve-Fitting Polynomial Interpolation
CHAPTER 4 THE DEFINITE INTEGRAL.
Trapezoidal Approximation Objective: To relate the Riemann Sum approximation with rectangles to a Riemann Sum with trapezoids.
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
Numerical Differentiation
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 In general, a numerical integration is the approximation of a definite integration by a “weighted” sum of function values at discretized.
Integrals 5.
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Numerical Computation
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.
Integration. Indefinite Integral Suppose we know that a graph has gradient –2, what is the equation of the graph? There are many possible equations for.
D MANCHE Finding the area under curves:  There are many mathematical applications which require finding the area under a curve.  The area “under”
Introduction to Numerical Analysis I
Lecture 19 – Numerical Integration 1 Area under curve led to Riemann sum which led to FTC. But not every function has a closed-form antiderivative.
4.6 Numerical Integration. The Trapezoidal Rule One method to approximate a definite integral is to use n trapezoids.
Wicomico High School Mrs. J. A. Austin AP Calculus 1 AB Third Marking Term.
Trapezoidal Approximation Objective: To find area using trapezoids.
1 5.e – The Definite Integral as a Limit of a Riemann Sum (Numerical Techniques for Evaluating Definite Integrals)
Homework questions thus far??? Section 4.10? 5.1? 5.2?
Integration Copyright © Cengage Learning. All rights reserved.
Riemann Sums, Trapezoidal Rule, and Simpson’s Rule Haley Scruggs 1 st Period 3/7/11.
In this section, we will investigate how to estimate the value of a definite integral when geometry fails us. We will also construct the formal definition.
Definite Integrals Riemann Sums and Trapezoidal Rule.
Chap. 11 Numerical Differentiation and Integration
Section 5.1/5.2: Areas and Distances – the Definite Integral Practice HW from Stewart Textbook (not to hand in) p. 352 # 3, 5, 9 p. 364 # 1, 3, 9-15 odd,
A REA A PPROXIMATION 4-E Riemann Sums. Exact Area Use geometric shapes such as rectangles, circles, trapezoids, triangles etc… rectangle triangle parallelogram.
Section 7.6 – Numerical Integration. represents the area between the curve 3/x and the x-axis from x = 4 to x = 8.
Section 7.6 – Numerical Integration. represents the area between the curve 3/x and the x-axis from x = 4 to x = 8.
To find the area under the curve Warm-Up: Graph. Area under a curve for [0, 3]  The area between the x-axis and the function Warm-up What is the area.
Sec 21: Generalizations of the Euler Method Consider a differential equation n = 10 estimate x = 0.5 n = 10 estimate x =50 Initial Value Problem Euler.
Riemann Sums and the Definite Integral. represents the area between the curve 3/x and the x-axis from x = 4 to x = 8.
Riemann Sums and Definite Integration y = 6 y = x ex: Estimate the area under the curve y = x from x = 0 to 3 using 3 subintervals and right endpoints,
Section 4.3 Day 1 Riemann Sums and Definite Integrals AP Calculus BC.
Definite Integral df. f continuous function on [a,b]. Divide [a,b] into n equal subintervals of width Let be a sample point. Then the definite integral.
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.
Definite Integrals & Riemann Sums
The Definite Integral. Area below function in the interval. Divide [0,2] into 4 equal subintervals Left Rectangles.
Approximating Antiderivatives. Can we integrate all continuous functions? Most of the functions that we have been dealing with are what are called elementary.
Quadrature – Concepts (numerical integration) Don Allen.
5.5 The Trapezoid Rule.
Lecture 19 – Numerical Integration
Riemann Sums and the Definite Integral
Midpoint and Trapezoidal Rules
NUMERICAL INTEGRATION
5. 7a Numerical Integration. Trapezoidal sums
Approximating Definite Integrals. Left Hand Riemann Sums.
Approximating Definite Integrals. Left Hand Riemann Sums.
Integration & Area Under a Curve
Chapter 23.
Composite Numerical Integration
Applications of Integration
Objective: Be able to approximate the area under a curve.
Numerical Integration:
5. 7a Numerical Integration. Trapezoidal sums
Copyright © Cengage Learning. All rights reserved.
Objective: Be able to approximate the area under a curve.
5.1 Area.
Arc Length … x y a b xi ... Pi P0 P1 Pn
Numerical Integration
Objectives Approximate a definite integral using the Trapezoidal Rule.
Presentation transcript:

NUMERICAL DIFFERENTIATION Forward Difference Formula The derivative of f (x) at x0 is: An approximation to this is: for small values of h. Forward Difference Formula

Find an approximate value for 0.1 0.5877867 0.6418539 0.5406720 0.01 0.5933268 0.5540100 0.001 0.5883421 0.5554000 The exact value of

Lagrange Interpolating Polynomial Assume that a function goes through three points: Lagrange Interpolating Polynomial

If the points are equally spaced, i.e.,

Three-point formula:

If the points are equally spaced with x0 in the middle:

Another Three-point formula:

Alternate approach (Error estimate) Take Taylor series expansion of f(x+h) about x: .............. (1)

Forward Difference Formula

................. (2)

.............. (1) ................. (2) 2 X Eqn. (1) – Eqn. (2)

Three-point Formula

The Second Three-point Formula Take Taylor series expansion of f(x+h) about x: Take Taylor series expansion of f(x-h) about x: Subtract one expression from another

Second Three-point Formula

Summary of Errors Forward Difference Formula Error term

Summary of Errors continued First Three-point Formula Error term

Summary of Errors continued Second Three-point Formula Error term

Example: Find the approximate value of with 1.9 12.703199 2.0 14.778112 2.1 17.148957 2.2 19.855030

Using the Forward Difference formula:

Using the 1st Three-point formula:

Using the 2nd Three-point formula: The exact value of

Comparison of the results with h = 0.1 The exact value of is 22.167168 Formula Error Forward Difference 23.708450 1.541282 1st Three-point 22.032310 0.134858 2nd Three-point 22.228790 0.061622

Second-order Derivative Add these two equations.

NUMERICAL INTEGRATION area under the curve f(x) between In many cases a mathematical expression for f(x) is unknown and in some cases even if f(x) is known its complex form makes it difficult to perform the integration.

Area of the trapezoid The length of the two parallel sides of the trapezoid are: f(a) and f(b) The height is b-a

Simpson’s Rule:

Composite Numerical Integration

Riemann Sum The area under the curve is subdivided into n subintervals. Each subinterval is treated as a rectangle. The area of all subintervals are added to determine the area under the curve. There are several variations of Riemann sum as applied to composite integration.

In Left Riemann sum, the left-side sample of the function is used as the height of the individual rectangle.

In Right Riemann sum, the right-side sample of the function is used as the height of the individual rectangle.

In the Midpoint Rule, the sample at the middle of the subinterval is used as the height of the individual rectangle.

Composite Trapezoidal Rule: Divide the interval into n subintervals and apply Trapezoidal Rule in each subinterval. where

Find by dividing the interval into 20 subintervals.

Composite Simpson’s Rule: Divide the interval into n subintervals and apply Simpson’s Rule on each consecutive pair of subinterval. Note that n must be even.

where Find by dividing the interval into 20 subintervals.