Introduction to Numerical Analysis

Similar documents
Introduction to Numerical Analysis

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

NUMERICAL COMPUTATION IN SCIENCE AND ENGINEERING

Applied Numerical Analysis

APPLIED NUMERICAL LINEAR ALGEBRA

Introduction to Applied Linear Algebra with MATLAB

1 Number Systems and Errors 1

NUMERICAL METHODS FOR ENGINEERING APPLICATION

Numerical Methods for Engineers and Scientists

Preface. 2 Linear Equations and Eigenvalue Problem 22

Numerical Methods with MATLAB

Numerical Methods. Scientists. Engineers

Numerical Methods in Matrix Computations

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

Numerical Mathematics

NUMERICAL METHODS USING MATLAB

Applied Linear Algebra

Math 411 Preliminaries

Numerical Analysis for Engineers and Scientists

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

Graduate Texts in Mathematics

NUMERICAL MATHEMATICS AND COMPUTING

Computational Methods

Graduate Texts in Mathematics 51

Undergraduate Texts in Mathematics. Editors J. H. Ewing F. W. Gehring P. R. Halmos

Numerical Recipes. in Fortran 77. The Art of Scientific Computing Second Edition. Volume 1 of Fortran Numerical Recipes. William H.

Numerical Recipes in C visit

Die Grundlehren der mathematischen Wissenschaften

Math 411 Preliminaries

Graduate Texts in Mathematics 42. Editorial Board. F. W. Gehring P. R. Halmos Managing Editor. c. C. Moore

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

Numerical Methods for Engineers

OSCILLATION THEORY FOR DIFFERENCE AND FUNCTIONAL DIFFERENTIAL EQUATIONS

MATRIX AND LINEAR ALGEBR A Aided with MATLAB

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

Mathematics for Chemists

BASIC EXAM ADVANCED CALCULUS/LINEAR ALGEBRA

FINITE-DIMENSIONAL LINEAR ALGEBRA

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

Graduate Texts in Mathematics 22

MATHEMATICAL METHODS INTERPOLATION

Preface to Second Edition... vii. Preface to First Edition...

An Introduction to Numerical Analysis

Mathematical Formulas for Economists

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

Contents. I Basic Methods 13

Numerical Approximation Methods for Elliptic Boundary Value Problems

Graduate Texts in Mathematics 216. Editorial Board S. Axler F.W. Gehring K.A. Ribet

Topics in Number Theory

Preliminary/Qualifying Exam in Numerical Analysis (Math 502a) Spring 2012

Statistics for Social and Behavioral Sciences

A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS

Probability Theory, Random Processes and Mathematical Statistics

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

PARTIAL DIFFERENTIAL EQUATIONS

MA3025 Course Prerequisites

CAM Ph.D. Qualifying Exam in Numerical Analysis CONTENTS

CN - Numerical Computation

Numerical Methods - Numerical Linear Algebra

Engineering Mathematics

Lecture Notes for Inf-Mat 3350/4350, Tom Lyche

THE BOUNDARY ELEMENT METHOD

Introduction to the Theory and Application of the Laplace Transformation

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

THE NUMERICAL TREATMENT OF DIFFERENTIAL EQUATIONS

Fundamental Numerical Methods for Electrical Engineering

Theory and Problems of Signals and Systems

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

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

Computational Techniques for the Summation of Series

Undergraduate Texts in Mathematics

Hands-on Matrix Algebra Using R

Linear Algebra Done Wrong. Sergei Treil. Department of Mathematics, Brown University

Numerical Data Fitting in Dynamical Systems

Matrix Algorithms. Volume II: Eigensystems. G. W. Stewart H1HJ1L. University of Maryland College Park, Maryland

Numerical Solution of partial differential equations

Table 1 Principle Matlab operators and functions Name Description Page reference

Introduction. Chapter One

Preface. Figures Figures appearing in the text were prepared using MATLAB R. For product information, please contact:

Applied Mathematics 205. Unit V: Eigenvalue Problems. Lecturer: Dr. David Knezevic

SPECIAL FUNCTIONS AN INTRODUCTION TO THE CLASSICAL FUNCTIONS OF MATHEMATICAL PHYSICS

Chapter 6. Algebraic eigenvalue problems Introduction Introduction 113. Das also war des Pudels Kern!

Mathematics for Physicists and Engineers

Numerical Methods for the Solution of Ill-Posed Problems

AN INTRODUCTION TO HYDRODYNAMICS AND WATER WAVES

European Consortium for Mathematics in Industry E. Eich-Soellner and C. FUhrer Numerical Methods in Multibody Dynamics

GAME PHYSICS SECOND EDITION. дяййтаййг 1 *

