Lecture 12 APPROXIMATION OF FIRST ORDER DERIVATIVES

Similar documents
Lecture 13 APPROXIMATION OF SECOMD ORDER DERIVATIVES

PGE 310: Formulation and Solution in Geosystems Engineering. Dr. Balhoff. Interpolation

Beam Warming Second-Order Upwind Method

Analysis of Lagrange Interpolation Formula

Numerical Analysis Formulae Booklet

Chapter 5. Curve fitting

1. A real number x is represented approximately by , and we are told that the relative error is 0.1 %. What is x? Note: There are two answers.

Cubic Nonpolynomial Spline Approach to the Solution of a Second Order Two-Point Boundary Value Problem

L5 Polynomial / Spline Curves

Derivation of 3-Point Block Method Formula for Solving First Order Stiff Ordinary Differential Equations

A Conventional Approach for the Solution of the Fifth Order Boundary Value Problems Using Sixth Degree Spline Functions

Introduction to Numerical Differentiation and Interpolation March 10, !=1 1!=1 2!=2 3!=6 4!=24 5!= 120

ECE 595, Section 10 Numerical Simulations Lecture 19: FEM for Electronic Transport. Prof. Peter Bermel February 22, 2013

X ε ) = 0, or equivalently, lim

1 Lyapunov Stability Theory

Given a table of data poins of an unknown or complicated function f : we want to find a (simpler) function p s.t. px (

Mu Sequences/Series Solutions National Convention 2014

Chapter 5 Properties of a Random Sample

DKA method for single variable holomorphic functions

Lecture 5: Interpolation. Polynomial interpolation Rational approximation

MMJ 1113 FINITE ELEMENT METHOD Introduction to PART I

MEASURES OF DISPERSION

( ) 2 2. Multi-Layer Refraction Problem Rafael Espericueta, Bakersfield College, November, 2006

Chapter 9 Jordan Block Matrices

CS 1675 Introduction to Machine Learning Lecture 12 Support vector machines

UNIT 2 SOLUTION OF ALGEBRAIC AND TRANSCENDENTAL EQUATIONS

CSE 5526: Introduction to Neural Networks Linear Regression

End of Finite Volume Methods Cartesian grids. Solution of the Navier-Stokes Equations. REVIEW Lecture 17: Higher order (interpolation) schemes

Lecture 07: Poles and Zeros

CH E 374 Computational Methods in Engineering Fall 2007

Fourth Order Four-Stage Diagonally Implicit Runge-Kutta Method for Linear Ordinary Differential Equations ABSTRACT INTRODUCTION

Bayesian Inferences for Two Parameter Weibull Distribution Kipkoech W. Cheruiyot 1, Abel Ouko 2, Emily Kirimi 3

Taylor s Series and Interpolation. Interpolation & Curve-fitting. CIS Interpolation. Basic Scenario. Taylor Series interpolates at a specific

CHAPTER 4 RADICAL EXPRESSIONS

ABOUT ONE APPROACH TO APPROXIMATION OF CONTINUOUS FUNCTION BY THREE-LAYERED NEURAL NETWORK

TESTS BASED ON MAXIMUM LIKELIHOOD

Assignment 5/MATH 247/Winter Due: Friday, February 19 in class (!) (answers will be posted right after class)

Evaluation of uncertainty in measurements

Regression and the LMS Algorithm

2006 Jamie Trahan, Autar Kaw, Kevin Martin University of South Florida United States of America

Point Estimation: definition of estimators

Non-uniform Turán-type problems

CS475 Parallel Programming

Evolution Operators and Boundary Conditions for Propagation and Reflection Methods

Basic Concepts in Numerical Analysis November 6, 2017

α1 α2 Simplex and Rectangle Elements Multi-index Notation of polynomials of degree Definition: The set P k will be the set of all functions:

A New Method for Solving Fuzzy Linear. Programming by Solving Linear Programming

F. Inequalities. HKAL Pure Mathematics. 進佳數學團隊 Dr. Herbert Lam 林康榮博士. [Solution] Example Basic properties

Functions of Random Variables

Correlation and Regression Analysis

ESS Line Fitting

ixf (f(x) s(x))dg 0, i 1,2 n. (1.2) MID POINT CUBIC SPLINE INTERPOLATOR

BERNSTEIN COLLOCATION METHOD FOR SOLVING NONLINEAR DIFFERENTIAL EQUATIONS. Aysegul Akyuz Dascioglu and Nese Isler

Solving Constrained Flow-Shop Scheduling. Problems with Three Machines

Support vector machines II

Support vector machines

BAYESIAN INFERENCES FOR TWO PARAMETER WEIBULL DISTRIBUTION

Fractional Order Finite Difference Scheme For Soil Moisture Diffusion Equation And Its Applications

MOLECULAR VIBRATIONS

ANALYSIS ON THE NATURE OF THE BASIC EQUATIONS IN SYNERGETIC INTER-REPRESENTATION NETWORK

CS5620 Intro to Computer Graphics

Arithmetic Mean and Geometric Mean

MATH 247/Winter Notes on the adjoint and on normal operators.

Strong Convergence of Weighted Averaged Approximants of Asymptotically Nonexpansive Mappings in Banach Spaces without Uniform Convexity

Summary of the lecture in Biostatistics

LINEAR REGRESSION ANALYSIS

Mean is only appropriate for interval or ratio scales, not ordinal or nominal.

Investigation of Partially Conditional RP Model with Response Error. Ed Stanek

Sampling Theory MODULE V LECTURE - 14 RATIO AND PRODUCT METHODS OF ESTIMATION

best estimate (mean) for X uncertainty or error in the measurement (systematic, random or statistical) best

A Remark on the Uniform Convergence of Some Sequences of Functions

16 Homework lecture 16

Multiple Choice Test. Chapter Adequacy of Models for Regression

A Collocation Method for Solving Abel s Integral Equations of First and Second Kinds

2.29 Numerical Fluid Mechanics Spring 2015

Log1 Contest Round 2 Theta Complex Numbers. 4 points each. 5 points each

1 0, x? x x. 1 Root finding. 1.1 Introduction. Solve[x^2-1 0,x] {{x -1},{x 1}} Plot[x^2-1,{x,-2,2}] 3

Some Different Perspectives on Linear Least Squares

å 1 13 Practice Final Examination Solutions - = CS109 Dec 5, 2018

Objectives of Multiple Regression

x y exp λ'. x exp λ 2. x exp 1.

Chapter 4 (Part 1): Non-Parametric Classification (Sections ) Pattern Classification 4.3) Announcements

