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

Similar documents
Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Mathematics for Engineers. Numerical mathematics

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

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

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)

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

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

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

Preliminary Examination, Numerical Analysis, August 2016

COURSE Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method

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

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

MA2501 Numerical Methods Spring 2015

1 Error analysis for linear systems

Scientific Computing: Numerical Integration

1 Solutions to selected problems

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

Fixed point iteration and root finding

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

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

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

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

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

Numerical Methods. King Saud University

Lectures 9-10: Polynomial and piecewise polynomial interpolation

Chapter 4: Interpolation and Approximation. October 28, 2005

Chapter 7 Iterative Techniques in Matrix Algebra

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

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.

Numerical Analysis Exam with Solutions

CS 257: Numerical Methods

(x x 0 )(x x 1 )... (x x n ) (x x 0 ) + y 0.

Lecture 9. Errors in solving Linear Systems. J. Chaudhry (Zeb) Department of Mathematics and Statistics University of New Mexico

AIMS Exercise Set # 1

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

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

Introduction to Numerical Analysis

Math Introduction to Numerical Analysis - Class Notes. Fernando Guevara Vasquez. Version Date: January 17, 2012.

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

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

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

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

3.1 Interpolation and the Lagrange Polynomial

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

MA2501 Numerical Methods Spring 2015

Tropical Polynomials

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

CS 323: Numerical Analysis and Computing

Lecture 4: Numerical solution of ordinary differential equations

Scientific Computing

Computational Methods CMSC/AMSC/MAPL 460. Eigenvalues and Eigenvectors. Ramani Duraiswami, Dept. of Computer Science

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

ERROR AND SENSITIVTY ANALYSIS FOR SYSTEMS OF LINEAR EQUATIONS. Perturbation analysis for linear systems (Ax = b)

Outline. Math Numerical Analysis. Errors. Lecture Notes Linear Algebra: Part B. Joseph M. Mahaffy,

Romberg Integration. MATH 375 Numerical Analysis. J. Robert Buchanan. Spring Department of Mathematics

Preliminary Examination in Numerical Analysis

Problem Worth Score Total 14

1 Solutions to selected problems

A note on accurate and efficient higher order Galerkin time stepping schemes for the nonstationary Stokes equations

Numerical Analysis Comprehensive Exam Questions

Introductory Numerical Analysis

Homework 2 Foundations of Computational Math 2 Spring 2019

Scientific Computing: Dense Linear Systems

Solving Linear Systems of Equations

Iterative techniques in matrix algebra

Notes on floating point number, numerical computations and pitfalls

COURSE Numerical methods for solving linear systems. Practical solving of many problems eventually leads to solving linear systems.

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

MAT Linear Algebra Collection of sample exams

MATH 315 Linear Algebra Homework #1 Assigned: August 20, 2018

Numerical Methods for Differential Equations

Notes on PCG for Sparse Linear Systems

Linear Algebra Massoud Malek

5. Orthogonal matrices

Principles of Scientific Computing Local Analysis

GENG2140, S2, 2012 Week 7: Curve fitting

Simple Iteration, cont d

Algebra C Numerical Linear Algebra Sample Exam Problems

Numerical techniques to solve equations

Jim Lambers MAT 610 Summer Session Lecture 2 Notes

APPM/MATH Problem Set 6 Solutions

FIXED POINT ITERATIONS

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

MA 3021: Numerical Analysis I Numerical Differentiation and Integration

Math 473: Practice Problems for Test 1, Fall 2011, SOLUTIONS

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

Lecture Note 7: Iterative methods for solving linear systems. Xiaoqun Zhang Shanghai Jiao Tong University

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

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

May 9, 2014 MATH 408 MIDTERM EXAM OUTLINE. Sample Questions

Qualifying Exam Math 6301 August 2018 Real Analysis I

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

Numerical Methods in Physics and Astrophysics

Lecture 7. Gaussian Elimination with Pivoting. David Semeraro. University of Illinois at Urbana-Champaign. February 11, 2014

2.3. VECTOR SPACES 25

Practice Exam 2 (Solutions)

Lecture 10: Finite Differences for ODEs & Nonlinear Equations

Numerical Optimization

The answer in each case is the error in evaluating the taylor series for ln(1 x) for x = which is 6.9.

Numerical Mathematics

Transcription:

