Preliminary Examination in Numerical Analysis

Similar documents
Fixed point iteration and root finding

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

n 1 f n 1 c 1 n+1 = c 1 n $ c 1 n 1. After taking logs, this becomes

x n+1 = x n f(x n) f (x n ), n 0.

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

PARTIAL DIFFERENTIAL EQUATIONS

Preliminary Examination, Numerical Analysis, August 2016

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

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

Numerical Analysis Preliminary Exam 10.00am 1.00pm, January 19, 2018

MATHEMATICAL METHODS INTERPOLATION

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Numerical Methods. King Saud University

MA2501 Numerical Methods Spring 2015

We consider the problem of finding a polynomial that interpolates a given set of values:

Math Numerical Analysis Mid-Term Test Solutions

Lecture 10 Polynomial interpolation

Chapter 4: Interpolation and Approximation. October 28, 2005

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

LECTURE 16 GAUSS QUADRATURE In general for Newton-Cotes (equispaced interpolation points/ data points/ integration points/ nodes).

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)

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University

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

Two hours. To be provided by Examinations Office: Mathematical Formula Tables. THE UNIVERSITY OF MANCHESTER. 29 May :45 11:45

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

(0, 0), (1, ), (2, ), (3, ), (4, ), (5, ), (6, ).

AM205: Assignment 3 (due 5 PM, October 20)

Examination paper for TMA4215 Numerical Mathematics

Numerical Mathematics

Chapter 3 Interpolation and Polynomial Approximation

Numerical Methods in Physics and Astrophysics

CS 257: Numerical Methods

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

Math 578: Assignment 2

Applied Numerical Analysis

Cubic Splines MATH 375. J. Robert Buchanan. Fall Department of Mathematics. J. Robert Buchanan Cubic Splines

CS 323: Numerical Analysis and Computing

Interpolation. Chapter Interpolation. 7.2 Existence, Uniqueness and conditioning

NUMERICAL MATHEMATICS AND COMPUTING

Finite Differences for Differential Equations 28 PART II. Finite Difference Methods for Differential Equations

MATH ASSIGNMENT 07 SOLUTIONS. 8.1 Following is census data showing the population of the US between 1900 and 2000:

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration.

Lecture Note 3: Polynomial Interpolation. Xiaoqun Zhang Shanghai Jiao Tong University

Final Year M.Sc., Degree Examinations

Numerical Marine Hydrodynamics

Numerical Methods in Physics and Astrophysics

Numerical Methods for Engineers and Scientists

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

Chapter Two: Numerical Methods for Elliptic PDEs. 1 Finite Difference Methods for Elliptic PDEs

MA22S3 Summary Sheet: Ordinary Differential Equations

CAM Ph.D. Qualifying Exam in Numerical Analysis CONTENTS

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

you expect to encounter difficulties when trying to solve A x = b? 4. A composite quadrature rule has error associated with it in the following form

