MECN 3500 Lecture 4 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo

Slides:



Advertisements
Similar presentations
Truncation Errors and Taylor Series
Advertisements

Computational Modeling for Engineering MECN 6040
CE33500 – Computational Methods in Civil Engineering Differentiation Provided by : Shahab Afshari
Chapter 18 Interpolation The Islamic University of Gaza
Mechanisms Design MECN 4110
Mechanical Measurement and Instrumentation MECN 4600
Part 3 Truncation Errors Second Term 05/06.
Chapter 19 Numerical Differentiation §Estimate the derivatives (slope, curvature, etc.) of a function by using the function values at only a set of discrete.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 6 Roots of Equations Bracketing Methods.
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
ECIV 301 Programming & Graphics Numerical Methods for Engineers Lecture 5 Approximations, Errors and The Taylor Series.
NUMERICAL ERROR ENGR 351 Numerical Methods for Engineers Southern Illinois University Carbondale College of Engineering Dr. L.R. Chevalier.
Numerical Methods for Engineering MECN 3500
Lecture Notes Dr. Rakhmad Arief Siregar Universiti Malaysia Perlis
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.
COMPUTATIONAL MODELING FOR ENGINEERING MECN 6040 Professor: Dr. Omar E. Meza Castillo Department.
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM.
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
MECN 3500 Inter - Bayamon Lecture Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
CSE 330 : Numerical Methods
ENGR 3340: Fundamentals of Statics and Dynamics Fundamentals of Statics and Dynamics - ENGR 3340 Professor: Dr. Omar E. Meza Castillo
Mechanical Measurement and Instrumentation MECN 4600
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Lecture 3 Vector Mechanics for Engineers: Dynamics MECN 3010 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus.
CISE301_Topic11 CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4:
Mechanical Measurement and Instrumentation MECN 4600
CSE 541 Rick Parent ELEMENTARY NUMERICAL METHODS Winter 2012.
MECN 3500 Inter - Bayamon Lecture 7 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
MECN 4600 Inter - Bayamon Lecture Mechanical Measurement and Instrumentation MECN 4600 Professor: Dr. Omar E. Meza Castillo
ENGR 3340: Fundamentals of Statics and Dynamics Fundamentals of Statics and Dynamics - ENGR 3340 Professor: Dr. Omar E. Meza Castillo
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Truncation Error and the Taylor Series
Mechanical Measurement and Instrumentation MECN 4600
Now that you’ve found a polynomial to approximate your function, how good is your polynomial? Find the 6 th degree Maclaurin polynomial for For what values.
Lecture 4 Vector Mechanics for Engineers: Dynamics MECN 3010 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus.
MECN 3500 Inter - Bayamon Lecture 3 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Lecture 3 Mechanical Measurement and Instrumentation MECN 4600 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus.
Lecture 2 Numerical Methods for Engineering MECN 3500 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus Dr.
Lecture 6 Vector Mechanics for Engineers: Dynamics MECN 3010 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus.
MECN 4600 Inter - Bayamon Lecture 9 Mechanical Measurement and Instrumentation MECN 4600 Professor: Dr. Omar E. Meza Castillo
Numerical Methods for Engineering MECN 3500
Lecture 5 Vector Mechanics for Engineers: Dynamics MECN 3010 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Introduction Course Outline.
Finite Difference Methods Definitions. Finite Difference Methods Approximate derivatives ** difference between exact derivative and its approximation.
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 4 Engineering Economics ENGR 3300 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus Dr. Omar E. Meza.
MECN 3500 Inter - Bayamon Lecture 8 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
MECN 3500 Inter - Bayamon Lecture 9 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
MECN 3500 Inter - Bayamon Lecture 6 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo
Numerical Analysis CC413 Propagation of Errors.
Lecture 8 Vector Mechanics for Engineers: Dynamics MECN 3010 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus.
Mechanisms Design MECN 4110
Lecture 2 Vector Mechanics for Engineers: Dynamics MECN 3010 Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus.
Thermodynamics I Inter - Bayamon Lecture 7 Thermodynamics I MECN 4201 Professor: Dr. Omar E. Meza Castillo
Today’s class Ordinary Differential Equations Runge-Kutta Methods
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Truncation Errors and the Taylor Series Chapter 4.
ENGR 3340: Fundamentals of Statics and Dynamics Fundamentals of Statics and Dynamics - ENGR 3340 Professor: Dr. Omar E. Meza Castillo
Mechanics of Materials Inter - Bayamon Review 1 FE Review Mechanics of Materials Professor: Dr. Omar E. Meza Castillo
CPE 332 Computer Engineering Mathematics II Part III, Chapter 11 Numerical Differentiation and Integration Numerical Differentiation and Integration.
NUMERICAL DIFFERENTIATION Forward Difference Formula
CHAPTER 3 NUMERICAL METHODS.
Chapter 23.
MATH 2140 Numerical Methods
Taylor Series Revisited
MATH 174: NUMERICAL ANALYSIS I
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
Presentation transcript:

MECN 3500 Lecture 4 Numerical Methods for Engineering MECN 3500 Professor: Dr. Omar E. Meza Castillo Department of Mechanical Engineering Inter American University of Puerto Rico Bayamon Campus

Lecture 4 MECN 3500 Inter - Bayamon 2 Tentative Lectures Schedule TopicLecture Mathematical Modeling and Engineering Problem Solving 1 Introduction to Matlab 2 Numerical Error 3 Root Finding 3 System of Linear Equations Least Square Curve Fitting Polynomial Interpolation Numerical Integration Ordinary Differential Equations

