Review. Numerical Methods Lecture 22. Prof. Jinbo Bi CSE, UConn

Similar documents
TABLE OF CONTENTS INTRODUCTION, APPROXIMATION & ERRORS 1. Chapter Introduction to numerical methods 1 Multiple-choice test 7 Problem set 9

Numerical Methods for Engineers

Fundamental Numerical Methods for Electrical Engineering

Applied Numerical Analysis

Computational Methods

Numerical Methods. Scientists. Engineers

MATHEMATICAL METHODS INTERPOLATION

Exam 2. Average: 85.6 Median: 87.0 Maximum: Minimum: 55.0 Standard Deviation: Numerical Methods Fall 2011 Lecture 20

PARTIAL DIFFERENTIAL EQUATIONS

Numerical Analysis Solution of Algebraic Equation (non-linear equation) 1- Trial and Error. 2- Fixed point

Numerical Analysis. A Comprehensive Introduction. H. R. Schwarz University of Zürich Switzerland. with a contribution by

NUMERICAL METHODS FOR ENGINEERING APPLICATION

NUMERICAL MATHEMATICS AND COMPUTING

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

NUMERICAL ANALYSIS SYLLABUS MATHEMATICS PAPER IV (A)

Numerical Methods for Engineers. and Scientists. Applications using MATLAB. An Introduction with. Vish- Subramaniam. Third Edition. Amos Gilat.

NUMERICAL METHODS USING MATLAB

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

Numerical Methods for Engineers

CS 257: Numerical Methods

Preface. 2 Linear Equations and Eigenvalue Problem 22

Numerical Analysis. Introduction to. Rostam K. Saeed Karwan H.F. Jwamer Faraidun K. Hamasalh

Lösning: Tenta Numerical Analysis för D, L. FMN011,

Numerical Methods with MATLAB

GENG2140, S2, 2012 Week 7: Curve fitting

MA1023-Methods of Mathematics-15S2 Tutorial 1

Exact and Approximate Numbers:

Numerical Methods. King Saud University

Mathematical Methods for Numerical Analysis and Optimization

Name of the Student: Unit I (Solution of Equations and Eigenvalue Problems)

KINGS COLLEGE OF ENGINEERING DEPARTMENT OF MATHEMATICS ACADEMIC YEAR / EVEN SEMESTER QUESTION BANK

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

Numerical Mathematics

Numerical Methods for Engineers and Scientists

Virtual University of Pakistan

Contents. Preface to the Third Edition (2007) Preface to the Second Edition (1992) Preface to the First Edition (1985) License and Legal Information

CAM Ph.D. Qualifying Exam in Numerical Analysis CONTENTS

School of Sciences Indira Gandhi National Open University Maidan Garhi, New Delhi (For January 2012 cycle)

Multistage Methods I: Runge-Kutta Methods

Unit I (Testing of Hypothesis)

Numerical Analysis for Engineers and Scientists

5. Hand in the entire exam booklet and your computer score sheet.

F I F T H E D I T I O N. Introductory Methods of Numerical Analysis. S.S. Sastry

Review for Exam 2 Ben Wang and Mark Styczynski

A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS

8.3 Numerical Quadrature, Continued

BACHELOR OF COMPUTER APPLICATIONS (BCA) (Revised) Term-End Examination December, 2015 BCS-054 : COMPUTER ORIENTED NUMERICAL TECHNIQUES

Ordinary Differential Equations II

EAD 115. Numerical Solution of Engineering and Scientific Problems. David M. Rocke Department of Applied Science

Ordinary Differential Equations II

Do not turn over until you are told to do so by the Invigilator.

ASSIGNMENT BOOKLET. Numerical Analysis (MTE-10) (Valid from 1 st July, 2011 to 31 st March, 2012)

Integration, differentiation, and root finding. Phys 420/580 Lecture 7

9.6 Predictor-Corrector Methods

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004

ECE257 Numerical Methods and Scientific Computing. Ordinary Differential Equations

Numerical Integration (Quadrature) Another application for our interpolation tools!

Scientific Computing. Roots of Equations

