Part IB Numerical Analysis

Similar documents
Fourth Order RK-Method

1 Ordinary Differential Equations

Numerical Methods - Initial Value Problems for ODEs

Lecture 4: Numerical solution of ordinary differential equations

Numerical Methods for Differential Equations

Jim Lambers MAT 772 Fall Semester Lecture 21 Notes

Consistency and Convergence

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

Numerical Methods for Differential Equations

Initial-Value Problems for ODEs. Introduction to Linear Multistep Methods

Applied Numerical Analysis

multistep methods Last modified: November 28, 2017 Recall that we are interested in the numerical solution of the initial value problem (IVP):

Initial value problems for ordinary differential equations

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

Part IB - Easter Term 2003 Numerical Analysis I

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

Math 411 Preliminaries

ECE257 Numerical Methods and Scientific Computing. Ordinary Differential Equations

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

MATHEMATICAL METHODS INTERPOLATION

PARTIAL DIFFERENTIAL EQUATIONS

Ordinary Differential Equations

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

Applied Math for Engineers

FINITE-DIMENSIONAL LINEAR ALGEBRA

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

Important Matrix Factorizations

Math 660 Lecture 4: FDM for evolutionary equations: ODE solvers

CS 257: Numerical Methods

Lecture 3: QR-Factorization

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

This can be accomplished by left matrix multiplication as follows: I

Exam in TMA4215 December 7th 2012

9. Numerical linear algebra background

Numerical Methods - Numerical Linear Algebra

Research Article Diagonally Implicit Block Backward Differentiation Formulas for Solving Ordinary Differential Equations

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

Computational Linear Algebra

Solving Ordinary Differential equations

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

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

Inverses. Stephen Boyd. EE103 Stanford University. October 28, 2017

Preface. 2 Linear Equations and Eigenvalue Problem 22

Applied Linear Algebra in Geoscience Using MATLAB

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

Math 128A Spring 2003 Week 12 Solutions

Numerical Analysis Preliminary Exam 10 am to 1 pm, August 20, 2018

Applied Linear Algebra in Geoscience Using MATLAB

CS520: numerical ODEs (Ch.2)

Ordinary differential equations - Initial value problems

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

CONVERGENCE AND STABILITY CONSTANT OF THE THETA-METHOD

Introduction to Numerical Analysis

ELE/MCE 503 Linear Algebra Facts Fall 2018

Math 102, Winter Final Exam Review. Chapter 1. Matrices and Gaussian Elimination

M.SC. PHYSICS - II YEAR

ANALYTICAL MATHEMATICS FOR APPLICATIONS 2018 LECTURE NOTES 3

Numerical Mathematics

You may not use your books, notes; calculators are highly recommended.

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

9.6 Predictor-Corrector Methods

MTH 452/552 Homework 3

1 Multiply Eq. E i by λ 0: (λe i ) (E i ) 2 Multiply Eq. E j by λ and add to Eq. E i : (E i + λe j ) (E i )

Scientific Computing: An Introductory Survey

Algebra C Numerical Linear Algebra Sample Exam Problems

Numerical Differential Equations: IVP

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

CHAPTER 5: Linear Multistep Methods

Math 128A Spring 2003 Week 11 Solutions Burden & Faires 5.6: 1b, 3b, 7, 9, 12 Burden & Faires 5.7: 1b, 3b, 5 Burden & Faires 5.

Solving scalar IVP s : Runge-Kutta Methods

Transformed Companion Matrices as a Theoretical Tool in the Numerical Analysis of Differential Equations

Numerical Methods. Scientists. Engineers

Multistage Methods I: Runge-Kutta Methods

NUMERICAL SOLUTION OF ODE IVPs. Overview

9. Numerical linear algebra background

8.1 Introduction. Consider the initial value problem (IVP):

2 Numerical Methods for Initial Value Problems

Linear Algebra Review

