Numerical differentiation

Slides:



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

Computational Methods in Physics PHYS 3437
Asymptotic error expansion Example 1: Numerical differentiation –Truncation error via Taylor expansion.
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 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
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
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 Polynomial Interpolation
Chapter 7 Differentiation and Integration
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 181 Interpolation Chapter 18 Estimation of intermediate.
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.
Lagrange interpolation Gives the same results as Newton, but different method.
Chapter 6 Numerical Interpolation
Numerical Differentiation:1* Lecture (II)
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
Numerical Differentiation
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.
Interpolation. Interpolation is important concept in numerical analysis. Quite often functions may not be available explicitly but only the values of.
Numerical Methods on Partial Differential Equation Md. Mashiur Rahman Department of Physics University of Chittagong Laplace Equation.
Lecture 22 - Exam 2 Review CVEN 302 July 29, 2002.
Review Taylor Series and Error Analysis Roots of Equations
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
Engineering Analysis – Computational Fluid Dynamics –
Chap. 11 Numerical Differentiation and Integration
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
Quadrature – Concepts (numerical integration) Don Allen.
Interpolation - Introduction
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.
Section 1-3: Solving Equations 8/29/17
NUMERICAL DIFFERENTIATION Forward Difference Formula
High Accuracy Differentiation Formulas
Curve-Fitting Spline Interpolation
Numerical Analysis Lecture 25.
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.
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
The taylor series and Numerical Differentiation
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Analysis Lecture 27.
Numerical Differentiation
Chapter 18.
CSE Differentiation Roger Crawfis.
Chapter 23.
Numerical Analysis Lecture 45.
Calculus BC AP/Dual, Revised © : Lagrange's Error Bound
Section 11.3 Power Series.
POLYNOMIAL INTERPOLATION
Numerical Integration:
MATH 174: Numerical Analysis
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
Numerical Analysis Lecture 24.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

Numerical differentiation Recall finite differences from first week Derived from Taylor series

Neglecting all tersms higher than first order That’s the forward difference - also backwards and centered difference

Why is centered finite difference O(h2)? Subtract second equation from first

We can combine Taylor series expansions in many different ways to get estimates of derivatives Example: backwards second derivative, O(h2) Start with

Multiply first equation by -5, second equation by 4 and add together +

Multiply third equation by -1 and add to above result + Rearrange

Where did I get -5, 4,-1? We multiply 1st equation by a, second by b, third by c

Now sum all equations and collect terms Decide what derivatives we want to make disappear - want a second derivative only - eliminate first and third

Three unknowns - 2 equations - make an assumption Let c=-1 Can solve by hand

If we have more derivatives to get rid of, use matrix methods - always one assumption

More Richardson extrapolation Recall Can do the same thing with derivatives

Use same approach as Romberg integration with halving the step size Example: Formula for active lateral pressure coefficient Ka with internal angle of friction f and wall with slope b and flat top is Use Richardson/Romberg approach to estimate at b=10 degrees and f=15 degrees

Use O(h2) estimates to get O(h6) estimate

Now do Richardson/Romberg trick

Derivatives of unequally spaced data Can use matrix approach with different amounts of h Example: given values of f at x=(1,2,5.5,9) determine f’’ at 2

Let h=1, x=2 (values at 1,2,5.5,9) Equations to get rid of f’ and f’’’ are and assume a value for c

Let c=1, then a=-22.8667, b=-8.5333 then or

Derivatives of unequally spaced data Another way is to take derivative of interpolating polynomial Lagrange polynomial - second order in this case

Derivatives and integrals with errors in data Errors in data points can cause problems esp. with differentiation Example: with and without noise True derivative is 2x-6

Look at ratio of noise in y to noise in dy/dx For differentiation, fit a smooth line to the data, then take derivative