means the first term, a2 means the term, etc. Infinite Sequences: follow the same pattern forever.

d dt d d dt dt Also recall that by Taylor series, / 2 (enables use of sin instead of cos-see p.27 of A&F) dsin

Part 4b Asymptotic Results for MRR2 using PRESS. Recall that the PRESS statistic is a special type of cross validation procedure (see Allen (1971))

4 Round-Off and Truncation Errors

Binary classification: Support Vector Machines

On the General Solution of First-Kind Hypersingular Integral Equations

Dr. Shalabh. Indian Institute of Technology Kanpur

Simple Linear Regression

Algorithms Theory, Solution for Assignment 2

Applied Fitting Theory VII. Building Virtual Particles

On the convergence of derivatives of Bernstein approximation

u(x, t) = u 0 (x ct). This Riemann invariant u is constant along characteristics λ with x = x 0 +ct (u(x, t) = u 0 (x 0 )):

Overview of the weighting constants and the points where we evaluate the function for The Gaussian quadrature Project two

Numerical Differentiation

Chapter 2 - Free Vibration of Multi-Degree-of-Freedom Systems - II

Chapter 8. Inferences about More Than Two Population Central Values

Generalized One-Step Third Derivative Implicit Hybrid Block Method for the Direct Solution of Second Order Ordinary Differential Equation

Research Article Gauss-Lobatto Formulae and Extremal Problems

Transcription:

FDM: Appromato of Frst Order Dervatves Lecture APPROXIMATION OF FIRST ORDER DERIVATIVES. INTRODUCTION Covectve term coservato equatos volve frst order dervatves. The smplest possble approach for dscretzato of these terms would be to use the appromato based o the basc defto of the dervatve. I ths lecture, we lear systematc procedures to obta FD appromatos based o Taylor seres epaso ad polyomal fttg for a geerc fucto f() of a geerc varable.. TAYLOR SERIES EXPANSION A cotuously dfferetable fucto f() ca be epaded Taylor seres about as f f f f f... H (.)!! I seres epaso, symbol H has bee used to deote the hgher order terms whch have ot bee dcated eplctly. Thus, fucto values at grd pots ad ca be epressed as f f f f f H (.)! f f f f f H (.)! Rearragemet of Eq. (.) yelds f f f f H (.4) whch gves us forward dfferece scheme (FDS) formally epressed as f f f O (.5) where. Smlarly, Eq. (.) yelds the backward dfferece scheme (BDS) gve by f f f O (.6) where. Subtractg Eq. (.) from Eq.(.), we obta the cetral dfferece scheme (CDS) gve by the formula Dr K M Sgh, Ida Isttute of Techology Roorkee NPTEL.