Qualifying exam for numerical analysis (Spring 2017) Show your work for full credit. If you are unable to solve some part, attempt the subsequent parts. 1. Consider the following finite difference: f (0) A 0 f(0) + A 1 f(h) + A 2 f(2h). (a) Find the weights A 0, A 1, and A 2 that make this method as accurate as possible. (b) Find the maximum degree polynomial for which this method is exact. 2. B = A A R m m has the eigenvalues λ 1 > > λ m and corresponding eigenvectors x 1,..., x m. Here denotes the complex conjugate transpose of a matrix. Find the reduced singular value decomposition of A in terms of λ 1,..., λ m, x 1,..., x m and w 1,..., w m where w 1 = A x 1,..., w m = A x m. 3. For your condition number calculations below you may choose any consistent set of matrix/vector/scalar norms but you must clearly indicate which norms you choose. [ ] (a) Find the relative condition number for f(x, sin(xy) y) = y 3 at x = π and y = 1. [ ] 1 1 (b) Find the matrix condition number for A =. Based on your answer, when do 0 γ 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 error = b a f(x)dx ij A i (h)f(x i (h) + jh) = a 1 h + a 3 h 3 +. i indexes the nodal locations from the original quadrature rule, j indexes each of the subintervals used in the composite rule, and h corresponds to the size of each subinterval. (a) Obtain an estimate for the first and second Richardson extrapolants when the subinterval size is repeatedly halved. Do not use any memorized formulas, derive your results by hand. (b) Use your results to fill in the table below where R(i, j) is the j th Richardson extrapolant and i corresponds to the level of subinterval refinement used. h R(i, 0) R(i, 1) R(i, 2) 1 2 Nothing in this cell. Nothing in this cell. 1/2 3 Nothing in this cell. 1/4 4 1

5. f(x) is the least squares approximation to f(x) using a set of linearly independent basis functions {φ i (x)}. It is given by f(x) = i c iφ i (x) where the coefficients c i are found by solving the corresponding set of normal equations. Justify the steps in your proofs below. (a) Prove that f f, φ j = 0, j where f, g is an inner product associated with a 2-norm for functions. (b) Prove that f minimizes f f 2 by showing that g(x) = i d iφ i (x) with d j c j for at least some j, f f 2 < f g 2. Hint: It may help to rewrite g as = ( f+ nice terms). 6. Consider an interval J = {x : x α ρ}, an x 0 J, and the corresponding sequence defined by x i+1 = φ(x i ) for some φ(x). If the equation x = φ(x) has a root α and in the interval J φ (x) exists and satisfies φ (x) m < 1 then for all x 0 J: (a) x n J, n = 0, 1, 2,..., (b) lim n x n = α, (c) α is the only root in J of x = φ(x). Prove a, b, and c given the initial assumptions. 7. A R 3 3 has the eigenvalues λ 1 = 4, λ 2 = 2, λ 3 = 1. Consider applying the power method with a shift in order to find λ 1. Show that the method will produce estimates that converge to λ 1 given appropriate conditions on the inital vector v (0) and shift µ. Explicitly state those conditions. 8. The cubic polynomial p(x) interpolates the data f(x 0 ), f(x 1 ), f (x 1 ), and f (x 1 ) where f C 4 (, ). Let x 0 < x e < x 1. Prove that: error = f(x e ) p(x e ) = f (iv) (ξ) (x e x 0 )(x e x 1 ) 3, ξ [x 0, x 1 ]. 4! 2

Qualifying Exam for Numerical Analysis (Spring 2016) Please show your work. 1) Suppose r R is a simple zero of f(x), where f(x) C 2 in a neighborhood of r. Discuss the conditioning of locating the root. Use the result to find the change in the largest zero of f(x) = ni=1 (x i) for a small perturbation in the coefficient of x n. 2) The second derivative f ( x) of a function may be approximated by using the values of the function at n equally spaced points x 1, x 2,..., x n, where x 1 < x 2 < x 3 <... < x n, x i x i 1 = h, i = 2, 3,..., n, and x [x 1, x n ]. That is, we may find a i, i = 1, 2,.., n such that f ( x) a 1 f(x 1 ) + a 2 f(x 2 ) +... + a n f(x n ). a) If a scheme with leading error term O(h 2 ) is desired, how many points should be used? b) Suppose x coincides with x 2, find the numerical scheme. 3) For the function f(x) = 1 defined on [-1,1], use three interpolating polynomials of degree n 2 x to approximate it as described below. Find the error bounds for the three cases. a) Use n+1 arbitrarily spaced distinct nodes on [-1,1] including the two endpoints. b) Use n+1 equally spaced nodes on [-1,1] including the two endpoints. c) Use n+1 Chebyshev nodes (i.e. zeros of Chebyshev polynomials of degree n+1) on [-1,1]. 4) Consider the integral 1 0 f(x)dx, where f(x) is continuous on [0,1] and C2 on (0,1). a) Construct a numerical method using a polynomial interpolating the integrand at two arbitrarily distinct points x 0 and x 1 on the interval [0,1]. That is, find A 0 and A 1 such that 1 0 f(x)dx A 0 f(x 0 ) + A 1 f(x 1 ). Simplify the method when x 0 = 0 and x 1 = 1. What is the resulting method? b) Derive an error bound of the above method for the general choice of x 0 and x 1. c) Find the two nodes x 0 and x 1 such that the method becomes a Gaussian quadrature rule. Write down the corresponding values for A 0 and A 1 in this case. 1

