Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1.

Slides:



Advertisements
Similar presentations
Courant and all that Consistency, Convergence Stability Numerical Dispersion Computational grids and numerical anisotropy The goal of this lecture is to.
Advertisements

Numerical Methods Lecture 14 Differentiation-Continuous Functions
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
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.
Lecture 18 - Numerical Differentiation
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
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.
Numerical Integration CSE245 Lecture Notes. Content Introduction Linear Multistep Formulae Local Error and The Order of Integration Time Domain Solution.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
Dr. Jie Zou PHY Chapter 7 Numerical Differentiation: 1 Lecture (I) 1 Ref: “Applied Numerical Methods with MATLAB for Engineers and Scientists”, Steven.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 23 Numerical Differentiation.
28 Aug 2007 KKKQ 3013 PENGIRAAN BERANGKA Week 8 – Numerical Derivatives & Integrals 28 August am – 9.00 am.
Numerical Solution of Ordinary Differential Equation
8/15/ Differentiation-Continuous Functions Major: All Engineering Majors Authors: Autar Kaw, Sri Harsha Garapati.
Derivatives and Differential Equations
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Numerical Differentiation and Integration Part 6 Calculus.
Today’s class Boundary Value Problems Eigenvalue Problems
Chapter 4 Numerical Differentiation and Integration 1/16 Given x 0, approximate f ’(x 0 ). h xfhxf xf h )()( lim)('    x0x0 x1x1 h x1x1 x0x0.
Today’s class Numerical Integration Newton-Cotes Numerical Methods
Review Taylor Series and Error Analysis Roots of Equations
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
Today’s class Spline Interpolation Quadratic Spline Cubic Spline Fourier Approximation Numerical Methods Lecture 21 Prof. Jinbo Bi CSE, UConn 1.
CSE 3802 / ECE 3431 Numerical Methods in Scientific Computation
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.
Finite Difference Methods Definitions. Finite Difference Methods Approximate derivatives ** difference between exact derivative and its approximation.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
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
Today’s class Roots of equation Finish up incremental search
Today’s class Numerical differentiation Roots of equation Bracketing methods Numerical Methods, Lecture 4 1 Prof. Jinbo Bi CSE, UConn.
Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm
Curve Fitting Introduction Least-Squares Regression Linear Regression Polynomial Regression Multiple Linear Regression Today’s class Numerical Methods.
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Exam 1 Oct 3, closed book Place ITE 119, Time:12:30-1:45pm One double-sided cheat sheet (8.5in x 11in) allowed Bring your calculator to the exam Chapters.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
CPE 332 Computer Engineering Mathematics II Part III, Chapter 11 Numerical Differentiation and Integration Numerical Differentiation and Integration.
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.
1 Numerical Differentiation. 2  First order derivatives  High order derivatives  Examples.
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.
NUMERICAL DIFFERENTIATION Forward Difference Formula
High Accuracy Differentiation Formulas
Chapter 7 Numerical Differentiation and Integration
Numerical Differentiation
Applied Numerical Methods
Differentiation-Continuous Functions
Numerical Differentiation
The taylor series and Numerical Differentiation
Numerical Analysis Lecture 27.
Numerical Differentiation
SE301: Numerical Methods Topic 8 Ordinary Differential Equations (ODEs) Lecture KFUPM (Term 101) Section 04 Read , 26-2, 27-1 CISE301_Topic8L4&5.
Chapter 23.
Today’s class Multiple Variable Linear Regression
Numerical differentiation
Numerical Differentiation Chapter 23
MATH 2140 Numerical Methods
The taylor series and Numerical Differentiation
MATH 174: NUMERICAL ANALYSIS I
SKTN 2393 Numerical Methods for Nuclear Engineers
CPE 332 Computer Engineering Mathematics II
MATH 2140 Numerical Methods
Presentation transcript:

Today’s class Numerical Differentiation Finite Difference Methods Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 1

Numerical Differentiation Finite Difference Methods Forward Backward Centered Error Magnitude O(h) for forward and backward O(h 2 ) for centered Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 2

Forward First Derivative Consider a function f(x) which can be expanded in a Taylor series in the neighborhood of a point x Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 3

Forward First Derivative Numerical Method Lecture 14 Prof. Jinbo Bi CSE, UConn 4

Backward First Derivative Consider a function f(x) which can be expanded in a Taylor series in the neighborhood of a point x Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 5

Backward First Derivative Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 6

Central First Derivative Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 7

Central First Derivative Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 8

Numerical Differentiation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 9

2nd-order Forward Difference Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 10

High-Accuracy Differentiation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 11

Forward Finite-Divided Difference Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 12

Backward Difference Scheme Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 13 +

Backward Finite-Divided Difference Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 14

Centered Difference Scheme Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 15

Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 16 Centered Divided Difference

Example: Find derivative at x=0.5, h=0.25 True Forward Basic Differentiation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 17

Example: Backward Centered Basic Differentiation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 18

Forward Backward Centered High-Accuracy Differentiation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 19

Forward Divided Difference method uses the value of points in front of or at the point where the derivative is calculated. Backward Divided Difference method uses the value of points behind of or at the point where the derivative is calculated. Summary Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 20

Centered Divided Difference uses the value of points both in front and behind of the point where the derivative is calculated. Centered method is usually more accurate than forward & backward methods Accurate formulas use more points in the calculations. Summary Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 21

As with integration, use two approximations to arrive at a better approximation D is the true value but unknown and D(h 1 ) is an approximation based on the step size h 1. Reducing the step size to half, h 2 =h 1 /2, we obtained another approximation D(h 2 ). By properly combining the two approximations, D(h 1 ) & D(h 2 ), the error is reduced to O(h 4 ). Richardson Extrapolation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 22

Richardson Extrapolation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 23

Richardson Extrapolation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 24

Richardson Extrapolation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 25

Example: h=0.5 h=0.25 Extrapolate Richardson’s Extrapolation Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 26

Unevenly Spaced Data Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 27

Unevenly Spaced Data Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 28

Unevenly Spaced Data Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 29

Unevenly Spaced Data Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 30

Unevenly Spaced Data Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 31

Next class Ordinary Differential Equations Read Chapter PT7, 25 Numerical Methods Lecture 14 Prof. Jinbo Bi CSE, UConn 32