FDM: Appromato of Frst Order Dervatves f f f f H (.7) Thus, fte dfferece appromatos based o Taylor seres epaso are: f f f FDS:, Trucato Error ~ O f f f BDS:, Trucato Error ~ O f f f CDS:, Trucato Error ~ O f f f, Trucato Error ~ O o o-uform mesh o uform grd Note that the trucato error of the frst order FDS or BDS s gve by f (.8) The trucato error of the CDS s gve by f f H CDS (.9) 6 Thus, although the trucato error for CDS s formally of the same order as FDS or BDS, the magtude of the trucato error for CDS s much smaller tha FDS/BDS. I fact, o grd refemet, the covergece of CDS becomes secod order asymptotcally (Ferzger ad Perc, 00). Further, let us substtute the value of secod order dervatve from Eq. (.) to Eq. (.4). O rearragemet, we get f f ( ) f ( ) f ( ) ( ) H f 6 (.0) whch has secod order accuracy o ay grd (uform or o-uform). It reduces to the smpler form of CDS o uform grds. A geeral procedure o uform grds Let us defe the dfferece appromato as (Chug, 00) f af bf cfdf ef... (.) Coeffcets a, b, c, d, e,. ca be determed from Taylor seres epaso for the fucto values volved at the RHS aroud pot. We llustrate ts use the followg eample. Dr K M Sgh, Ida Isttute of Techology Roorkee NPTEL.

FDM: Appromato of Frst Order Dervatves Eample. Derve a three pot backward dfferece formula o uform grd usg geeral procedure gve by equato (.). Soluto For three pot backward dfferece formula, Eq. (.) takes the followg form: f af bf cf () Taylor seres epasos for f ad f are f f f f f... 6 ( ) f f f f f... 6 Hece, af bf a b c cf f f f bc b4c f b8 c... 6 Equatos () ad (v) dcate that the followg three codtos must be satsfed: abc 0 (v) bc (v) b4c 0 (v) Solvg Eqs. (v)-(v), we get a /, b, c / (v) The trucato error (TE) s gve by () () (v) f f b8c 6 () Therefore, the desred three-pot backward dfferece formula s f f 4f f, TE ~ O () Smlarly, we ca derve a three-pot forward dfferece formula whch s gve by f f 4f f, TE ~ O () Dr K M Sgh, Ida Isttute of Techology Roorkee NPTEL.

FDM: Appromato of Frst Order Dervatves. POLYNOMIAL FITTING A geerc fucto f() ca be appromated by a polyomal as or f a a a a 0... (.) 0... f a a a a (.) Coeffcets a 0, a, a,.., a are determed by fttg the terpolato curve to fucto values at approprate umber of pots. The secod form gve by Eq. (.) s usually preferred as t drectly provdes the epresso for dervatves at pot,.e.,, 6,... f f f a a a (.4) The order of appromato of the resultg fte dfferece appromato ca obtaed usg Taylor seres epaso. The followg eample llustrates the use of polyomal fttg for dervato of fte dfferece appromato for the frst order dervatve. Eample. Derve a three pot cetral dfferece formula o o-uform grd usg polyomal fttg at pots, ad. Soluto We ca ft the followg quadratc curve through three pots, ad : f a a a () 0 The frst order dervatve at pot s a. To obta the value of a, we ft the terpolato curve () to the fucto values at pots, ad, whch results the followg set of lear equatos: f 0 a () f f a a () f f a a (v) Multply Eq. (v) by ad subtract t from Eq. () to obta a f f f (v) Rearragemet of the precedg equato gves value of coeffcet a, ad thereby a appromato for the frst order dervatve gve by f f f f a (v) Dr K M Sgh, Ida Isttute of Techology Roorkee NPTEL.4

FDM: Appromato of Frst Order Dervatves The precedg formula s detcal to that gve by Eq. (.0) derved earler usg Taylor seres epaso. Further, o a uform grd,, Eq. (v) (or Eq. (.0)) reduces to the stadard CDS formula f f f (v) as epected. Let us ote that other polyomals, sples or shape fuctos ca be used to appromate the fucto, ad thereby obta a appromate formula for the dervatve. Usg the procedure outled above, we ca obta hgher order appromatos. For eample, by fttg a cubc polyomal to four pots, the followg thrd order appromatos ca be obtaed o a uform grd (Ferzger ad Perc, 00): f f f 6f f 6 (( ) ) O (.5) f f 6f f f O(( ) ) 6 (.6) The precedg appromatos are thrd order BDS ad thrd order FDS respectvely. These schemes are very useful covectve trasport problem where these are referred as upwd dfferece schemes (UDS). I geeral, appromato of the frst dervatve obtaed usg polyomal fttg has the trucato error of the same order as the degree of polyomal (Ferzger ad Perc, 00). REFERENCES Chug, T. J. (00). Computatoal Flud Dyamcs. d Ed., Cambrdge Uversty Press, Cambrdge, UK. Ferzger, J. H. Ad Perć, M. (00). Computatoal Methods for Flud Dyamcs. Sprger. Dr K M Sgh, Ida Isttute of Techology Roorkee NPTEL.5