Examination paper for TMA4215 Numerical Mathematics

Similar documents
Exam in TMA4215 December 7th 2012

Examination paper for TMA4130 Matematikk 4N: SOLUTION

Examination paper for TMA4110 Matematikk 3

Examination paper for TMA4130 Matematikk 4N

Examination paper for TMA4125 Matematikk 4N

Examination paper for TMA4122/TMA4123/TMA4125/TMA4130 Matematikk 4M/N

MA2501 Numerical Methods Spring 2015

12.0 Properties of orthogonal polynomials

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

Practice Midterm 2 Math 2153

Examination paper for TMA4180 Optimization I

Chapter 4: Interpolation and Approximation. October 28, 2005

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

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

Preliminary Examination in Numerical Analysis

Fixed point iteration and root finding

Numerical Methods for Differential Equations

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

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

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

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

Chapter 8: Taylor s theorem and L Hospital s rule

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

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

, applyingl Hospital s Rule again x 0 2 cos(x) xsinx

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

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

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

Exam in Numerical Methods (MA2501)

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

Examination paper for TMA4145 Linear Methods

CS 323: Numerical Analysis and Computing

The Area bounded by Two Functions

CHALLENGE! (0) = 5. Construct a polynomial with the following behavior at x = 0:

Chapter 11. Taylor Series. Josef Leydold Mathematical Methods WS 2018/19 11 Taylor Series 1 / 27

Polytechnic Institute of NYU MA 2132 Final Practice Answers Fall 2012

Numerical Analysis Comprehensive Exam Questions

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

Problem set 5, Real Analysis I, Spring, otherwise. (a) Verify that f is integrable. Solution: Compute since f is even, 1 x (log 1/ x ) 2 dx 1

EXAMPLE OF ONE-STEP METHOD

Final Year M.Sc., Degree Examinations

Numerical Methods. King Saud University

Making Models with Polynomials: Taylor Series

Lecture 5: Function Approximation: Taylor Series

Polynomials. p n (x) = a n x n + a n 1 x n 1 + a 1 x + a 0, where

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

Optimization using Calculus. Optimization of Functions of Multiple Variables subject to Equality Constraints

Econ 204 (2015) - Final 08/19/2015

Numerical Methods in Physics and Astrophysics

Mini project ODE, TANA22

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

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

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

Two special equations: Bessel s and Legendre s equations. p Fourier-Bessel and Fourier-Legendre series. p

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

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

Math 164 (Lec 1): Optimization Instructor: Alpár R. Mészáros

CS 257: Numerical Methods

Iterative solvers for linear equations

Differentiation. Table of contents Definition Arithmetics Composite and inverse functions... 5

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

Preliminary Examination, Numerical Analysis, August 2016

Examination paper for TMA4110/TMA4115 Matematikk 3

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

Math 227 Sample Final Examination 1. Name (print) Name (sign) Bing ID number

MATH 118, LECTURES 27 & 28: TAYLOR SERIES

Review: Power series define functions. Functions define power series. Taylor series of a function. Taylor polynomials of a function.

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

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

Math 113 Winter 2005 Key

Lecture IX. Definition 1 A non-singular Sturm 1 -Liouville 2 problem consists of a second order linear differential equation of the form.

Exercises * on Linear Algebra

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)

AP Calculus Testbank (Chapter 9) (Mr. Surowski)

Examination paper for TMA4285 Time Series Models

INTERPOLATION. and y i = cos x i, i = 0, 1, 2 This gives us the three points. Now find a quadratic polynomial. p(x) = a 0 + a 1 x + a 2 x 2.

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

Assignment # 8, Math 370, Fall 2018 SOLUTIONS:

Grade: The remainder of this page has been left blank for your workings. VERSION D. Midterm D: Page 1 of 12

Lecture 32: Taylor Series and McLaurin series We saw last day that some functions are equal to a power series on part of their domain.

1 Solutions to selected problems

Lecture 9: Implicit function theorem, constrained extrema and Lagrange multipliers

If y = f (u) is a differentiable function of u and u = g(x) is a differentiable function of x then dy dx = dy. du du. If y = f (u) then y = f (u) u

An Analysis of Five Numerical Methods for Approximating Certain Hypergeometric Functions in Domains within their Radii of Convergence

SCORE. Exam 3. MA 114 Exam 3 Fall 2016

MA22S3 Summary Sheet: Ordinary Differential Equations

Mathematics for Chemistry: Exam Set 1

Analysis III Solutions - Serie 12

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