Lecture 11. Linear systems: Cholesky method. Eigensystems: Terminology. Jacobi transformations QR transformation

Chapter 5 Exercises. (a) Determine the best possible Lipschitz constant for this function over 2 u <. u (t) = log(u(t)), u(0) = 2.

Mathematics for chemical engineers. Numerical solution of ordinary differential equations

MATH 425-Spring 2010 HOMEWORK ASSIGNMENTS

Numerical Analysis Comprehensive Exam Questions

Modeling & Simulation 2018 Lecture 12. Simulations

Math Numerical Analysis Homework #4 Due End of term. y = 2y t 3y2 t 3, 1 t 2, y(1) = 1. n=(b-a)/h+1; % the number of steps we need to take

Lecture 6. Numerical methods. Approximation of functions

Solving PDEs with PGI CUDA Fortran Part 4: Initial value problems for ordinary differential equations

ENGI9496 Lecture Notes State-Space Equation Generation

Solutions Preliminary Examination in Numerical Analysis January, 2017


Module 4: Numerical Methods for ODE. Michael Bader. Winter 2007/2008

Numerical solution of ODEs

Ordinary Differential Equations II

Applied Linear Algebra

A THEORETICAL INTRODUCTION TO NUMERICAL ANALYSIS

We wish to solve a system of N simultaneous linear algebraic equations for the N unknowns x 1, x 2,...,x N, that are expressed in the general form

Ordinary Differential Equations II

Matrix decompositions

Preliminary Examination, Numerical Analysis, August 2016

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

Transcription:

Part IB Numerical Analysis Definitions Based on lectures by G. Moore Notes taken by Dexter Chua Lent 206 These notes are not endorsed by the lecturers, and I have modified them (often significantly) after lectures. They are nowhere near accurate representations of what was actually lectured, and in particular, all errors are almost surely mine. Polynomial approximation Interpolation by polynomials. Divided differences of functions and relations to derivatives. Orthogonal polynomials and their recurrence relations. Least squares approximation by polynomials. Gaussian quadrature formulae. Peano kernel theorem and applications. [6] Computation of ordinary differential equations Euler s method and proof of convergence. Multistep methods, including order, the root condition and the concept of convergence. Runge-Kutta schemes. Stiff equations and A-stability. [5] Systems of equations and least squares calculations LU triangular factorization of matrices. Relation to Gaussian elimination. Column pivoting. Factorizations of symmetric and band matrices. The Newton-Raphson method for systems of non-linear algebraic equations. QR factorization of rectangular matrices by Gram-Schmidt, Givens and Householder techniques. Application to linear least squares calculations. [5]

Contents IB Numerical Analysis (Definitions) Contents 0 Introduction 3 Polynomial interpolation 4. The interpolation problem...................... 4.2 The Lagrange formula........................ 4.3 The Newton formula......................... 4.4 A useful property of divided differences.............. 4.5 Error bounds for polynomial interpolation............. 4 2 Orthogonal polynomials 5 2. Scalar product............................ 5 2.2 Orthogonal polynomials....................... 5 2.3 Three-term recurrence relation................... 5 2.4 Examples............................... 5 2.5 Least-squares polynomial approximation.............. 5 3 Approximation of linear functionals 6 3. Linear functionals.......................... 6 3.2 Gaussian quadrature......................... 6 4 Expressing errors in terms of derivatives 7 5 Ordinary differential equations 8 5. Introduction.............................. 8 5.2 One-step methods.......................... 8 5.3 Multi-step methods.......................... 9 5.4 Runge-Kutta methods........................ 9 6 Stiff equations 0 6. Introduction.............................. 0 6.2 Linear stability............................ 0 7 Implementation of ODE methods 7. Local error estimation........................ 7.2 Solving for implicit methods..................... 8 Numerical linear algebra 2 8. Triangular matrices.......................... 2 8.2 LU factorization........................... 2 8.3 A = LU for special A........................ 2 9 Linear least squares 3 2

