Numerical integration in arbitrary-precision ball arithmetic

Size: px
Start display at page:

Download "Numerical integration in arbitrary-precision ball arithmetic"

Transcription

1 / 24 Numerical integration in arbitrary-precision ball arithmetic Fredrik Johansson (LFANT, Bordeaux) Journées FastRelax, Inria Sophia Antipolis 7 June 208

2 Numerical integration in Arb 2 / 24 New code for numerical integration in Arb ( since November 207. Paper: Sage interface: sage: C = ComplexBallField(333) sage: C.integral(lambda x, _: sin(x+exp(x)), 0, 8) [ /- 5.97e-96]

3 Example: a nice and smooth function 3 / 24 ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) (Test problem by Cranley and Patterson, 97)

4 Example: a nice and smooth function 3 / 24 ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) (Test problem by Cranley and Patterson, 97) Mathematica NIntegrate:

5 Example: a nice and smooth function 3 / 24 ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) (Test problem by Cranley and Patterson, 97) Mathematica NIntegrate: Octave quad: , error estimate 0 9

6 Example: a nice and smooth function 3 / 24 ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) (Test problem by Cranley and Patterson, 97) Mathematica NIntegrate: Octave quad: , error estimate 0 9 Sage numerical integral: , error estimate 0 4

7 Example: a nice and smooth function 3 / 24 ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) (Test problem by Cranley and Patterson, 97) Mathematica NIntegrate: Octave quad: , error estimate 0 9 Sage numerical integral: , error estimate 0 4 SciPy quad: , error estimate 0 9

8 Example: a nice and smooth function 3 / 24 ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) (Test problem by Cranley and Patterson, 97) Mathematica NIntegrate: Octave quad: , error estimate 0 9 Sage numerical integral: , error estimate 0 4 SciPy quad: , error estimate 0 9 mpmath quad:

9 Example: a nice and smooth function 3 / 24 ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) (Test problem by Cranley and Patterson, 97) Mathematica NIntegrate: Octave quad: , error estimate 0 9 Sage numerical integral: , error estimate 0 4 SciPy quad: , error estimate 0 9 mpmath quad: Pari/GP intnum: 0.236

10 Example: a nice and smooth function ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) (Test problem by Cranley and Patterson, 97) Mathematica NIntegrate: Octave quad: , error estimate 0 9 Sage numerical integral: , error estimate 0 4 SciPy quad: , error estimate 0 9 mpmath quad: Pari/GP intnum: Actual value: / 24

11 4 / 24 Results with Arb 64-bit precision: [ /- 4.43e-8] # time s 333-bit precision: [ /- 3.73e-99] # 0.04 s 3333-bit precision: [ /-.39e-00] # 9 s ( s first time)

12 Another example: violent oscillation 5 / sin(x+e x )dx S. Rump (200) noticed that MATLAB s quad returned the incorrect 0.25 after second of computation Rump s INTLAB computes the correct enclosure [ , ] in about s Mahboubi, Melquiond & Sibut-Pinote (206): digit in 80 s and 4 digits in 277 s with CoqInterval

13 Another example: violent oscillation 8 0 sin(x+e x )dx S. Rump (200) noticed that MATLAB s quad returned the incorrect 0.25 after second of computation Rump s INTLAB computes the correct enclosure [ , ] in about s Mahboubi, Melquiond & Sibut-Pinote (206): digit in 80 s and 4 digits in 277 s with CoqInterval Arb (64, 333, 3333 bits): [ /- 3.94e-5] # s [ /- 5.98e-96] # 0.02 s [ /- 2.95e-999] # s (5 s first time) 5 / 24

14 6 / 24 Yet another example: a monster 8 0 (e x e x ) sin(x+e x )dx now with 2980 discontinuities! bit precision: [+/- 2.47e+4] # time 0.5 s, aborted [ /- 4.74e-4] # time 9 s 333-bit precision: [ /- 6.78e-95] # 52 s

15 Brute force interval integration 7 / 24 b a f (x)dx (b a)f ([a, b]) + adaptive subdivision of [a, b] Simple and general method, but need 2 O(p) evaluations of f for p-bit accuracy when used alone!

16 8 / 24 Efficient integration for analytic f We can achieve p-bit accuracy with n = O(p) work using: Taylor series truncated to order n Quadrature rule with n evaluation points Gauss-Legendre quadrature fast generation of quadrature rules due to F.J. and M. Mezzarobba (208) Error bounds: Using derivatives f (n) on [a, b] Using f on a complex domain around [a, b]

17 Error bounds for Gauss-Legendre quadrature 9 / 24 If f is analytic with f (z) M on an ellipse E with foci, and semi-axes X, Y with ρ = X + Y >, then n f (x)dx w k f (x k ) M ρ 2n C ρ k= X =.25, Y = 0.75, ρ = 2.00 X = 2.00, Y =.73, ρ = 3.73 Fast convergence when no singularities are close to [a, b], but should be combined with subdivision otherwise!

18 Adaptive integration algorithm 0 / 24. Compute (b a)f ([a, b]). If the error is ε, done! 2. Compute f (z) and check analyticity of f on some ellipse E around [a, b]. If the error of Gauss-Legendre quadrature is ε, compute it done! 3. Split at m = (a + b)/2 and integrate on [a, m], [m, b] recursively. Knut Petras (Self-validating integration and approximation of piecewise analytic functions, 2002) pointed out that this guarantees rapid convergence for a large class of functions.

19 Adaptive subdivision performed by Arb / 24 ( ) I = 0 cosh 2 (0(x 0.2)) + cosh 4 (00(x 0.4)) + cosh 6 dx (000(x 0.6)) 49 terminal subintervals (smallest width 2 2 )

20 Adaptive subdivision, complex view 2 / 24 Blue ellipses used for error bounds on the subintervals Red dots: poles of the integrand

