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

Similar documents
Numerical Methods. Scientists. Engineers

Preface. 2 Linear Equations and Eigenvalue Problem 22

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

Applied Numerical Analysis

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

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

Computational Methods

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

MATHEMATICAL METHODS INTERPOLATION

Mathematical Methods for Numerical Analysis and Optimization

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

NUMERICAL ANALYSIS SYLLABUS MATHEMATICS PAPER IV (A)

NUMERICAL METHODS FOR ENGINEERING APPLICATION

PARTIAL DIFFERENTIAL EQUATIONS

Numerical Methods for Engineers

Numerical Analysis for Engineers and Scientists

Virtual University of Pakistan

NUMERICAL MATHEMATICS AND COMPUTING

Fundamental Numerical Methods for Electrical Engineering

A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS

Numerical Mathematics

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

M.SC. PHYSICS - II YEAR

Page No.1. MTH603-Numerical Analysis_ Muhammad Ishfaq

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

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

YEAR III SEMESTER - V

CAM Ph.D. Qualifying Exam in Numerical Analysis CONTENTS

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

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)

Exact and Approximate Numbers:

Subbalakshmi Lakshmipathy College of Science. Department of Mathematics

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

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

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

NUMERICAL METHODS USING MATLAB

NUMERICAL COMPUTATION IN SCIENCE AND ENGINEERING

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

Contents. I Basic Methods 13

MTH603 FAQ + Short Questions Answers.

Numerical Methods for Engineers and Scientists

Numerical Methods for Engineers

Numerical Methods with MATLAB

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

AIMS Exercise Set # 1

9.6 Predictor-Corrector Methods

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

ENGINEERING MATHEMATICS I. CODE: 10 MAT 11 IA Marks: 25 Hrs/Week: 04 Exam Hrs: 03 PART-A

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

MA1023-Methods of Mathematics-15S2 Tutorial 1

Math 411 Preliminaries

Introduction to Numerical Analysis

Unit I (Testing of Hypothesis)

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

Engineering Mathematics

Introduction to Numerical Analysis

An Introduction to Numerical Analysis

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

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

Final Year M.Sc., Degree Examinations

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

CS 257: Numerical Methods

Numerical Integra/on

Numerical Analysis. Elements of. Second Edition. Radhey S. Gupta

2.29 Numerical Fluid Mechanics Spring 2015 Lecture 4

CN - Numerical Computation

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

COSC 3361 Numerical Analysis I Ordinary Differential Equations (II) - Multistep methods

SBAME CALCULUS OF FINITE DIFFERENCES AND NUMERICAL ANLAYSIS-I Units : I-V

NUMERICAL METHODS. lor CHEMICAL ENGINEERS. Using Excel', VBA, and MATLAB* VICTOR J. LAW. CRC Press. Taylor & Francis Group

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

Introduction to Numerical Analysis

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

BASIC EXAM ADVANCED CALCULUS/LINEAR ALGEBRA

SAZ3C NUMERICAL AND STATISTICAL METHODS Unit : I -V

Numerical Methods. King Saud University

UNIT - 2 Unit-02/Lecture-01

Mathematics for Chemists

Lecture Notes Electrical Engineering Volume 18

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

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

Numerical Methods FOR ENGINEERING AND SCIENCE SAUMYEN GUHA. Professor Department of Civil Engineering IIT Kanpur RAJESH SRIVASTAVA

Part IB Numerical Analysis

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF SCIENCE & HUMANITIES STATISTICS & NUMERICAL METHODS TWO MARKS

COMPUTATIONAL METHODS AND ALGORITHMS Vol. I - Numerical Analysis and Methods for Ordinary Differential Equations - N.N. Kalitkin, S.S.

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

1. to apply Simpson s 1/3 rule, the number of intervals in the following must be Answer: (select your correct answer)

MTH603 - Numerical Analysis Solved final Term Papers For Final Term Exam

Linear Multistep Methods I: Adams and BDF Methods

Fourth Order RK-Method

Scientific Computing: An Introductory Survey

USHA RAMA COLLEGE OF ENGINEERING & TECHNOLOGY

NUMERICAL AND STATISTICAL COMPUTING (MCA-202-CR)

Index. higher order methods, 52 nonlinear, 36 with variable coefficients, 34 Burgers equation, 234 BVP, see boundary value problems

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes

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

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

Introductory Numerical Analysis

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.

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

Transcription:

Iraq Kurdistan Region Ministry of Higher Education and Scientific Research University of Sulaimani Faculty of Science and Science Education School of Science Education-Mathematics Department Introduction to Numerical Analysis First Edition Rostam K. Saeed Karwan H.F. Jwamer Faraidun K. Hamasalh Sulaimani, Kurdistan Region- Iraq, 2015 2015

Introduction to Numerical Analysis First Edition Rostam K. Saeed Department of Mathematics, College of Science, Salahaddin University/Erbil, Kurdistan Region, Hawler, Iraq. Karwan H.F. Jwamer Department of Mathematics, School of Science, University of Sulaimani, Kurdistan Region, Sulaimani, Iraq. Faraidun K. Hamasalh Department of Mathematics, School of Science Education, University of Sulaimani,, Kurdistan Region, Sulaimani, Iraq. Sulaimani, Kurdistan Region- Iraq, 2015