MA2AA1 (ODE s): The inverse and implicit function theorem

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

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

Numerical Methods in Physics and Astrophysics

July 21 Math 2254 sec 001 Summer 2015

Numerical Methods for Differential Equations Mathematical and Computational Tools

f (x) = k=0 f (0) = k=0 k=0 a k k(0) k 1 = a 1 a 1 = f (0). a k k(k 1)x k 2, k=2 a k k(k 1)(0) k 2 = 2a 2 a 2 = f (0) 2 a k k(k 1)(k 2)x k 3, k=3

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

Math Numerical Analysis

ECONOMICS 207 SPRING 2006 LABORATORY EXERCISE 5 KEY. 8 = 10(5x 2) = 9(3x + 8), x 50x 20 = 27x x = 92 x = 4. 8x 2 22x + 15 = 0 (2x 3)(4x 5) = 0

8.7 Taylor s Inequality Math 2300 Section 005 Calculus II. f(x) = ln(1 + x) f(0) = 0

Transcription:

Department of Mathematical Sciences Examination paper for TMA425 Numerical Mathematics Academic contact during examination: Trond Kvamsdal Phone: 93058702 Examination date: 6th of December 207 Examination time (from to): 09:00 3:00 Permitted examination support material: C: Endre Süli and David Mayers An Introduction to Numerical Analysis (a copy is accepted) TMA425 Numerical Mathematics: Collection of Lecture Notes (5/ 203, 62 pages) Interpolation summary (4. October 20, 9 pages) Lecture notes on splines (26. October 207, 8 pages) Rottmann: Matematisk formelsamling Approved calculator Other information: All answers should be justified and include enough details to make it clear which methods and/or results have been used. All the (sub-)problems are worth 5 points each. The total value is 70 points. Language: English Number of pages: 6 Number of pages enclosed: 0 Checked by: Date Signature

TMA425 Numerical Mathematics 6th of December 207 Page of 6 Problem a) The matrix is symmetric because A T = A, but it is not positive definite because the determinant is zero: A = 4 4 2 4 2 = 0 The eigenvalues are {0, 4, 5}, so the matrix is positive semidefinite. b) Since the matrix is singular, the conditioning number is infinite. c) An LU-factorization means that we have the representation Writing out the equations, we get 0 0 d e g 2 3 a 0 0 f h = 2 5 7 b c 0 0 i 3 7 d = ad = 2 bd = 3 e = 2 ae + f = 5 be + cf = 7 g = 3 ag + h = 7 bg + ch + i = Solving these equations, we get 0 0 2 3 L = 2 0, U = 0 3 0 0 Problem 2 a) Using Lagrange interpolation, we get (x 2)(x 3) L(x) = (0 2)(0 3) = (x + ) 2 x(x 3) x(x 2) + 9 + (2 0)(2 3) (3 0)(3 2) 6 b) The same polynomial above satisfies the new imposed criterion.

Page 2 of 6 TMA425 Numerical Mathematics 6th of December 207 c) We use Hermite interpolation for this task. The function values are 0.0.0 f(x) = sin π x 0.0.0 2 f (x) = π cos πx π 0.0 2 2 2 The required Lagrange monomials are L 0 (x) = x, L (x) = x Using the definition of the auxiliary polynomials, we get H (x) = x 2 ( 2(x )) K 0 (x) = x( x) 2 We do not need H 0 and K because they are multiplied by 0, so the Hermite interpolation polynomial becomes p(x) = x 2 (3 2x) + π x(x )2 2 Problem 3 a) We use Cox-de Boor recursion on the two first splines: φ (x) = B[0, 0, 0, /2] = /2 x B[0, 0, /2] /2 0 ( ) 2 /2 x = B[0, /2] /2 0 = (2x ) 2 χ [0,/2] φ 2 (x) = B[0, 0, /2, ] = x 0 x B[0, 0, /2] + /2 0 0 = 2x /2 x B[0, /2] + ( x) /2 0 B[0, /2, ] ( ) x 0 x B[0, /2] + B[/2, ] /2 0 /2 = 2x( 2x + x)b[0, /2] + 2( x)( x)b[/2, ] = ( 6x 2 + 4x)χ [0,/2] + 2(x ) 2 χ [/2,]