NUMERICAL METHODS. x n+1 = 2x n x 2 n. In particular: which of them gives faster convergence, and why? [Work to four decimal places.

Review for Exam 2 Ben Wang and Mark Styczynski

Taylor Series and Numerical Approximations

ENO and WENO schemes. Further topics and time Integration

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

FINITE-DIMENSIONAL LINEAR ALGEBRA

Scientific Computing

Interpolation and Approximation

Homework and Computer Problems for Math*2130 (W17).

Applied Math for Engineers

Chapter 5 HIGH ACCURACY CUBIC SPLINE APPROXIMATION FOR TWO DIMENSIONAL QUASI-LINEAR ELLIPTIC BOUNDARY VALUE PROBLEMS

Additional exercises with Numerieke Analyse

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

USHA RAMA COLLEGE OF ENGINEERING & TECHNOLOGY

Engg. Math. II (Unit-IV) Numerical Analysis

Linear Multistep Methods I: Adams and BDF Methods

The Riccati transformation method for linear two point boundary problems

Input: A set (x i -yy i ) data. Output: Function value at arbitrary point x. What for x = 1.2?

McGill University Department of Mathematics and Statistics. Ph.D. preliminary examination, PART A. PURE AND APPLIED MATHEMATICS Paper BETA

COMP 558 lecture 18 Nov. 15, 2010

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

Numerical Analysis: Interpolation Part 1

Exam in TMA4215 December 7th 2012

GENG2140, S2, 2012 Week 7: Curve fitting

NUMERICAL ANALYSIS STUDY GUIDE. Topic # Rootfinding

November 20, Interpolation, Extrapolation & Polynomial Approximation

UNIT-II INTERPOLATION & APPROXIMATION

Applied Numerical Analysis Homework #3

Basic Aspects of Discretization

Numerical interpolation, extrapolation and fi tting of data

Department of Applied Mathematics Preliminary Examination in Numerical Analysis August, 2013

Numerical Methods for Differential Equations Mathematical and Computational Tools

CHAPTER 10: Numerical Methods for DAEs

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

NEW ITERATIVE METHODS BASED ON SPLINE FUNCTIONS FOR SOLVING NONLINEAR EQUATIONS

Interpolation Theory

Scientific Computing: An Introductory Survey

Applied Linear Algebra in Geoscience Using MATLAB

BSM510 Numerical Analysis

100 CHAPTER 4. SYSTEMS AND ADAPTIVE STEP SIZE METHODS APPENDIX

Polynomial Functions

Final Examination. CS 205A: Mathematical Methods for Robotics, Vision, and Graphics (Fall 2013), Stanford University

Quartic Equation. By CH vd Westhuizen A unique Solution assuming Complex roots. Ax^4 + Bx^3 + Cx^2 + Dx + E = 0

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

Math 411 Preliminaries

5 Handling Constraints

Multistage Methods I: Runge-Kutta Methods

Transcription:

Department of Applied Mathematics Preliminary Examination in Numerical Analysis August 7, 06, 0 am pm. Submit solutions to four (and no more) of the following six problems. Show all your work, and justify all your answers. No calculators allowed. ----------------------------------------------------------------------------------------------------------------------------------- Problems and solutions given below: -----------------------------------------------------------------------------------------------------------------------------------. Root finding / Nonlinear equations Consider the scalar equation Fx ( ) 0. Assume is a root of the equation. a. Give the recursion for the Newton method for approximating a root. b. Give conditions on F( x ) near that guarantee convergence for x 0 sufficiently close to. c. Consider the following Taylor expansion: F( ) F( x) F'( x)( x) F''( w)( x), where w x( ) for some [0,]. Using the Taylor expansion, derive a relationship between the error at step j in terms of the error at step j. d. Show how the conditions stated in part (b), together with the Taylor expansion above, can be used to bound the error at step j in terms of the error in step j. e. Finally, show how the development above can be used to establish convergence. With what order does the iteration converge?

. Quadrature Determine the nodes and the weights in the -node Gaussian quadrature formula 0 x f ( x) e dxw f( x ) w f( x ). Solution: x One approach is to find the first three orthogonal polynomials i ( x), i 0,, for e over [0, ] and then read off the nodes as the two zeros of ( x), after which the weights follow by requiring the exact result when applied to f( x) and f ( x) x. Alternatively, we can start by writing down the nonlinear system that arises from enforcing the exact result for the functions, x, x, x : () x w w e dx () 0 ( ) x wx w x x e dx () 0 ( ) x wx w x x e dx () 0 wx w x ( ) x x e dx 6 0 (4) This type of nonlinear systems have a special structure that readily allows them to be solved. Let p( x) c0 cx x be the quadratic polynomial that has x and x as its roots. We next form c0 { eq.()} c{ eq.()} { eq.()} 0 c0 c c0 { eq.()} c{ eq.()} { eq.(4)} 0 c0 c 6 This system has the solution c0, c 4, i.e. px ( ) x 4x with roots (nodes) x,. To get the weights, it suffices to require the exact result for f( x) and f ( x) x. This leads to the linear w system, w with the solution w,. 4

. Interpolation / Approximation a. Define what is meant by cubic splines and, for these, natural and not-a-knot conditions. b. x 0 Determine the not-a-knot cubic spline s( x ) that satisfies the data. y 4 c. If, at the nodes x h,0, h, one has function values y h, y0, yh and forms a quadratic interpolant sx ( ), one obtains s'(0) [ y y ] / h, i.e. the finite difference weights can be written as Solution: h h [,0, ]/ h. It might be tempting to replace the quadratic interpolant here with a natural cubic spline (hoping to increase the approximation s order of accuracy). Work out the weights you get in this case. a. A cubic spline is a cubic polynomial between adjacent nodes, and features continuous function, first and second derivative at the nodes i.e. the third derivative may be discontinuous at the nodes. Without additional end conditions, a cubic spline will have two free parameters. A natural cubic spline adds the two extra conditions that s''( x) 0 at each end point. The not-a-knot cubic spline instead removes two freedoms, i.e. the cubic spline is not allowed to have a jump in its third derivative one node point in from each boundary. b. With four node points, and jumps in the third derivative not allowed at either of the two internal nodes, the spline becomes a single cubic, i.e. we can immediately find it, for ex., by Lagrange s or Newton s interpolation formulas. Choosing, for ex., the Newton approach, the divided difference table becomes - - - 0-0 - -4 5 from which we read off the polynomial as sx ( ) ( x) 0 ( x) x ( x) xx ( ) x x. c. Since the spline sx ( ) is not discontinuous at x 0 until in the third derivative, we can write it: [ h,0] [0, h] abxcx dx abxcx ex c dh and c 6eh 0, resp., i.e. e d. Enforcing the The natural end conditions give 6 0 values at the nodes now give abhch dh yh a y0 a bh ch dh yh Subtracting the top equation from the bottom one gives bh yh yh, and we obtain the same approximation for s '(0) as before.

4. Linear Algebra Consider the linear system Ax b, where A, x, b. n m m n a. Describe the three possible cases for existence and uniqueness of a solution of the linear system. Give criteria on A, b that distinguish each case. b. Let xls be a minimizer of the least squares functional, that is, let Ax b min Ax b. LS x (i) Does xls always exist? Explain your answer. (ii) Give conditions on A, b such that x LS is unique. (iii) In the case of a unique solution, give an expression for the least squares solution x LS. (iv) If there is an infinite number of solutions to the least squares problem, find the solution of minimal norm. c. The minimal norm solution can be computed by using the singular value decomposition (SVD) of A. Define the singular value decomposition and show how it can be used to compute the minimal norm least squares solution.

5. Numerical ODE The following are two different linear multistep methods for solving the ODE y '( t) f ( t, y( t)) : k (i) yn yn ( f( tn, yn) f( tn, yn)) k (ii) yn yn (7 f( tn, yn) f( tn, y) f( tn, yn)) In order to assess the basic properties of these two schemes, we run the Matlab code r = exp(pi*i*linspace(0,)); plot(r.*(r-)./((*r-)/),'k-'); hold on plot((r.^-r)./((7*r.^-*r+)/),'k--'); axis equal xi = 0.+0.8i; roots([,-7*xi/,*xi/-,-xi/]) and obtain the plot shown to the right, together with the output ans = -0.08 +.97i 0.74 + 0.94i 0.08-0.944i For each of the two schemes, determine a. Will the schemes convergence to the ODE solution in the limit of k 0, or diverge? b. What is their formal order of accuracy? c. Identify their stability domains, d. Do the schemes feature A-stability? Solution: (a) The requirements are consistency and root condition. Consistency follows from part (b), where we show the order to be one or higher. For the root condition, apply the methods to the ODE y ' 0 and check the characteristic equation: (i) r0 r root condition satisfied convergence (ii) r 0 r root condition satisfied convergence (b) Apply the scheme, at t 0, to the functions, tt,, and see how far the approximations remain exact: (i) [] : 0, OK, k k k []: t k 0 [ ], OK, [ t ]: k 0 [0 k], OK, [ t ]: k 0 [0 k ], Fail; Hence, Second order. (ii) [] : 0, OK, k k []: t k k [7 ], OK, [ t ]: k k (04k 4 k), OK,

k t k k k k 4 4 4 k t k k k k [ ]: (06 ), OK, [ ]: (08 ), Fail; Hence, Third order. (c) When applied to y' y, the stability domains are the regions in the complex k plane such that all roots to the characteristic equation, are inside (or on) the unit circle. (i) The polynomial to inspect becomes r ( ) r 0. The solid curve in the figure shows where a root crosses the unit circle, so it suffices to inspect one point outside and one point inside this curve. Outside: Consider some that is massively large. Since the products of the roots equals the constant term of the quadratic, rr. Hence, at least one root is outside the unit circle. Inside: Take for ex. Solving the quadratic gives r [ 7 ] [ 4.], i.e.., 8 8 both roots are well inside the unit circle. This inside of the curve in the figure therefore shows the stability domain. (ii) The polynomial to inspect becomes 7 r r ( ) r 0. The dashed curve shows where a root crosses the unit circle. Outside: For the same reason as above, this is outside the stability domain. Inside: The numerical root evaluation in the program shows two roots outside the unit circle. This ODE solver therefore has the unusual property of altogether lacking a stability domain (with the exception of the single point 0). Note: The plotted (dashed) curve shows where a root r crosses the unit circle. However, for this equation, there turns out to be another root that is outside, so the curve is irrelevant as far as the stability domain is concerned. All roots must be inside the unit circle for the value to correspond to the inside of the stability domain. (d) Neither scheme is A-stable (as this requires the complete left half-plane to fall within the methods stability domain). 6. Numerical PDE Consider the parabolic equation u u a t x where a is a constant. f a. Give the formula for the following finite difference approximations. (i) Forward Euler: Centered differences in space, forward difference in time. (ii) Backward Euler: Centered differences in space, backward difference in time. (iii) Leapfrog: Centered difference in space and centered difference in time. b. What is the order of accuracy of each method? c. Use a von Neumann analysis (or any appropriate analysis) to determine the stability of each method.