0 Introduction IB Numerical Analysis (Definitions) 0 Introduction 3

Polynomial interpolation IB Numerical Analysis (Definitions) Polynomial interpolation Notation. We write P n [x] for the real linear vector space of polynomials (with real coefficients) having degree n or less.. The interpolation problem.2 The Lagrange formula Definition (Lagrange cardinal polynomials). The Lagrange cardinal polynomials with respect to the interpolation points {x i } n i=0 are, for k = 0,, n, l k (x) =.3 The Newton formula n i=0,i k x x i x k x i..4 A useful property of divided differences.5 Error bounds for polynomial interpolation Definition (Chebyshev polynomial). The Chebyshev polynomial of degree n on [, ] is defined by T n (x) = cos(nθ), where x = cos θ with θ [0, π]. 4

2 Orthogonal polynomials IB Numerical Analysis (Definitions) 2 Orthogonal polynomials 2. Scalar product Definition (Orthogonalilty). Given a vector space V and an inner product,, two vectors f, g V are orthogonal if f, g = 0. 2.2 Orthogonal polynomials Definition (Orthogonal polynomial). Given a vector space V of polynomials and inner product,, we say p n P n [x] is the nth orthogonal polynomial if In particular, p n, p m = 0 for n m. p n, q = 0 for all q P n [x]. Definition (Monic polynomial). A polynomial p P n [x] is monic if the coefficient of x n is. 2.3 Three-term recurrence relation 2.4 Examples 2.5 Least-squares polynomial approximation 5

3 Approximation of linear functionals IB Numerical Analysis (Definitions) 3 Approximation of linear functionals 3. Linear functionals Definition (Linear functional). A linear functional is a linear mapping L : V R, where V is a real vector space of functions. 3.2 Gaussian quadrature 6

4 Expressing errors in terms of derivatives IB Numerical Analysis (Definitions) 4 Expressing errors in terms of derivatives Definition (Sharp error bound). The constant c L is said to be sharp if for any ε > 0, there is some f ε C k+ [a, b] such that e L (f) (c L ε) f (k+) ε. Definition (Peano kernel). The Peano kernel is K(θ) = λ((x θ) k +). 7

5 Ordinary differential equations IB Numerical Analysis (Definitions) 5 Ordinary differential equations 5. Introduction Definition (Lipschitz function). A function f : R R N R N is Lipschitz with Lipschitz constant λ 0 if f(t, x) f(t, ˆx) λ x ˆx for all t [0, T ] and x, ˆx R N. A function is Lipschitz if it is Lipschitz with Lipschitz constant λ for some λ. 5.2 One-step methods Definition ((Explicit) one-step method). A numerical method is (explicit) one-step if y n+ depends only on t n and y n, i.e. for some function φ h : R R N R N. y n+ = φ h (t n, y n ) Definition (Euler s method). Euler s method uses the formula y n+ = y n + hf(t n, y n ). Definition (Convergence of numerical method). For each h > 0, we can produce a sequence of discrete values y n for n = 0,, [T/h], where [T/h] is the integer part of T/h. A method converges if, as h 0 and nh t (hence n ), we get y n y(t), where y is the true solution to the differential equation. Moreover, we require the convergence to be uniform in t. Definition (Local truncation error). For a general (multi-step) numerical method y n+ = φ(t n, y 0, y,, y n ), the local truncation error is η n+ = y(t n+ ) φ n (t n, y(t 0 ), y(t ),, y(t n )). Definition (Order). The order of a numerical method is the largest p such that η n+ = O(h p+ ). Definition (θ-method). For θ [0, ], the θ-method is ( ) y n+ = y n + h θf(t n, y n ) + ( θ)f(t n+, y n+ ). 8