d) Suppose the methods developed in a) and c) are used for 1 0 p n(x)dx, where p n is a polynomial of degree n. For each of the methods, what is the maximum value of n such that the numerical method gives the exact result (ignoring rounding off error)? 5) Consider the linear system Ax = b where A is a nonsingular n x n matrix. Let C be any n x n matrix and c be any vector in R n. Let ɛ be a real number and x(ɛ) be the solution of the perturbed system (A + ɛc)x(ɛ) = b + ɛc in a neighborhood of ɛ = 0. Let δx = x(ɛ) x where x is the solution to Ax = b. Let p 1 or p =. Prove that δx p x p ɛκ(a) where κ(a) is the condition number of the matrix A. ( C p + c ) p + o(ɛ), A p b p 6) Let f(x) C 3 (, ), let a and b be two arbitrary points. Construct a sequence (x n ), n = 1, 2,..., by the rule: x 1 = a, x 2 = b, and x n+2 is the zero of the interpolating polynomial through the three points (x n, f(x n )), ((x n+1 + x n )/2, f((x n+1 + x n )/2)), (x n+1, f(x n+1 )). Assume the sequence exists and converges to a real number r (a, b). Let e n = x n r. a) Prove that r is a zero of f(x). b) Show that e n+2 Ce 2 n+1 with C a positive constant, i.e., e n+2 behaves as Ce 2 n+1 as n becomes sufficiently large. 2

Qualifying Exam for Numerical Analysis (Fall 2016) Please show your work. 1) Let R(n, 0), n = 0, 1, 2,.., N (N is an integer greater than 3) denote a sequence of approximation to b a f(x)dx (f(x) is continuous) with 2n subintervals of equal width h = (b a)/2 n by some numerical method. Suppose it is known that b a f(x)dx = R(n, 0)+c 2h 2 +c 3 h 3 +c 4 h 4 +..., where the coefficients c i, i = 2, 3, 4,... depend on f(x) but not on h. Let R(n, m), n = m, m + 1,..., N (m is an integer and 1 m N) denote new sequences of more accurate approximations to the integral obtained from R(n 1, m 1) and R(n, m 1) by applying Richardson extrapolation to eliminate the leading error term in the approximations R(k, m 1), k = m 1,..., N. Find the equations for computing R(n, 1), R(n, 2), and R(n, 3). 2) Suppose the third derivative of a function f(x) C 4 (, ) at a point x 0, f (x 0 ), is approximated in the following form: f (x 0 ) af(x 0 h) + bf(x 0 ) + cf(x 0 + h) + df(x 0 + 2h), where h is a given real number and a, b, c, d are constant coefficients to be determined. Find the coefficients a, b, c, d such that the approximation is as accurate as possible. What is the order of accuracy of the approximation? 3) Given real numbers x i, a i, b i, c i, i = 1, 2, 3, where x i are distinct, find a polynomial p(x) of degree at most 8 such that p(x i ) = a i, p (x i ) = b i, p (x i ) = c i. (Do not try to solve a 9 by 9 linear system for the coefficients of the polynomial.) 4) Construct a 3-node Gaussian quadrature for the integral 0 1 f(x)dx, where f(x) is continuous on [-1,0], as follows: 0 f(x)dx A 0 f(x 0 ) + A 1 f(x 1 ) + A 2 f(x 2 ). 1 Find the three nodes x 0, x 1, x 2 and the corresponding weights A 0, A 1, A 2. Suppose f(x) is a polynomial of degree n, what is the maximum value of n such that the Gaussian quadrature gives the exact result of the integral? 5) Consider the following linear system Ax = b, with A and b given as below. ( ) 1 10 6 A = 2 3 1