21 3 / 24 Benchmark: smooth integrands p Pari/GP mpmath Arb Sub Eval Pari/GP mpmath Arb Sub Eval I 0 = 0 /( + x2 )dx I = 3 0 k= sech2k (0 k (x 0.2k)) dx I 2 = π 0 x sin(x)/(+cos2 (x))dx I 3 = W 0 (x)dx I 4 = 00 0 sin(x)dx I 5 = 8 0 sin(x + ex ) dx I 6 = ( 250 ) e x erf x dx I 7 = +000i Γ(x)dx

22 4 / 24 Endpoint singularities and infinite intervals Convergence requires a, b, f <. Can use manual truncation, e.g. 0 f (x)dx N ε f (x)dx otherwise. p Pari/GP mpmath Arb Sub Eval Pari/GP mpmath Arb Sub Eval E 0 = 0 x 2 dx E = 0 /( + x 2 ) dx M M E 2 = 0 log(x)/( + x)dx E 3 = 0 sech(x) dx M E 4 = 0 e x2 +ix dx E 5 = 0 e x Ai( x) dx M

23 Branch cuts 5 / 24 sage: F = lambda z, _: z.sqrt() sage: F2 = lambda z, a: z.sqrt(analytic=a) # WRONG! # correct 2 z dz sage: CBF.integral(F,, 2) [ /- 7.96e-6] sage: CBF.integral(F2,, 2) [ /- 3.73e-5] # WRONG! # correct +i i z dz sage: CBF.integral(F2, -+CBF(I), --CBF(I)) [+/-.4e-4] + [ /- 5.8e-4]*I

