CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari

Slides:



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

Interpolation A standard idea in interpolation now is to find a polynomial pn(x) of degree n (or less) that assumes the given values; thus (1) We call.
CSE Differentiation Roger Crawfis. May 19, 2015OSU/CIS 5412 Numerical Differentiation The mathematical definition: Can also be thought of as the.
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.
NUMERICAL DIFFERENTIATION AND INTEGRATION
High Accuracy Differentiation Formulas
Chapter 7 Numerical Differentiation and Integration
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
Chapter 18 Interpolation The Islamic University of Gaza
Computational Methods in Physics PHYS 3437
ES 240: Scientific and Engineering Computation. InterpolationPolynomial  Definition –a function f(x) that can be written as a finite series of power functions.
KFUPM SE301: Numerical Methods Topic 5: Interpolation Lectures 20-22:
Curve-Fitting Interpolation
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.
Computer-Aided Analysis on Energy and Thermofluid Sciences Y.C. Shih Fall 2011 Chapter 6: Basics of Finite Difference Chapter 6 Basics of Finite Difference.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
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.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Interpolation Chapter 18.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Chapter 23 Numerical Differentiation.
Chapter 6 Numerical Interpolation
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
Ch 8.1 Numerical Methods: The Euler or Tangent Line Method
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.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
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 –
Chap. 11 Numerical Differentiation and Integration
CHAPTER 3 NUMERICAL METHODS
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 7 - Chapter 25.
Maclaurin and Taylor Polynomials Objective: Improve on the local linear approximation for higher order polynomials.
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.
Lecture 39 Numerical Analysis. Chapter 7 Ordinary Differential Equations.
NUMERICAL DIFFERENTIATION or DIFFERENCE APPROXIMATION Used to evaluate derivatives of a function using the functional values at grid points. They are.
MTH 253 Calculus (Other Topics) Chapter 11 – Infinite Sequences and Series Section 11.8 –Taylor and Maclaurin Series Copyright © 2009 by Ron Wallace, all.
Copyright © Cengage Learning. All rights reserved Applications of Taylor Polynomials.
Interpolation - Introduction
NUMERICAL ANALYSIS I. Introduction Numerical analysis is concerned with the process by which mathematical problems are solved by the operations.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Chapter 21 Numerical Differentiation.
1 Approximating functions, polynomial interpolation (Lagrange and Newton’s divided differences) formulas, error approximations.
NUMERICAL DIFFERENTIATION Forward Difference Formula
High Accuracy Differentiation Formulas
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 Differentiation
Interpolation.
Class Notes 18: Numerical Methods (1/2)
Chapter 18.
CSE Differentiation Roger Crawfis.
Chapter 23.
Numerical Analysis Lecture 45.
Numerical differentiation
Section 11.6 – Taylor’s Formula with Remainder
Numerical Analysis Lecture 26.
5.3 Higher-Order Taylor Methods
SKTN 2393 Numerical Methods for Nuclear Engineers
Numerical Analysis Lecture 21.
Presentation transcript:

CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari

Introduction Numeric differentiation is the computation of values of the derivative of a function f from given values of f In mathematics, finite-difference methods (FDM) are numerical methods for approximating the solutions to differential equations using finite difference equations to approximate derivatives

Assuming the function whose derivatives are to be approximated is properly-behaved, by Taylor's theorem, we can create a Taylor Series expansion: where n! denotes the factorial of n, and R n (x) is a remainder term, denoting the difference between the Taylor polynomial of degree n and the original function.

Finite Difference Schemes Consider the diagram below of a typical function f(x). It is desired to evaluate the derivative at point A where x=x 0 i.e. to find the gradient of the tangent at this point.

Finite Difference Schemes For a function f(x) and at a point x=x 0, We will derive an approximation for the first derivative of the function by first truncating the Taylor polynomial as following which is forward difference scheme, first-order-accurate: While, central difference scheme, second-order-accurate

Example 1 Using a step-size of h = 0.01, estimate the derivative of ln(x) at x = 3. Find the value of x where the derivative is really equal to this value. Work to eight decimal places. Set f(x)=ln(x). Now, use the formula with x 0 =3 and h=0.01. So The actual derivative of ln(x) is 1/x which equals rather than at x=3. It is at x= that the actual derivative is

Finite Difference Schemes Second-order accurate finite-difference approximations to higher derivatives (which can also be derived from Taylor's theorem) are

Finite Difference Schemes Non-centered (forward or backward) finite-difference approximations can be derived which are useful for estimating a derivative at the edge of a function's range. For example, a second-order accurate forward finite- difference approximation for the first derivative is

Richardson Extrapolation Richardson’s extrapolation can be viewed as a general procedure for improving the accuracy of approximations when the structure of the error is known. In numerical analysis, Richardson extrapolation is a sequence acceleration method, used to improve the rate of convergence of a sequence.

Richardson Extrapolation

Example 3

Interpolation Interpolation means finding (approximate) values of a function f(x) for an x between different x-values x 0, x 1, …, x n at which the values of f(x) are given. Lagrange Interpolation Given (x 0, f 0 ), (x 1, f 1 ), …, (x n, f n ) with arbitrarily spaced x j, Lagrange had the idea of multiplying each f j by a polynomial that is 1 at x j and 0 at the other n nodes and then taking the sum of these n + 1 polynomials. Clearly, this gives the unique interpolation polynomial of degree n or less.

Linear Interpolation is interpolation by the straight line through (x 0, f 0 ), (x 1, f 1 ); Thus the linear Lagrange polynomial p 1 is a sum p 1 = L 0 f 0 + L 1 f 1 with L 0 the linear polynomial that is 1 at x 0 and 0 at x 1 ; similarly, L 1 is 0 at x 0 and 1 at x 1. Linear Interpolation

Example 4

General Lagrange Interpolation For general n we obtain

Given data (x 0, f 0 ), (x 1, f 1 ), …, (x n, f n ) can be interpolated by a polynomial P n (x) passes through these n+1 points (x j, f j ); Now if n is large, there may be trouble: P n (x) may tend to oscillate for x between the nodes x 0, x 1, …, x n. Hence we must be prepared for numeric instability. Cubic Spline Interpolation

Determination of Cubic Spline

Example 4

Example 4 - continued