x x2 2 + x3 3 x4 3. Use the divided-difference method to find a polynomial of least degree that fits the values shown: (b)

Numerical Analysis & Computer Programming

Table 1 Principle Matlab operators and functions Name Description Page reference

Today s class. Linear Algebraic Equations LU Decomposition. Numerical Methods, Fall 2011 Lecture 8. Prof. Jinbo Bi CSE, UConn

Numerical Integra/on

Engineering. Mathematics. GATE 2019 and ESE 2019 Prelims. For. Comprehensive Theory with Solved Examples

BASIC EXAM ADVANCED CALCULUS/LINEAR ALGEBRA

PowerPoints organized by Dr. Michael R. Gustafson II, Duke University

SOLUTION OF EQUATION AND EIGENVALUE PROBLEMS PART A( 2 MARKS)

M.SC. PHYSICS - II YEAR

Bindel, Spring 2012 Intro to Scientific Computing (CS 3220) Week 12: Monday, Apr 16. f(x) dx,

Preliminary Examination in Numerical Analysis

MATHEMATICS. Course Syllabus. Section A: Linear Algebra. Subject Code: MA. Course Structure. Ordinary Differential Equations

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation

Part IB Numerical Analysis

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad MECHANICAL ENGINEERING TUTORIAL QUESTION BANK

Introduction to Numerical Analysis

CONTENTS. ABOUTTHEAUTHORS xviii PART ONE MODELING, COMPUTERS, AND ERROR ANALYSIS 3

Page No.1. MTH603-Numerical Analysis_ Muhammad Ishfaq

MTH603 FAQ + Short Questions Answers.

Introductory Numerical Analysis

SAZ3C NUMERICAL AND STATISTICAL METHODS Unit : I -V

Subbalakshmi Lakshmipathy College of Science. Department of Mathematics

Contents. I Basic Methods 13

The University of Western Ontario Faculty of Engineering DEPARTMENT OF CHEMICAL AND BIOCHEMICAL ENGINEERING

QR Decomposition. When solving an overdetermined system by projection (or a least squares solution) often the following method is used:

Final Year M.Sc., Degree Examinations

Department of Mathematics Faculty of Natural Science, Jamia Millia Islamia, New Delhi-25

AN INTRODUCTION TO NUMERICAL METHODS USING MATHCAD. Mathcad Release 14. Khyruddin Akbar Ansari, Ph.D., P.E.

Excel for Scientists and Engineers Numerical Method s. E. Joseph Billo

Fixed point iteration and root finding

Numerical Methods in Physics and Astrophysics

Extrapolation in Numerical Integration. Romberg Integration

Hence a root lies between 1 and 2. Since f a is negative and f(x 0 ) is positive The root lies between a and x 0 i.e. 1 and 1.

Third Edition. William H. Press. Raymer Chair in Computer Sciences and Integrative Biology The University of Texas at Austin. Saul A.

Numerical Methods in Physics and Astrophysics

Exam in TMA4215 December 7th 2012

Differential Equations

YEAR III SEMESTER - V

Applied Numerical Analysis (AE2220-I) R. Klees and R.P. Dwight

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Transcription:

Review Taylor Series and Error Analysis Roots of Equations Linear Algebraic Equations Optimization Numerical Differentiation and Integration Ordinary Differential Equations Partial Differential Equations Curve Fitting 1

Taylor Series Lagrange remainder 2

Roots of Equations Bracketing Methods Bisection Method False Position Method Open Methods Fixed Point Iteration Newton-Raphson Method Secant Method Roots of Polynomials Müller s Method Bairstow s Method 3

Bisection Method Example: Use range of [202:204] Root is in upper subinterval 4

Bisection Method Use range of [203:204] Root is in lower subinterval 5

Fixed Point Iteration Special attention Read Chap 6.1, 6.6 Example 6

Newton-Raphson Method Use tangent to guide you to the root 7

Linear Algebraic Systems Gaussian Elimination Forward Elimination Back Substitution LU Decomposition 8

Gaussian Elimination Forward elimination Eliminate x 1 from row 2 Multiply row 1 by a 21 /a 11 9