24 Piecewise and discontinuous functions 6 / 24 Functions like x and x on R can be extended to piecewise holomorphic functions on C. f (x) = x f (x + yi) = { (x + yi) 2 x + yi x > 0 = (x + yi) x < 0 (discontinuous at x = 0) f (x) = x f (x + yi) = x (discontinuous at x Z) Note: this trick does not work for b a f (z) dz where f is a complex function. However, if we have a decomposition f (z) = g(z) + h(z)i, we can use f (z) = g(z) 2 + h(z) 2.

25 7 / 24 Integrals with discontinuities in f or f In D 0, p(x) = x 4 + 0x 3 + 9x 2 6x 6 In D 3, u(x) = (x x 2 ), v(x) = max(sin(x), cos(x)) p Time Sub Eval Time Sub Eval D 0 = 0 p(x) ex dx D = 00 0 x dx D 2 = +i i x dx D3 = 0 0 u(x)v(x)dx K M High accuracy with mpmath or Pari/GP is not possible without manually splitting at the singular points.

26 8 / 24 Options The user specifies: Working precision p Absolute and relative tolerances ε abs and ε rel Configurable work limits: Maximum quadrature degree (default: O(p)) Number of calls to the integrand (default: O(p 2 )) Number of queued subintervals (default: O(p)) Use stack (default) or global priority queue for the list of subintervals generated by bisection

27 Applications Special functions: Γ(s, z) = z t s e t dt (Inverse) Laplace/Fourier/Mellin transforms Taylor/Laurent/Fourier coefficients Counting zeros and poles: N P = f (z) 2πi C f (z) dz Acceleration of series (Euler-Maclaurin summation...) 9 / 24

28 20 / 24 Example: Laurent series of elliptic functions (z; τ) = n= 2 a n (τ)z n, a n = (z) dz 2πi γ zn+ Fix τ = i (z) has poles at z = M + Ni Pick γ = square of width centered on z = 0. One segment (n = 00): (M, N Z).

29 2 / 24 Example: Laurent series of elliptic functions Time per integral (n 00): 64 bits: 0.05 seconds 333 bits: 0.8 seconds 3333 bits: 20 seconds Results with 333-bit precision: a[-2] = [ /- 3.57e-98] + [+/-.89e-98]*I a[-] = [+/- 4.e-98] + [+/- 2.57e-98]*I a[0] = [+/-.02e-97] + [+/- 5.39e-98]*I a[] = [+/-.4e-97] + [+/-.35e-97]*I a[2] = [ /- 4.44e-97] + [+/- 2.48e-97]*I a[3] = [+/- 4.47e-97] + [+/- 4.60e-97]*I... a[94] = [ /- 9.24e-70] + [+/- 8.27e-70]*I a[95] = [+/-.37e-69] + [+/-.37e-69]*I a[96] = [+/- 2.93e-69] + [+/- 2.9e-69]*I a[97] = [+/- 5.8e-69] + [+/- 5.82e-69]*I a[98] = [ /- 2.90e-68] + [+/-.7e-68]*I a[99] = [+/- 2.32e-68] + [+/- 2.32e-68]*I a[00] = [+/- 4.95e-68] + [+/- 4.95e-68]*I

30 Example: zeros of the Riemann zeta function 22 / 24 Number of zeros of ζ(s) on R = [0, ] + [0, T ]i: T p Time Eval Sub N (T ) [ /-.94e-6] [ /- 7.78e-6] [ /- 4.25e-5] [ /- 3.0e-4] [ /- 4.06e-3] [ /- 5.53e-5] [ /- 8.09e-5] [ /-.95e-4]

31 23 / 24 Example: ζ(s) -integrals (from Harald Helfgott) i 4 +8i F 9 (s + 2 )F 9(s + ) s 2 ds, F N (s) = ζ(s) p N ( p s ) We compute Taylor models f = g + hi + ε on subsegments [a, a + 0.5], and integrate g 2 + h 2.

32 Example: Stieltjes constants 24 / 24 Joint work with I. Blagouchine (arxiv.org/abs/ ) ζ(s, v) = s + π γ n (v) = 2(n + ) n=0 ( ) n γ n (v)(s ) n n! ( ( log v 2 + ix)) n+ cosh 2 dx (πx) Some pen-and-paper analysis needed for large n: Contour is deformed to go near the saddle point Tight enclosures near the saddle point γ 0 00() e e =

Computing with precision

Computing with precision 1 / 44 Computing with precision Fredrik Johansson Inria Bordeaux X, Mountain View, CA January 24, 2019 Computing with real numbers 2 / 44 How can we represent 3.14159265358979323846264338327950288419716939937510582097

More information

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

Review: Power series define functions. Functions define power series. Taylor series of a function. Taylor polynomials of a function. Taylor Series (Sect. 10.8) Review: Power series define functions. Functions define power series. Taylor series of a function. Taylor polynomials of a function. Review: Power series define functions Remarks:

More information

Computation of the omega function

Computation of the omega function Computation of the omega function David H. Bailey http://www.davidhbailey.com Lawrence Berkeley National Laboratory (retired) University of California, Davis, Department of Computer Science 1 / 17 Mordell-Tornheim-Witten

More information

1. The COMPLEX PLANE AND ELEMENTARY FUNCTIONS: Complex numbers; stereographic projection; simple and multiple connectivity, elementary functions.

1. The COMPLEX PLANE AND ELEMENTARY FUNCTIONS: Complex numbers; stereographic projection; simple and multiple connectivity, elementary functions. Complex Analysis Qualifying Examination 1 The COMPLEX PLANE AND ELEMENTARY FUNCTIONS: Complex numbers; stereographic projection; simple and multiple connectivity, elementary functions 2 ANALYTIC FUNCTIONS:

More information

Notes on the Riemann Zeta Function

Notes on the Riemann Zeta Function Notes on the Riemann Zeta Function March 9, 5 The Zeta Function. Definition and Analyticity The Riemann zeta function is defined for Re(s) > as follows: ζ(s) = n n s. The fact that this function is analytic

More information

Numerics of classical elliptic functions, elliptic integrals and modular forms

Numerics of classical elliptic functions, elliptic integrals and modular forms 1 / 49 Numerics of classical elliptic functions, elliptic integrals and modular forms Fredrik Johansson LFANT, Inria Bordeaux & Institut de Mathématiques de Bordeaux KMPB Conference: Elliptic Integrals,

More information

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

COURSE Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method COURSE 7 3. Numerical integration of functions (continuation) 3.3. The Romberg s iterative generation method The presence of derivatives in the remainder difficulties in applicability to practical problems

More information

MA2501 Numerical Methods Spring 2015

MA2501 Numerical Methods Spring 2015 Norwegian University of Science and Technology Department of Mathematics MA5 Numerical Methods Spring 5 Solutions to exercise set 9 Find approximate values of the following integrals using the adaptive

More information

(a) To show f(z) is analytic, explicitly evaluate partials,, etc. and show. = 0. To find v, integrate u = v to get v = dy u =

(a) To show f(z) is analytic, explicitly evaluate partials,, etc. and show. = 0. To find v, integrate u = v to get v = dy u = Homework -5 Solutions Problems (a) z = + 0i, (b) z = 7 + 24i 2 f(z) = u(x, y) + iv(x, y) with u(x, y) = e 2y cos(2x) and v(x, y) = e 2y sin(2x) u (a) To show f(z) is analytic, explicitly evaluate partials,,

More information

Part IB Complex Analysis

Part IB Complex Analysis Part IB Complex Analysis Theorems Based on lectures by I. Smith Notes taken by Dexter Chua Lent 2016 These notes are not endorsed by the lecturers, and I have modified them (often significantly) after

More information

Riemann Zeta Function and Prime Number Distribution

Riemann Zeta Function and Prime Number Distribution Riemann Zeta Function and Prime Number Distribution Mingrui Xu June 2, 24 Contents Introduction 2 2 Definition of zeta function and Functional Equation 2 2. Definition and Euler Product....................

More information

Math 185 Fall 2015, Sample Final Exam Solutions

Math 185 Fall 2015, Sample Final Exam Solutions Math 185 Fall 2015, Sample Final Exam Solutions Nikhil Srivastava December 12, 2015 1. True or false: (a) If f is analytic in the annulus A = {z : 1 < z < 2} then there exist functions g and h such that

More information

Numerical Integration with the double exponential method

Numerical Integration with the double exponential method Numerical Integration with the double exponential method Pascal Molin Université Paris 7 December 7 2016 Numerical integration Number-theory context, want fast quadrature high precision (100 1000 digits)

More information

First, let me recall the formula I want to prove. Again, ψ is the function. ψ(x) = n<x

First, let me recall the formula I want to prove. Again, ψ is the function. ψ(x) = n<x 8.785: Analytic Number heory, MI, spring 007 (K.S. Kedlaya) von Mangoldt s formula In this unit, we derive von Mangoldt s formula estimating ψ(x) x in terms of the critical zeroes of the Riemann zeta function.

More information

Synopsis of Complex Analysis. Ryan D. Reece

Synopsis of Complex Analysis. Ryan D. Reece Synopsis of Complex Analysis Ryan D. Reece December 7, 2006 Chapter Complex Numbers. The Parts of a Complex Number A complex number, z, is an ordered pair of real numbers similar to the points in the real

More information

MA 412 Complex Analysis Final Exam

MA 412 Complex Analysis Final Exam MA 4 Complex Analysis Final Exam Summer II Session, August 9, 00.. Find all the values of ( 8i) /3. Sketch the solutions. Answer: We start by writing 8i in polar form and then we ll compute the cubic root:

More information

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

Numerical integration and differentiation. Unit IV. Numerical Integration and Differentiation. Plan of attack. Numerical integration. Unit IV Numerical Integration and Differentiation Numerical integration and differentiation quadrature classical formulas for equally spaced nodes improper integrals Gaussian quadrature and orthogonal

More information

NUMERICAL ANALYSIS PROBLEMS

NUMERICAL ANALYSIS PROBLEMS NUMERICAL ANALYSIS PROBLEMS JAMES KEESLING The problems that follow illustrate the methods covered in class. They are typical of the types of problems that will be on the tests.. Solving Equations Problem.

More information

Taylor and Laurent Series

Taylor and Laurent Series Chapter 4 Taylor and Laurent Series 4.. Taylor Series 4... Taylor Series for Holomorphic Functions. In Real Analysis, the Taylor series of a given function f : R R is given by: f (x + f (x (x x + f (x

More information

Is Analysis Necessary?

Is Analysis Necessary? Is Analysis Necessary? Ira M. Gessel Brandeis University Waltham, MA gessel@brandeis.edu Special Session on Algebraic and Analytic Combinatorics AMS Fall Eastern Meeting University of Connecticut, Storrs

More information

Complex Variables. Instructions Solve any eight of the following ten problems. Explain your reasoning in complete sentences to maximize credit.

Complex Variables. Instructions Solve any eight of the following ten problems. Explain your reasoning in complete sentences to maximize credit. Instructions Solve any eight of the following ten problems. Explain your reasoning in complete sentences to maximize credit. 1. The TI-89 calculator says, reasonably enough, that x 1) 1/3 1 ) 3 = 8. lim

More information

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

CS 450 Numerical Analysis. Chapter 8: Numerical Integration and Differentiation Lecture slides based on the textbook Scientific Computing: An Introductory Survey by Michael T. Heath, copyright c 2018 by the Society for Industrial and Applied Mathematics. http://www.siam.org/books/cl80

More information

THE RESIDUE THEOREM. f(z) dz = 2πi res z=z0 f(z). C

THE RESIDUE THEOREM. f(z) dz = 2πi res z=z0 f(z). C THE RESIDUE THEOREM ontents 1. The Residue Formula 1 2. Applications and corollaries of the residue formula 2 3. ontour integration over more general curves 5 4. Defining the logarithm 7 Now that we have

More information

Conformal maps. Lent 2019 COMPLEX METHODS G. Taylor. A star means optional and not necessarily harder.

Conformal maps. Lent 2019 COMPLEX METHODS G. Taylor. A star means optional and not necessarily harder. Lent 29 COMPLEX METHODS G. Taylor A star means optional and not necessarily harder. Conformal maps. (i) Let f(z) = az + b, with ad bc. Where in C is f conformal? cz + d (ii) Let f(z) = z +. What are the

More information

MATH3500 The 6th Millennium Prize Problem. The 6th Millennium Prize Problem

MATH3500 The 6th Millennium Prize Problem. The 6th Millennium Prize Problem MATH3500 The 6th Millennium Prize Problem RH Some numbers have the special property that they cannot be expressed as the product of two smaller numbers, e.g., 2, 3, 5, 7, etc. Such numbers are called prime

More information

MATH 452. SAMPLE 3 SOLUTIONS May 3, (10 pts) Let f(x + iy) = u(x, y) + iv(x, y) be an analytic function. Show that u(x, y) is harmonic.

MATH 452. SAMPLE 3 SOLUTIONS May 3, (10 pts) Let f(x + iy) = u(x, y) + iv(x, y) be an analytic function. Show that u(x, y) is harmonic. MATH 45 SAMPLE 3 SOLUTIONS May 3, 06. (0 pts) Let f(x + iy) = u(x, y) + iv(x, y) be an analytic function. Show that u(x, y) is harmonic. Because f is holomorphic, u and v satisfy the Cauchy-Riemann equations:

More information

Mathematics of Physics and Engineering II: Homework problems

Mathematics of Physics and Engineering II: Homework problems Mathematics of Physics and Engineering II: Homework problems Homework. Problem. Consider four points in R 3 : P (,, ), Q(,, 2), R(,, ), S( + a,, 2a), where a is a real number. () Compute the coordinates

More information

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

Polynomials. p n (x) = a n x n + a n 1 x n 1 + a 1 x + a 0, where Polynomials Polynomials Evaluation of polynomials involve only arithmetic operations, which can be done on today s digital computers. We consider polynomials with real coefficients and real variable. p

More information

(1) Let f(z) be the principal branch of z 4i. (a) Find f(i). Solution. f(i) = exp(4i Log(i)) = exp(4i(π/2)) = e 2π. (b) Show that

(1) Let f(z) be the principal branch of z 4i. (a) Find f(i). Solution. f(i) = exp(4i Log(i)) = exp(4i(π/2)) = e 2π. (b) Show that Let fz be the principal branch of z 4i. a Find fi. Solution. fi = exp4i Logi = exp4iπ/2 = e 2π. b Show that fz fz 2 fz z 2 fz fz 2 = λfz z 2 for all z, z 2 0, where λ =, e 8π or e 8π. Proof. We have =

More information

Problems for MATH-6300 Complex Analysis

Problems for MATH-6300 Complex Analysis Problems for MATH-63 Complex Analysis Gregor Kovačič December, 7 This list will change as the semester goes on. Please make sure you always have the newest version of it.. Prove the following Theorem For

More information

Addition sequences and numerical evaluation of modular forms

Addition sequences and numerical evaluation of modular forms Addition sequences and numerical evaluation of modular forms Fredrik Johansson (INRIA Bordeaux) Joint work with Andreas Enge (INRIA Bordeaux) William Hart (TU Kaiserslautern) DK Statusseminar in Strobl,

More information

Constructing Guaranteed Automatic Numerical Algorithms for U

Constructing Guaranteed Automatic Numerical Algorithms for U Constructing Guaranteed Automatic Numerical Algorithms for Univariate Integration Department of Applied Mathematics, Illinois Institute of Technology July 10, 2014 Contents Introduction.. GAIL What do

More information

MA424, S13 HW #6: Homework Problems 1. Answer the following, showing all work clearly and neatly. ONLY EXACT VALUES WILL BE ACCEPTED.

MA424, S13 HW #6: Homework Problems 1. Answer the following, showing all work clearly and neatly. ONLY EXACT VALUES WILL BE ACCEPTED. MA424, S13 HW #6: 44-47 Homework Problems 1 Answer the following, showing all work clearly and neatly. ONLY EXACT VALUES WILL BE ACCEPTED. NOTATION: Recall that C r (z) is the positively oriented circle

More information

Mathematics of Physics and Engineering II: Homework answers You are encouraged to disagree with everything that follows. P R and i j k 2 1 1

Mathematics of Physics and Engineering II: Homework answers You are encouraged to disagree with everything that follows. P R and i j k 2 1 1 Mathematics of Physics and Engineering II: Homework answers You are encouraged to disagree with everything that follows Homework () P Q = OQ OP =,,,, =,,, P R =,,, P S = a,, a () The vertex of the angle

More information

Lecture 1: Small Prime Gaps: From the Riemann Zeta-Function and Pair Correlation to the Circle Method. Daniel Goldston

Lecture 1: Small Prime Gaps: From the Riemann Zeta-Function and Pair Correlation to the Circle Method. Daniel Goldston Lecture 1: Small Prime Gaps: From the Riemann Zeta-Function and Pair Correlation to the Circle Method Daniel Goldston π(x): The number of primes x. The prime number theorem: π(x) x log x, as x. The average

More information

Experimental mathematics and integration

Experimental mathematics and integration Experimental mathematics and integration David H. Bailey http://www.davidhbailey.com Lawrence Berkeley National Laboratory (retired) Computer Science Department, University of California, Davis October

More information

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

(x x 0 )(x x 1 )... (x x n ) (x x 0 ) + y 0. > 5. Numerical Integration Review of Interpolation Find p n (x) with p n (x j ) = y j, j = 0, 1,,..., n. Solution: p n (x) = y 0 l 0 (x) + y 1 l 1 (x) +... + y n l n (x), l k (x) = n j=1,j k Theorem Let

More information

Mathematical Methods and its Applications (Solution of assignment-12) Solution 1 From the definition of Fourier transforms, we have.

Mathematical Methods and its Applications (Solution of assignment-12) Solution 1 From the definition of Fourier transforms, we have. For 2 weeks course only Mathematical Methods and its Applications (Solution of assignment-2 Solution From the definition of Fourier transforms, we have F e at2 e at2 e it dt e at2 +(it/a dt ( setting (

More information

Complex Homework Summer 2014

Complex Homework Summer 2014 omplex Homework Summer 24 Based on Brown hurchill 7th Edition June 2, 24 ontents hw, omplex Arithmetic, onjugates, Polar Form 2 2 hw2 nth roots, Domains, Functions 2 3 hw3 Images, Transformations 3 4 hw4

More information

High-speed high-accuracy computation of an infinite integral with unbounded and oscillated integrand. Takuya OOURA. February 2012

High-speed high-accuracy computation of an infinite integral with unbounded and oscillated integrand. Takuya OOURA. February 2012 RIMS-1741 High-speed high-accuracy computation of an infinite integral with unbounded and oscillated integrand By Takuya OOURA February 2012 RESEARCH INSTITUTE FOR MATHEMATICAL SCIENCES KYOTO UNIVERSITY,

More information

PRIME NUMBER THEOREM

PRIME NUMBER THEOREM PRIME NUMBER THEOREM RYAN LIU Abstract. Prime numbers have always been seen as the building blocks of all integers, but their behavior and distribution are often puzzling. The prime number theorem gives

More information

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

Homework and Computer Problems for Math*2130 (W17). Homework and Computer Problems for Math*2130 (W17). MARCUS R. GARVIE 1 December 21, 2016 1 Department of Mathematics & Statistics, University of Guelph NOTES: These questions are a bare minimum. You should

More information

6 Lecture 6b: the Euler Maclaurin formula

6 Lecture 6b: the Euler Maclaurin formula Queens College, CUNY, Department of Computer Science Numerical Methods CSCI 361 / 761 Fall 217 Instructor: Dr. Sateesh Mane c Sateesh R. Mane 217 March 26, 218 6 Lecture 6b: the Euler Maclaurin formula

More information

Mathematics for Engineers. Numerical mathematics

Mathematics for Engineers. Numerical mathematics Mathematics for Engineers Numerical mathematics Integers Determine the largest representable integer with the intmax command. intmax ans = int32 2147483647 2147483647+1 ans = 2.1475e+09 Remark The set

More information

Qualifying Exam Complex Analysis (Math 530) January 2019

Qualifying Exam Complex Analysis (Math 530) January 2019 Qualifying Exam Complex Analysis (Math 53) January 219 1. Let D be a domain. A function f : D C is antiholomorphic if for every z D the limit f(z + h) f(z) lim h h exists. Write f(z) = f(x + iy) = u(x,

More information

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case.

Examples of the Fourier Theorem (Sect. 10.3). The Fourier Theorem: Continuous case. s of the Fourier Theorem (Sect. 1.3. The Fourier Theorem: Continuous case. : Using the Fourier Theorem. The Fourier Theorem: Piecewise continuous case. : Using the Fourier Theorem. The Fourier Theorem:

More information

1 + z 1 x (2x y)e x2 xy. xe x2 xy. x x3 e x, lim x log(x). (3 + i) 2 17i + 1. = 1 2e + e 2 = cosh(1) 1 + i, 2 + 3i, 13 exp i arctan

1 + z 1 x (2x y)e x2 xy. xe x2 xy. x x3 e x, lim x log(x). (3 + i) 2 17i + 1. = 1 2e + e 2 = cosh(1) 1 + i, 2 + 3i, 13 exp i arctan Complex Analysis I MT333P Problems/Homework Recommended Reading: Bak Newman: Complex Analysis Springer Conway: Functions of One Complex Variable Springer Ahlfors: Complex Analysis McGraw-Hill Jaenich:

More information

1 Euler s idea: revisiting the infinitude of primes

1 Euler s idea: revisiting the infinitude of primes 8.785: Analytic Number Theory, MIT, spring 27 (K.S. Kedlaya) The prime number theorem Most of my handouts will come with exercises attached; see the web site for the due dates. (For example, these are

More information

Complex Analysis I Miniquiz Collection July 17, 2017

Complex Analysis I Miniquiz Collection July 17, 2017 Complex Analysis I Miniquiz Collection July 7, 207. Which of the two numbers is greater? (a) 7 or 0.7 (b) 3 8 or 0.3 2. What is the area A of a circular disk with radius? A = 3. Fill out the following

More information

FINAL EXAM MATH 220A, UCSD, AUTUMN 14. You have three hours.

FINAL EXAM MATH 220A, UCSD, AUTUMN 14. You have three hours. FINAL EXAM MATH 220A, UCSD, AUTUMN 4 You have three hours. Problem Points Score There are 6 problems, and the total number of points is 00. Show all your work. Please make your work as clear and easy to

More information

MA3111S COMPLEX ANALYSIS I

MA3111S COMPLEX ANALYSIS I MA3111S COMPLEX ANALYSIS I 1. The Algebra of Complex Numbers A complex number is an expression of the form a + ib, where a and b are real numbers. a is called the real part of a + ib and b the imaginary

More information

Part IB. Complex Analysis. Year

Part IB. Complex Analysis. Year Part IB Complex Analysis Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 Paper 1, Section I 2A Complex Analysis or Complex Methods 7 (a) Show that w = log(z) is a conformal

More information

Efficient implementation of the Hardy-Ramanujan-Rademacher formula

Efficient implementation of the Hardy-Ramanujan-Rademacher formula Efficient implementation of the Hardy-Ramanujan-Rademacher formula or: Partitions in the quintillions Fredrik Johansson RISC-Linz July 10, 2013 2013 SIAM Annual Meeting San Diego, CA Supported by Austrian

More information

FRACTIONAL HYPERGEOMETRIC ZETA FUNCTIONS

FRACTIONAL HYPERGEOMETRIC ZETA FUNCTIONS FRACTIONAL HYPERGEOMETRIC ZETA FUNCTIONS HUNDUMA LEGESSE GELETA, ABDULKADIR HASSEN Both authors would like to dedicate this in fond memory of Marvin Knopp. Knop was the most humble and exemplary teacher

More information

Bernoulli Polynomials

Bernoulli Polynomials Chapter 4 Bernoulli Polynomials 4. Bernoulli Numbers The generating function for the Bernoulli numbers is x e x = n= B n n! xn. (4.) That is, we are to expand the left-hand side of this equation in powers

More information

lim when the limit on the right exists, the improper integral is said to converge to that limit.

lim when the limit on the right exists, the improper integral is said to converge to that limit. hapter 7 Applications of esidues - evaluation of definite and improper integrals occurring in real analysis and applied math - finding inverse Laplace transform by the methods of summing residues. 6. Evaluation

More information

NATIONAL UNIVERSITY OF SINGAPORE Department of Mathematics MA4247 Complex Analysis II Lecture Notes Part II

NATIONAL UNIVERSITY OF SINGAPORE Department of Mathematics MA4247 Complex Analysis II Lecture Notes Part II NATIONAL UNIVERSITY OF SINGAPORE Department of Mathematics MA4247 Complex Analysis II Lecture Notes Part II Chapter 2 Further properties of analytic functions 21 Local/Global behavior of analytic functions;

More information

Contents. I Basic Methods 13

Contents. I Basic Methods 13 Preface xiii 1 Introduction 1 I Basic Methods 13 2 Convergent and Divergent Series 15 2.1 Introduction... 15 2.1.1 Power series: First steps... 15 2.1.2 Further practical aspects... 17 2.2 Differential

More information

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

We consider the problem of finding a polynomial that interpolates a given set of values: Chapter 5 Interpolation 5. Polynomial Interpolation We consider the problem of finding a polynomial that interpolates a given set of values: x x 0 x... x n y y 0 y... y n where the x i are all distinct.

More information

18.04 Practice problems exam 2, Spring 2018 Solutions

18.04 Practice problems exam 2, Spring 2018 Solutions 8.04 Practice problems exam, Spring 08 Solutions Problem. Harmonic functions (a) Show u(x, y) = x 3 3xy + 3x 3y is harmonic and find a harmonic conjugate. It s easy to compute: u x = 3x 3y + 6x, u xx =

More information

Complex Functions (1A) Young Won Lim 2/22/14

Complex Functions (1A) Young Won Lim 2/22/14 Complex Functions (1A) Copyright (c) 2011-2014 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or

More information

MORE CONSEQUENCES OF CAUCHY S THEOREM

MORE CONSEQUENCES OF CAUCHY S THEOREM MOE CONSEQUENCES OF CAUCHY S THEOEM Contents. The Mean Value Property and the Maximum-Modulus Principle 2. Morera s Theorem and some applications 3 3. The Schwarz eflection Principle 6 We have stated Cauchy

More information

The problems that follow illustrate the methods covered in class. They are typical of the types of problems that will be on the tests.

The problems that follow illustrate the methods covered in class. They are typical of the types of problems that will be on the tests. NUMERICAL ANALYSIS PRACTICE PROBLEMS JAMES KEESLING The problems that follow illustrate the methods covered in class. They are typical of the types of problems that will be on the tests.. Solving Equations

More information

Evaluation of integrals

Evaluation of integrals Evaluation of certain contour integrals: Type I Type I: Integrals of the form 2π F (cos θ, sin θ) dθ If we take z = e iθ, then cos θ = 1 (z + 1 ), sin θ = 1 (z 1 dz ) and dθ = 2 z 2i z iz. Substituting

More information

Algorithmic Tools for the Asymptotics of Diagonals

Algorithmic Tools for the Asymptotics of Diagonals Algorithmic Tools for the Asymptotics of Diagonals Bruno Salvy Inria & ENS de Lyon Lattice walks at the Interface of Algebra, Analysis and Combinatorics September 19, 2017 Asymptotics & Univariate Generating

More information

Math 234. What you should know on day one. August 28, You should be able to use general principles like. x = cos t, y = sin t, 0 t π.

Math 234. What you should know on day one. August 28, You should be able to use general principles like. x = cos t, y = sin t, 0 t π. Math 234 What you should know on day one August 28, 2001 1 You should be able to use general principles like Length = ds, Area = da, Volume = dv For example the length of the semi circle x = cos t, y =

More information

Optimal contours for high-order derivatives

Optimal contours for high-order derivatives IMA Journal of Numerical Analysis (2013) 33, 403 412 doi:10.1093/imanum/drs030 Advance Access publication on October 26, 2012 Optimal contours for high-order derivatives Folkmar Bornemann and Georg Wechslberger

More information

Some Fun with Divergent Series

Some Fun with Divergent Series Some Fun with Divergent Series 1. Preliminary Results We begin by examining the (divergent) infinite series S 1 = 1 + 2 + 3 + 4 + 5 + 6 + = k=1 k S 2 = 1 2 + 2 2 + 3 2 + 4 2 + 5 2 + 6 2 + = k=1 k 2 (i)

More information

INDEX. Bolzano-Weierstrass theorem, for sequences, boundary points, bounded functions, 142 bounded sets, 42 43

INDEX. Bolzano-Weierstrass theorem, for sequences, boundary points, bounded functions, 142 bounded sets, 42 43 INDEX Abel s identity, 131 Abel s test, 131 132 Abel s theorem, 463 464 absolute convergence, 113 114 implication of conditional convergence, 114 absolute value, 7 reverse triangle inequality, 9 triangle

More information

Assignment 2 - Complex Analysis

Assignment 2 - Complex Analysis Assignment 2 - Complex Analysis MATH 440/508 M.P. Lamoureux Sketch of solutions. Γ z dz = Γ (x iy)(dx + idy) = (xdx + ydy) + i Γ Γ ( ydx + xdy) = (/2)(x 2 + y 2 ) endpoints + i [( / y) y ( / x)x]dxdy interiorγ

More information

Numerical Integration

Numerical Integration Numerical Integration Sanzheng Qiao Department of Computing and Software McMaster University February, 2014 Outline 1 Introduction 2 Rectangle Rule 3 Trapezoid Rule 4 Error Estimates 5 Simpson s Rule 6

More information

Scientific Computing

Scientific Computing 2301678 Scientific Computing Chapter 2 Interpolation and Approximation Paisan Nakmahachalasint Paisan.N@chula.ac.th Chapter 2 Interpolation and Approximation p. 1/66 Contents 1. Polynomial interpolation

More information

Qualifying Examination

Qualifying Examination Summer 24 Day. Monday, September 5, 24 You have three hours to complete this exam. Work all problems. Start each problem on a All problems are 2 points. Please email any electronic files in support of

More information

Mathematical Methods for Physics and Engineering

Mathematical Methods for Physics and Engineering Mathematical Methods for Physics and Engineering Lecture notes for PDEs Sergei V. Shabanov Department of Mathematics, University of Florida, Gainesville, FL 32611 USA CHAPTER 1 The integration theory

More information

Sample Final Questions: Solutions Math 21B, Winter y ( y 1)(1 + y)) = A y + B

Sample Final Questions: Solutions Math 21B, Winter y ( y 1)(1 + y)) = A y + B Sample Final Questions: Solutions Math 2B, Winter 23. Evaluate the following integrals: tan a) y y dy; b) x dx; c) 3 x 2 + x dx. a) We use partial fractions: y y 3 = y y ) + y)) = A y + B y + C y +. Putting

More information

18.04 Practice problems exam 1, Spring 2018 Solutions

18.04 Practice problems exam 1, Spring 2018 Solutions 8.4 Practice problems exam, Spring 8 Solutions Problem. omplex arithmetic (a) Find the real and imaginary part of z + z. (b) Solve z 4 i =. (c) Find all possible values of i. (d) Express cos(4x) in terms

More information

Complex Analysis Math 185A, Winter 2010 Final: Solutions

Complex Analysis Math 185A, Winter 2010 Final: Solutions Complex Analysis Math 85A, Winter 200 Final: Solutions. [25 pts] The Jacobian of two real-valued functions u(x, y), v(x, y) of (x, y) is defined by the determinant (u, v) J = (x, y) = u x u y v x v y.

More information

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) = 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 1 M 13-Lecture Contents: 1) Taylor Polynomials 2) Taylor Series Centered at x a 3) Applications of Taylor Polynomials Taylor Series The previous section served as motivation and gave some useful expansion.

