Solutions Preliminary Examination in Numerical Analysis January, 2017

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

1 Solutions to selected problems

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

DELFT UNIVERSITY OF TECHNOLOGY Faculty of Electrical Engineering, Mathematics and Computer Science

1 Solutions to selected problems

STABILITY FOR PARABOLIC SOLVERS

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

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

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

Part IB Numerical Analysis

Search Directions for Unconstrained Optimization

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)

Matrix Secant Methods

Numerical Methods in Physics and Astrophysics

ROOT FINDING REVIEW MICHELLE FENG

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

Kasetsart University Workshop. Multigrid methods: An introduction

Numerical Methods in Physics and Astrophysics

Chapter 11 - Sequences and Series

Preliminary Examination, Numerical Analysis, August 2016

International Competition in Mathematics for Universtiy Students in Plovdiv, Bulgaria 1994

Numerical Methods for Differential Equations Mathematical and Computational Tools

Scientific Computing: An Introductory Survey

Understand the existence and uniqueness theorems and what they tell you about solutions to initial value problems.

1 + lim. n n+1. f(x) = x + 1, x 1. and we check that f is increasing, instead. Using the quotient rule, we easily find that. 1 (x + 1) 1 x (x + 1) 2 =

u n 2 4 u n 36 u n 1, n 1.

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005

Midterm for Introduction to Numerical Analysis I, AMSC/CMSC 466, on 10/29/2015

e x = 1 + x + x2 2! + x3 If the function f(x) can be written as a power series on an interval I, then the power series is of the form

Power series solutions for 2nd order linear ODE s (not necessarily with constant coefficients) a n z n. n=0

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

Solutions to Homework 2

PURE MATHEMATICS AM 27

Chapter 4: More Applications of Differentiation

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

w T 1 w T 2. w T n 0 if i j 1 if i = j

SPRING 2006 PRELIMINARY EXAMINATION SOLUTIONS

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

AIMS Exercise Set # 1

Lecture 10: Finite Differences for ODEs & Nonlinear Equations

MATHEMATICAL METHODS INTERPOLATION

Positive Denite Matrix. Ya Yan Lu 1. Department of Mathematics. City University of Hong Kong. Kowloon, Hong Kong. Abstract

Multiple integrals: Sufficient conditions for a local minimum, Jacobi and Weierstrass-type conditions

Introduction to Numerical Analysis

Lie Groups for 2D and 3D Transformations

a x a y = a x+y a x a = y ax y (a x ) r = a rx and log a (xy) = log a (x) + log a (y) log a ( x y ) = log a(x) log a (y) log a (x r ) = r log a (x).

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

Numerical Methods I Solving Nonlinear Equations

Summary of Special Cases

Chapter 4: More Applications of Differentiation

INFINITE SEQUENCES AND SERIES

ECE 595, Section 10 Numerical Simulations Lecture 7: Optimization and Eigenvalues. Prof. Peter Bermel January 23, 2013

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

A nonlinear equation is any equation of the form. f(x) = 0. A nonlinear equation can have any number of solutions (finite, countable, uncountable)

FIXED POINT ITERATIONS

Lecture 2: Computing functions of dense matrices

Georgia Tech PHYS 6124 Mathematical Methods of Physics I

Contents. I Basic Methods 13

Preliminary Examination in Numerical Analysis

Examples of solutions to the examination in Computational Physics (FYTN03), October 24, 2016

CS 257: Numerical Methods

Exam in TMA4215 December 7th 2012

AP Calculus Chapter 9: Infinite Series

1. Nonlinear Equations. This lecture note excerpted parts from Michael Heath and Max Gunzburger. f(x) = 0

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

Separation of Variables in Linear PDE: One-Dimensional Problems

Additional exercises with Numerieke Analyse

MA22S3 Summary Sheet: Ordinary Differential Equations

10550 PRACTICE FINAL EXAM SOLUTIONS. x 2 4. x 2 x 2 5x +6 = lim x +2. x 2 x 3 = 4 1 = 4.

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2.

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

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

n=1 ( 2 3 )n (a n ) converges by direct comparison to

Math 411 Preliminaries

9-12 Mathematics Vertical Alignment ( )

Lecture 4: Numerical solution of ordinary differential equations

1 Directional Derivatives and Differentiability

SBS Chapter 2: Limits & continuity

M.SC. PHYSICS - II YEAR

Department of Mathematics, University of California, Berkeley. GRADUATE PRELIMINARY EXAMINATION, Part A Spring Semester 2015

PARTIAL DIFFERENTIAL EQUATIONS

Linear Regression and Its Applications

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

AS PURE MATHS REVISION NOTES

