Numerical Differentiation:1* Lecture (II)

Slides:



Advertisements
Similar presentations
Section 11.6 – Taylor’s Formula with Remainder
Advertisements

Numerical Integration
Computational Modeling for Engineering MECN 6040
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 DIFFERENTIATION AND INTEGRATION
Numerical Computation
High Accuracy Differentiation Formulas
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
Differentiation-Discrete Functions
Numerical Integration Lecture (II)1
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (I) 1 1 Besides the main textbook, also see Ref.: “Applied.
SE301_14(c)AL-AMER20031 SE031Numerical Methods Topic 6 Numerical Differentiation Dr. Samir Al-Amer ( Term 053) Modified by Dr. Baroudi(072) Read chapter.
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (III)
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
Curve Fitting and Interpolation: Lecture (IV)
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 6 Roots of Equations Bracketing Methods.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Dr. Jie Zou PHY Chapter 3 Solution of Simultaneous Linear Algebraic Equations: Lecture (II) Note: Besides the main textbook, also see Ref: Applied.
Dr. Jie Zou PHY Chapter 9 Ordinary Differential Equations: Initial-Value Problems Lecture (II) 1 1 Besides the main textbook, also see Ref.: “Applied.
Curve Fitting and Interpolation: Lecture (II)
Chapter 7 Differentiation and Integration
Dr. Jie Zou PHY Chapter 3 Solution of Simultaneous Linear Algebraic Equations: Lecture (III) Note: Besides the main textbook, also see Ref: Applied.
Numerical Integration Lecture (I)1
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
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.
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.
Chapter 6 Numerical Interpolation
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
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.
Numerical Differentiation
Tutorial 5: Numerical methods - buildings Q1. Identify three principal differences between a response function method and a numerical method when both.
Scientific Computing Partial Differential Equations Introduction and
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
Curve Fitting and Interpolation: Lecture (I)
ES 240: Scientific and Engineering Computation. Chapter 4 Chapter 4: Errors Uchechukwu Ofoegbu Temple University.
MECN 3500 Lecture 4 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Chapter 3 Roots of Equations. Objectives Understanding what roots problems are and where they occur in engineering and science Knowing how to determine.
Numerical Methods for Engineering MECN 3500
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.
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
Chap. 11 Numerical Differentiation and Integration
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Dr. Jie Zou PHY Chapter 2 Solution of Nonlinear Equations: Lecture (II)
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
HW/Tutorial # 1 WRF Chapters 14-15; WWWR Chapters ID Chapters 1-2
HW/Tutorial # 1 WRF Chapters 14-15; WWWR Chapters ID Chapters 1-2 Tutorial #1 WRF#14.12, WWWR #15.26, WRF#14.1, WWWR#15.2, WWWR#15.3, WRF#15.1, WWWR.
1 Numerical Differentiation. 2  First order derivatives  High order derivatives  Examples.
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
Numerical Differentiation
Applied Numerical Methods
Interpolation Estimation of intermediate values between precise data points. The most common method is: Although there is one and only one nth-order.
Chapter 18.
Numerical Integration Formulas
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Differentiation
Chapter 18.
Chapter 23.
Numerical differentiation
Numerical Differentiation Chapter 23
SKTN 2393 Numerical Methods for Nuclear Engineers
Presentation transcript:

Numerical Differentiation:1* Lecture (II) Chapter 7 Numerical Differentiation:1* Lecture (II) 1* Ref: “Applied Numerical Methods with MATLAB for Engineers and Scientists”, Steven Chapra, 2nd ed., Ch. 19, McGraw Hill, 2008. Dr. Jie Zou PHY 3320

Outline Numerical differentiation (2) High-accuracy differentiation formulas (3) Derivatives of unequally spaced data Dr. Jie Zou PHY 3320

High-accuracy differentiation formulas High-accuracy finite-difference formulas can be generated by including additional terms from the Taylor series expansion. An example: High-accuracy forward-difference formula for the first derivative (see derivation on the next slide) Dr. Jie Zou PHY 3320

Derivation: High-accuracy forward-difference formula for f’(x) Forward Taylor series expansion Solve for f’(x) Substitute the forward-difference approx. of f”(x) High-accuracy forward-difference formula Accuracy improved to O(h2) Dr. Jie Zou PHY 3320

Forward finite-difference formulas Note: Two versions Upper: Basic Lower: High-accuracy Dr. Jie Zou PHY 3320

Backward finite-difference formulas Note: Two versions Upper: Basic Lower: High-accuracy Dr. Jie Zou PHY 3320

Centered finite-difference formulas Note: Two versions Upper: Basic Lower: High-accuracy Dr. Jie Zou PHY 3320

Example Example 19.1 (Ref.): Repeat the computation in Example 4.4 to estimate f’(x) at x = 0.5 with a step size h = 0.25. Employ the high-accuracy formulas for the forward, centered, and backward-difference approximations. f(x) = -0.1x4 – 0.15x3 – 0.5x2 – 0.25x + 1.2 Dr. Jie Zou PHY 3320

Results (Example 19.1) True value: f’(0.5) = -0.9125 h=0.25 Backward O(h2) Centered O(h4) Forward O(h2) Estimate -0.878125 -0.9125 -0.859375 |t| 3.77% 0% 5.82% High-Accuracy formulas h=0.25 Backward O(h) Centered O(h2) Forward O(h) Estimate -0.714 -0.934 -1.155 |t| 21.7% 2.4% 26.5% Basic formulas Dr. Jie Zou PHY 3320

Derivatives of unequally spaced data Experimental data are often measured at unequal intervals. Previous formulas can be used only for equally spaced data. How to deal with unequally spaced data? One method: (i) Fit a Lagrange Interpolating Polynomial to a set of adjacent points that bracket the point at which the derivative needs to be evaluated; (ii) Differentiate the Interpolating Polynomial analytically and evaluate the derivate at the required point. Dr. Jie Zou PHY 3320

Example Example 19.3 (Ref.): As in Fig. 19.6, a temperature gradient can be measured down into the soil. The heat flux at the soil-air interface can be computed with Fourier’s law: where q(x) = heat flux (W/m2), k = coefficient of thermal conductivity for soil [=0.5 W/(m·K)], T = temperature (K), and z = distance measured down from the surface into the soil (m). Note that a positive value of the flux means that heat is transferred from the air to the soil. Use numerical differentiation to evaluate the gradient at the soil-air interface and employ this estimate to determine the heat flux into the ground Answer: f’(0) = -133.333 K/m and q(z = 0) = 66.667 W/m2. Dr. Jie Zou PHY 3320