1 Numerical Differentiation. 2  First order derivatives  High order derivatives  Examples.

Slides:



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

CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
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
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.
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
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.
Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation.
Now that you’ve found a polynomial to approximate your function, how good is your polynomial? Find the 6 th degree Maclaurin polynomial for For what values.
Integration Copyright © Cengage Learning. All rights reserved.
10/27/ Differentiation-Continuous Functions Computer Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
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 –
Chap. 11 Numerical Differentiation and Integration
DIFFERENTIATION RULES We know that, if y = f (x), then the derivative dy/dx can be interpreted as the rate of change of y with respect to x.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
Meanings of the Derivatives. I. The Derivative at the Point as the Slope of the Tangent to the Graph of the Function at the Point.
CSE 330 Numerical Methods Lecture 05 Chapter 5: Numerical Differentiation Md. Omar Faruqe
The Finite-Difference Method Taylor Series Expansion Suppose we have a continuous function f(x), its value in the vicinity of can be approximately expressed.
Differentiation – Continuous Functions. Forward Difference Approximation 2 f  x  Δx   f  x  Δx lim Δx  0 f  x   For a finite 'Δx' (we can not.
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
MTH1170 Higher Order Derivatives
High Accuracy Differentiation Formulas
Part 6 - Chapter 21.
Derivative of an Exponential
Differentiation-Continuous Functions
The taylor series and Numerical Differentiation
Numerical Analysis Lecture 27.
Numerical Differentiation
Central Divided Difference
Numerical Solutions of Ordinary Differential Equations
CSE Differentiation Roger Crawfis.
MATH 2140 Numerical Methods
Chapter 23.
Taylor Series Revisited
Sec:4.3 Total Numerical Error.
Numerical differentiation
Numerical Differentiation Chapter 23
POLYNOMIAL INTERPOLATION
Copyright © Cengage Learning. All rights reserved.
Numerical Computation and Optimization
Forward Divided Difference
5.3 Higher-Order Taylor Methods
The taylor series and Numerical Differentiation
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Integration
Objectives Approximate a definite integral using the Trapezoidal Rule.
Forward Divided Difference
Numerical Computation and Optimization
Presentation transcript:

1 Numerical Differentiation

2  First order derivatives  High order derivatives  Examples

3 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)

4 Recall

For small values of h, the difference quotient [f (x 0 + h) − f (x 0 )]/h can be used to approximate f’(x 0 ) with an error bounded by M|h|/2, where M is a bound on |f’’(x)| for x between x0 and x0 +h. CISE301_Topic65

6 Three Formula

7 The Three Formulas

8 Forward/Backward Difference Formula

9 Central Difference Formula

10 The Three Formula (Revisited)

11 Higher Order Formulas

12 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. 13

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% 14

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% 15

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. 16

Use the forward-difference formula to approximate the derivative of f (x) = ln x at x0 = 1.8 using h = 0.1, h = 0.05, and h = 0.01, and determine bounds for the approximation errors. 17 Example 2

Solution The forward-difference formula f (1.8 + h) − f (1.8) h with h = 0.1 gives (ln 1.9 − ln 1.8)/0.1 = ( − )/0.1 = Because f’’(x) = −1/x 2 and 1.8 < ξ < 1.9, a bound for this approximation error is |hf’’(ξ )|/2 =|h|/2ξ 2 < 0.1/2(1.8) 2 =

19