Spectra of Multiplication Operators as a Numerical Tool. B. Vioreanu and V. Rokhlin Technical Report YALEU/DCS/TR-1443 March 3, 2011

Main matrix factorizations

Chapter 3: Root Finding. September 26, 2005

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

1 Lecture 8: Interpolating polynomials.

X. Numerical Methods

Math 180, Exam 2, Practice Fall 2009 Problem 1 Solution. f(x) = arcsin(2x + 1) = sin 1 (3x + 1), lnx

8.5 Taylor Polynomials and Taylor Series

Solutions to Practice Final

3 Applications of partial differentiation

Numerical Analysis: Solving Nonlinear Equations

AN ELEMENTARY PROOF OF THE SPECTRAL RADIUS FORMULA FOR MATRICES

MATH 205C: STATIONARY PHASE LEMMA

Introduction to Matrices

Introductory Numerical Analysis

Our goal is to solve a general constant coecient linear second order. this way but that will not always happen). Once we have y 1, it will always

Transcription:

Solutions Preliminary Examination in Numerical Analysis January, 07 Root Finding The roots are -,0, a) First consider x 0 > Let x n+ = + ε and x n = + δ with δ > 0 The iteration gives 0 < ε δ < 3, which implies that < x n+ < x n Newton's method will converge monotonically to Next consider / 3 < x 0 < As the signs of the numerator and denominator in the rational part of the iteration does not change on the interval under consideration we nd that x > Finally, x 0 = produces x = Note that an iteration starting at / 3 < x 0 < is not monotonic since it rst moves up past x = then monotonically decreases bac towards To answer b), rewrite the iteration as x n+ = x3 n, and note that for 0 x 3x 0 < / 3 the n next iterate will be non-positive Insisting that x 0 < x 0, so that x will be closer to zero than x 0 gives the limiting case x = x 0, or α 3α ) = α 3, which has the solution α = / 5 Furthermore, whenever x n < / 5 one nds that x n+ < x n so the sequence of absolute values decreases monotonically and must converge, the only possible limit being 0 Finally, for c) we may consider the case f x) > 0 otherwise consider fx) = 0) Assume rst that f x) > 0 in the interval, fx 0 ) 0 by assumption The situation is as the one pictured in Figure and we thus conclude that x < x 0 and that since the tangent lies to the right of the curve it is also true that α > x The case f x) < 0 is handled similarly and the results follows by induction Numerical quadrature The error in the trapezoid rule over a single interval is b a fx)dx = b a b a)3 fb) + fa)) f ξ) for some unnown ξ [a, b] In our example fx) = lnx) and each interval has unit length from to + ) The exact relationship between the integral and the composite trapezoid rule approximation in our case is therefore n lnx)dx = n ln) + ln + )) + n where ξ [, + ] Plugging this bac in to the formula for lnn!) we nd lnn!) = n lnx)dx n ξ + lnn) ξ

x = α x = x x = x 0 Figure : Monotonicity and convexity yields monotone convergence for Newton's method Evaluating the integral Exponentiating: lnn!) = The coecient in Stirling's formula is clearly { The sum can be bounded as follows n n + ) lnn) n + n ξ n! = nn/e) n e n ξ C n = exp ξ n n ξ } = π 6 which means that the coecient is bounded by } { exp { π C n exp } 7 There are, in fact, sharper estimates on C n

3 Interpolation/Approximation a) Let W = V, and the the elements of W be w ij Note that W V = I, ie that row i satises n w ij x j = δ i, =,, n j= This interpolation problem is solved by l i x), that is: l i x ) = n x x i ) n x j x i ) = w ij x j = δ i, =,, n, i= i j j= which shows that V is non-singular if and only if x i x j 0 when i j b) Finding the elements w ij is equivalent to nding the coecients of l i x), i =,, n Noting that l i x) = q i x)/q i x i ) we must thus nd all the coecients of each q i x) in On) operations We must also evaluate q i x i ) Horner's rule can be used to carry out both tass Recall that for the synthetic division of a polynomial P x) = m l=0 α lx l by x x i ) we must nd the polynomial Qx) = m l= β lx l that satises P x) = x x i )Qx) + β 0, with β 0 = P x i )) A direct computation, matching the coecients on the sides of the equality sign, shows that the coecients β can be computed by the Horner recursion: β = α + β + x i, = m, m,,, 0, and β m = α m Applying this to Φ n x)/x x i ) we thus may nd the n coecients of each q i x) at cost On) Once the coecients are nown n additional applications of Horner's rule yields the n scalars q i x i ) at a cost of On) each Linear Algebra We present a solution with C = uv T based on the ideas presented in the classic 977 SIAM Review paper Eigenproblems for Matrices Associated with Periodic Boundary Conditions by Bjorc and Golub but note that since the ran matrix is not unique other solutions are possible For example the choice C = e e T N + e Ne T will leave the tridiagonal part of the matrix intact allowing for the possibility to exploit the diagonal dominance of the resulting A For a) notice that = 0 5 + 0 0 0 0 So A is the tridiagonal matrix on the RHS, and u = [, 0,, 0, ] T, v = [, 0, 0, /] For b) let B = A and use the Sherman-Morrison-Woodbury formula B + uv T ) = B B uv T B + v T B u 3 )