and b = [10 6, 1] t. a)suppose b is perturbed by δb with the property that δb 10 5. Find the upper bound for δx x. Here x is the solution to the original linear system and δx is the perturbation to the solution due to the perturbation in b. b)suppose A is perturbed by δa with the property that δa 10 5. Find the upper bound δx for x+δx. Here x is the solution to the original linear system and δx is the perturbation to the solution due to the perturbation in A. 6) Let f(x) C 4 (, ) have a simple zero r. Construct an iterative numerical method to locate the root of the equation f(x) = 0, starting from an initial guess x 0 : where and x n+1 = 1 2 (a n+1 + b n+1 ), n = 0, 1, 2, 3,... a n+1 = x n f(x n) f (x n ) b n+1 = x n g(x n) g (x n ), here the function g(x) = f(x) f (x). Prove that if the sequence {x n} converges to r, then the convergence is cubic. 2

Math 598 - Numerical Analysis Qualifier Exam - January 2014 First and Last Name:... You must provide SOME work for EACH of the sections below 1

1 Linear Systems 1. Show that solving the linear system Ax = b, with A R n n symmetric and positive definite and b R n, is equivalent to minimizing the functional Φ(y) = 1 2 yt Ay y T b. 2. To solve the following block linear system [ ] [ ] A1 B x = B A 2 y [ b1 b 2 ] with A 1, A 2 and B in R n n, and x, y, b 1 and b 2 in R n, consider the following two methods: (a) A 1 x (k+1) + By (k) = b 1, Bx (k) + A 2 y (k+1) = b 2 (b) A 1 x (k+1) + By (k) = b 1, Bx (k+1) + A 2 y (k+1) = b 2 Find sufficient conditions in order for the two schemes to be convergent for any choice of the initial data x (0) and y (0). 2 Root Finding 1. Let f : R R be a given function, with f C (R). (a) define the method of fixed-point iterations to solve f(x) = 0 (b) study the well-posedeness of fixed-point iterations methods (c) discuss the possible choices for stopping criteria 2. For the approximation of the zeros of the function f(x) = 2x2 3x 2 x 1 consider the following fixed-point iterations methods: (a) x (k+1) = g(x (k) ), with g(x) = (3x 2 4x 2)/(x 1) (b) x (k+1) = h(x (k) ), with h(x) = x 2 + x/(x 1) Analyze the convergence properties of the two methods and determine their order of convergence. 2

3 Polynomial Interpolation 1. Prove the following statement: Let x 0, x 1,..., x n be n+1 distinct nodes and let x be a point belonging to the domain of a given function f : R R. Let Π n f be the polynomial of degree n satisfying Π n f(x i ) = f(x i ), for i = 0,..., n. If f C n+1 (R), then the interpolation error at the point x is given by E n (x) = f(x) Π n f(x) = f (n+1) (ξ) (n + 1)! w n+1(x) (1) where ξ R and w n+1 is the nodal polynomial of degree n + 1. 2. Let f(x) = sin x, and let x 0 = 0, x 1 = π/6, x 2 = π/2. (a) define the nodal polynomial w 3 (b) determine the interpolating polynomial Π 2 f (c) calculate the interpolation error at x = π/4 (d) interpret the interpolation error using the theoretical estimate (1) 4 Integration 1. Define the trapezoidal quadrature formula and derive its quadrature error. 2. Let f C(R) and let I n (f) = n α k f(x k ) k=0 be a Lagrange quadrature formula on n + 1 nodes. Compute the degree of exactness r of the formulae: (a) I 2 (f) = 2 [ ( 2 f 1 ) ( )] 1 f(0) + 2 f 3 2 2 (b) I 4 (f) = 1 [ ( f( 1) + 3 f 1 ) ( ) ] 1 + 3 f + f(1) 4 3 3 3

Math 598 - Numerical Analysis Qualifier Exam - January 2013 First and Last Name:... You must provide some work for EACH of the sections below 1