Alexander Ostrowski

Syllabus of Numerical Analysis of Different Universities Introduction to Numerical Analysis

11.5 Reduction of a General Matrix to Hessenberg Form

arxiv: v1 [math.na] 5 May 2011

Progress in Mathematical Physics

Lecture Notes in Mathematics

Numerical Methods for Engineers

Visual Mathematics, lllustrated by the Tl-92 and the Tl-89

Parameter Estimation and Hypothesis Testing in Linear Models

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)

Classics in Mathematics Andre Weil Elliptic Functions according to Eisenstein and Kronecker

METHODS OF ENGINEERING MATHEMATICS

CME 302: NUMERICAL LINEAR ALGEBRA FALL 2005/06 LECTURE 0

Transcription:

J. Stoer R. Bulirsch Introduction to Numerical Analysis Translated by R. Bartels, W. Gautschi, and C. Witzgall Springer Science+Business Media, LLC

J. Stoer R. Bulirsch Institut fiir Angewandte Mathematik Universitiit Wiirzburg am Hubland Institut fiir Mathematik Technische Universitiit 8000 Miinchen 8700 Wiirzburg Federal Republic of Germany Federal Republic of Germany R. Bartels Department of Computer Science University of Waterloo Waterloo, Ontario N2L 3G 1 Canada W. Gautschi Department of Computer Sciences Purdue University West Lafayette, IN 47907 USA C. Witzgall Center for Applied Mathematics National Bureau of Standards Washington, DC 20234 USA AMS Subject Classification: 65-01 Library of Congress Cataloging in Publication Data Stoer, Josef. Introduction to numerical analysis. Translation of Einfiihrung in die Numerische Mathematik. Bibliography: p. Includes index. 1. Numerical analysis. I. Bulirsch, Roland, joint author. II. Title. QA297.S8213 519.4 79-14629 With 30 Figures Title of the German Original Edition: Einfiihrung in die Numerische Mathematik, I, II. Publisher: Springer-Verlag Berlin Heidelberg, 1972, 1976. All rights reserved. No part of this book may be translated or reproduced in any form without written permission from Springer-Verlag. 1980 Springer Science+Business Media New York Originally published by Springer-Verlag New York Inc. in 1980. Softcover reprint of the hardcover 1 st edition 1980 9 8 7 6 5 432 ISBN 978-1-4757-5594-7 ISBN 978-1-4757-5592-3 (ebook) DOI 10.1007/978-1-4757-5592-3

Preface This book is based on a one-year introductory course on numerical analysis given by the authors at several universities in Germany and the United States. The authors concentrate on methods which can be worked out on a digital computer. For important topics, algorithmic descriptions (given more or less formally in ALGOL 60), as well as thorough but concise treatments of their theoretical foundations, are provided. Where several methods for solving a problem are presented, comparisons of their applicability and limitations are offered. Each comparison is based on operation counts, theoretical properties such as convergence rates, and, more importantly, the intrinsic numerical properties that account for the reliability or unreliability of an algorithm. Within this context, the introductory chapter on error analysis plays a special role because it precisely describes basic concepts, such as the numerical stability of algorithms, that are indispensable in the thorough treatment of numerical questions. The remaining seven chapters are devoted to describing numerical methods in various contexts. In addition to covering standard topics, these chapters encompass some special subjects not usually found in introductions to numerical analysis. Chapter 2, which discusses interpolation, gives an account of modem fast Fourier transform methods. In Chapter 3, extrapolation techniques for spe~ding up the convergence of discretization methods in connection with Romberg integration are explained at length. The following chapter on solving linear equations contains a description of a numerically stable realization of the simplex method for solving linear programming problems. Further minimization algorithms for solving unconstrained iii

IV Preface minimization problems are treated in Chapter 5, which is devoted to solving nonlinear equations. After a long chapter on eigenvalue problems for matrices, Chapter 7 is devoted to methods for solving ordinary differential equations. This chapter contains a broad discussion of modem multiple shooting techniques for solving two-point J:>oundary-value problems. In contrast, methods for partial differential equations are not treated systematically. The aim is only to point out analogies to certain methods for solving ordinary differential equations, e.g., difference methods and variational techniques. The final chapter is devoted to discussing special methods for solving large sparse systems of linear equations resulting primarily from the application of difference or finite element techniques to partial differential equations. In addition to iteration methods, the conjugate gradient algorithm of Hestenes and Stiefel and the Buneman algorithm (which provides an example of a modem direct method for solving the discretized Poisson problem) are described. Within each chapter numerous examples and exercises illustrate the numerical and theoretical properties of the various methods. Each chapter concludes with an extensive list of references. The authors are indebted to many who have contributed to this introduction into numerical analysis. Above all, we gratefully acknowledge the deep influence of the early lectures off. L. Bauer on our presentation. Many colleagues have helped us with their careful reading of manuscripts and many useful suggestions. Among others we would like to thank are C. Reinsch, M. B. Spijker, and, in particular, our indefatigable team of translators, R. Bartels, W. Gautschi, and C. Witzgall. Our co-workers K. Butendeich, G. Schuller, J. Zowe, and I. Brugger helped us to prepare the original German edition. Last but not least we express our sincerest thanks to Springer-Verlag for their good cooperation during the past years. Wiirzburg, Miinchen August 1979 J. Stoer R. Bulirsch

