CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.

Slides:



Advertisements
Similar presentations
Numerical Methods Lecture 14 Differentiation-Continuous Functions
Advertisements

CSE Differentiation Roger Crawfis. May 19, 2015OSU/CIS 5412 Numerical Differentiation The mathematical definition: Can also be thought of as the.
Romberg Rule of Integration
Part 5 Chapter 19 Numerical Differentiation PowerPoints organized by Dr. Michael R. Gustafson II, Duke University All images copyright © The McGraw-Hill.
EE3561_Unit 6(c)AL-DHAIFALLAH14351 EE 3561 : Computational Methods Unit 6 Numerical Differentiation Dr. Mujahed AlDhaifallah ( Term 342)
Numerical Computation
High Accuracy Differentiation Formulas
Chapter 7 Numerical Differentiation and Integration
1 Numerical Differentiation Jyun-Ming Chen. 2 Contents Forward, Backward, Central Difference Richardson Extrapolation.
Today’s class Romberg integration Gauss quadrature Numerical Methods
2. Numerical differentiation. Approximate a derivative of a given function. Approximate a derivative of a function defined by discrete data at the discrete.
SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
CISE301_Topic6KFUPM1 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
SE301_14(c)AL-AMER20031 SE031Numerical Methods Topic 6 Numerical Differentiation Dr. Samir Al-Amer ( Term 053) Modified by Dr. Baroudi(072) Read chapter.
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
7/2/ Backward Divided Difference Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati
1 Chapter 6 NUMERICAL DIFFERENTIATION. 2 When we have to differentiate a function given by a set of tabulated values or when a complicated function is.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 23 Numerical Differentiation.
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
8/15/ Differentiation-Continuous Functions Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
CISE301_Topic71 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM (Term 101) Section 04 Read Chapter 21, Section 1 Read Chapter.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Integration.
10/27/ Differentiation-Continuous Functions Computer Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Sensitivity derivatives Can obtain sensitivity derivatives of structural response at several levels Finite difference sensitivity (section 7.1) Analytical.
Engineering Analysis – Computational Fluid Dynamics –
11/30/ Romberg Rule of Integration Mechanical Engineering Majors Authors: Autar Kaw, Charlie Barker
Chap. 11 Numerical Differentiation and Integration
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
EE3561_Unit 5(c)AL-DHAIFALLAH14361 EE 3561 : Computational Methods Unit 5 : Interpolation Dr. Mujahed AlDhaifallah (Term 351) Read Chapter 18, Sections.
SE301_Topic 6Al-Amer20051 SE301:Numerical Methods Topic 6 Numerical Integration Dr. Samir Al-Amer Term 053.
CSE 330 Numerical Methods Lecture 05 Chapter 5: Numerical Differentiation Md. Omar Faruqe
CPE 332 Computer Engineering Mathematics II Part III, Chapter 11 Numerical Differentiation and Integration Numerical Differentiation and Integration.
1 Numerical Differentiation. 2  First order derivatives  High order derivatives  Examples.
Numerical Analysis Lecture 28. Chapter 7 Numerical Differentiation and Integration.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
Numerical Integration
High Accuracy Differentiation Formulas
Chapter 7 Numerical Differentiation and Integration
Differentiation-Continuous Functions
The taylor series and Numerical Differentiation
Numerical Analysis Lecture 27.
Numerical Differentiation
Central Divided Difference
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
CSE Differentiation Roger Crawfis.
Chapter 23.
Numerical differentiation
Numerical Differentiation Chapter 23
Numerical Analysis Lecture 26.
Numerical Computation and Optimization
Forward Divided Difference
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L2.
The taylor series and Numerical Differentiation
SKTN 2393 Numerical Methods for Nuclear Engineers
Romberg Rule of Integration
Romberg Rule of Integration
Numerical Analysis Lecture 21.
Forward Divided Difference
CPE 332 Computer Engineering Mathematics II
Romberg Rule of Integration
Numerical Computation and Optimization
Romberg Rule of Integration
Presentation transcript:

CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2

CISE301_Topic62 L ecture 23 Numerical Differentiation  First order derivatives  High order derivatives  Richardson Extrapolation  Examples

CISE301_Topic63 Motivation  How do you evaluate the derivative of a tabulated function.  How do we determine the velocity and acceleration from tabulated measurements. Time (second) Displacement (meters)

CISE301_Topic64 Recall

CISE301_Topic65 Three Formula

CISE301_Topic66 The Three Formulas

CISE301_Topic67 Forward/Backward Difference Formula

CISE301_Topic68 Central Difference Formula

CISE301_Topic69 The Three Formula (Revisited)

CISE301_Topic610 Higher Order Formulas

CISE301_Topic611 Other Higher Order Formulas

Example  Use forward, backward and centered difference approximations to estimate the first derivate of: f(x) = –0.1x 4 – 0.15x 3 – 0.5x 2 – 0.25x at x = 0.5 using step size h = 0.5 and h = 0.25  Note that the derivate can be obtained directly: f’(x) = –0.4x 3 – 0.45x 2 – 1.0x – 0.25 The true value of f’(0.5) =  In this example, the function and its derivate are known. However, in general, only tabulated data might be given. CISE301_Topic612

Solution with Step Size = 0.5  f(0.5) = 0.925, f(0) = 1.2, f(1.0) = 0.2  Forward Divided Difference: f’(0.5)  (0.2 – 0.925)/0.5 = | t | = |( )/ | = 58.9%  Backward Divided Difference: f’(0.5)  (0.925 – 1.2)/0.5 = | t | = |( )/ | = 39.7%  Centered Divided Difference: f’(0.5)  (0.2 – 1.2)/1.0 = -1.0 | t | = |( )/ | = 9.6% CISE301_Topic613

Solution with Step Size = 0.25  f(0.5)=0.925, f(0.25)=1.1035, f(0.75)=  Forward Divided Difference: f’(0.5)  ( – 0.925)/0.25 = | t | = |( )/ | = 26.5%  Backward Divided Difference: f’(0.5)  (0.925 – )/0.25 = | t | = |( )/ | = 21.7%  Centered Divided Difference: f’(0.5)  ( – )/0.5 = | t | = |( )/ | = 2.4% CISE301_Topic614

Discussion  For both the Forward and Backward difference, the error is O(h)  Halving the step size h approximately halves the error of the Forward and Backward differences  The Centered difference approximation is more accurate than the Forward and Backward differences because the error is O(h 2 )  Halving the step size h approximately quarters the error of the Centered difference. CISE301_Topic615

CISE301_Topic616 Richardson Extrapolation

CISE301_Topic617 Richardson Extrapolation Use two derivate estimates to compute a third, more accurate approximation

Richardson Extrapolation Example  Use the function: f(x) = –0.1x 4 – 0.15x 3 – 0.5x 2 – 0.25x Starting with h 1 = 0.5 and h 2 = 0.25, compute an improved estimate of f’(0.5) using Richardson Extrapolation  Recall the true value of f’(0.5) = CISE301_Topic618

Solution  The first-derivative estimates can be computed with centered differences as: CISE301_Topic619

CISE301_Topic620 Richardson Extrapolation Table D(0,0)=Φ(h) D(1,0)=Φ(h/2)D(1,1) D(2,0)=Φ(h/4)D(2,1)D(2,2) D(3,0)=Φ(h/8)D(3,1)D(3,2)D(3,3)

CISE301_Topic621 Richardson Extrapolation Table

CISE301_Topic622 Example

CISE301_Topic623 Example First Column

CISE301_Topic624 Example Richardson Table

CISE301_Topic625 Example Richardson Table This is the best estimate of the derivative of the function. All entries of the Richardson table are estimates of the derivative of the function. The first column are estimates using the central difference formula with different step size h.