5 Ordinary differential equations IB Numerical Analysis (Definitions) 5.3 Multi-step methods Definition (2-step Adams-Bashforth method). The 2-step Adams-Bashforth (AB2) method has y n+2 = y n+ + 2 h (3f(t n+, y n+ ) f(t n, y n )). Definition (Multi-step method). A s-step numerical method is given by s ρ l y n+l = h l=0 s σ l f(t n+l, y n+l ). This formula is used to find the value of y n+s given the others. l=0 Definition (Root condition). We say ρ(w) satisfies the root condition if all its zeros are bounded by in size, i.e. all roots w satisfy w. Moreover any zero with w = must be simple. Definition (Adams method). An Adams method is a multi-step numerical method with ρ(w) = w s (w ). Definition (Adams-Bashforth method). An Adams-Bashforth method is an explicit Adams method. Definition (Adams-Moulton method). An Adams-Moulton method is an implicit Adams method. Definition (Backward differentiation method). A backward differentiation method has σ(w) = σ s w s, i.e. s ρ l y n+l = σ s f(t n+s, y n+s ). l=0 5.4 Runge-Kutta methods Definition (Runge-Kutta method). General (implicit) ν-stage Runge-Kutta (RK) methods have the form y n+ = y n + h ν b l k l, l= where for l =,, ν. ν k l = f t n + c n h, y n + h a lj k j j= 9

6 Stiff equations IB Numerical Analysis (Definitions) 6 Stiff equations 6. Introduction 6.2 Linear stability Definition (Linear stability domain). If we apply a numerical method to y (t) = λy(t) with y(0) =, λ C, then its linear stability domain is { } D = z = hλ : lim y n = 0. n Definition (A-stability). A numerical method is A-stable if C = {z C : Re(z) < 0} D. 0

7 Implementation of ODE methods IB Numerical Analysis (Definitions) 7 Implementation of ODE methods 7. Local error estimation 7.2 Solving for implicit methods

8 Numerical linear algebra IB Numerical Analysis (Definitions) 8 Numerical linear algebra 8. Triangular matrices Definition (Triangular matrix). A matrix A is upper triangular if A ij = 0 whenever i > j. It is lower triangular if A ij = 0 whenever i < j. We usually denote upper triangular matrices as U and lower triangular matrices as L. 8.2 LU factorization Definition (LU factorization). A = LU is an LU factorization if U is upper triangular and L is unit lower triangular (i.e. the diagonals of L are all ). 8.3 A = LU for special A Definition (Leading principal submatrix). The leading principal submatrices A k R k k for k =,, n of A R n n are (A k ) ij = A ij, i, j =,, k. In other words, we take the first k rows and columns of A. Definition (Positive definite matrix). A matrix A R n n is positive-definite if for x 0 R n. x T Ax > 0 Definition (Cholesky factorization). The Cholesky factorization of a symmetric positive-definite matrix A is a factorization of the form A = LDL T, with L unit lower triangular and D a positive-definite diagonal matrix. Definition (Band matrix). A band matrix of band width r is a matrix A such that A ij 0 implies i j r. 2

9 Linear least squares IB Numerical Analysis (Definitions) 9 Linear least squares Definition (Orthogonal matrix). A square matrix Q R n n is orthogonal if Q T Q = I. Definition (QR factorization). A QR factorization of an m n matrix A is a factorization of the form A = QR, where Q R m m is an orthogonal matrix, and R R m n is upper triangular matrix, where upper triangular means R R 2 R m 0 R 22 R 2m...... R = 0 0 R mm 0 0 0...... 0 0 0 Definition (Givens rotation). In R m, where m > 2, we define the Givens rotation on 3 parameters p < q m, θ [ π, π] by Ω [p,q] θ =... cos θ sin θ... sin θ cos θ R m m,... where the sin and cos appear at the p, qth rows and columns. Definition (Householder reflection). For u 0 R m, we define the Householder reflection by H u = I 2 uut u T u Rm m. 3