1 Norms and Inner products 1. Consider the subtraction x = a b of two real numbers a and b such that a b. Suppose that â and ˆb are the result of making a relative perturbation a and b to a and b. Find the relative error of ˆx = â ˆb as an approximation to x and hence find the condition number for the operation of subtraction with respect to a and b. Assume that all calculations are done in exact arithmetic. 2. Let D R n n with D = diag(d 1, d 2,..., d n ). Prove that the matrix p-norm is such that D p = max 1 i n d i for all 1 p. 2 Linear Systems Consider the following iterative method to solve the linear system Ax = b: Given x 0 R n, compute x (k+1) as B(x (k+1) x (k) ) = ω(b Ax (k) ) k > 1 where ω is a positive constant and A and B are symmetric, positive definite n n matrices such that B 1 A = I + C, with C 2 = γ. 1. Is the method consistent? If yes, is the method consistent for any choice of ω and B? If not, provide a range. 2. Is the method convergent for any choice of ω and B? If not, provide a range. 3. Derive a relationship between the error vector e (k) = x x (k) and the difference between iterates d (k) = x (k+1) x (k). Under which conditions is the stopping criterium d (k) 2 < ɛ a good choice? 2

3 Root Finding 1. To find the root of f(x) = 0, let g(x) = x + cf(x) for some constant c 0. Let α be a root of f(x) and f (α) = 2. Consider the fixed point iterations: x (k+1) = g(x (k) ). and assume that x (0) is close enough to α and that f is smooth. (a) For what values of c will the sequence converge to α? (b) For what values of c will the convergence be quadratic? 2. Describe the chord s method and the Newton s method as fixed point methods and determine their order of convergence using Ostrowski s theorem. 4 Polynomial Interpolation Let x o, x 1,..., x n be n + 1 distinct nodes and let x be a point belonging to the domain of the function f C n+1 (I x ), where I x is the smallest interval containing x o, x 1,..., x n and x. Let π n f be the Lagrange polynomial interpolating f at x i, for i = 0,..., n. Show that 1. π n f is unique; 2. the interpolation error E n (x) is given by E n (x) = f(x) π n f(x) = f n+1 (ξ) (n + 1)! ω n+1(x), for some ξ I x, where ω n+1 (x) is the nodal polynomial of order n + 1. 5 Integration 1. Given a scalar function f, derive the midpoint and trapezoidal rules to approximate b f(x)dx by replacing f(x) with its appropriate polynomial a interpolant. 2. Show that the integration error for the trapezoidal rule is approximately two times larger than the integration error for the midpoint rule. 3

Math 598 - Numerical Analysis Qualifier Exam - August 2013 First and Last Name:... 1

1 Norms and Inner products Consider the mathematical problem: Find x R such that F (x, d) = 0 d D R, (1) where F : R D R is a C mapping. Consider the following numerical method to find an approximate solution of the mathematical problem (1): Given x 0, for n 1 find x n R such that F n (x n, x n 1, d) = 0 d D. (2) 1. Define when the numerical method (2) is (a) consistent; (b) strongly consistent; (c) well-posed (or stable); (d) convergent. 2. What is the relationship between consistency, stability and convergence? 2 Linear Systems Consider the matrix A R 2 with a 11 = a 22 = 1, a 12 = γ, and a 21 = 0. 1. Show that K (A) = K 1 (A) = (1 + γ) 2. 2. Consider the linear system Ax = b, where b is such that x = (1 γ, 1) T is the solution of the system. (a) Find a bound for δx / x in terms of δb / b assuming that δb = (δ 1, δ 1 ) T. (b) Is the problem well- or ill- posed? 2

3 Root Finding Consider the following fixed-point method (known as Steffensen s method) to approximate the zeros of the equation f(x) = 0, with f C (R). Given x 0, for k 0 compute x k+1 = x k f(x k) φ(x k ), with φ(x k) = f(x k + f(x k )) f(x k ). (3) f(x k ) Determine the order of convergence of such method. 4 Polynomial Interpolation Let T h be a partition of the interval (a, b) R and let x j, j = 0,..., k be the equidistant points in this partition. Thus x 0 = a, x k = b, and x j+1 x j = h for j = 0,.., n 1. Consider the function f C 2 (a, b) and its polynomial interpolation Π 1 hf of degree 1. Show that f Π 1 hf L 2 (a,b) h 2 f L 2 (a,b), (4) where f is the second derivative of f. 5 Integration Consider the definite integral I(f) = b a f(x)dx, with f C (a, b). 1. Provide definitions of: (a) the Lagrange quadrature formula to obtain the approximation I n (f) of the integral I(f); (b) the degree of exactness of a Lagrange quadrature formula; (c) the order of infinitesimal of a Lagrange quadrature formula. 2. Specify the quadrature formula, the order of exactness and the order of infinitesimal for the two cases when n = 0 and n = 1. 3