Numerical Differentiation

Slides:



Advertisements
Similar presentations
Numerical Analysis. TOPIC Interpolation TOPIC Interpolation.
Advertisements

Section 11.6 – Taylor’s Formula with Remainder
Numerical Solutions of Differential Equations Euler’s Method.
Equations of Tangent Lines
Open Methods Chapter 6 The Islamic University of Gaza
CSE Differentiation Roger Crawfis. May 19, 2015OSU/CIS 5412 Numerical Differentiation The mathematical definition: Can also be thought of as the.
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
High Accuracy Differentiation Formulas
1 Numerical Differentiation Jyun-Ming Chen. 2 Contents Forward, Backward, Central Difference Richardson Extrapolation.
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
Lecture 2: Numerical Differentiation. Derivative as a gradient
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
Open Methods Chapter 6 The Islamic University of Gaza
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.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 21 CURVE FITTING Chapter 18 Function Interpolation and Approximation.
Numerical Differentiation:1* Lecture (II)
Numerical Solutions of Differential Equations Taylor Methods.
1Chapter 2. 2 Example 3Chapter 2 4 EXAMPLE 5Chapter 2.
Differential Equations and Boundary Value Problems
PART 7 Ordinary Differential Equations ODEs
NUMERICAL DIFFERENTIATION The derivative of f (x) at x 0 is: An approximation to this is: for small values of h. Forward Difference Formula.
 By River, Gage, Travis, and Jack. Sections Chapter 6  6.1- Introduction to Differentiation (Gage)  The Gradient Function (Gage)  Calculating.
Derivatives and Differential Equations
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
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.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
3.3 Techniques of Differentiation Derivative of a Constant (page 191) The derivative of a constant function is 0.
1.6 – Tangent Lines and Slopes Slope of Secant Line Slope of Tangent Line Equation of Tangent Line Equation of Normal Line Slope of Tangent =
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.
Engineering Analysis – Computational Fluid Dynamics –
1 3.3 Rules for Differentiation Badlands National Park, SD.
Chap. 11 Numerical Differentiation and Integration
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Aim: How do we find the derivative by limit process? Do Now: Find the slope of the secant line in terms of x and h. y x (x, f(x)) (x + h, f(x + h)) h.
© 2014 Carl Lund, all rights reserved A First Course on Kinetics and Reaction Engineering Class 14.
The purpose of Chapter 5 is to develop the basic principles of numerical integration Usefule Words integrate, integral 积分(的), integration 积分(法), quadrature.
Fourier Approximation Related Matters Concerning Fourier Series.
Sec 21: Generalizations of the Euler Method Consider a differential equation n = 10 estimate x = 0.5 n = 10 estimate x =50 Initial Value Problem Euler.
Section 2.1 – Average and Instantaneous Velocity.
Degrees of a Monomial. Degree of a monomial: Degree is the exponent that corresponds to the variable. Examples: 32d -2x 4 16x 3 y 2 4a 4 b 2 c 44 has.
Section 9.4 – Solving Differential Equations Symbolically Separation of Variables.
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
Announcements Topics: Work On:
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Numerical Differentiation
Interpolation.
CSE Differentiation Roger Crawfis.
Chapter 23.
Numerical Analysis Lecture 45.
Numerical differentiation
Numerical Differentiation Chapter 23
POLYNOMIAL INTERPOLATION
Numerical Analysis Lecture 26.
5.3 Higher-Order Taylor Methods
Section 2.1 – Average and Instantaneous Velocity
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Analysis Lecture 21.
Numerical Analysis Lecture 24.
Presentation transcript:

Numerical Differentiation Forward, Backward, Central Differences Lagrange Estimation

Numerical Derivatives In this section we will see how to estimate the value of a derivative based on knowing only certain function values. This is typical for many applications not to know the exact function you are dealing with but rather a set of values for it. The methods that are used tend to separate themselves into methods for values of the independent variables that are equally spaced and those that are not. Equally Spaced Data Points If we consider three values for x: xi-1, xi, and xi+1 with xi-1 < xi < xi+1 we can form the slopes of various secant lines with the corresponding y values yi-1=f(xi-1), yi=f(xi) and yi+1=f(xi+1) to estimate the derivative. Forward Differences Backward Differences xi-1 xi xi+1 yi-1 yi yi+1 f(x)

Central Difference xi-1 xi xi+1 yi-1 yi yi+1 f(x) If we assume the data are evenly spaced so that xi-xi-1 = h = xi+1-xi the formulas below become: Forward Difference Backward Difference Central Difference If you look in each of these formulas we are only using two pieces of information. This means we are probably not as accurate as we can be. What if we would like to estimate the value of the derivative at xi-1 but make use of all three data points?

Three-Point Difference Formulas for Derivatives (Evenly spaced points) The two formulas below estimate the value of the derivatives at the endpoints making use of all three points most often giving a more accurate value for the derivative. Three-Point Forward Difference Three-Point Backward Difference Both of these formulas come from writing out the Lagrange Interpolating polynomial for these three points, taking the derivative then plugging in the value you want.

Consider the data being equally spaced by h:

Unequally-Spaced Data Points In many situations the data points are not equally spaced. To estimate the value of the derivative we use the Lagrange Polynomial just like before. In this situation notice that the derivative can be estimated at any point. Higher Order Derivatives All the previous formulas we have derived are to estimate the first derivative. What if we want to estimate the second derivative?

Second derivative estimates rely on writing out the Taylor Series for a modified version of the function f(x). We write out the Taylor Series for f(x+h) treating x as a constant and h as the variable and expanding at the point 0. add !

Example: Find estimates for the derivative with the data set given to the right. We notice the x values are evenly spaced. Two-Point Estimates: i xi yi 1 3 2 5 4 7 Forward Backward Central Three Point Estimates: Forward Backward Second Derivative (h=2)