Copyright 2015 by Rostam K. Saeed, Karwan H.F. Jwamer and Faraidun K. Hamasalh. First Edition published 2015 by University of Sulaimani, Sulaimani, Kurdistan Region- Iraq. Printed by Pasha print, 2015, Sulaimani, Kurdistan Region- Iraq. Bibliography: Includes index Numerical Analysis Rostam K. Saeed, Karwan H.F. Jwamer and Faraidun K. Hamasalh

Preface After several years as lecture in Numerical Analysis, we felt that the books that were available on the subject were written in such a way that the students found them difficult to understand. It s hard for students whose mother language is not English, so we decided that we should try to compose a book on Numerical Analysis that is suitable for students in the Mathematics and Physics departments in College of Science, College of Education, and College of Engineering. This book will primarily function as an abbreviation of the Numerical Analysis course that student in a number of different colleges study. It can be used as an introductory handbook for students from many different backgrounds and academic levels. It is a known fact that Numerical Analysis is not just a science, it requires picking through different methods for the sake of solving the problem at hand. Examples and solutions at the end of each chapter have been provided which would help the students. While writing the chapters, we tried to write in a suitable level that would be easy to understand, for English students and foreign ones alike. We have also provided several examples and solutions so that understanding would be even more efficient. In writing this book, we have tried to write at a level that would be easy to be understood by native and non-native English speaking students. And that helps them pay more attention to the lecturer, which in turn, increases their understanding. And to enrich the subject even more, a couple of new ways have been accomplished by the authors and they have been added into this book in I

several chapters. We hope that this book will be able to help students in this magnificent portion of the field of Mathematics and its vast array of applications, and provide a paved pathway to encourage them to learn more about the subject. Authors, 2015 II

ACKNOWLEDGMENTS We would like to express our appreciation to Faculty of Science and Science Education of University of Sulaimani and College of Science of University of Salahaddin/Erbil, for volunteering to use a preliminary version of this text. We also wish to acknowledge the valuable input from students who used this book. A deeply felt thank you goes to the following reviewers for their words of encouragement, criticisms, and thoughtful suggestions: We would like to thank Professor Dr. Fadhil Hameed Easif and assistance Professor Dr. Shazad Shawqi Ahmed Scientific evaluation and Dr.Bekhal Latif Muhedeen for language s evaluation and their feedback on this book. Finally, we thank the editorial and production staff, especially Professor Dr. Hamid Majid Ahmed head of the Central Committee for books approving and publishing at Sulaimani University for invaluable help, comments and proving in preparation of the book. Authors 2015 III

CONTENTS Preface ACKNOWLEDGMENTS I III Chapter 1: Basic Concepts and Computer Arithmetic 1-19 1.1 Introduction 1 1.2 Some Basic Concepts 1 1.2.1 Taylor Series for Functions of a Single Variable 1 1.2.2. Infinitely Differentiable Functions 3 1.2.3Mean Value Theorem 4 1.2.4 Rolle s Theorem 4 1.2.5 Intermediate Value Theorem 4 1.2.6 Differentiable Functions 4 1.3 Computer Arithmetic 5 1.3.1 Floating-Point Number 5 1.3.2 The Representation of Fractions 7 1.3.3 Sources of Error 7 1.3.4 Errors of Numerical Approximations 8 1.3.4.1 Truncation Errors 9 1.3.4.2 Rounding and Chopped Error 9 1.3.4.3 Round-of Errors 10 1.3.4.4 Inherent Error 11 1.4 Measuring Errors 11 1.4.1 True and Relative Errors 11 1.4.2 Approximate Error and Relative Approximate Error 13 1.5 Numerical Instability 15 1.6 Big O and Small o Notation 16 EXERCISES 1 18 IV

Chapter2: Solutions of Equations in one Variable 20-74 2.1 Introduction 20 2.2 Locating the Oosition of Roots (Programming Method) 20 2.3 Numerical Methods 22 2.3.1 Bisection Method 22 2.3.2 False position method(regula Falsi Method) 27 2.3.3 Secant Method 29 2.3.4 Newton-Raphson Method 33 2.3.5 Chybeshev method 40 2.3.6 Fixed Point Method 41 2.3.7 Aitkin Method 49 2.3.8 Müller's Method 50 2.3.9 Horner Algorithm 53 2.3.10 Bairstow's Method 56 2.3.11 Rostam-Kawa Methods 60 2.3.12 Rostam-Shno Methods 67 Exercises 2 71 Chapter 3: Solving linear System of Equations 75-113 3.1 Introduction 75 3.2 Direct Method 75 3.2.1 Gauss Elimination 76 3.2.2 Gauss Elimination with Partial Pivoting 79 3.2.3 LU Factorization Method (Doolittle factorization) 80 3.2.4 Cholesky Factorization 84 3.3 Norms of Vectors and Matrices 86 3.4 Indirect method (or Iterative methods) 100 3.4.1. Jacobi Method 101 3.4.2.Gauss-Seidel Method 107 V