Now By = g can be solved with CN cost C is a small integer lie 7 or so) To solve Aw = f, we perform the following Solve Bz = f at CN cost Solve By = u at CN cost 3 Compute both α = v T z and β = v T y; each dot product costs N Form z α + β) y at N cost or so 5 ODEs a) Explicit and Implicit Euler applied to the scalar problem ẋ = λx yield x n+ = + µ)x n, µ)x n+ = x n where µ = hλ and h is the time step size The methods are stable when + µ and µ, respectively, for µ C Explicit Euler is stable for µ in a circle of unit radius centered at in the complex plane; implicit Euler is stable for µ outside a circle of unit radius centered at in the complex plane b) Explicit Euler applied to this problem yields Tae absolute values: u n+ = u n hu n) u n+ = u n γ n, γ n = hu n If γ n < for every n then the sequence of absolute values is monotone decreasing and bounded below, so it must converge γ n < when u n < /h Clearly, if u 0 < /h then u n < /h for every n, so the sequence of absolute values converges The limit must satisfy u = u h u ) so the only possible limit is u n 0 Conversely, when u 0 > /h all subsequent iterates also satisfy u n > /h and u n+ > u n ; the sequence {u n } alternates sign and can't converge c) Implicit Euler applied to this problem yields u n+ + hu n+) = u n Since the function gu) = u + hu 3 is a bijection for every h 0, the nonlinear system gu n+ ) = u n has a unique solution for every h 0 and u n It's easy to see that u n+ < u n for every u n, so the sequence of absolute values is monotone decreasing and bounded below, and must converge The limit must satisfy u + h u ) = u, so the limit is lim n u n = 0 for every u 0 and every h 0 d) Taylor series says u 0 = uh) + huh) 3 3h uξ) for some ξ [0, h] The implicit Euler approximation is Subtracting yields 3h u 0 = u + hu 3 uξ) = uh) u ) + huh) + uh)u + u ))

Note that uh) + uh)u + u 0 for every uh) and u, so uh) u = 3h uξ) + huh) + uh)u + u )) 3h uξ) If you wish you can further use the fact that uξ) u0) The method has secondorder truncation error As h this bound on the truncation error also goes to As h the implicit Euler approximation satises u 0, and so does the true solution, so the error also goes to zero 6 PDEs Using the exact solution u x at), we have to evaluate ψ h t, h x ) = u x j at n+ ) c u x j at n ) c 0 u x j at n ) c u x j+ at n ) given that x j = x j h x, x j+ = x j + h x and t n = t n+ h t Denoting x j at n+ = s for convenience and using the Taylor expansion, we have u s h x + ah t ) = u s) + u s) ah t h x ) + u s) ah t h x ) + u s + ah t ) = u s) + u s) ah t + u s) ah t ) + and u s + h x + ah t ) = u s) + u s) ah t + h x ) + u s) ah t + h x ) + Thus, we obtain ψ h t, h x ) = u s) c c 0 c ) u s) [c ah t h x ) + c 0 ah t + c ah t + h x )] [ u s) c ah t h x ) + c 0 ah t ) + c ah t + h x ) ] + and arrive at the linear system c + c 0 + c = c ah t h x ) + c 0 ah t + c ah t + h x ) = 0 c ah t h x ) + c 0 ah t ) + c ah t + h x ) = 0 Setting we obtain c = ν = a h t h x ν + ν ), c 0 = ν, and c = ν ν ) Assuming periodic boundary conditions, the matrix of this explicit scheme is circulant so that we now the eigenvectors and use them to compute the eigenvalues For the th eigenvector e πihxj we have e πihxj ) c + e πihxj c 0 + e πihxj+) c = e πihxj e πihx c + c 0 + e πihx c ) = e πihxj ν + ν cos πh x ) + iν sin πh x ) ) 5

and compute the absolute value of the eigenvalues, λ ν) = ν cos πh x )) ) + ν sin πh x ) We require λ for all It is optional to show that this inequality holds if ν 6