Contents 1 Error Analysis 1 1.1 Representation of Numbers 2 1.2 Roundoff Errors and Floating-Point Arithmetic 5 1.3 Error Propagation 9 1.4 Examples 20 1.5 Interval Arithmetic; Statistical Roundoff Estimation 27 Exercises for Chapter 1 33 References for Chapter 1 36 2 Interpolation 37 2.1 Interpolation by Polynomials 38 2.1.1 Theoretical Foundation: The Interpolation Formula of Lagrange 38 2.1.2 Neville's Algorithm 40 2.1.3 Newton's Interpolation Formula: Divided Differences 43 2.1.4 The Error in Polynomial Interpolation 49 2.1.5 Hermite Interpolation 52 2.2 Interpolation by Rational Functions 58 2.2.1 General Properties of Rational Interpolation 58 2.2.2 Inverse and Reciprocal Differences. Thiele's Continued Fraction 63 2.2.3 Algorithms of the Neville Type 67 2.2.4 Comparing Rational and Polynomial Interpolations 71 2.3 Trigonometric Interpolation 72 2.3.1 Basic Facts 72 2.3.2 Fast Fourier Transforms 78 2.3.3 The Algorithms of Goertze1 and Reinsch 84 2.3.4 The Calculation of Fourier Coefficients. Attenuation Factors 88

2.4 Interpolation by Spline Functions 93 2.4.1 Theoretical Foundations 93 2.4.2 Detennining Interpolating Spline Functions 97 2.4.3 Convergence Properties of Spline Functions 102 Exercises for Chapter 2 107 References for Chapter 2 115 3 Topics in Integration 117 3.1 The Integration Fonnulas of Newton and Cotes 118 3.2 Peano's Error Representation 123 3.3 The Euler-Maclaurin Summation Fonnula 127 3.4 Integrating by Extrapolation 131 3.5 About Extrapolation Methods 136 3.6 Gaussian Integration Methods 142 3.7 Integrals with Singularities 152 Exercises for Chapter 3 154 References for Chapter 3 158 4 Systems of Linear Equations 159 4.1 Gaussian Elimination. The Triangular Decomposition of a Matrix 159 4.2 The Gauss-Jordan Algorithm 169 4.3 The Cholesky Decomposition 172 4.4 Error Bounds 175 4.5 Roundoff-Error Analysis for Gaussian Elimination 183 4.6 Roundoff Errors in Solving Triangular Systems 188 4.7 Orthogonalization Techniques of Householder and Gram-Schmidt 190 4.8 Data Fitting 197 4.8.1 Linear Least Squares. The Normal Equations 199 4.8.2 The Use of Orthogonalization in Solving Linear Least-Squares Problems 201 4.8.3 The Condition of the Linear Least-Squares Problem 202 4.8.4 Nonlinear Least-Squares Problems 209 4.8.5 The Pseudo inverse of a Matrix 210 4.9 Modification Techniques for Matrix Decompositions 213 4.10 The Simplex Method 222 4.11 Phase One of the Simplex Method 233 Exercises for Chapter 4 237 References for Chapter 4 242 5 Finding Zeros and Minimum Points by Iterative Methods 244 5.1 The Development of Iterative Methods 245 5.2 General Convergence Theorems 248 5.3 The Convergence of Newton's Method in Several Variables 253 5.4 A Modified Newton Method 256