More information

Tutorial 1, B. Tech. Sem III, 24 July, (Root Findings and Linear System of Equations)

Tutorial 1, B. Tech. Sem III, 24 July, (Root Findings and Linear System of Equations) Tutorial, B. Tech. Sem III, 24 July, 206 (Root Findings and Linear System of Equations). Find the root of the equation e x = 3x lying in [0,] correct to three decimal places using Bisection, Regula-Falsi

More information

The Hardy-Littlewood Function: An Exercise in Slowly Convergent Series

The Hardy-Littlewood Function: An Exercise in Slowly Convergent Series The Hardy-Littlewood Function: An Exercise in Slowly Convergent Series Walter Gautschi Department of Computer Sciences Purdue University West Lafayette, IN 4797-66 U.S.A. Dedicated to Olav Njåstad on the

More information

Computation of Riemann ζ function

Computation of Riemann ζ function Math 56: Computational and Experimental Math Final project Computation of Riemann ζ function Student: Hanh Nguyen Professor: Alex Barnett May 31, 013 Contents 1 Riemann ζ function and its properties 1.1

More information

Complex Series (3A) Young Won Lim 8/17/13

Complex Series (3A) Young Won Lim 8/17/13 Complex Series (3A) 8/7/3 Copyright (c) 202, 203 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version.2 or