Gaussian Elimination Eliminate x 1 from row 2 Subtract row 1 from row 2 Eliminate x 1 from all other rows in the same way Then eliminate x 2 from rows 3-n and so on 10

Gaussian Elimination Forward elimination Back substitute to solve for x 11

LU Decomposition Substitute the factorization into the linear system We have transformed the problem into two steps Factorize A into L and U Solve the two sub-problems LD = B UX = D 12

LU Decomposition Example Factorize A using forward elimination 13

LU Decomposition Example 14

LU Decomposition Example 15

LU Decomposition Example 16

Optimization Methods One-dimensional unconstrained optimization Golden-Section Quadratic Interpolation Newton s Method Multidimensional unconstrained optimization Direct Methods Gradient Methods Constrained Optimization Linear Programming 17

Golden-section search Algorithm Pick two interior points in the interval using the golden ratio 18

Golden-section search Two possibilities 19

Golden-section search Example 20

Golden-section search 21

Golden-section search 22

Newton s Method Newton-Raphson could be used to find the root of an function When finding a function optimum, use the fact that we want to find the root of the derivative and apply Newton-Raphson 23

Newton s Method Example 24

Newton s Method Example 25

Special attention Quadratic interpolation Use a second order polynomial as an approximation of the function near the optimum 26

Special attention Gradient Methods Given a starting point, use the gradient to tell you which direction to proceed The gradient gives you the largest slope out from the current position 27

Numerical Integration Newton-Cotes Trapezoidal Rule Simpson s Rules (Special attention for unevenly distributed points) Romberg Integration Gauss Quadrature 28

Newton-Cotes Formulas Special attention Read Chap 21.2-3 Trapezoidal Rule Simpson s 1/3 Rule Simpson s 3/8 Rule 29

Integration of Equations Romberg Integration Use two estimates of integration and then extrapolate to get a better estimate Special case where you always halve the interval - i.e. h 2 =h 1 /2 30

Romberg Integration 31

Ordinary Differential Equations Runge-Kutta Methods Euler s Method Heun s Method RK4 Multistep Methods Boundary Value Problems Eigenvalue Problems 32

Euler s Method Example: True: h=0.5 33

Heun s Method Local truncation error is O(h 3 ) and global truncation error is O(h 2 ) 34

Heun s Method 35

Classic 4th-order R-K Special attention to ODE equation system Not only one equation method 36

Curve Fitting Least Squares Regression Interpolation Fourier Approximation 37

Polynomial Regression Special attention Lecture note 19 Chap 17.1 An m th order polynomial will require that you solve a system of m+1 linear equations Standard error 38

Newton (divided difference) Interpolation polynomials 39

Newton (divided difference) Interpolation polynomials 40

Interpolation General Scheme for Divided Difference Coefficients 41

Interpolation General Scheme for Divided Difference Coefficients 42

Interpolation Example: Estimate ln 2 with data points at (1,0), (4,1.386294) Linear interpolation 43

Interpolation Example: Estimate ln 2 with data points at (1,0), (4,1.386294), (5,1.609438) Quadratic interpolation 44

Interpolation Example: Estimate ln 2 with data points at (1,0), (4,1.386294), (5,1.609438), (6,1.791759) Cubic interpolation 45

Spline Interpolation Spline interpolation applies low-order polynomial to connect two neighboring points and uses it to interpolate between them. Typical Spline functions 46

Cubic Spline Functions This gives us n-1 equation with n-1 unknowns the second derivatives Once we solve for the second derivatives, we can plug it into the Lagrange interpolating polynomial for second derivative to solve for the splines 47

Cubic Spline Functions Example: (3,2.5), (4.5,1), (7,2.5), (9,0.5) At x=x 1 =4 48

Cubic Spline Functions At x=x 2 =7 49

Cubic Spline Functions Solve the system of equations to find the second derivatives 50

Cubic Spline Equations 51

Cubic Spline Equations Substituting for other intervals 52

Final Exam December 16 Friday, 8:00 AM~10:00 AM, ITE 127 Closed book, three cheat sheets (8.5x11in) allowed Office hours: December 12, 1-3pm, or by appointment TA December 13, 11am-12noon or by appointment 53