Contents vii 5.4.1 5.4.2 5.4.3 5.5 5.6 5.7 5.8 5.9 5.l0 5.11 6 On the Convergence of Minimization Methods 257 Application of the Convergence Criteria to the Modified Newton Method 262 Suggestions for a Practical Implementation of the Modified Newton Method. A Rank-One Method Due to Broyden 266 Roots of Polynomials. Application of Newton's Method 270 Sturm Sequences and Bisection Methods 281 Bairstow's Method 285 The Sensitivity of Polynomial Roots 287 Interpolation Methods for Determining Roots 290 The L\2-Method of Aitken 296 Minimization Problems without Constraints 300 Exercises for Chapter 5 309 References for Chapter 5 312 Eigenvalue Problems 314 6.0 Introduction 314 6.1 Basic Facts on Eigenvalues 316 6.2 The Jordan Normal Form of a Matrix 319 6.3 The Frobenius Normal Form of a Matrix 324 6.4 The Schur Normal Form of a Matrix; Hermitian and Normal Matrices; Singular Values of Matrices 328 6.5 Reduction of Matrices to Simpler Form 334 6.5.1 Reduction of a Hermitian Matrix to Tridiagonal Form. The Method of Householder 336 6.5.2 Reduction of a Hermitian Matrix to Tridiagonal or Diagonal Form: The Methods of Givens and Jacobi 341 6.5.3 Reduction to Frobenius Form 345 6.5.4 Reduction to Hessenberg Form 347 6.6 Methods for Determining the Eigenvalues and Eigenvectors 351 6.6.1 Computation of the Eigenvalues of a Hermitian Tridiagonal Matrix 351 6.6.2 Computation of the Eigenvalues of a Hessenberg Matrix. The Method of Hyman 353 6.6.3 Simple Vector Iteration and Inverse Iteration of Wielandt 354 6.6.4 The LR Method 361 6.6.5 Practical Implementation of the LR Method 368 6.6.6 The QR Method 370 6.7 Computation of the Singular Values of a Matrix 377 6.8 Generalized Eigenvalue Problems 382 6.9 Estimation of Eigenvalues 383 Exercises for Chapter 6 396 References for Chapter 6 402 7 Ordinary Differential Equations 404 7.0 Introduction 404 7.l Some Theorems from the Theory of Ordinary Differential Equations 406

viii Contents 7.2 7.2.1 7.2.2 7.2.3 7.2.4 7.2.5 7.2.6 7.2.7 7.2.8 7.2.9 7.2.10 7.2.11 7.2.12 7.2.13 7.2.14 7.2.15 7.2.16 7.3 7.3.0 7.3.1 7.3.2 Initial-Value Problems 410 One-Step Methods: Basic Concepts 410 Convergence of One-Step Methods 415 Asymptotic Expansions for the Global Discretization Error of One-Step Methods 419 The Influence of Rounding Errors in One-Step Methods 420 Practical Implementation of One-Step Methods 423 Multistep Methods: Examples 429 General Multistep Methods 432 An Example of Divergence 435 Linear Difference Equations 438 Convergence of Multistep Methods 441 Linear Multistep Methods 445 Asymptotic Expansions of the Global Discretization Error for Linear Multistep Methods 450 Practical Implementation of Multistep Methods 455 Extrapolation Methods for the Solution of the Initial-Value Problem 458 Comparison of Methods for Solving Initial-Value Problems 461 Stiff Differential Equations 462 Boundary-Value Problems 466 Introduction 466 The Simple Shooting Method 469 The Simple Shooting Method for Linear Boundary-Value Problems 474 7.3.3 An Existence and Uniqueness Theorem for the Solution of Boundary-Value Problems 476 7.3.4 Difficulties in the Execution of the Simple Shooting Method 478 7.3.5 The Multiple Shooting Method 483 7.3.6 Hints for the Practical Implementation of the Multiple Shooting Method 487 7.3.7 An Example: Optimal Control Program for a Lifting Reentry Space Vehicle 491 7.3.8 The Limiting Case m -+ 00 of the Multiple Shooting Method (General Newton's Method, Quasilinearization) 498 7.4 Difference Methods 502 7.5 Variational Methods 507 7.6 Comparison of the Methods for Solving Boundary-Value Problems for Ordinary Differential Equations 515 7.7 Variational Methods for Partial Differential Equations. The Finite-Element Method 519 Exercises for Chapter 7 526 References for Chapter 7 532 8 Iterative Methods for the Solution of Large Systems of Linear Equations. Some Further Methods 536 8.0 Introduction 536 8.1' General Procedures for the Construction of Iterative Methods 537 8.2 Convergence Theorems 540

Contents ix 8.3 Relaxation Methods 545 8.4 Applications to Difference Methods-An Example 554 8.5 Block Iterative Methods 560 8.6 The ADI-Method of Peaceman and Rachford 563 8.7 The Conjugate-Gradient Method of Hestenes and Stiefel 572 8.8 The Algorithm of Buneman for the Solution of the Discretized Poisson Equation 576 8.9 Comparison of Iterative Methods 584 Exercises for Chapter 8 588 References for Chapter 8 595 General Literature on Numerical Methods Index 597 599