More information

Understanding the Prime Number Theorem

Understanding the Prime Number Theorem Understanding the Prime Number Theorem Misunderstood Monster or Beautiful Theorem? Liam Fowl September 5, 2014 Liam Fowl Understanding the Prime Number Theorem 1/20 Outline 1 Introduction 2 Complex Plane

More information

Math Calculus I

Math Calculus I Math 165 - Calculus I Christian Roettger 382 Carver Hall Mathematics Department Iowa State University www.iastate.edu/~roettger November 13, 2011 4.1 Introduction to Area Sigma Notation 4.2 The Definite

More information

Rigorous Polynomial Approximations and Applications

Rigorous Polynomial Approximations and Applications Rigorous Polynomial Approximations and Applications Mioara Joldeș under the supervision of: Nicolas Brisebarre and Jean-Michel Muller École Normale Supérieure de Lyon, Arénaire Team, Laboratoire de l Informatique

More information

Practice Problems: Integration by Parts

Practice Problems: Integration by Parts Practice Problems: Integration by Parts Answers. (a) Neither term will get simpler through differentiation, so let s try some choice for u and dv, and see how it works out (we can always go back and try

More information

Analyse 3 NA, FINAL EXAM. * Monday, January 8, 2018, *

Analyse 3 NA, FINAL EXAM. * Monday, January 8, 2018, * Analyse 3 NA, FINAL EXAM * Monday, January 8, 08, 4.00 7.00 * Motivate each answer with a computation or explanation. The maximum amount of points for this exam is 00. No calculators!. (Holomorphic functions)

More information

Course 214 Basic Properties of Holomorphic Functions Second Semester 2008

Course 214 Basic Properties of Holomorphic Functions Second Semester 2008 Course 214 Basic Properties of Holomorphic Functions Second Semester 2008 David R. Wilkins Copyright c David R. Wilkins 1989 2008 Contents 7 Basic Properties of Holomorphic Functions 72 7.1 Taylor s Theorem

More information

Complex Analysis MATH 6300 Fall 2013 Homework 4

Complex Analysis MATH 6300 Fall 2013 Homework 4 Complex Analysis MATH 6300 Fall 2013 Homework 4 Due Wednesday, December 11 at 5 PM Note that to get full credit on any problem in this class, you must solve the problems in an efficient and elegant manner,

More information

INTEGRATION WORKSHOP 2004 COMPLEX ANALYSIS EXERCISES

INTEGRATION WORKSHOP 2004 COMPLEX ANALYSIS EXERCISES INTEGRATION WORKSHOP 2004 COMPLEX ANALYSIS EXERCISES PHILIP FOTH 1. Cauchy s Formula and Cauchy s Theorem 1. Suppose that γ is a piecewise smooth positively ( counterclockwise ) oriented simple closed

More information

Math Final Exam.

Math Final Exam. Math 106 - Final Exam. This is a closed book exam. No calculators are allowed. The exam consists of 8 questions worth 100 points. Good luck! Name: Acknowledgment and acceptance of honor code: Signature:

More information

MOMENTS OF HYPERGEOMETRIC HURWITZ ZETA FUNCTIONS

MOMENTS OF HYPERGEOMETRIC HURWITZ ZETA FUNCTIONS MOMENTS OF HYPERGEOMETRIC HURWITZ ZETA FUNCTIONS ABDUL HASSEN AND HIEU D. NGUYEN Abstract. This paper investigates a generalization the classical Hurwitz zeta function. It is shown that many of the properties

More information

Part IB Complex Analysis

Part IB Complex Analysis Part IB Complex Analysis Theorems with proof Based on lectures by I. Smith Notes taken by Dexter Chua Lent 206 These notes are not endorsed by the lecturers, and I have modified them (often significantly)

More information

Section 5.2 Series Solution Near Ordinary Point

Section 5.2 Series Solution Near Ordinary Point DE Section 5.2 Series Solution Near Ordinary Point Page 1 of 5 Section 5.2 Series Solution Near Ordinary Point We are interested in second order homogeneous linear differential equations with variable

More information

Integration in the Complex Plane (Zill & Wright Chapter 18)

Integration in the Complex Plane (Zill & Wright Chapter 18) Integration in the omplex Plane Zill & Wright hapter 18) 116-4-: omplex Variables Fall 11 ontents 1 ontour Integrals 1.1 Definition and Properties............................. 1. Evaluation.....................................

