Fast Ewald Summation based on NFFT with Mixed Periodicity

Size: px
Start display at page:

Download "Fast Ewald Summation based on NFFT with Mixed Periodicity"

Transcription

1 Fast Ewald Summation based on NFFT with Mixed Periodicity Franziska Nestler, Michael Pippig and Daniel Potts In this paper we develop new fast Fourier-based methods for the Coulomb problem. We combine the Ewald summation formulas and the fast summation approach based on the nonequispaced fast Fourier transform (NFFT in order to develop efficient methods for calculating the Coulomb potentials as well as the acting forces in charged particle systems subject to mixed periodic boundary conditions. Therewith, we extend the applicability of NFFT based methods, which already exist for open as well as for 3d-periodic boundary conditions, to arbitrary combinations of periodic and open boundary conditions. We reconsider the derivation of the Ewald formulas for d- and d-periodic systems, introduce the new algorithms and present numerical results. Key words and phrases : Ewald method, nonequispaced fast Fourier transform, particle methods, NFFT, FMM, P3M, PNFFT AMS Mathematics Subject Classification : 65T. Introduction Let N charges q j R at positions x j R 3, j =,..., N, be given, fulfilling the charge neutrality condition q j =. (. j= The Coulomb energy is basically a sum of the form U S := q j φ S (x j, (. franziska.nestler@mathematik.tu-chemnitz.de, michael.pippig@mathematik.tu-chemnitz.de, potts@mathematik.tu-chemnitz.de, Technische Universität Chemnitz, Faculty of Mathematics, 97 Chemnitz, Germany j=

2 where for each particle j the potential φ S (x j is given by φ S (x j := n S i= q i x ij + Bn. (.3 Thereby, we denote by the Euclidean norm and define the difference vectors x ij := x i x j. The set of translation vectors S Z 3 is defined according to the given boundary conditions and B R is the edge length of the simulation box in each dimension subject to periodic boundary conditions. The prime on the double sum indicates that for n = all terms with i = j are omitted. It is important to note that the sum (.3 is, assuming charge neutrality (., only conditionally convergent, i.e., the values of the potentials φ S (x j depend on the order of summation. In addition to the calculation of the potentials φ S (x j and the total energy U S of the system, we are also interested in evaluating the forces acting on the particles, which are given by F S (x j := q j E S (x j, with the fields E S (x j := φ S (x j. (.4 The well known Ewald-Summation technique [6], which was originally developed for 3dperiodic systems, where we set S := Z 3 in our notation, is the main basis for a variety of fast algorithms for the evaluation of (. under fully periodic boundary conditions, see [6, 3,, 5, ]. The Ewald summation method [6] makes use of the trivial identity r = erf(αr r + erfc(αr, (.5 r where α > is generally known as the splitting parameter, erf(x := π x e t dt is the well known error function and erfc(x := erf(x is the complementary error function. If (.5 is applied in (.3 the potential φ S (x j is split into two rapidly converging parts. Thereby, the erf-terms have the finite limit erf(αr lim = α, (.6 r r π so that this part can be transformed into a sum in Fourier space, which allows the application of fast Fourier methods in order to derive efficient algorithms. The second part, containing the complementary error function, is absolutely convergent and can be calculated by a direct summation after truncating the infinite sum. We describe d-periodic boundary conditions by choosing S := Z {} with x j BT R and d-periodic constraints by choosing S := Z {} with x j BT R. Thereby, we denote the torus T by T := R/Z [ /, /. For a graphical illustration see Figure.. The Ewald formulas for d-periodic as well as for d-periodic geometries were already proposed in [8] and [3], respectively, and form the basis of the algorithms proposed in this paper. In contrast to the case of 3d-periodic boundary conditions, the application of the Ewald formulas for mixed periodic systems does not straightforwardly lead to fast algorithms. Some Fourier based algorithms, like MMMD, MMMD or ELC, see [6, 8, 7] and the fast and spectrally accurate Ewald summation in slab geometry [7], already exist, see also [37,, 9] for algorithms with higher complexity. For open boundary conditions, i.e., S := {} 3 in (.3, fast Fourier based methods [33, 34] where suggested, too. The relation of the Fourier based algorithms for open and 3d-periodic

3 B B B Figure.: The simulation box is duplicated along two of three dimensions in the d-periodic case (left and along one dimension in the d-periodic setting (right. boundary conditions were already investigated in [3]. In this paper we aim to close the gap and propose FFT based algorithms also for d- and d-periodic boundary conditions. This approach was already proposed in the short paper [9]. In this paper we also present numerical results, show that the performance of the new algorithms is similar to the 3d-periodic case and go into detail about our implementation. Furthermore, we derive the Ewald formulas for d- and d-periodic systems, see Theorem 4. and Theorem 5., respectively. Thereby, we always start with the splitting (.5 and then use the technique of convergence factors to derive the Fourier space representation of the long range part by applying the Poisson summation formula. We show that the obtained formulas can be used in order to derive the related algorithms, see Algorithm 4.3 and Algorithm 5.5. The main advantage of our approach is that the new algorithms are completely of the same structure as the well known algorithms for fully periodic and open boundary conditions, see [3]. That is that the short range parts of the potentials are computed directly and the long range parts are computed by an adjoint NFFT, followed by a multiplication in Fourier domain and again an NFFT in three dimensions, see Remark 4.4 and Remark 5.6. As the paper contains numerical results we introduce the relative root mean square (rms error in the fields, which is given by ( N j= E S (x j E S := ẼS(x j / N j= E S(x j, (.7 where ẼS(x j is some approximation of E S (x j, defined in (.4. This error is often taken as a measure of accuracy. We remark that the fast multipole method can also handle all mentioned types of boundary conditions very efficiently, see [3, ]. In order to estimate the rms field error in our numerical tests we used reference data computed with the fast multipole method for mixed periodic constraints. The outline of this paper is as follows. We start with a short introduction to the nonequispaced fast Fourier transform (NFFT in Section and review the idea of fast Ewald summation based on NFFTs for 3d-periodic systems in Section 3. In Section 4 we consider the case of periodic boundary conditions in two of three dimensions. To this end, we introduce and prove the d-ewald formulas, see Subsection 4., and develop a new fast algorithm in Subsection 4. for d-periodic systems. Furthermore, we present numerical results in Subsection 4.3, which show its efficiency. In order to rate the very good performance of the new algorithm, we compare the method to the particle-particle NFFT (P NFFT method for 3

4 3d-periodic systems [3]. Note that this algorithm is highly optimized and recently compared with other methods, such as the particle-particle particle-mesh (P 3 M method, the fast multipole method or multigrid based methods, see [5]. The d-periodic case is considered in an analog manner in Section 5. We present the d-ewald formulas, see Subsection 5., develop a new fast algorithm in Subsection 5. for d-periodic systems and present numerical results in Subsection 5.3. Finally, we conclude with a short summary.. Prerequisite and NFFT In this section we introduce the main notation and give a short introduction to the NFFT in three variables. To keep the notation short we define for some M = (M,..., M d N d the index set I M by I M := d I Mj, where I Mj := j= { M j,..., M j }, and the cardinality by I M := d j= M j. We do not distinguish between row and column vectors and denote by x y := x y + x y + x 3 y 3 the scalar product and by x y := (x y, x y, x 3 y 3 R 3 the component wise product of two vectors x, y R 3. For some x R 3 with non-vanishing components we further define the vector x := (x, x, x 3 R3. Let a trigonometric polynomial f : T 3 C be given by f(x = ˆfk e πik x, (. k I M with the Fourier coefficients ˆf k C, k I M. The fast evaluation of f at arbitrarily chosen nodes x j T 3, j =,..., N N, i.e., the efficient computation of f j := f(x j = k I M ˆfk e πik xj, j =,..., N, (. is known as three-dimensional NFFT. We take the approach from [33] and approximate the trigonometric polynomial f by a sum of translates of a one-periodic function ϕ, which is defined via a tensor product of the periodization of a univariate window function ϕ, i.e., we set ϕ (x := j= ϕ(x + j and define the trivariate function ϕ by ϕ(x := ϕ (x ϕ (x ϕ (x 3. We obtain f(x g l ϕ(x l m, (.3 l I m where we choose M m N 3 (component wise. Furthermore, the function ϕ is assumed to be well localized in spatial and frequency domain. Under these assumptions, it can be shown that g l := I m k I M ˆf k c k ( ϕ eπik (l m is a reasonable choice of the unknown coefficients in (.3, where c k ( ϕ denotes the k-th Fourier coefficient of ϕ. After calculating the coefficients g l by an FFT the function values f j are computed via (.3, where the sums are short due to the good localization of ϕ in spatial 4

5 domain. The adjoint nonequispaced fast Fourier transform (NFFT H is an algorithm for the fast evaluation of ĥ k = f j e πik x j, k I M, (.4 j= where now the coefficients f j C are given. Both algorithms have very similar structures and can be performed in O( I M log I M + N arithmetic operations, see [35, 4]. 3. Fast Ewald summation for 3d periodic boundary conditions For an electrical neutral system of N charges q j distributed in a cubic box of edge length B we define the electrostatic potential subject to 3d periodic boundary conditions by φ p3 (x j := φ Z 3(x j = s= n Z 3 n =s i= q i x ij + Bn, (3. i.e., we set S := Z 3 within the definitions (. (.4 and apply a spherical order of summation. We obtain [6, 5] φ p3 (x j = φ p3,s (x j + φ p3,l (x j + φ p3,self (x j, (3. where for the splitting parameter α > we define the short range part the long range part φ p3,s (x j := n Z 3 φ p3,l (x j := πb and the self potential N i= k Z 3 \{} φ p3,self (x j := α π q j. erfc(α x ij + Bn q i, x ij + Bn e π k /(α B k ( N q i e πik x i/b e πik xj/b, i= Often a fourth term, the so called dipole correction term, appears in the decomposition (3., cf. [3]. The dipole correction term is the only part depending on the order of summation. However, if a spherical summation order is applied, the dipole correction term depends only on the norm of the dipole moment N j= q jx j and, additionally, on the dielectric constant of the surrounding medium. Therefore, it can be computed efficiently in O(N arithmetic operations. If the medium is assumed to be metallic, the dipole term vanishes and (3. applies. It should be mentioned that the formulas above can be generalized to non-cubic boxes and also non-orthogonal (triclinic boxes, cf. [6,, ]. As the complementary error function erfc rapidly tends to zero, the short range part of each potential φ p3,s (x j can be 5

6 obtained by direct evaluation. In order to compute the long range parts φ p3,l (x j we truncate the infinite sum and compute approximations of the sums Ŝ(k := with an adjoint NFFT and evaluate φ p3,l (x j πb q i e πik xi/b, k I M, i= k I M \{} where we define the Fourier coefficients ˆbk Ŝ(ke πik x j/b, j =,..., N, ˆbk := e π k /α B k, (3.3 via the NFFT. In matrix vector notation we may write ( N φ p3,l (x j j= ADA q, (3.4 where A denotes the matrix representation of the NFFT in three dimensions, D is a diagonal matrix with entries πbˆb k, k I M, and q = (q,..., q N R N. The force acting on a particle j can be written as F p3 (x j = F p3,s (x j + F p3,l (x j := q j φ p3,s (x j q j φ p3,l (x j, where the short range part F p3,s (x j is given by F S S(x j := q j n S i= ( α q i e α x ij +Bn + erfc(α x ij + Bn π x ij + Bn xij + Bn x ij + Bn (3.5 with S := Z 3 and can be evaluated by direct summation, too. The long range part can be obtained by differentiation in Fourier space, i.e., we write F p3,l (x j = iq j B k Z 3 \{} ˆbk kŝ(ke πik x j/b and use a NFFT in each dimension for an efficient evaluation. This approach is widely known as ik differentiation, see [3] for instance. An alternative is the so called analytic differentiation approach [], where the operator is applied to the NFFT window function. In terms of (. and (.3 this means that we set ˆf k := {ˆbk Ŝ(k : k, : k = and compute the long range portion of the force F p3 (x j by F p3,l (x j q j πb l I m g l ϕ(x j l m. (3.6 6

7 4. Fast Ewald summation for d-periodic boundary conditions 4.. Ewald summation We consider a system of N charges q j R at positions x j BT R. Under periodic boundary conditions in the first two dimensions we define the potential of each single particle by φ p (x j := φ Z {}(x j = and define the Coulomb energy via s= U p := U Z {} = n Z {} n =s i= q i x ij + Bn (4. q j φ p (x j, (4. i.e., we set S := Z {} in (. (.4 and use the spherical limit as in (3.. In the following theorem we consider the d-ewald formula, see [8], and give a proof using convergence factors, similar to [5], where the 3d-periodic case is treated. In this section we denote for y R 3 the vector of its first two components by ỹ := (y, y R. Theorem 4.. Consider an electrical neutral system of N charges q j R at positions x j = ( x j, x j,3 BT R, j =,..., N. Under periodic boundary conditions in the first two variables the potentials φ p (x j, defined in (4., can be written in the form j= φ p (x j = φ p,s (x j + φ p,l (x j + φ p, (x j + φ p,self (x j, where for some α > we define the short range part the long range parts the self potential φ p,s (x j := φ p,l (x j := B n Z {} i= φ p, (x j := π B k Z \{} i= i= φ p,self (x j := α π q j, erfc(α x ij + Bn q i, (4.3 x ij + Bn q i e πik x ij/b Θ p ( k, x ij,3, q i ( e α x ij,3 α + πx ij,3 erf(αx ij,3, and the function Θ p (k, r for k, r R is defined by Θ p (k, r := [ ( ( ] πk πk e πkr/b erfc k αb + αr + e πkr/b erfc αb αr. (4.4 7

8 Proof. In contrast to the case of periodicity in all three dimensions, it can be shown that a convergence factor of the form e s xij+bn instead of e s Bn can be used in order to calculate the spherical limit (4.. For a proof see [6] or [4]. Thereby, the factor e s xij+bn can be replaced by e s x ij+bn. As in [8] we apply the convergence factor e s x ij+bn for the calculation of the potential (3., i.e., we compute the limit φ p (x j = lim s n Z {} i= q ie s x ij+bn x ij + Bn. For the calculation of φ p (x j we first apply (.5 for the splitting parameter α > and obtain by exploiting (.6 φ p (x j = φ p,s (x j + n Z {} i= q i erf(α x ij + Bn x ij + Bn In order to calculate the remaining long range part we define φ s (x j := n Z {} i= + φ p,self (x j. q i e s x ij+bn erf(α x ij + Bn, x ij + Bn which is absolutely convergent for all s > and uniformly convergent on s, cf. [5]. Then, we consider the limit lim s φ s (x j. In the following, we apply the identity erf(α x ij + Bn = π x ij + Bn in φ s (x j and use the Poisson summation formula n Z e β x+bn α = B k Z π β e π k /(B β e πik x/b e x ij+bn z dz (4.5 for a Gaussian kernel in two variables, which is valid for β > and uniformly convergent on R. Applying (4.5 we can write φ s (x j for s > as an absolutely and uniformly convergent sum of absolutely and uniformly convergent integrals. Thus, we may change the order of summation and integration to get φ s (x j = π α = π α q i e (s+z x ij,3 i= q i e (s+z x ij,3 i= ñ Z e (s+z xij+bñ k Z dz k π B (s + z e π B (s+z e πik x ij/b dz. As the Fourier series is uniformly convergent and the terms of the sum are continuous functions on [, α] we obtain φ s (x j = π k Z i= π α q eπik x ij/b i B k s + z e π B (s+z e x ij,3 (s+z dz. (4.6 8

9 In the following we separate the k = term and consider the sum π k Z \{} i= π α q eπik x ij/b i B k s + z e π B (s+z e x ij,3 (s+z dz. If the limit for s of each single summand exists, we are allowed to change the order of summation and calculating the limits. In the following, we will show that these limits exist. We have α lim s s + z e π k α B (s+z e x ij,3 (s+z dz = z e π k B z e x ij,3 z dz. This can be proved as follows. For s > we define the function f s by f s (z := z + s and set f(z := z. Then the convergence f s f is uniform on [, α]. The function h(y := y e π k B y e x ij,3 y : z, : z = is continuous and, therefore, uniformly continuous on [, α]. Thus, the convergence h f s h f is also uniform on [, α] and the limit can be applied to the integrand. For the computation of the integral on the right hand side we substitute y := z and obtain α k ( B z e x ij,3 z π dz = exp k y x ij,3 dy B y z e π For the substitutions we obtain t := π k y B ( π k dt + dt = B = = /α /α /α + x ij,3 y Thus, using (4.7 and (4.8, we get [ α z e π k B z e x ij,3 z dz = B π k [ ( exp π k y B [ ( exp π k y B and t := π k y B x ( ij,3 π k y dy + B + x ij,3 y e π k x ij,3/b + e π k x ij,3/b + x ij,3 π k x y + ij,3 B x ij,3 π k x y ij,3 B π k αb +αx ij,3 π k αb αx ij,3 and, therefore, the limit of φ s (x j can be written in the form lim φ s(x j = φ p,l π (x j + lim s s B q i e sx ij,3 i= x ij,3 y dy = π k B dy. e t dt e t dt ] α ] dy (4.7 ] dy. (4.8 = B π 4π Θp ( k, x ij,3 e x ij,3 z s + z dz. 9

10 Now, we use the substitution y := z s and obtain I(s := α e x ij,3 z s + z dz = α s e sx ij,3 z s( + z dz. Replacing the term f(s := e sx ij,3 z by its Taylor representation f(s = we have I(s = n= ( n x n ij,3 sn n! s In the following steps we make use of the identity β z n n + z dz = ( n arctan β + ( n+ α s n= ( n (x ij,3 z n sn z n dz. (4.9 + z k= ( k βk+ n! k +, (4. which is valid for β >, n N and can easily be verified by induction. Furthermore, we use the Taylor representation παz erf(αz + e α z = + n= ( n (αz n+ (n +!(n + holding for α > and each z R. Applying (4. with β = α s we get s n s α s z n + z dz = ( n s n ( arctan α s s Inserting this result into (4.9 we obtain I(s = ( arctan α s s = ( arctan α s s n + ( n+ ( k α k+ s n (k + s k+ k= O( s + αn (n + O(s for s : n >, = ( s arctan α : n =. s + + n= n= ( n x n ij αn + O( s n!(n ( n+ x n+ ij α n+ + O( s (n +!(n + = ( arctan α πx s s ij,3 erf(αx ij,3 x α e α ij,3 + α + O( s and by exploiting the charge neutrality (. we get lim φ s(x j = φ p,l π (x j + lim s s = φ p,l (x j π B B i= = φ p,l (x j + φ p, (x j. q i e sx ij,3i(s i= q i ( e α x ij,3 α + πx ij,3 erf(αx ij,3

11 With the following lemma we show that the function Θ p (k, r tends to zero exponentially fast with respect to k, i.e., we can truncate the infinite sum in φ p,l (x j. Lemma 4.. For arbitrary r R we have for the function Θ p given in (4.4 Θ p (k, r with Θ p (k, r = o(k e k for k. Proof. The function Θ p has the integral representation Θ p (k, r = 4 π α ( B t exp π k B t r t dt, as we have seen in the proof of Theorem 4.. Now, we easily see Θ p (k, r Θ p (k, = ( πk k erfc αb αb k π which is valid for large k, cf. [, number 7..3]. 4.. Fast NFFT based algorithm for d-periodic systems π k e α 3/ B, Based on Theorem 4. we derive a fast algorithm. The evaluation of the short range part φ p,s (x j is done by a direct evaluation. For the computation of the long range part we apply the fast summation method [33] to the functions Θ p (k, Computational approach Due to Lemma 4. we can truncate the infinite sum in φ p,l (x j, i.e., for some appropriate M = (M, M N we set φ p,l (x j B k I M \{} i= q i e πik x ij/b Θ p ( k, x ij,3. Note, that all the functions Θ p ( k, have to be evaluated only within a finite interval [ B3 /, B3 /]. The main idea is to approximate the functions Θ p ( k, on this interval by a truncated Fourier series. However, the odd derivatives of Θ p ( k, at the points B3 / and B 3/ do not match, which yields a bad convergence rate of the Fourier series. Therefore, we extend the interval at both ends, where we construct a smooth transition. In the following, we give the formal derivation of this idea. Let h > and ε > such that x ij,3 h( / ε for all i, j =,..., N and define Θ p r e α (r := α + πrerf(αr. In order to approximate the long range parts φ p,l (x j + φ p, (x j efficiently we consider for k { k : k I M } the regularizations B Θp (k, r : k, h r / ε, K R (k, r := π B Θp (r : k =, h r / ε, (4. K B (k, r : h r ( / ε, /],

12 where we claim that each function K B (k, : [ h / + hε, h /] [ h /, h / hε] R fulfills the Hermite interpolation conditions j r j K B(k, h / hε = j r j K B(k, h / + hε = { B j π B { j B Θ p (k, r h j / hε : k d j Θ p dr j (h / hε : k =, (4. Θ p (k, r h j / + hε : k d j Θ p dr j ( h / + hε : k = π B (4.3 for all j =,..., p. Hereby, we refer to p N as the degree of smoothness. In order to end up with h-periodic, smooth functions K R (k,, the functions K B (k, are constructed such that j r j K R(k, h / = j r j K R(k, h /, j =,..., p is also fulfilled. In Section 4.. we show that the functions K B (k,. can be constructed as polynomials of degree p by two point Taylor interpolation. Figure 4. shows an example of such a regularization K R (k,. B Θp (k, K B (k, K B (k, j r j K B (k, h/ hε = j B r j Θ p (k, h / hε h / + hε h / h/ h/ hε Figure 4.: Example for K R (k, for k. At the boundaries (gray area the regularization adopts the values of the boundary function K B (k,. We also marked the points, where the conditions (4. and (4.3 are fulfilled. In summary, the functions K R (k, are h-periodic and smooth, i.e., K R (k, H p (ht. Therefore, they can be approximated by a truncated Fourier series up to a prescribed error. To this end, we approximate for each k { k : k I M } the function B Θp (k, r l I M3 ˆbk,l e πilr/h (4.4 for r h / hε by the truncated Fourier series of its regularization K R (k,. Analogously, for k = we have π B Θp (r ˆb,l e πilr/h. (4.5 l I M3

13 Thereby, we choose the frequency cutoff M 3 N large enough and compute the Fourier coefficients ˆb k,l in (4.4 as well as ˆb,l in (4.5 by the discrete Fourier transform ˆbk,l := M 3 j I M3 K R ( k, jh M 3 e πijl/m 3, l = M3 /,..., M3 /. (4.6 This ansatz is closely related to the fast summation method described in [33]. Due to the fact that for each k we have Θ p (k, C (R we are not restricted in the choice of the parameter p. By choosing M 3 large enough we can construct approximations (4.4 of a required accuracy. In summary, we obtain the following approximation for the long range parts, φ p,l (x j + φ p, (x j ˆb k,l k I M l I M3 i= = (k,l I M ˆb k,l q i e πik x ij/b e πilx ij,3/h ( N q i e πiv(k,l x i e πiv(k,l x j, (4.7 where we substitute the truncated Fourier series (4.4, (4.5 into Theorem 4. and define M := ( M, M 3 N 3 as well as the vectors v(k, l := (k/b, l/h B Z h Z. The expressions in the inner brackets i= Ŝ(k, l := q i e πiv(k,l x i, (k, l I M (4.8 i= can be computed by an NFFT H. This will be followed by I M multiplications with ˆb k,l and completed by an NFFT to compute the outer summation with the complex exponentials. Therefore, the proposed evaluation of φ p,l (x j + φ p, (x j at the points x j, j =,..., N, requires O(N + I M log I M arithmetic operations. The calculation of the forces is done analogously to the 3d-periodic case. We set S := Z {}, define F p (x j := F S (x j via (.4 and calculate the short range portions F p,s (x j given by (3.5 via a direct summation. In the long range part we can either use the ik approach, i.e., we set F p,l (x j + F p, (x j πiq j (k,l I M ˆb k,l ( N q i e πiv(k,l x i v(k, le πiv(k,l x j, (4.9 or the analytic differentiation, where the operator is applied to the window function ϕ in (.3 within the NFFT, cf. (3.6. In summary, we obtain Algorithm 4.3 for the fast computation of d-periodic Coulomb interactions. Algorithm 4.3 (d-periodic P NFFT. Input: Positions x j BT [ B3 /, B3 /], charges q j R (j =,..., N, splitting parameter α >, short range cutoff r cut >, long range cutoff M = ( M, M 3 N 3, regularization parameter ε >, degree of smoothness p N. i= 3

14 . Precomputations: a Set h := ( / ε B 3. b Construct the regularization (4. for each k { k : k I M }. c Compute the Fourier coefficients (4.6.. Compute the short range parts of the potentials φ p,s (x j and the short range parts of the forces F p,s (x j by direct evaluation, i.e., restrict the summation in (4.3 and (3.5, where S := Z {}, to all x ij + Bn r cut.. Compute the sums Ŝ(k, l in (4.8 by the adjoint NFFT ( Apply the NFFT (. to compute the long range parts of the potentials φ p,l (x j + φ p, (x j by ( Compute the long range parts of the forces F p,l (x j +F p, (x j via the ik differentiation approach (4.9 or the analytic differentiation, cf. ( For all j =,..., N compute φ p (x j = φ p,s (x j + φ p,l (x j + φ p, (x j + φ p,self (x j F p (x j = F p,s (x j + F p,l (x j + F p, (x j. 6. Compute the energy (4.. Output: Energy U p, potentials φ p (x j and forces F p (x j. Remark 4.4. Algorithm 4.3 has the same structure as the NFFT based method for 3dperiodic systems, cf. Section 3. Thus, we also obtain a matrix vector notation of the form (3.4 for the approximation of φ p,l (x j + φ p, (x j. In other words, we use the same algorithm, where we replace the Fourier coefficients ˆb k from (3.3 by the new coefficients ˆb k,l in (4.6 and insert the nodes ( x ij /B, x ij,3 /h T 3 instead of x ij /B T 3 into the NFFT algorithms Implementation details The precomputation step of Algorithm 4.3 includes the construction of the regularizations (4.. Thereby, we obtain K B (k, by the unique polynomial of degree p that fulfills the p Hermite interpolation conditions (4. (4.3 in two points. An explicit representation of this polynomial is given by Theorem A. in the appendix, where we set m = h / and r = hε and a j, b j equal to the right hand sides of the interpolation conditions (4. (4.3, respectively. In order to compute the derivatives in (4. (4.3 we use the following relations. We define the function ( πk Θ (k, r := e πkr/b erfc αb + αr (4. and let Θ ± (k, r := Θ (k, r ± Θ (k, r. Note that we have Θ p (k, r = k Θ +(k, r. We immediately see that r Θ +(k, r = πk B Θ (k, r, r Θ (k, r = πk B Θ +(k, r 4α e α r π k /α B, π 4

15 and, therefore, r Θ +(k, r = 4π k B Θ + (k, r 8α πk r π k /α B B e α. For the computation of the derivatives of order n we use the following recursive formula n r n Θ +(k, r = 4π k B (n r (n Θ +(k, r (n 8α πk r (n B e α r π k /α B. The second term can be computed easily with the derivatives of the Gaussian window function (n 8α πk r π k /α B r (n B e α = 8α πk k /α B (n r B e π r (n e α. We remark that the numerical evaluation of the function (4. for large k, r > is important in order to obtain a regularization of the d-periodic Ewald splitting. This can be done straight forward for r, since we have the trivial upper bound Θ (k, r. In contrast, for large values of r > the exponential tends to infinity and exceeds rapidly the range of representable floating point numbers in double precision. Since the complementary error function tends much faster to zero, the function Θ(k, r can be considered numerically equal to zero for kr > large enough. For the substitutions l = πk Bα > and t = lrα > we can use the standard estimate (l t that yields t l + t/l and, finally, we obtain ( lbα Θ π, tb = e t erfc ( l + t ( πk l e t erfc t =: f(t. The right hand side holds f(t 6 for t > 8, i.e., whenever t := πkr B Θ (k, r to be numerically equal to zero. > 8 we can assume 4.3. Numerical results In this section we present numerical results of our algorithm for d-periodic boundary conditions. We implemented this algorithm as a part of the P NFFT solver [3] within the Scalable Fast Coulomb Solver (ScaFaCoS library [], i.e., our implementation is publicly available at [] and can be compared to various other well established methods with respect to accuracy and run time. Recently, this library has been used for a broad comparison of various fast Coulomb solvers for fully 3d-periodic boundary conditions [5]. In the following, we show that our d-periodic algorithm can be tuned to high accuracy and offers a run time comparable to the well established P 3 M algorithm for 3d-periodic systems. For all tests the calculation of the forces was performed using the analytic differentiation approach, cf. (3.6. Whenever the rms field error is examined, the comparative data were computed with the fast multipole method [, 3, ] within ScaFaCoS tuned to sufficient accuracy. Our run time measurements have been performed on an Intel i5-4 single core processor that runs on 3. GHz with 8 GB main memory. The software was built with the GCC C compiler at version 4.7. and optimization flags -O3. 5

16 Figure 4.: Cloud wall system with N = 3 charges qj = ± in a cubic box, see [5]. α =.5 α =. α =.5 α =. α =.5 α =. α =.5 α =. 8 p B Θ (, r π p B Θ (r r 5 5 r 5 p Figure 4.3: Θp (r and Θ (, r with B = for different splitting parameters α. Example 4.5. We consider a so called cloud wall system consisting of N = 3 charges in a cubic box of edge length B = (see Figure 4.. The system consists of a diffusive particle cloud surrounding two oppositely charged walls and was proposed in [5] because of its significant long range part. In order to get an impression of the involved functions in (4. we plot these functions over the interval [ B, B] for different values of α, see Figure 4.3. In the following we choose the degree of smoothness p = 6, set M3 = 64 and investigate the exactness of (4.5 as well as of (4.4 for k = and k = 3 in dependency on the parameter ε in (4.. Therefore, we plot the maximum approximation errors in Figure 4.4, where the maximum error of (4.5 is depicted in black. It can be seen that, for some fixed ε, the errors decrease as α. On the other hand, the value of the optimal ε increases as α. Additionally, we plot the error in the case k = (blue and for k = 3 (red. In Figure 4.5 we choose the same values for ε and plot the relative rms field error (.7 in the cloud wall system as a function of the splitting parameter α, where we choose M = (64, 64, 64 and m = (64, 64, 8 in (.3. It can be seen that for ε too small we obtain a plateau in the error plot, i.e., the error remains almost constant over a certain interval. If ε is chosen large enough, the optimal approximation error becomes smaller, whereas for large values of α the 6

17 max. error ε =. ε =.5 ε =.3 ε =.45 ε =.6 ε =.75 ε =.9 max. error ε =. ε =.5 ε =.3 ε =.45 ε =.6 ε =.75 ε = splitting parameter α splitting parameter α Figure 4.4: Approximation errors for different values of ε with M 3 = 64 and p = 6. left: Maximum errors of (4.5 (black and of (4.4 for k = (blue. right: Maximum errors of (4.4 for k = (blue as well as for k = 3 (red. error is even worse. We obtain the smallest error for ε.45, where the optimal α, which kind of goes along with the results plotted in Figure 4.4. E Z {} ε =. ε =.5 ε =.3 ε =.45 ε =.6 ε =.75 ε = splitting parameter α Figure 4.5: Relative rms field error (.7 over α for different regularization parameters ε. We choose the short rang cutoff r cut = 4, the smoothness p = 6, M = (64, 64, 64, m = (64, 64, 8 and the B-Spline of order 8 as NFFT window function ϕ in Algorithm 4.3. Obviously, the value of the optimal ε depends on both, the exactness of the approximation of Θ p in the k = part as well as the goodness of the approximations of the kernel functions for k >, but the error is dominated by the approximation in the k = part. In Figure 4.6 we plot the relative rms field error E Z {} with respect to the splitting parameter α for different FFT sizes M = (M, M, M. In the case M = 64 we set ε :=.45. For the other values of M we tuned ε by hand in order to get a small optimal rms field error. On the right hand side we see the corresponding errors of the same particle system treated under fully periodic boundary conditions. Of course, the d-periodic calculation produces larger errors in the long range calculations, which is due to the fact that each approximation (4.4 generates a certain error, whereas in the 3d-periodic case the Fourier 7

18 coefficients (3.3 are exactly known. As the errors in the short range part behave exactly the same way, the splitting parameter α adopts slightly different optimal values. E Z {} 4 7 M = 6, ε =.5 M = 3, ε =.5 M = 64, ε =.45 M = 8, ε =.7 M = 56, ε =.9 E Z splitting parameter α splitting parameter α Figure 4.6: The relative rms field error (.7 over α for different FFT sizes. We choose the short range cutoff r cut = 4, the smoothness p = 6, m = (M, M, M and the B-Spline of order 8 as NFFT window function ϕ in Algorithm 4.3. We plot the results of the d-periodic (left as well as of the 3d-periodic computation (right. Example 4.6. We compute the potentials φ p (x j as well as the forces F p (x j in cloud wall systems of different size, where the particles are distributed in a cubic box of edge length B. It can be seen from the data in Table 4. that the systems have the same particle density. Therefore, the computations in the near field with fixed values of the short range cutoff r cut and the splitting parameter α are comparable. In the calculation for the long range part we choose M = (M, M, M N 3 in (4.7 and apply the NFFT with oversampling factor regarding the nonperiodic dimension, i.e., we set m := (M, M, M in the NFFT approximation (.3. In addition, we do the same calculation without oversampling, where we set m := (M, M, M, and treat the same particle system under fully periodic boundary conditions. As a window function we choose the cardinal B-spline of order 8 and construct regularizations of smoothness p = 6. Note that in the case without oversampling the choice of the parameters is the same as for the P 3 M. For the cloud wall system of size N = 3 we set M = 6 and ε =.5 as in the last example. For the short range cutoff r cut = 4 we find from Figure 4.6 that the error E Z {} is minimized for α.6. For the larger systems we choose larger values of M. Consequently, we also have to choose other values for ε, too. For this reason we consider the error of the approximation (4.5 for the different combinations of B and M, where we fix the splitting parameter α =.6, see Figure 4.7. For M = 6 we obtain the optimal value ε opt.3 regarding the exactness (4.5, whereas we obtain the minimal rms field error E Z {} for ε Therefore, we heuristically set ε =.8846 ε opt also in the other cases. In Table 4. it can be seen that we achieve approximation errors of comparable size among all systems. The fact that we are not far away from the errors of the 3d-periodic calculation shows that the parameters where chosen appropriately. In Figure 4.8 we plot the corresponding run times. We see that the oversampling slightly increases the run time and that the fully periodic as well as the d-periodic calculation 8

19 emax B =, M = 6 B =, M = 3 B = 4, M = 64 B = 8, M = 8 B = 6, M = ε Figure 4.7: Maximum approximation error (4.5 for k = over ε, where we choose the splitting parameter α =.6. oversampling no oversampling N B ε M E Z {} E Z {} E Z e e e e-4.836e e e e e e e e e e e-4 Table 4.: Relative rms force errors in the cloud wall systems under d-periodic boundary conditions (with and without oversampling in the third dimension as well as under fully periodic boundary conditions. These errors have been obtained with short range cutoff r cut = 4 and splitting parameter α =.6. without oversampling require almost the same amount of time. In summary, we remark that in contrast to the fully periodic case, where the Fourier coefficients are given analytically by (3.3, we have to precompute all the coefficients ˆb k,l in (4.6. Of course, this leads to a huge amount of precomputation steps for large values of M, which is not included in the stated run times. However, if one is interested in doing a large simulation with fixed parameters, the precomputations have to be done only once. 5. Fast Ewald summation for d-periodic boundary conditions 5.. Ewald summation We consider a system of N charges q j R at positions x j BT R. If periodic boundary conditions are assumed only in the first coordinate we define the potential of each single particle j by φ p (x j := φ Z {} (x j = s= n Z {} n =s i= q i x ij + Bn (5. 9

20 . 5 time [s] time/#charges [s] #charges N N log N #charges Figure 4.8: Computation times with oversampling (o and without oversampling (* for the d-periodic case as well as for the fully periodic computation (+. left: Attended times for the total computation (solid lines, the long range part (dotted as well as the short range part (dashed. We also plot exemplary behaviors where the run time grows proportional to N (red and N log N (blue. right: Total computation time scaled by the number of particles. We achieved rms field errors of the size 5 4. and define the Coulomb energy U p := U Z {} = q j φ p (x j, i.e., we set S := Z {} in (. (.4 and consider the spherical limit analogously to (3.. In this section we denote for some y = (y, y, y 3 R 3 the vector of its last two components by ỹ := (y, y 3 R. The result of the following Lemma will be used in the derivation of the Ewald formulas. Lemma 5.. For β > and n N we have ( β x n dx (n!! = ( n + β + x (n!! Proof. In the case n = we obtain For n N we get β x n dx β = + x β x n β j= n k (k!! ( (k!! βk + ln(β + + β. k= dx + x = arsinh(β = ln(β + + β. xdx = βn + β (n + x = β n + β (n β x n + x dx β x n β x n dx = ( β n + β + x n (n + x dx + x x n dx + x

21 and the claim follows by induction. In the following we denote by Γ(s, x := x t s e t dt (5. the upper incomplete gamma function. For the case s = the well known identity Γ(, x = γ ln x ( k xk k!k k= (5.3 holds for all positive x, see [, number 5..]. Thereby, γ is the Euler-Mascheroni constant. The function Γ(, is also known as the exponential integral function. We easily see lim Γ(, x + ln x + γ =. (5.4 x In the following Theorem, we consider the d-ewald formula, see [3], and give a proof using convergence factors, analogously to the proof of Theorem 4.. Theorem 5.. Consider an electrical neutral system of N charges q j R at positions x j = (x j,, x j BT R, j =,..., N. Under periodic boundary conditions in the first variable the potential φ p (x j, defined in (5., can be written as φ p (x j = φ p,s (x j + φ p,l (x j + φ p, (x j + φ p,self (x j, where for the splitting parameter α > we define the short range part the long range parts the self potential φ p,s (x j := φ p,l (x j := B φ p, (x j := B n Z {} i= k Z\{} i= i= x ij φ p,self (x j := α π q j, erfc(α x ij + Bn q i, (5.5 x ij + Bn q i e πik(x i, x j, /B Θ p (k, x ij q i [ γ + Γ(, α x ij + ln(α x ij ], and the function Θ p (k, r for k, r R is defined by Θ p (k, r = α z e π k B z e r z dz. (5.6

22 Proof. As in Theorem 4. we apply the convergence factor e s x ij+bn for the calculation of the potential (5.. After using the splitting (.5 we obtain We define φ p (x j = φ p,s (x j + φ s (x j := n Z n Z {} i= n Z {} i= q i erf(α x ij + Bn x ij + Bn q i e s x ij+bn erf(α x ij + Bn x ij + Bn and use the Poisson summation formula e β(x+nb = π k /(B β B β e π e πikx/b to obtain φ s (x j = π k Z i= k Z π α q i B eπik(x i, x j, /B + φ p,self (x j. e π k B (s+z e x ij (s+z dz, s + z analogously to (4.6. Again, for k we compute the limit for s under the integrals and obtain by similar steps as in the proof of Theorem 4. lim φ s(x j = φ p,l (x j + lim s s B q i e sξ ij i= α e ξ ij z s + z dz, where we set ξ ij := x ij. In order to compute the remaining limit for k = we make use of the substitution y := z s again and get I(s := α e ξ ij z dz = s + z α s e sξ ij z + z dz. Replacing the exponential by its Taylor representation in s we have ( n ξ n ij I(s = sn s α z n n! dz. + z n= With the help of Lemma 5. we get ( s α dz = ln α + + z s s + α s for n = and in the case n > we obtain α s n s z n s + α dz = + z ( n n (n!! n k (k!! s ( s (n!! (k!! k= ( + ( n n (n!! α s + α s ln + (n!! s s = O(s + s + α αn n + ( n n (n!! s ln (n!! α k s s k ( α s + s + α s

23 for s. Applying (5.3, (5.4 as well as the charge neutrality condition (. we get lim φ s(x j = φ p,l (x j + lim q i e sξ iji(s, s s B = φ p,l (x j + B = φ p,l (x j B i= q i i= n= i= x ij ( n ξ n ij αn n!n q i [ γ + Γ(, α x ij + ln(α x ij ]. The function Θ p (k, r can be expressed by the incomplete modified Bessel function of the second kind [9], see Section 5... This function is known to be infinitely continuously differentiable and, thus, we can construct regularizations of similar structure as (4. in order to construct a fast algorithm. In this case the final algorithm requires a smooth bivariate regularization, which can be obtained easily from a one dimensional construction as the Fourier coefficients are radial in x ij. Then, the evaluation is done with the multivariate fast summation method [34]. By the following Lemma 5.3 we show that the function Θ p (k, r for fixed r tends to zero exponentially fast for growing k, which allows the truncation of the infinite sum in φ p,l (x j. Furthermore, Lemma 5.4 shows that also the kernel in φ p, (x j is a smooth function, which allows the application of the fast summation method. Lemma 5.3. For arbitrary r R we have for the function Θ p given in (5.6 Θ p (k, r with Θ p (k, r = o(k e k for k. Proof. By the definition (5.6 we immediately see Θ p (k, r Θ p (k, = Γ (, π k α B The claim follows by applying the asymptotic expansion Γ(, x e x x, cf. [, number 6.5.3], which holds for large x := π k. α B Lemma 5.4. For the univariate function { : x =, ϑ(x := Γ(, x + ln(x + γ : else we have ϑ C (R. Proof. Since lim t Γ(, t + ln(t + γ = the function is continuous. As (5.3 holds for all x > we obtain γ + Γ(, x + ln(x ( k+ x k =, x. k!k From this representation we easily conclude d n ( lim γ + Γ(, x x + dx n + ln(x d n ( = lim γ + Γ(, x x dx n + ln(x ±. k=. 3

24 5.. Fast NFFT based algorithm for d-periodic systems Similar as in the previous section we derive the fast algorithm now based on Theorem 5.. The evaluation of the short range part φ p,s (x j is done by a direct evaluation again Computational approach Due to Lemma 5.3 we can truncate the infinite sum in φ p,l (x j, i.e., for some appropriate M N we set φ p,l (x j B k I M \{} i= q i e πikxij,/b Θ p (k, x ij. In the following we choose h > and ε > such that x ij h( / ε for all i, j =,..., N and define Θ p (r := γ + Γ(, α r + ln(α r. In order to approximate the long range part φ p,l (x j + φ p, (x j efficiently we consider for k {,..., M /} the regularizations B Θp (k, r : k, h r / ε, K R (k, r := B Θp (r : k =, h r / ε,, (5.7 K B (k, r : h r ( / ε, /], K B (k, h / : h r > /, where each function K B (k, : [ h / hε, h /] R is constructed such that K R (k, : ht R is in the Sobolev space H p (ht, i.e., K B (k, fulfills the interpolation conditions as well as j r j K B(k, h / hε = { B B j r j Θ p (k, h / hε : k d j Θ p dr j (h / hε : k = for j =,..., p (5.8 j r j K B(k, h / = for j =,..., p. (5.9 Note that K R (k, is constant for all the points {y ht : y h /}. Therefore, the conditions (5.9 ensure smoothness of K R (k, in the points {y ht : y = h /}. Furthermore, (5.9 does not include any restriction on the function value of K R (k, h /, since it does not influence the smoothness of K R (k,. In Section 5.. we show that the functions K B (k,. can be constructed as polynomials of degree p by two point Taylor interpolation. By our construction the functions K R (k, are h-periodic in each direction and smooth, i.e., K R (k, H p (ht. For a graphical illustration of a regularization K R (k, see Figure 5.. To this end, we approximate for each k I M \ {} the function B Θp (k, y l I M ˆbk,l e πil y/h. (5. 4

25 B Θp (k, j r j K B (k, h/ hε = j r j Θ p (k, h/ hε B h/ h / + hε h/ h/ hε j r j K B (k, h / = Figure 5.: Example for K R (k, for k. Over the gray area the regularization adopts the values of the boundary function K B (k,. In the corners (striped area K R (k, has the constant value K B (k, h /. We also marked the points, where the conditions (5.8 and (5.9 are fulfilled. for y h / hε by a trigonometric polynomial. In the case k = we use the approximation B Θp (α y ˆb,l e πil y/h. (5. Thereby, we choose M = (M, M 3 N large enough and compute the Fourier coefficients ˆbk,l by ˆbk,l := I M j I M l I M K R (k, j M h e πij (l M (5. for all k I M. In summary we obtain the following approximation for the long range parts φ p,l (x j + φ p, (x j k I M l I M = (k,l I M ˆb k,l ˆb k,l N i= q i e πikx ij,/b e πil x ij/h ( N q i e πiv(k,l x i e πiv(k,l x j, (5.3 where we use the truncated Fourier series (5., (5. in Theorem 5. and define M := (M, M N 3 as well as the vectors v(k, l := (k/b, l/h. The expressions in the inner brackets i= Ŝ(k, l := q i e πiv(k,l x i, (k, l I M (5.4 i= 5

26 can be computed by an NFFT H. This will be followed by I M multiplications with ˆb k,l and completed by an NFFT to compute the outer summation with the complex exponentials. The proposed evaluation of φ p,l (x j + φ p, (x j at the points x j, j =,..., N, requires O(N + I M log I M arithmetic operations. For the calculation of the forces we set S := Z {}, define F p (x j := F S (x j via (.4 and calculate the short range portions F p,s (x j, as defined in (3.5, by a direct summation. In the long range part we can either use the ik approach, i.e., we set F p,l (x j + F p, (x j πiq j (k,l I M ˆb k,l ( N q i e πiv(k,l x i v(k, le πiv(k,l x j, (5.5 or the analytic differentiation, cf. (3.6. In summary, we obtain Algorithm 4.3 for the fast computation of d-periodic Coulomb interactions. Algorithm 5.5 (d-periodic P NFFT. Input: Positions x j BT [ B /, B /] [ B3 /, B3 /], charges q j R (j =,..., N, splitting parameter α >, short range cutoff r cut >, long range cutoff M = (M, M N 3, regularization parameter ε >, degree of smoothness p N.. Precomputations: a Set h := ( / ε B + B 3. b Construct the regularization (5.7 for each k {,..., M /}. c Compute the Fourier coefficients (5... Compute the short range parts of the potentials φ p,s (x j and the short range parts of the forces F p,s (x j by direct evaluation, i.e., restrict the summation in (5.5 and (3.5, where S := Z {}, to all x ij + Bn r cut.. Compute the sums Ŝ(k, l in (5.4 by the adjoint NFFT ( Apply the NFFT (. to compute the long range parts of the potentials φ p,l (x j + φ p, (x j by ( Compute the long range parts of the forces F p,l (x j +F p, (x j via the ik differentiation approach (5.5 or the analytic differentiation, cf. ( For all j =,..., N compute i= φ p (x j = φ p,s (x j + φ p,l (x j + φ p, (x j + φ p,self (x j F p (x j = F p,s (x j + F p,l (x j + F p, (x j. 6. Compute the energy (4.. Output: Energy U p, potentials φ p (x j and forces F p (x j. Remark 5.6. Algorithm 5.5 has the same structure as the NFFT based method for 3dperiodic systems, cf. Section 3. Thus, we also obtain a matrix vector notation of the form (3.4 for the approximation of φ p,l (x j + φ p, (x j. In other words, we use the same algorithm, where we replace the Fourier coefficients ˆb k from (3.3 by the new coefficients ˆb k,l in (5. and insert the nodes (x ij, /h, x ij /B T 3 instead of x ij /B T 3 into the NFFT algorithms. 6

27 5... Implementation details The precomputation step of Algorithm 5.5 includes the construction of the regularizations (5.7. Thereby, we obtain K B (k, by the unique polynomial of degree p that fulfills the p interpolation conditions (5.8 (5.9. An explicit representation of this polynomial is given by Theorem A. in the appendix, where we set m = h( / ε /, r = hε / and a j, b j equal to the right hand side of the interpolation conditions (5.8 (5.9, respectively. In order to compute the derivatives in (5.8 (5.9 we use the following relations. At first, we consider the function Θ p (k, r as defined in (5.6 and show that it can be expressed in terms of an incomplete modified Bessel function of the second kind [9] defined by K ν (x, y := t ν e xt y/t dt, ν R, x, y. Indeed, with the substitution t = α /z in (5.6 we get Θ p (k, r = α Note that the relation [9] z e π k B z e r z dz t= α /z = K ν (x, y y ( t e π k α B t α r t dt = K π k, α r. α B = K ν+ (x, y (5.6 gives an easy way to compute the necessary partial derivatives. In the following Lemma 5.7 we give a formula for the partial derivatives of K (x, y with respect to y, which are needed for the differentiation of the function Θ p (k,. Lemma 5.7. For x R fixed and k N we have k y k K (x, y = k+ y k+ K (x, y = where the coefficients α k,l and β k,l are given recursively by k α k,l K k+l (x, y y l (5.7 l= k β k,l K k++l (x, y y l+, (5.8 l= α, = { α k,k : l = k β k,l = α k,l + (l + α k,l+ : else β k, : k, l = α k,l = β k,l : k, l = k β k,l + (l + β k,l : k, else. Proof. Induction in k. Via the chain rule and relation (5.6 we have y K (x, y = yk (x, y. 7

28 Thus, the claim is true for k =. If (5.8 holds for k, we obtain ( k y y k K k (x, y = β k,l y l+ K k+l+ (x, y + = l= k (l + β k,l y l K k+l (x, y k k β k,l y l K k+l (x, y + (l + β k,l y l K k+l (x, y, l= which shows the choice of the coefficients α k,l in (5.7. For the derivative of order k + we get ( k y y k K (x, y = = k α k,l y l+ K k+l+ (x, y + l= l= l= k lα k,l y l K k+l (x, y l= k k α k,l y l+ K k+l+ (x, y + (l + α k,l+ y l+ K k+l+ (x, y, l= which completes the proof. We implemented the iterative algorithm given in [36] for the computation of the incomplete modified Bessel function of the second kind K ν (x, y for arbitrary order ν R. In our algorithm, we evaluate this function with an absolute accuracy of ɛ = 5. However, this iteration gets numerical problems for large values of x and y because the very small numbers due to the exponential damping within the integral. Therefore, we compute the following upper bounds on K ν (x, y and assume K ν (x, y to be numerically equal to zero whenever one of these bounds is already very small. For ν an upper bound is given by K ν (x, y e xt dt tν+ l= e xt dt = e x x. (5.9 For K (x, and its derivatives we always have ν, cf. (5.6. However, for x < y it was suggested [36] to evaluate the faster convergent complement integral where the Bessel function K ν ( is defined by K ν (x, y = ( x /y ν / K ν ( xy K ν (y, x, (5. K ν (z := e z /(t+ /t cf. [9]. Thus, we also have to consider the case ν <. Here, we set n := ν and obtain the upper bounds K ν (x, y e xt dt = tν+ e x n! x n+ e x n! x n k= n k= t ν+ dt, t n e xt dt = e x n n! (n k! k= (n k! e x n! x n+ : x (n k! e x n! x. : x > x k+ 8

Introduction to Practical FFT and NFFT

Introduction to Practical FFT and NFFT Introduction to Practical FFT and NFFT Michael Pippig and Daniel Potts Department of Mathematics Chemnitz University of Technology September 14, 211 supported by BMBF grant 1IH81B Table of Contents 1 Serial

More information

Non-bonded interactions

Non-bonded interactions speeding up the number-crunching continued Marcus Elstner and Tomáš Kubař December 3, 2013 why care? number of individual pair-wise interactions bonded interactions proportional to N: O(N) non-bonded interactions

More information

Introduction to Practical FFT and NFFT

Introduction to Practical FFT and NFFT Introduction to Practical FFT and NFFT Michael Pippig and Daniel Potts Faculty of Mathematics Chemnitz University of Technology 07.09.2010 supported by BMBF grant 01IH08001B Table of Contents 1 Serial

More information

Non-bonded interactions

Non-bonded interactions speeding up the number-crunching Marcus Elstner and Tomáš Kubař May 8, 2015 why care? key to understand biomolecular structure and function binding of a ligand efficiency of a reaction color of a chromophore

More information

Long-range interactions: P 3 M, MMMxD, ELC, MEMD and ICC

Long-range interactions: P 3 M, MMMxD, ELC, MEMD and ICC Long-range interactions: P 3 M, MMMxD, ELC, MEMD and ICC Axel Arnold Institute for Computational Physics Universität Stuttgart October 10, 2012 Long-range interactions gravity Coulomb interaction dipolar

More information

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

Two special equations: Bessel s and Legendre s equations. p Fourier-Bessel and Fourier-Legendre series. p LECTURE 1 Table of Contents Two special equations: Bessel s and Legendre s equations. p. 259-268. Fourier-Bessel and Fourier-Legendre series. p. 453-460. Boundary value problems in other coordinate system.

More information

Kernel Method: Data Analysis with Positive Definite Kernels

Kernel Method: Data Analysis with Positive Definite Kernels Kernel Method: Data Analysis with Positive Definite Kernels 2. Positive Definite Kernel and Reproducing Kernel Hilbert Space Kenji Fukumizu The Institute of Statistical Mathematics. Graduate University

More information

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

University of Houston, Department of Mathematics Numerical Analysis, Fall 2005 4 Interpolation 4.1 Polynomial interpolation Problem: LetP n (I), n ln, I := [a,b] lr, be the linear space of polynomials of degree n on I, P n (I) := { p n : I lr p n (x) = n i=0 a i x i, a i lr, 0 i

More information

A Fast N-Body Solver for the Poisson(-Boltzmann) Equation

A Fast N-Body Solver for the Poisson(-Boltzmann) Equation A Fast N-Body Solver for the Poisson(-Boltzmann) Equation Robert D. Skeel Departments of Computer Science (and Mathematics) Purdue University http://bionum.cs.purdue.edu/2008december.pdf 1 Thesis Poisson(-Boltzmann)

More information

Numerical Methods I Orthogonal Polynomials

Numerical Methods I Orthogonal Polynomials Numerical Methods I Orthogonal Polynomials Aleksandar Donev Courant Institute, NYU 1 donev@courant.nyu.edu 1 Course G63.2010.001 / G22.2420-001, Fall 2010 Nov. 4th and 11th, 2010 A. Donev (Courant Institute)

More information

Fast Algorithms for Spherical Harmonic Expansions

Fast Algorithms for Spherical Harmonic Expansions Fast Algorithms for Spherical Harmonic Expansions Vladimir Rokhlin and Mark Tygert Research Report YALEU/DCS/RR-1309 December 17, 004 Abstract An algorithm is introduced for the rapid evaluation at appropriately

More information

Recent Results for Moving Least Squares Approximation

Recent Results for Moving Least Squares Approximation Recent Results for Moving Least Squares Approximation Gregory E. Fasshauer and Jack G. Zhang Abstract. We describe two experiments recently conducted with the approximate moving least squares (MLS) approximation

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

Fourier transforms, Generalised functions and Greens functions

Fourier transforms, Generalised functions and Greens functions Fourier transforms, Generalised functions and Greens functions T. Johnson 2015-01-23 Electromagnetic Processes In Dispersive Media, Lecture 2 - T. Johnson 1 Motivation A big part of this course concerns

More information

Problem descriptions: Non-uniform fast Fourier transform

Problem descriptions: Non-uniform fast Fourier transform Problem descriptions: Non-uniform fast Fourier transform Lukas Exl 1 1 University of Vienna, Institut für Mathematik, Oskar-Morgenstern-Platz 1, A-1090 Wien, Austria December 11, 2015 Contents 0.1 Software

More information

Numerical Minimization of Potential Energies on Specific Manifolds

Numerical Minimization of Potential Energies on Specific Manifolds Numerical Minimization of Potential Energies on Specific Manifolds SIAM Conference on Applied Linear Algebra 2012 22 June 2012, Valencia Manuel Gra f 1 1 Chemnitz University of Technology, Germany, supported

More information

Recurrence Relations and Fast Algorithms

Recurrence Relations and Fast Algorithms Recurrence Relations and Fast Algorithms Mark Tygert Research Report YALEU/DCS/RR-343 December 29, 2005 Abstract We construct fast algorithms for decomposing into and reconstructing from linear combinations

More information

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

Numerical Analysis Preliminary Exam 10 am to 1 pm, August 20, 2018 Numerical Analysis Preliminary Exam 1 am to 1 pm, August 2, 218 Instructions. You have three hours to complete this exam. Submit solutions to four (and no more) of the following six problems. Please start

More information

Finite-dimensional spaces. C n is the space of n-tuples x = (x 1,..., x n ) of complex numbers. It is a Hilbert space with the inner product

Finite-dimensional spaces. C n is the space of n-tuples x = (x 1,..., x n ) of complex numbers. It is a Hilbert space with the inner product Chapter 4 Hilbert Spaces 4.1 Inner Product Spaces Inner Product Space. A complex vector space E is called an inner product space (or a pre-hilbert space, or a unitary space) if there is a mapping (, )

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 7 Interpolation Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction permitted

More information

CIV-E1060 Engineering Computation and Simulation Examination, December 12, 2017 / Niiranen

CIV-E1060 Engineering Computation and Simulation Examination, December 12, 2017 / Niiranen CIV-E16 Engineering Computation and Simulation Examination, December 12, 217 / Niiranen This examination consists of 3 problems rated by the standard scale 1...6. Problem 1 Let us consider a long and tall

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

Lecture 4: Numerical solution of ordinary differential equations

Lecture 4: Numerical solution of ordinary differential equations Lecture 4: Numerical solution of ordinary differential equations Department of Mathematics, ETH Zürich General explicit one-step method: Consistency; Stability; Convergence. High-order methods: Taylor

More information

Particle Simulation Based on Nonequispaced Fast Fourier Transforms

Particle Simulation Based on Nonequispaced Fast Fourier Transforms Particle Simulation Based on Nonequispaced Fast Fourier Transforms Michael Pippig and Daniel Potts Chemnitz University of Technology Department of Mathematics 0907 Chemnitz, Germany E-mail: {michael.pippig,

More information

Elements of Positive Definite Kernel and Reproducing Kernel Hilbert Space

Elements of Positive Definite Kernel and Reproducing Kernel Hilbert Space Elements of Positive Definite Kernel and Reproducing Kernel Hilbert Space Statistical Inference with Reproducing Kernel Hilbert Space Kenji Fukumizu Institute of Statistical Mathematics, ROIS Department

More information

Approximation by Conditionally Positive Definite Functions with Finitely Many Centers

Approximation by Conditionally Positive Definite Functions with Finitely Many Centers Approximation by Conditionally Positive Definite Functions with Finitely Many Centers Jungho Yoon Abstract. The theory of interpolation by using conditionally positive definite function provides optimal

More information

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)

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) Numerical Methods - PROBLEMS. The Taylor series, about the origin, for log( + x) is x x2 2 + x3 3 x4 4 + Find an upper bound on the magnitude of the truncation error on the interval x.5 when log( + x)

More information

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

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by 1. QUESTION (a) Given a nth degree Taylor polynomial P n (x) of a function f(x), expanded about x = x 0, write down the Lagrange formula for the truncation error, carefully defining all its elements. How

More information

Solving Systems of Polynomial Equations

Solving Systems of Polynomial Equations Solving Systems of Polynomial Equations David Eberly, Geometric Tools, Redmond WA 98052 https://www.geometrictools.com/ This work is licensed under the Creative Commons Attribution 4.0 International License.

More information

be the set of complex valued 2π-periodic functions f on R such that

be the set of complex valued 2π-periodic functions f on R such that . Fourier series. Definition.. Given a real number P, we say a complex valued function f on R is P -periodic if f(x + P ) f(x) for all x R. We let be the set of complex valued -periodic functions f on

More information

Numerical stability of nonequispaced fast Fourier transforms

Numerical stability of nonequispaced fast Fourier transforms Numerical stability of nonequispaced fast Fourier transforms Daniel Potts and Manfred Tasche Dedicated to Franz Locher in honor of his 65th birthday This paper presents some new results on numerical stability

More information

Chapter 2 Interpolation

Chapter 2 Interpolation Chapter 2 Interpolation Experiments usually produce a discrete set of data points (x i, f i ) which represent the value of a function f (x) for a finite set of arguments {x 0...x n }. If additional data

More information

Introduction to the Numerical Solution of IVP for ODE

Introduction to the Numerical Solution of IVP for ODE Introduction to the Numerical Solution of IVP for ODE 45 Introduction to the Numerical Solution of IVP for ODE Consider the IVP: DE x = f(t, x), IC x(a) = x a. For simplicity, we will assume here that

More information

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel LECTURE NOTES on ELEMENTARY NUMERICAL METHODS Eusebius Doedel TABLE OF CONTENTS Vector and Matrix Norms 1 Banach Lemma 20 The Numerical Solution of Linear Systems 25 Gauss Elimination 25 Operation Count

More information

Scattered Data Interpolation with Polynomial Precision and Conditionally Positive Definite Functions

Scattered Data Interpolation with Polynomial Precision and Conditionally Positive Definite Functions Chapter 3 Scattered Data Interpolation with Polynomial Precision and Conditionally Positive Definite Functions 3.1 Scattered Data Interpolation with Polynomial Precision Sometimes the assumption on the

More information

Notes: Most of the material presented in this chapter is taken from Jackson, Chap. 2, 3, and 4, and Di Bartolo, Chap. 2. 2π nx i a. ( ) = G n.

Notes: Most of the material presented in this chapter is taken from Jackson, Chap. 2, 3, and 4, and Di Bartolo, Chap. 2. 2π nx i a. ( ) = G n. Chapter. Electrostatic II Notes: Most of the material presented in this chapter is taken from Jackson, Chap.,, and 4, and Di Bartolo, Chap... Mathematical Considerations.. The Fourier series and the Fourier

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 discrete and fast Fourier transforms

The discrete and fast Fourier transforms The discrete and fast Fourier transforms Marcel Oliver Revised April 7, 1 1 Fourier series We begin by recalling the familiar definition of the Fourier series. For a periodic function u: [, π] C, we define

More information

MATH3383. Quantum Mechanics. Appendix D: Hermite Equation; Orthogonal Polynomials

MATH3383. Quantum Mechanics. Appendix D: Hermite Equation; Orthogonal Polynomials MATH3383. Quantum Mechanics. Appendix D: Hermite Equation; Orthogonal Polynomials. Hermite Equation In the study of the eigenvalue problem of the Hamiltonian for the quantum harmonic oscillator we have

More information

RKHS, Mercer s theorem, Unbounded domains, Frames and Wavelets Class 22, 2004 Tomaso Poggio and Sayan Mukherjee

RKHS, Mercer s theorem, Unbounded domains, Frames and Wavelets Class 22, 2004 Tomaso Poggio and Sayan Mukherjee RKHS, Mercer s theorem, Unbounded domains, Frames and Wavelets 9.520 Class 22, 2004 Tomaso Poggio and Sayan Mukherjee About this class Goal To introduce an alternate perspective of RKHS via integral operators

More information

Using Molecular Dynamics to Compute Properties CHEM 430

Using Molecular Dynamics to Compute Properties CHEM 430 Using Molecular Dynamics to Compute Properties CHEM 43 Heat Capacity and Energy Fluctuations Running an MD Simulation Equilibration Phase Before data-collection and results can be analyzed the system

More information

The Gaussians Distribution

The Gaussians Distribution CSE 206A: Lattice Algorithms and Applications Winter 2016 The Gaussians Distribution Instructor: Daniele Micciancio UCSD CSE 1 The real fourier transform Gaussian distributions and harmonic analysis play

More information

Orthogonality of hat functions in Sobolev spaces

Orthogonality of hat functions in Sobolev spaces 1 Orthogonality of hat functions in Sobolev spaces Ulrich Reif Technische Universität Darmstadt A Strobl, September 18, 27 2 3 Outline: Recap: quasi interpolation Recap: orthogonality of uniform B-splines

More information

Preliminary Examination in Numerical Analysis

Preliminary Examination in Numerical Analysis Department of Applied Mathematics Preliminary Examination in Numerical Analysis August 7, 06, 0 am pm. Submit solutions to four (and no more) of the following six problems. Show all your work, and justify

More information

Appendix C: Recapitulation of Numerical schemes

Appendix C: Recapitulation of Numerical schemes Appendix C: Recapitulation of Numerical schemes August 31, 2009) SUMMARY: Certain numerical schemes of general use are regrouped here in order to facilitate implementations of simple models C1 The tridiagonal

More information

The Fourier spectral method (Amath Bretherton)

The Fourier spectral method (Amath Bretherton) The Fourier spectral method (Amath 585 - Bretherton) 1 Introduction The Fourier spectral method (or more precisely, pseudospectral method) is a very accurate way to solve BVPs with smooth solutions on

More information

Notes on Ewald summation techniques

Notes on Ewald summation techniques February 3, 011 Notes on Ewald summation techniques Adapted from similar presentation in PHY 71 he total electrostatic potential energy of interaction between point charges {q i } at the positions {r i

More information

The Helmholtz theorem at last!

The Helmholtz theorem at last! Problem. The Helmholtz theorem at last! Recall in class the Helmholtz theorem that says that if if E =0 then E can be written as E = φ () if B =0 then B can be written as B = A (2) (a) Let n be a unit

More information

Stability of Kernel Based Interpolation

Stability of Kernel Based Interpolation Stability of Kernel Based Interpolation Stefano De Marchi Department of Computer Science, University of Verona (Italy) Robert Schaback Institut für Numerische und Angewandte Mathematik, University of Göttingen

More information

MATH 220 solution to homework 4

MATH 220 solution to homework 4 MATH 22 solution to homework 4 Problem. Define v(t, x) = u(t, x + bt), then v t (t, x) a(x + u bt) 2 (t, x) =, t >, x R, x2 v(, x) = f(x). It suffices to show that v(t, x) F = max y R f(y). We consider

More information

8.1 Concentration inequality for Gaussian random matrix (cont d)

8.1 Concentration inequality for Gaussian random matrix (cont d) MGMT 69: Topics in High-dimensional Data Analysis Falll 26 Lecture 8: Spectral clustering and Laplacian matrices Lecturer: Jiaming Xu Scribe: Hyun-Ju Oh and Taotao He, October 4, 26 Outline Concentration

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

Physics 342 Lecture 23. Radial Separation. Lecture 23. Physics 342 Quantum Mechanics I

Physics 342 Lecture 23. Radial Separation. Lecture 23. Physics 342 Quantum Mechanics I Physics 342 Lecture 23 Radial Separation Lecture 23 Physics 342 Quantum Mechanics I Friday, March 26th, 2010 We begin our spherical solutions with the simplest possible case zero potential. Aside from

More information

Polynomial Approximation: The Fourier System

Polynomial Approximation: The Fourier System Polynomial Approximation: The Fourier System Charles B. I. Chilaka CASA Seminar 17th October, 2007 Outline 1 Introduction and problem formulation 2 The continuous Fourier expansion 3 The discrete Fourier

More information

Neighbor Tables Long-Range Potentials

Neighbor Tables Long-Range Potentials Neighbor Tables Long-Range Potentials Today we learn how we can handle long range potentials. Neighbor tables Long-range potential Ewald sums MSE485/PHY466/CSE485 1 Periodic distances Minimum Image Convention:

More information

On Backward Product of Stochastic Matrices

On Backward Product of Stochastic Matrices On Backward Product of Stochastic Matrices Behrouz Touri and Angelia Nedić 1 Abstract We study the ergodicity of backward product of stochastic and doubly stochastic matrices by introducing the concept

More information

c 2006 Society for Industrial and Applied Mathematics

c 2006 Society for Industrial and Applied Mathematics SIAM J. SCI. COMPUT. Vol. 7, No. 6, pp. 1903 198 c 006 Society for Industrial and Applied Mathematics FAST ALGORITHMS FOR SPHERICAL HARMONIC EXPANSIONS VLADIMIR ROKHLIN AND MARK TYGERT Abstract. An algorithm

More information

The Closed Form Reproducing Polynomial Particle Shape Functions for Meshfree Particle Methods

The Closed Form Reproducing Polynomial Particle Shape Functions for Meshfree Particle Methods The Closed Form Reproducing Polynomial Particle Shape Functions for Meshfree Particle Methods by Hae-Soo Oh Department of Mathematics, University of North Carolina at Charlotte, Charlotte, NC 28223 June

More information

Linear Algebra (Review) Volker Tresp 2018

Linear Algebra (Review) Volker Tresp 2018 Linear Algebra (Review) Volker Tresp 2018 1 Vectors k, M, N are scalars A one-dimensional array c is a column vector. Thus in two dimensions, ( ) c1 c = c 2 c i is the i-th component of c c T = (c 1, c

More information

Section 6.6 Gaussian Quadrature

Section 6.6 Gaussian Quadrature Section 6.6 Gaussian Quadrature Key Terms: Method of undetermined coefficients Nonlinear systems Gaussian quadrature Error Legendre polynomials Inner product Adapted from http://pathfinder.scar.utoronto.ca/~dyer/csca57/book_p/node44.html

More information

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam

Jim Lambers MAT 460/560 Fall Semester Practice Final Exam Jim Lambers MAT 460/560 Fall Semester 2009-10 Practice Final Exam 1. Let f(x) = sin 2x + cos 2x. (a) Write down the 2nd Taylor polynomial P 2 (x) of f(x) centered around x 0 = 0. (b) Write down the corresponding

More information

Scientific Computing: An Introductory Survey

Scientific Computing: An Introductory Survey Scientific Computing: An Introductory Survey Chapter 12 Prof. Michael T. Heath Department of Computer Science University of Illinois at Urbana-Champaign Copyright c 2002. Reproduction permitted for noncommercial,

More information

This ODE arises in many physical systems that we shall investigate. + ( + 1)u = 0. (λ + s)x λ + s + ( + 1) a λ. (s + 1)(s + 2) a 0

This ODE arises in many physical systems that we shall investigate. + ( + 1)u = 0. (λ + s)x λ + s + ( + 1) a λ. (s + 1)(s + 2) a 0 Legendre equation This ODE arises in many physical systems that we shall investigate We choose We then have Substitution gives ( x 2 ) d 2 u du 2x 2 dx dx + ( + )u u x s a λ x λ a du dx λ a λ (λ + s)x

More information

Molecular Dynamics Simulations

Molecular Dynamics Simulations Molecular Dynamics Simulations Dr. Kasra Momeni www.knanosys.com Outline Long-range Interactions Ewald Sum Fast Multipole Method Spherically Truncated Coulombic Potential Speeding up Calculations SPaSM

More information

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

Lecture Note 3: Interpolation and Polynomial Approximation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Interpolation and Polynomial Approximation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 10, 2015 2 Contents 1.1 Introduction................................ 3 1.1.1

More information

Infinite Series. 1 Introduction. 2 General discussion on convergence

Infinite Series. 1 Introduction. 2 General discussion on convergence Infinite Series 1 Introduction I will only cover a few topics in this lecture, choosing to discuss those which I have used over the years. The text covers substantially more material and is available for

More information

MATH 590: Meshfree Methods

MATH 590: Meshfree Methods MATH 590: Meshfree Methods Chapter 34: Improving the Condition Number of the Interpolation Matrix Greg Fasshauer Department of Applied Mathematics Illinois Institute of Technology Fall 2010 fasshauer@iit.edu

More information

Chapter 3a Topics in differentiation. Problems in differentiation. Problems in differentiation. LC Abueg: mathematical economics

Chapter 3a Topics in differentiation. Problems in differentiation. Problems in differentiation. LC Abueg: mathematical economics Chapter 3a Topics in differentiation Lectures in Mathematical Economics L Cagandahan Abueg De La Salle University School of Economics Problems in differentiation Problems in differentiation Problem 1.

More information

Computer simulation methods (2) Dr. Vania Calandrini

Computer simulation methods (2) Dr. Vania Calandrini Computer simulation methods (2) Dr. Vania Calandrini in the previous lecture: time average versus ensemble average MC versus MD simulations equipartition theorem (=> computing T) virial theorem (=> computing

More information

arxiv: v1 [physics.comp-ph] 22 Jul 2010

arxiv: v1 [physics.comp-ph] 22 Jul 2010 Gaussian integration with rescaling of abscissas and weights arxiv:007.38v [physics.comp-ph] 22 Jul 200 A. Odrzywolek M. Smoluchowski Institute of Physics, Jagiellonian University, Cracov, Poland Abstract

More information

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

APPENDIX A. Background Mathematics. A.1 Linear Algebra. Vector algebra. Let x denote the n-dimensional column vector with components x 1 x 2. APPENDIX A Background Mathematics A. Linear Algebra A.. Vector algebra Let x denote the n-dimensional column vector with components 0 x x 2 B C @. A x n Definition 6 (scalar product). The scalar product

More information

CHAPTER 4. Interpolation

CHAPTER 4. Interpolation CHAPTER 4 Interpolation 4.1. Introduction We will cover sections 4.1 through 4.12 in the book. Read section 4.1 in the book on your own. The basic problem of one-dimensional interpolation is this: Given

More information

Bessel Functions Michael Taylor. Lecture Notes for Math 524

Bessel Functions Michael Taylor. Lecture Notes for Math 524 Bessel Functions Michael Taylor Lecture Notes for Math 54 Contents 1. Introduction. Conversion to first order systems 3. The Bessel functions J ν 4. The Bessel functions Y ν 5. Relations between J ν and

More information

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

Department of Applied Mathematics and Theoretical Physics. AMA 204 Numerical analysis. Exam Winter 2004 Department of Applied Mathematics and Theoretical Physics AMA 204 Numerical analysis Exam Winter 2004 The best six answers will be credited All questions carry equal marks Answer all parts of each question

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

MATH 205C: STATIONARY PHASE LEMMA

MATH 205C: STATIONARY PHASE LEMMA MATH 205C: STATIONARY PHASE LEMMA For ω, consider an integral of the form I(ω) = e iωf(x) u(x) dx, where u Cc (R n ) complex valued, with support in a compact set K, and f C (R n ) real valued. Thus, I(ω)

More information

1 Solutions in cylindrical coordinates: Bessel functions

1 Solutions in cylindrical coordinates: Bessel functions 1 Solutions in cylindrical coordinates: Bessel functions 1.1 Bessel functions Bessel functions arise as solutions of potential problems in cylindrical coordinates. Laplace s equation in cylindrical coordinates

More information

Linear Algebra Review (Course Notes for Math 308H - Spring 2016)

Linear Algebra Review (Course Notes for Math 308H - Spring 2016) Linear Algebra Review (Course Notes for Math 308H - Spring 2016) Dr. Michael S. Pilant February 12, 2016 1 Background: We begin with one of the most fundamental notions in R 2, distance. Letting (x 1,

More information

Topics in Fourier analysis - Lecture 2.

Topics in Fourier analysis - Lecture 2. Topics in Fourier analysis - Lecture 2. Akos Magyar 1 Infinite Fourier series. In this section we develop the basic theory of Fourier series of periodic functions of one variable, but only to the extent

More information

ECE 275A Homework #3 Solutions

ECE 275A Homework #3 Solutions ECE 75A Homework #3 Solutions. Proof of (a). Obviously Ax = 0 y, Ax = 0 for all y. To show sufficiency, note that if y, Ax = 0 for all y, then it must certainly be true for the particular value of y =

More information

Fixed point iteration and root finding

Fixed point iteration and root finding Fixed point iteration and root finding The sign function is defined as x > 0 sign(x) = 0 x = 0 x < 0. It can be evaluated via an iteration which is useful for some problems. One such iteration is given

More information

The Fundamental Theorem of Calculus with Gossamer numbers

The Fundamental Theorem of Calculus with Gossamer numbers The Fundamental Theorem of Calculus with Gossamer numbers Chelton D. Evans and William K. Pattinson Abstract Within the gossamer numbers G which extend R to include infinitesimals and infinities we prove

More information

F n = F n 1 + F n 2. F(z) = n= z z 2. (A.3)

F n = F n 1 + F n 2. F(z) = n= z z 2. (A.3) Appendix A MATTERS OF TECHNIQUE A.1 Transform Methods Laplace transforms for continuum systems Generating function for discrete systems This method is demonstrated for the Fibonacci sequence F n = F n

More information

Lecture 7 January 26, 2016

Lecture 7 January 26, 2016 MATH 262/CME 372: Applied Fourier Analysis and Winter 26 Elements of Modern Signal Processing Lecture 7 January 26, 26 Prof Emmanuel Candes Scribe: Carlos A Sing-Long, Edited by E Bates Outline Agenda:

More information

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

Lecture Note 3: Polynomial Interpolation. Xiaoqun Zhang Shanghai Jiao Tong University Lecture Note 3: Polynomial Interpolation Xiaoqun Zhang Shanghai Jiao Tong University Last updated: October 24, 2013 1.1 Introduction We first look at some examples. Lookup table for f(x) = 2 π x 0 e x2

More information

Series Solutions of ODEs. Special Functions

Series Solutions of ODEs. Special Functions C05.tex 6/4/0 3: 5 Page 65 Chap. 5 Series Solutions of ODEs. Special Functions We continue our studies of ODEs with Legendre s, Bessel s, and the hypergeometric equations. These ODEs have variable coefficients

More information

Computation of the error functions erf and erfc in arbitrary precision with correct rounding

Computation of the error functions erf and erfc in arbitrary precision with correct rounding Computation of the error functions erf and erfc in arbitrary precision with correct rounding Sylvain Chevillard Arenaire, LIP, ENS-Lyon, France Sylvain.Chevillard@ens-lyon.fr Nathalie Revol INRIA, Arenaire,

More information

Math 307 Learning Goals. March 23, 2010

Math 307 Learning Goals. March 23, 2010 Math 307 Learning Goals March 23, 2010 Course Description The course presents core concepts of linear algebra by focusing on applications in Science and Engineering. Examples of applications from recent

More information

free space (vacuum) permittivity [ F/m]

free space (vacuum) permittivity [ F/m] Electrostatic Fields Electrostatic fields are static (time-invariant) electric fields produced by static (stationary) charge distributions. The mathematical definition of the electrostatic field is derived

More information

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation

Outline. 1 Interpolation. 2 Polynomial Interpolation. 3 Piecewise Polynomial Interpolation Outline Interpolation 1 Interpolation 2 3 Michael T. Heath Scientific Computing 2 / 56 Interpolation Motivation Choosing Interpolant Existence and Uniqueness Basic interpolation problem: for given data

More information

Examination paper for TMA4215 Numerical Mathematics

Examination paper for TMA4215 Numerical Mathematics 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

More information

Theoretische Physik 2: Elektrodynamik (Prof. A-S. Smith) Home assignment 11

Theoretische Physik 2: Elektrodynamik (Prof. A-S. Smith) Home assignment 11 WiSe 22..23 Prof. Dr. A-S. Smith Dipl.-Phys. Matthias Saba am Lehrstuhl für Theoretische Physik I Department für Physik Friedrich-Alexander-Universität Erlangen-Nürnberg Problem. Theoretische Physik 2:

More information

) ) = γ. and P ( X. B(a, b) = Γ(a)Γ(b) Γ(a + b) ; (x + y, ) I J}. Then, (rx) a 1 (ry) b 1 e (x+y)r r 2 dxdy Γ(a)Γ(b) D

) ) = γ. and P ( X. B(a, b) = Γ(a)Γ(b) Γ(a + b) ; (x + y, ) I J}. Then, (rx) a 1 (ry) b 1 e (x+y)r r 2 dxdy Γ(a)Γ(b) D 3 Independent Random Variables II: Examples 3.1 Some functions of independent r.v. s. Let X 1, X 2,... be independent r.v. s with the known distributions. Then, one can compute the distribution of a r.v.

More information

221A Lecture Notes Steepest Descent Method

221A Lecture Notes Steepest Descent Method Gamma Function A Lecture Notes Steepest Descent Method The best way to introduce the steepest descent method is to see an example. The Stirling s formula for the behavior of the factorial n! for large

More information

x λ ϕ(x)dx x λ ϕ(x)dx = xλ+1 λ + 1 ϕ(x) u = xλ+1 λ + 1 dv = ϕ (x)dx (x))dx = ϕ(x)

x λ ϕ(x)dx x λ ϕ(x)dx = xλ+1 λ + 1 ϕ(x) u = xλ+1 λ + 1 dv = ϕ (x)dx (x))dx = ϕ(x) 1. Distributions A distribution is a linear functional L : D R (or C) where D = C c (R n ) which is linear and continuous. 1.1. Topology on D. Let K R n be a compact set. Define D K := {f D : f outside

More information

Trivariate polynomial approximation on Lissajous curves 1

Trivariate polynomial approximation on Lissajous curves 1 Trivariate polynomial approximation on Lissajous curves 1 Stefano De Marchi DMV2015, Minisymposium on Mathematical Methods for MPI 22 September 2015 1 Joint work with Len Bos (Verona) and Marco Vianello

More information

REAL AND COMPLEX ANALYSIS

REAL AND COMPLEX ANALYSIS REAL AND COMPLE ANALYSIS Third Edition Walter Rudin Professor of Mathematics University of Wisconsin, Madison Version 1.1 No rights reserved. Any part of this work can be reproduced or transmitted in any

More information

In this chapter we study elliptical PDEs. That is, PDEs of the form. 2 u = lots,

In this chapter we study elliptical PDEs. That is, PDEs of the form. 2 u = lots, Chapter 8 Elliptic PDEs In this chapter we study elliptical PDEs. That is, PDEs of the form 2 u = lots, where lots means lower-order terms (u x, u y,..., u, f). Here are some ways to think about the physical

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

Numerical Methods in Physics and Astrophysics

Numerical Methods in Physics and Astrophysics Kostas Kokkotas 2 October 17, 2017 2 http://www.tat.physik.uni-tuebingen.de/ kokkotas Kostas Kokkotas 3 TOPICS 1. Solving nonlinear equations 2. Solving linear systems of equations 3. Interpolation, approximation

More information