Lecture 4 MECN 3500 Inter - Bayamon Taylor Theorem Truncation Errors and the Taylor Series 3

Lecture 4 MECN 3500 Inter - Bayamon  To understand the use of Taylor Series in the study of numerical methods. 4 Course Objectives

Lecture 4 MECN 3500 Inter - Bayamon Truncation Errors: use approximation in place of an exact mathematical procedure. Truncation Errors: use approximation in place of an exact mathematical procedure. Numerical Methods express functions in an approximate fashion: The Taylor Series. Numerical Methods express functions in an approximate fashion: The Taylor Series. What is a Taylor Series? What is a Taylor Series? Some examples of Taylor series which you must have seen 5 Introduction

Lecture 4 MECN 3500 Inter - Bayamon The general form of the Taylor series is given by The general form of the Taylor series is given by provided that all derivatives of f(x) are continuous and exist in the interval [x,x+h] What does this mean in plain English? 6 General Taylor Series As Archimedes would have said, “Give me the value of the function at a single point, and the value of all (first, second, and so on) its derivatives at that single point, and I can give you the value of the function at any other point” ( fine print excluded )

Lecture 4 MECN 3500 Inter - Bayamon 7

Lecture 4 MECN 3500 Inter - Bayamon Example: Find the value of f(6) given that f(4)=125, f’(4)=74, f’’(4)=30, f’’’(4)=6 and all other higher order derivatives of f(x) at x=4 are zero. Example: Find the value of f(6) given that f(4)=125, f’(4)=74, f’’(4)=30, f’’’(4)=6 and all other higher order derivatives of f(x) at x=4 are zero. Solution: x=4, x+h=6  h=6-x=2 Solution: x=4, x+h=6  h=6-x=2 Since the higher order derivatives are zero, Since the higher order derivatives are zero, 8 General Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon The Taylor Series (x i+1 -x i )= hstep size (define first) (x i+1 -x i )= hstep size (define first) Reminder term, R n, accounts for all terms from (n+1) to infinity. Reminder term, R n, accounts for all terms from (n+1) to infinity. 9

Lecture 4 MECN 3500 Inter - Bayamon The Taylor Series Zero-order approximation Zero-order approximation First-order approximation First-order approximation Second-order approximation Second-order approximation 10

Lecture 4 MECN 3500 Inter - Bayamon 11

Lecture 4 MECN 3500 Inter - Bayamon Example 4.1: Taylor Series Approximation of a polynomial Use zero- through fourth- order Taylor Series approximation to approximate the function: Example 4.1: Taylor Series Approximation of a polynomial Use zero- through fourth- order Taylor Series approximation to approximate the function: From x i =0 with h=1. That is, predict the function’s value at x i+1 =1 From x i =0 with h=1. That is, predict the function’s value at x i+1 =1 f(0)=1.2 f(0)=1.2 f(1)=0.2 -  True value f(1)=0.2 -  True value 12 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon Zero-order approximation Zero-order approximation First-order approximation First-order approximation 13 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon Second-order approximation Second-order approximation 14 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon Third-order approximation Third-order approximation 15 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon Fourth-order approximation Fourth-order approximation 16 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon 17 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon If we truncate the series after the first derivative term If we truncate the series after the first derivative term 18 Taylor Series to Estimate Truncation Errors First-order approximation Truncation Error

Lecture 4 MECN 3500 Inter - Bayamon Forward Difference Approximation Forward Difference Approximation 19 Numerical Differentiation

Lecture 4 MECN 3500 Inter - Bayamon Backward Difference Approximation Backward Difference Approximation 20 Numerical Differentiation

Lecture 4 MECN 3500 Inter - Bayamon Centered Difference Approximation Centered Difference Approximation 21 Numerical Differentiation

Lecture 4 MECN 3500 Inter - Bayamon 22

Lecture 4 MECN 3500 Inter - Bayamon Example 4.4: To find the forward, backward and centered difference approximation for f(x) at x=0.5 using step size of h=0.5, repeat using h=0.25. The true value is Example 4.4: To find the forward, backward and centered difference approximation for f(x) at x=0.5 using step size of h=0.5, repeat using h=0.25. The true value is h=0.5 h=0.5 x i-1 =0 -  f(x i-1 )=1.2 x i-1 =0 -  f(x i-1 )=1.2 x i =0.5 -  f(x i )=0.925 x i =0.5 -  f(x i )=0.925 X i+1 =1 -  f(x i+1 )=0.2 X i+1 =1 -  f(x i+1 )= The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon Forward Difference Approximation Forward Difference Approximation Backward Difference Approximation Backward Difference Approximation 24 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon Centered Difference Approximation Centered Difference Approximation 25 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon h=0.25 h=0.25 x i-1 =  f(x i-1 )= x i-1 =  f(x i-1 )= x i =0.5 -  f(x i )=0.925 x i =0.5 -  f(x i )=0.925 X i+1 =  f(x i+1 )= X i+1 =  f(x i+1 )= Forward Difference Approximation Forward Difference Approximation 26 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon Backward Difference Approximation Backward Difference Approximation Centered Difference Approximation Centered Difference Approximation 27 The Taylor Series

Lecture 4 MECN 3500 Inter - Bayamon Homework3  Omar E. Meza Castillo Ph.D. 28