More information

Considering our result for the sum and product of analytic functions, this means that for (a 0, a 1,..., a N ) C N+1, the polynomial.

Considering our result for the sum and product of analytic functions, this means that for (a 0, a 1,..., a N ) C N+1, the polynomial. Lecture 3 Usual complex functions MATH-GA 245.00 Complex Variables Polynomials. Construction f : z z is analytic on all of C since its real and imaginary parts satisfy the Cauchy-Riemann relations and

More information

On summation/integration methods for slowly convergent series

On summation/integration methods for slowly convergent series Stud. Univ. Babeş-Bolyai Math. 6(26), o. 3, 359 375 On summation/integration methods for slowly convergent series Gradimir V. Milovanović Dedicated to Professor Gheorghe Coman on the occasion of his 8th

More information

Extrapolation in Numerical Integration. Romberg Integration

Extrapolation in Numerical Integration. Romberg Integration Extrapolation in Numerical Integration Romberg Integration Matthew Battaglia Joshua Berge Sara Case Yoobin Ji Jimu Ryoo Noah Wichrowski Introduction Extrapolation: the process of estimating beyond the

More information

Why is the Riemann Hypothesis Important?

Why is the Riemann Hypothesis Important? Why is the Riemann Hypothesis Important? Keith Conrad University of Connecticut August 11, 2016 1859: Riemann s Address to the Berlin Academy of Sciences The Zeta-function For s C with Re(s) > 1, set ζ(s)

More information

Ch 9/10/11/12 Exam Review

Ch 9/10/11/12 Exam Review Ch 9/0// Exam Review The vector v has initial position P and terminal point Q. Write v in the form ai + bj; that is, find its position vector. ) P = (4, 6); Q = (-6, -) Find the vertex, focus, and directrix

More information