TMA425 Numerical Mathematics 6th of December 207 Page 3 of 6 Due to symmetry, we can reflect φ 2 and φ about the origin and move the new spline one unit to the right. This is done by replacing x with x. With this transformation, φ 2 and φ become respectively φ 3 (x) = (2x 2 )χ [0,/2] + ( 6x 2 + 8x 2)χ [/2,] φ 4 (x) = (2x ) 2 χ [/2,] b) The equations for the nodes and weights are φ (x ) φ (x 2 ) [ ] 0 φ 2 (x ) φ 2 (x 2 ) φ (x) dx w = 0 φ 2(x) dx φ 3 (x ) φ 3 (x 2 ) w 2 0 φ 3(x) dx φ 4 (x ) φ 4 (x 2 ) 0 φ 4(x) dx Because of symmetry, the two quadrature weights w and w 2 are equal, and their sum equals, so we get w = w 2 = 2 Since φ has support in [0, /2], we find x as follows: w φ (x ) + w 2 φ (x 2 ) = 0 φ (x) dx /2 2 (2x ) 2 + 0 = (2x ) 2 dx 0 (2x ) 2 = 3 x = 2 ± 3 6 The symmetry of the nodes implies that x = 2 3 6, x 2 = 2 + 3 6 c) The characteristic of orthogonal polynomials is that given and interval [a, b] and a weight function w(x) we have: φ i φ j w(x)dx = 0 i j See Definition 9.4 page 260 in the textbook of Süli and Mayers. Orthogonal polynomials play an important role in finding the best polynomial approximation of function measured in the 2-norm. The zeroes of a set of orthogonal polynomials may also be used to determine the optimal numerical sampling points in a numerical integration scheme.

Page 4 of 6 TMA425 Numerical Mathematics 6th of December 207 E.g. the Legendre polynomials are a set of orthogonal polynomials and on the interval [, ] they are: φ 0 (x) =, φ (x) = x, and φ 2 (x) = 3 2 x2 2. The orthogonality condition is φ i φ j dx = 0 i j We have that xdx = 2 x2 = 0 3 2 x2 2 dx = 2 x3 2 x = 0 x 3 2 x2 2 dx = 3 8 x4 4 x2 = 0 Problem 4 a) Our function is defined as f(x) = 2x sin(x) + 2 The corresponding iteration function g and its derivative become g(x) = x 2 f(x) = 2 sin(x) g (x) = 2 cos(x) The point x is a zero of f if and only if it is a fixed point of the mapping x g(x). We observe that In this way, we obtain sup x R g (x) = sup x R g(x) g(y) = x y 2 cos(x) = 2 g (z) dz x y 2 Thus, g is a contraction mapping on R with contraction factor /2, and it follows from Banach s fixed point theorem that the fixed point iteration x k+ = g(x k ) converges to x for any starting value x 0 R.

TMA425 Numerical Mathematics 6th of December 207 Page 5 of 6 b) Since the maximal value of g (x) is /2 on R, and x = when x 0 = 0, we get the estimate k = ln x x 0 ln(e( L)) ln(/l) = ln 0 ln(2 6 ( /2)) ln(2) = ln(2 7 ) ln(2) = 7 We need 7 iterations before reaching the desired precision. Problem 5 a) We recognize that Φ(x n, y n ; h) = f(x n +h/2, (y n +y n+ )/2). Since Φ(x, y; 0) = f(x, y), the method is consistent. Since x n+ = x n + h, we obtain x n + h/2 = (x n + x n+ )/2 = x n+/2 and (y n + y n+ )/2 = y n+/2. Taylor expansion yields: y n+ = y n + hy n + h2 2 y n + h3 6 y y n+/2 = f(x n + h/2, (y n + y n+ )/2) = y n + h 2 y n + h2 4 y n + O(h 3 ) With these formulas, we get the truncation error n + O(h 4 ) T n = y n+ y n hf(x n + h/2, (y n + y n+ )/2) ( ) ( = y n + hy n + h2 2 y n + h3 6 y n + O(h 4 ) y n h y n + h ) 2 y n + h2 4 y n + O(h 3 ) = h3 2 y n + O(h 4 ) Since T n = O(h 2+ ), the method is of second order. Alternatively, we can utilize that the Butcher tableau is /2 /2 The second order conditions are satisfied because b =, b c = 2

Page 6 of 6 TMA425 Numerical Mathematics 6th of December 207 b) We replace f(t, y) with λy and obtain y n+ = y n + λh y n + y n+ ( 2 λh ) ( y n+ = + λh ) y n n n y n+ = + z z y n This is the stability function for the implicit midpoint rule, which is A-stable. c) Implicit methods are appropriate to use when the time-step for an explicit method is governed by its stability, not the accuracy. This is typical for stiff problems.