Exercises 3 112 Chapter 4: Solving System of Non-Linear Equations 114-125 4.1 Introduction 114 4.2 Numerical Methods 114 4.2.1 Fixed-Point Iteration 114 4.2.2 Newton-Raphson Method 119 4.2.3 Modified Newton-Raphson Method 123 Exercise 4 125 Chapter 5: Interpolation and Numerical Differentiation 126-177 5.1 Introduction 126 5.2 The Finite Difference Calculus 126 5.2.1. Shifting Operator (E) 127 5.2.2. Forward Difference Operator ( ) 127 5.2.3. Backward Difference Operator ( ) 130 5.2.4. Central Deference Operator (δ) 130 5.2.5.Average Operator (µ) 131 5.2.6 Divided Difference Operator ( ) 132 5.3 Interpolation 133 5.3.1Interpolation Problem 134 5.3.1.1 Lagrange Interpolation Polynomial 134 5.3.1.2 Divided Difference Interpolation Formula 140 5.4 Interpolation at Equally spaced nodes 145 5.4.1 Newton Forward Differences Interpolation Formula 145 5.4.2 Newton Backward Differences Interpolation Formula 149 5.4.3 Bessel s Interpolation Formula 151 5.5 Inverse Interpolation 153 5.6 Numerical Differentiation 155 5.6.1 Differentiation of Continuous Functions 155 VI

5.6.2 Forward Difference Approximation of the First Derivative 156 5.6.3 Backward Difference Approximation of the First Derivative 158 5.6.4 Forward Difference Approximation from Taylor Series 160 5.6.5 Finite Difference Approximation of Higher Derivatives 164 5.6.6 Differentiation of Discrete Functions 167 Exercises 5 173 Chapter 6: Spline Approximations 178-206 6.1 Introduction 178 6.2 Interpolation by Spline Function 178 6.2.1Fist Degree Spline 179 6.2.2 Spline of Degree two (Quadratic Spline) 181 6.2.3 Natural Cubic Spline 184 6.3 Lacunary Interpolation by Splines Function 189 6.3.1 Quintic Spline 190 6.3.2 Sixth Degree Spline 192 6.3.3 Seventh Degree Spline 202 6.3.4 Ninth Degree Spline Function 204 Exercises 6 206 Chapter 7: Least square and Curve fitting 207-241 7.1 Introduction 207 7.2 linear Least Square 207 7.3 Nonlinear Least Square 219 7.3.1 Exponential Model 219 7.3.2 Growth Model 224 7.3.3 Polynomial Models 227 7.4. Transforming the Data to use Linear Least Square Formulas 230 7.4.1 Exponential Model 230 VII

7.4.2 Logarithmic Functions 233 7.4.3 Power Functions 235 7.4.4 Growth Model 238 Exercises 7 239 Chapter 8: Numerical Integrations 242-300 8.1 Introduction 242 8.2 Trapezoidal Rule of Integration 242 8.2.1 Derivation of the Trapezoidal Rule 244 8.2.2 Multiple-Segment Trapezoidal Rule 248 8.2.3 Error in Multiple-segment Trapezoidal Rule 254 8.3 Simpson s 1/3 Rule 256 8.3.1: Error in Multiple-Segment Simpson s 1/3 rule 263 8.4 Simpson 3/8 Rule for Integration 264 8.5 Richardson s Extrapolation Formula for Trapezoidal Rule 269 8.6 Romberg Integration 271 8.7 Gauss Quadrature Rule of Integration 276 8.7.1 Derivation of two-point Gauss Quadrature Rule 277 8.7.2 Higher Point Gauss Quadrature Formulas 280 8.7.3 Arguments and Weighing Factors for n-point Gauss Quadrature Rules 281 8.8 Gauss Legendre Integration Methods 290 8.9 Gauss-Chebyshev Integration Methods 294 8.10 Gauss-Hermite Integration Methods 296 Exercises 8 299 Chapter 9: Numerical Solutions of Ordinary Differential Equations 301-353 9.1 Introduction 301 9.2 Euler s Method for Ordinary Differential Equations 301 9.2.1 Derivation of Euler s Method 302 9.3 Modified Euler Method 309 VIII

9.4 Taylor s Series Method 310 9.5 Runge-Kutta 2 nd Order Method 312 9.5.1 Runge-Kutta 2 nd Order Method 313 9.5.2 Runge-Kutta 4 th Order Method 318 9.6 Finite Difference Method 324 9.7 Shooting Method 338 9.8 Predictor-Corrector Methods 345 9.8.1 Adams-Moulton Predictor-Corrector Method 345 Exercises 9 351 Chapter 10: Solving Higher Order Ordinary Differential Equations 354-369 10.1 Euler s and Runge-Kutta methods for Higher Order Ordinary Differential Equations (ODEs) 354 10.2 Lacunary Interpolation Methods for Higher order ODEs 359 10.2.1 Ninth Degree Spline Method for Solving System of ODE s 359 10.2.2 Fifth Degree Spline Method for Solving Initial Value Problems 365 Bibliography 370 Index 374 IX