Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.

Slides:



Advertisements
Similar presentations
Numerical Integration
Advertisements

Computational Modeling for Engineering MECN 6040
1 Chapter 5 Numerical Integration. 2 A Review of the Definite Integral.
Computational Methods in Physics PHYS 3437
CISE301_Topic61 SE301: Numerical Methods Topic 6 Numerical Differentiation Lecture 23 KFUPM Read Chapter 23, Sections 1-2.
Numerical Integration of Functions
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
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Numerical Computation
High Accuracy Differentiation Formulas
Chapter 7 Numerical Differentiation and Integration
Today’s class Romberg integration Gauss quadrature Numerical Methods
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
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Numerical Integration Lecture (II)1
SE301_14(c)AL-AMER20031 SE031Numerical Methods Topic 6 Numerical Differentiation Dr. Samir Al-Amer ( Term 053) Modified by Dr. Baroudi(072) Read chapter.
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Chapter 7 Differentiation and Integration
ECIV 301 Programming & Graphics Numerical Methods for Engineers REVIEW II.
Chapter 17 Objectives Recognizing that Newton-Cotes integration formulas are based on the strategy of replacing a complicated function or tabulated data.
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: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.
CISE301_Topic7KFUPM1 SE301: Numerical Methods Topic 7 Numerical Integration Lecture KFUPM Read Chapter 21, Section 1 Read Chapter 22, Sections 2-3.
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.
Engineering Analysis ENG 3420 Fall 2009
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.
Scientific Computing Partial Differential Equations Introduction and
Review Taylor Series and Error Analysis Roots of Equations
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
MECN 3500 Lecture 4 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Numerical Differentiation and Integration ~ Integration.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Numerical Differentiation UC Berkeley Fall 2004, E77 Copyright 2005, Andy Packard. This work is licensed under.
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
Lecture 22 Numerical Analysis. Chapter 5 Interpolation.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 5 Integration and Differentiation.
Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00.
Quadrature – Concepts (numerical integration) Don Allen.
CPE 332 Computer Engineering Mathematics II Part III, Chapter 11 Numerical Differentiation and Integration Numerical Differentiation and Integration.
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
Applied Numerical Methods
Chapter 18.
NUMERICAL DIFFERENTIATION AND INTEGRATION
Numerical Differentiation
Chapter 23.
Numerical differentiation
Numerical Differentiation Chapter 23
MATH 2140 Numerical Methods
MATH 174: NUMERICAL ANALYSIS I
Numerical Integration of Functions
SKTN 2393 Numerical Methods for Nuclear Engineers
CPE 332 Computer Engineering Mathematics II
Presentation transcript:

Engineering Analysis ENG 3420 Fall 2009 Dan C. Marinescu Office: HEC 439 B Office hours: Tu-Th 11:00-12:00

2 22 Lecture 27 Schedule  The last homework HW5 and the last project are due on Tuesday November 24!!  Students who have opted for research projects instead of the final should present their projects on Tuesday December 1 st  We’ll have a class review on Thursday December 3 rd.  The final is scheduled for Thursday December 10, 10 AM to 12:50 PM. Last time:  More accurate estimation of integrals (chapter 18) Romberg integration Gauss quadrature Adaptive quadrature Today:  Numerical differentiation (chapter 19). Next Time – Projects presentations

3 Finite differences and derivatives Finite differences: As  x approaches zero, the finite difference approaches the derivative of the function y=f(x):

4 Numerical differentiation formulas Taylor series expansion can be used to generate high-accuracy formulas for derivatives by using linear algebra to combine the expansion around several points.  forward finite-difference,  backward finite-difference, and  centered finite-difference.

5 Forward finite-difference

6 Backward finite-difference

7 Centered finite-difference

8 Richardson extrapolation As with integration, the Richardson extrapolation can be used to combine two lower- accuracy estimates of the derivative to produce a higher-accuracy estimate. For the cases where there are two O(h 2 ) estimates and the interval is halved (h 2 =h 1 /2), an improved O(h 4 ) estimate may be formed using: For the cases where there are two O(h 4 ) estimates and the interval is halved (h 2 =h 1 /2), an improved O(h 6 ) estimate may be formed using: For the cases where there are two O(h 6 ) estimates and the interval is halved (h 2 =h 1 /2), an improved O(h 8 ) estimate may be formed using:

9 Unequally spaced data One way to calculated derivatives of unequally spaced data is to determine a polynomial fit and take its derivative at a point. Example: use a second-order Lagrange polynomial to fit three points and takke its derivative yields:

10 Data errors and numerical integration and differentiation Numerical differentiation  tends to amplify errors in data, Numerical integration  tends to smooth data errors. One approach for taking derivatives of data with errors is to fit a smooth, differentiable function to the data and take the derivative of the function.

11 Built-in functions for numerical differentiation diff(x)  Returns the difference between adjacent elements in x diff(y)./diff(x)  Returns the difference between adjacent values in y divided by the corresponding difference in adjacent values of x fx = gradient(f, h)  Determines the derivative of the data in f at each of the points.  h is the spacing between points; if omitted h=1.  Uses forward difference for the first point, backward difference for the last point, and centered difference for the interior points.  The result is the same size as the original data.  Gradient can also be used to find partial derivatives for matrices. [fx, fy] = gradient(f, h)