scieee AI-readable full text Open interactive document viewer

On the Linear Stability of Splitting Methods

Blanes, Sergio; Casas, Fernando; Murua, Ander

Abstract

A comprehensive linear stability analysis of splitting methods is carried out by means of a 2 × 2 matrix K(x) with polynomial entries (the stability matrix) and the stability polynomial p(x) (the trace of K(x) divided by two). An algorithm is provided for determining the coefficients of all possible time- reversible splitting schemes for a prescribed stability polynomial. It is shown that p(x) carries essentially all the information needed to construct processed splitting methods for numerically approximating the evolution of linear systems. By selecting conveniently the stability polynomial, new integrators with processing for linear equations are built which are orders of magnitude more efficient than other algorithms previously available.

Full text

On the linear stability of splitting methods Sergio Blanes1∗Fernando Casas2†Ander Murua3‡ This paper is dedicated to Arieh Iserles on the occasion of his 60th anniversary Abstract A comprehensive linear stability analysis of splitting methods is carried out by means of a 2 ×2 matrix K(x) with polynomial entries (the stability matrix) and the stability polynomial p(x) (the trace of K(x) divided by two). An algorithm is provided for determining the coefficients of all possible timereversible splitting schemes for a prescribed stability polynomial. It is shown that p(x) carries essentially all the information needed to construct processed splitting methods for numerically approximating the evolution of linear systems. By selecting conveniently the stability polynomial, new integrators with processing for linear equations are built which are orders of magnitude more efficient than other algorithms previously available. 1Instituto de Matem´atica Multidisciplinar, Universitat Polit´ecnica de Valencia, E-46022 Valencia, Spain. 2Departament de Matem`atiques, Universitat Jaume I, E-12071 Castell´on, Spain. 3Konputazio Zientziak eta A.A. saila, Informatika Fakultatea, EHU/UPV, Donostia/San Sebasti´an, Spain. Key Words: Splitting methods, Linear stability, Processing technique AMS Classificationn numbers: 65L05, 65L20 1 Introduction Splitting methods are frequently used in practice to integrate differential equations numerically. They constitute a natural choice when the vector field associated with the differential equation can be split into a sum of two or more parts that are simpler to integrate than the original problem. Suppose we have an ordinary differential equation (ODE) of the form z′=f(z) = f[A](z) + f[B](z) (1.1) such that the h-flows ϕ[A] hand ϕ[B] hcorresponding to f[A]and f[B], respectively, can be either exactly computed or accurately approximated. Then the exact flow ϕhof equation (1.1) can be approximated by a composition of the flows of the parts, ψh=ϕ[B] bkh◦ϕ[A] akh◦···◦ϕ[B] b2h◦ϕ[A] a2h◦ϕ[B] b1h◦ϕ[A] a1h,(1.2) ∗Email: [email protected] †Corresponding author. Email: [email protected] ‡Email: Ander.Mu[email protected] 1 where the 2kcoefficients ai,biare chosen as to ensure that ψhis a suitable approximation to the exact flow ϕh, typically in such a way that ψh=ϕh+O(hp+1): then the numerical integrator ψhis said to be accurate to order pin the time step h. Perhaps the most frequently used splitting methods are ψh,1=ϕ[B] h◦ϕ[A] h,and ψh,2=ϕ[A] h/2◦ϕ[B] h◦ϕ[A] h/2,(1.3) corresponding to the first order Lie–Trotter method and the second order leapfrog (also called St¨ormer, Verlet, Strang splitting, etc.) method, respectively. Their straightforward implementation and low storage requirements have made them common tools for the numerical treatment of ODEs and partial differential equations (PDEs). Splitting schemes have proved to be especially useful in the context of geometric integration, when the flow of flies in a particular group of diffeomorphisms. In fact, splitting methods preserve structural features of the flow of fas long as the basic methods ϕ[A] hand ϕ[B] hdo, but this of course depends on the feature describing the group of diffeomorphisms [25, section 2.1]. Important examples include symplecticity, volume preservation, symmetries, etc. In this sense, schemes (1.3) can be considered as geometric integrators, and as such, they show smaller error growth than standard integrators. It is not surprising, then, that a systematic search for splitting methods of higher order of accuracy has taken place during the last two decades and a large number of them exist in the literature (see [12, 17, 25, 26, 29] and references therein) which have been specifically designed for different families of problems. Another characteristic of a numerical integration method for differential equations is stability. Roughly speaking, the numerical solution provided by a stable numerical integrator does not tend to infinity when the exact solution is bounded. Although important, this feature has received considerably less attention in the specific case of splitting methods. To test the (linear) stability of the method (1.2), instead of the linear equation y′=ay as in the usual stability analysis for ODE integrators, one considers the harmonic oscillator as a model problem [19, 23], y′′ +λ2y= 0, λ > 0,(1.4) with the standard ((q, p) = (λy, y′)) splitting q′ p′=h0λ 0 0  |{z } A +0 0 −λ0 |{z } Biq p,(1.5) so that z= (q, p)Tand f[A](z) = Az,f[B](z) = Bz. The idea here is to find the time steps for which all numerical solutions remain bounded. The integrator (1.2) typically will be unstable for |hλ|> x∗, where the parameter x∗determines the stability threshold of the numerical scheme. For instance, application of the simple splitting methods (1.3) to (1.5) leads trivially to ψh,1(z) = K(1)(x)zand ψh,2(z) = K(2)(x)z, where x≡hλ, K(1)(x) = 1x −x1−x2and K(2)(x) = 1−x2 2x−x3 4 −x1−x2 2! (1.6) respectively. Now, as both matrices have unit determinant, one concludes that ψh,1 and ψh,2are (linearly) stable if tr(K(1)(x)) = tr(K(2)(x)) = |2−x2|<2, or |x|<2 and thus x∗= 2. Although one might think at first glance that ψh,1is more stable 2 per unit work than ψh,2because the latter involves one more evaluation of the basic flow ϕ[A] h/2, this is not so, as the leftmost basic flow of one step of ψh,2can be concatenated with the rightmost basic flow of the next step. This is perhaps more clearly seen by observing that the composition of nsteps of ψh,2is related with nsteps of ψh,1by (ψh,2)n=ϕ[A] h/2◦(ψh,1)n◦(ϕ[A] h/2)−1, which explains why both methods have the same stability properties and the same computational cost. To take into account the computational cost in the stability analysis of the scheme (1.2), one must compare its stability threshold x∗with the stability limit 2kof the concatenation of ksteps of length h/k of methods (1.3). This shows that one must consider the value of x∗/k (the relative stability threshold) to compare the stability of splitting methods with different number of basic compositions. To be more precise, we define the relative stability threshold as x∗/k′, where the (effective) number of stages of the scheme (1.2) is given as: (i) k′=kif aj6= 0 and bj6= 0 for j= 1,...,k, and (ii) k′=k−1 if aj6= 0 and bj−16= 0 for j= 2, . . . , k, and a1= 0 and/or bk= 0. For instance, the effective number of stages of both schemes in (1.3) is one, so that the relative stability threshold is 2 for both of them. As a matter of fact, the optimal value for the relative stability threshold of consistent splitting methods is precisely 2 [9]. In the process of building high order schemes, linear stability is not usually taken into account, ending sometimes with methods possessing such a small relative stability threshold that they are useless in practice. In contrast, L´opez-Marcos et al. [19] developed a fourth-order integrator with maximal stability interval, whereas in [23] the analysis was generalized to arbitrary order nand stage number k. The aim of the present paper is two-fold: (i) first, to carry out a detailed theoretical analysis of the linear stability of splitting methods, and (ii) second, to construct schemes with relatively large linear stability intervals (relatively close to the optimal values obtained in [23]) that are highly accurate when applied to the harmonic oscillator. It is known that the stability of a splitting method is essentially characterized by an even polynomial p(x) with p(0) = 1 (the so-called stability polynomial [19, 23]), that it is readily determined from the coefficients aj, bjdefining the scheme (1.2). Here, we give a constructive procedure to obtain all possible splitting schemes having a prescribed p(x) as stability polynomial. This proves to be a very powerful tool in the fulfillment of the second goal enumerated in the precedent paragraph. The new methods that we present in this work have the special structure ˆ ψh=πh◦ψh◦π−1 h.(1.7) Observe that the second order method ψh,2given in (1.3) can be considered as a particular case of ˆ ψh, with ψh,1playing the role of ψh. Here ψhis referred to as the kernel and π−1 h,πhare the pre- and postprocessors or correctors. Schemes ψhand ˆ ψhare said to be conjugate in the terminology of dynamical systems. Application of ˆ ψhover nintegration steps with constant step size hgives ˆ ψn h=πh◦ψn h◦π−1 h.(1.8) One says that ψhhas effective order pif there exist maps π−1 h,πhsuch that ˆ ψhhas order p. This processing technique was first introduced by Butcher [8] and later received a renewed attention in the context of geometric integration [28, 31, 22, 19, 20, 5, 6, 7, 1, 2]. The processing technique presents several advantages in comparison with conventional integration methods. First, the analysis of the order conditions of the method ˆ ψhshows that many of them can be satisfied by the processor πh, so that the kernel ψhmust fulfill a much reduced set of restrictions, thus allowing to build 3 kernels of effective order pinvolving far fewer function evaluations than a conventional integrator of order p[1, 2, 5, 22, 25]. Second, since the number of order conditions for the kernel is smaller, one can analyze in more detail the set of solutions, even for moderate order, and eventually find very efficient methods [31, 25, 1, 2]. This turns out to be especially relevant for the kind of linear systems we consider here. Third, although the post-processor are usually more expensive than the kernel itself (thus deteriorating the overall efficiency of the method), it has been shown in [1] that πhcan be replaced by a new map ˆπh≃πhobtained from the intermediate stages in the computation of the kernel. Thus, as a general rule, one evaluates a very accurate preprocessor π−1 honly once to start the integration whereas the post processor is approximated by ˆπh(which is virtually cost-free and only introduces a local error) when output is frequently required. In this way, we can safely state that the cost of ˆ ψhis measured by the cost of the kernel. On the other hand, the stability analysis of such class of methods is concerned only with the kernel, since the processor does not affect the stability, as evidenced by (1.8). Obviously, there is not much point in designing new and somewhat sophisticated numerical methods for the harmonic oscillator (1.5). It turns out, however, that splitting methods especially tailored for this system can be of great interest for the numerical treatment of non-trivial problems appearing, for instance, in quantum mechanics, electrodynamics, structural dynamics and for any evolution PDEs that, once spatially discretized, give rise to systems of coupled harmonic oscillators [10, 15, 16, 32]. As a matter of fact, by using the analysis carried out in this work, we are able to build very efficient processed methods of any order of accuracy with an arbitrary number of stages for the linear system q′=Mp, p′=−Nq (1.9) with q∈Rd1,p∈Rd2,M∈Rd1×d2and N∈Rd2×d1. When constructing processed splitting methods for systems of this form, we have observed the following (and perhaps surprising) features: •Contrary to the typical situation for general integrators, where increasing the order of accuracy by adding more stages leads to methods that are less stable (and less accurate for values of hnear the stability limit), the particular structure of the system (1.9) allows us to construct higher order methods by increasing the number of stages without deteriorating the stability and accuracy for larger values of h. •For linear systems of the form (1.9) that can be reduced (by a linear change of variables) to a system of decoupled harmonic oscillators, very efficient second order methods with a large number of stages can be constructed that outperform high order methods for a wide range of values of the time step h. The paper is organized as follows. In section 2 we introduce and characterize the stability matrix of a splitting method as applied to the one-dimensional harmonic oscillator. We show (subsection 2.1) that any splitting method is uniquely determined by its stability matrix. Furthermore, we prove in a constructive way (subsection 2.2) that if the trace of the stability matrix (or equivalently the stability polynomial p(x)) is known, then there exists a finite number of choices for the coefficients of symmetric compositions of the form (1.2) having such stability polynomial. Next we characterize the linear stability of a splitting method and give the formal definition of several relevant parameters related to the stability interval (subsection 2.3). It is shown that high order of accuracy 2nrequires that p(x) = cos x+O(x2n+2) as x→0. What is more important, the accuracy of a processed splitting method when applied to the harmonic oscillator only depends on how p(x)approximates cos xin the stability interval (subsection 2.4). 4 The analysis done in section 2 is applied subsequently in section 3 to systems of the form (1.9). In that case we show that any partitioned method (such as splitting methods or partitioned Runge–Kutta schemes) is indeed conjugate to a non-partitioned method for a sufficiently small time step h. In section 4 we particularize the previous treatment to the construction of splitting methods of the form (1.7) with high accuracy and enlarged stability domain for the linear system (1.9). We proceed by determining first a stability polynomial approximating cos xfor some relatively large interval of x. Here two different strategies are pursued. In the first one we consider the even polynomial pn,l(x) with minimal degree among those verifying that pn,l(x) = cos x+O(x2n+2) as x→0 and pn,l(x)−(−1)jhas a double zero at xj=jπ for j= 1,...,l. In the second strategy, a polynomial pn,l,m(x) with madditional parameters is introduced, so that, besides the previous conditions, it minimizes in the least square sense the coefficients of the Chebyshev series expansion of the difference (p(x)−cos x)/x2n+2 in the stability interval. In this way the solution matrix can be accurately approximated for large values of x. As far as we know, this constitutes a novel approach for solving the problem. We also propose a device to monitor the theoretical efficiency of the resulting processed splitting methods based only on their stability polynomial. Then, by applying the results of section 2, the stability matrix and the coefficients of the kernel are obtained. As for the processor, it is constructed as a matrix whose entries are polynomials of sufficiently high degree. We propose, in particular, several representative kernels of effective order 10 and 16 requiring 19 and 32 stages, respectively, in addition to an extremely efficient second order kernel with 38 stages previously constructed along these same lines in [3]. As a matter of fact, the main purpose of reference [3] was to show that this class of methods constitute indeed a very efficient numerical tool to solve evolution problems in quantum mechanics: they are accurate, easy to implement and very stable in comparison with other standard integrators. Here, by contrast, our main goals are on the one hand, to fill the gap existing in the literature with respect to the linear stability theory of splitting methods, and on the other hand, to provide a sound theoretical analysis justifying such an impressive performance. The new methods are illustrated in section 5 on some numerical examples aimed (a) to verify that the criteria developed in section 4 to show that the relative performance of the stability polynomials when approximating the function cos xis also reflected in the final splitting methods in practical applications, where the integration of linear systems of the form (1.9) is required; (b) to show how the new schemes compare with other standard splitting methods, and (c) to illustrate that the proposed processed splitting schemes can be advantageously used to approximate the time evolution of important classes of semidiscretized linear partial differential equations. Finally, section 6 contains some conclusions and outlook of future work. 2 Analysis of splitting methods applied to the harmonic oscillator When applying the splitting method (1.2) to the one-dimensional harmonic oscillator (1.5), we approximate the exact 2 ×2 solution matrix O(x) = cos xsin x −sin xcos x, x =hλ (2.1) 5 by K(x), where K(x) = 1 0 −bkx1 1akx 0 1 ··· 1 0 −b1x1 1a1x 0 1 ,(2.2) or alternatively, in terms of the matrices Aand Bintroduced in (1.5), K(x) = ehbkBehakA···ehb1Beha1A,(2.3) with appropriate coefficients ai, bi∈R. The matrix K(x) (the stability matrix of the splitting method) has the form K(x) = K1(x)K2(x) K3(x)K4(x),(2.4) with elements K1(x) = 1 + k−1 X i=1 k1,i x2i, K2(x) = k X i=1 k2,i x2i−1 K3(x) = k X i=1 k3,i x2i−1, K4(x) = 1 + k X i=1 k4,i x2i. (2.5) In (2.5), ki,j are homogeneous polynomials in the parameters ai, bi. In particular, k2,1=Pk j=1 aj,k3,1=−Pk j=1 bjand k1,1+k4,1=k2,1k3,1. Since each individual matrix in the composition (2.2) has unit determinant, it must hold that det K(x)≡ 1. It is not difficult to check that |d(K1)−d(K4)| ≤ 2,|d(K2)−d(K3)| ≤ 2,(2.6) where we denote by d(Ki) the degree of each polynomial Ki(x) (i= 1,...,4). The linear stability analysis of splitting methods is made easier by considering a generalization of the matrix (2.4)-(2.5). Definition 2.1 By a stability matrix we mean a generic 2×2matrix K(x) = K1(x)K2(x) K3(x)K4(x),(2.7) such that K1(x)and K4(x)(respectively, K2(x)and K3(x)) are even (respectively, odd) polynomials in xand det K(x) = K1(x)K4(x)−K2(x)K3(x)≡1,(2.8) K1(0) = K4(0) = 1.(2.9) We will typically consider stability matrices satisfying in addition K′ 2(0) = −K′ 3(0) = 1 (2.10) since we are interested in consistent methods. In the application of a splitting method to the harmonic oscillator, an essential role is played by the so-called stability polynomial. Definition 2.2 Given a stability matrix K(x), the corresponding stability polynomial is defined as p(x) = 1 2tr K(x) = 1 2(K1(x) + K4(x)). Clearly, the stability polynomial of a consistent splitting method is an even polynomial p(x) satisfying p(x) = 1 −x2/2 + O(x4) as x→0.(2.11) In particular, for schemes (1.3) one has, from (1.6), p(x) = 1 −x2/2. 6 2.1 From the stability matrix to the splitting method Obviously, analyzing splitting methods through a generic stability matrix is useful as long as one is able to factorize K(x) as (2.2) and determine uniquely the coefficients ai,biof the splitting method from a particular K(x) with polynomial entries. Only in such circumstances one could say that any splitting method of the form (1.2) is completely characterized by the result of applying one step of the method to the harmonic oscillator. What the following result shows is precisely that any splitting method is uniquely determined by its stability matrix. Proposition 2.3 Given a stability matrix K(x)as in Definition 2.1, there exists a unique decomposition of K(x)of the form 1 0 −Bm(x) 1  1Am(x) 0 1 ··· 1 0 −B1(x) 1  1A1(x) 0 1 ,(2.12) where Aj(x), Bj(x)(j= 1,...,k) are odd polynomials in xsatisfying that Bj−1(x)6= 0, Aj(x)6= 0, j = 2,...,k. (2.13) Proof: We will first prove the existence of such a decomposition by induction on the sum of the degrees of the two polynomials K1(x) and K4(x). In the trivial case, where the sum of their degrees is 0, it holds by assumption that K1(x)≡K4(x)≡1, and since det K(x)≡1, either K2(x)≡0 or K3(x)≡0, so the existence follows trivially. If d(K1) + d(K4)>0, then two possibilities occur: •d(K1)< d(K2). In that case d(K3)< d(K4), since det K(x)≡1. Application of polynomial division uniquely determines the odd polynomials A1(x) and ˆ K2(x) such that K2(x) = K1(x)A1(x) + ˆ K2(x),(2.14) where d(K2) = d(K1) + d(A1) and d(ˆ K2)< d(K1). Now, we define the even polynomial ˆ K4(x) = K4(x)−K3(x)A1(x), so that K1(x)K2(x) K3(x)K4(x)=K1(x)ˆ K2(x) K3(x)ˆ K4(x) 1A1(x) 0 1 . Clearly, ˆ K4(0) = 1 and K1(x)ˆ K4(x)−ˆ K2(x)K3(x) = 1, which together with d(ˆ K2)< d(K1) implies that d(ˆ K4)< d(K3)< d(K4), and the required result follows by induction. •d(K1)> d(K2). Then d(K3)> d(K4) because det K(x)≡1, and one similarly obtains the decomposition K1(x)K2(x) K3(x)K4(x)=ˆ K1(x)K2(x) ˆ K3(x)K4(x) 1 0 B1(x) 1 , where the odd polynomials B1(x) and ˆ K3(x) are determined from the polynomial division of K3(x) by K4(x), so that K3(x) = K4(x)B1(x) + ˆ K3(x), and then ˆ K1(x) is determined as ˆ K1(x) = K1(x)−K2(x)B1(x). Clearly, ˆ K1(0) = 1 and ˆ K1(x)K4(x)−K2(x)ˆ K3(x) = 1. Since now d(ˆ K3)< d(K4), then d(ˆ K1)< d(K2)< d(K1) and the required result follows by induction. 7 This completes the proof of the existence of the decomposition. To prove the uniqueness, suppose that there are two different decompositions D1and D2of K(x) of the form (2.12). Then, clearly, the product D1D−1 2has also the same structure (2.12) with (2.13) and is equal to the identity matrix. But this cannot be the case, since, as we have seen, if K(x) admits the decomposition (2.12) with (2.13), then d(K1)≥d(K2) and d(K3)> d(K4) provided that A1(x)≡0, and d(K1)< d(K2) and d(K3)≤d(K4) otherwise, and these inequalities are not satisfied by the identity matrix. 2 Remarks: 1. Notice from the proof of Proposition 2.3 that ˆ K4(x) (respectively ˆ K1(x)) can also be obtained as the remainder of the polynomial division of K4(x) by K3(x) (respectively K1(x) by K2(x)), which (in exact arithmetic) must give the same quotient A1(x) (resp. B1(x)) due to the fact that det K(x)≡1. 2. Obviously, the decomposition (2.2) corresponds to (2.12) with Aj(x) = ajx and Bj(x) = bjxfor j= 1,...,k. Example: Let us illustrate this result with two different stability matrices, leading to different types of decomposition. Consider first the matrix K(x) = 1−1 2x2+1 32 x4x−3 16 x3+1 128 x5 −x+1 8x31−1 2x2+1 32 x4.(2.15) which satisfies conditions (2.6)-(2.10). By applying the constructive proof of Proposition 2.3 it is straightforward to check that K(x) can be decomposed as K(x) = 1x 4 0 1  1 0 −x 21 1x 2 0 1  1 0 −x 21 1x 4 0 1 ,(2.16) and this is in fact the only decomposition of the form (2.2) for the matrix (2.15). As a second example, consider now ¯ K(x) = 1−1 2x2+1 32 x4x−1 4x3+1 64 x5 −x+1 16 x31−1 2x2+1 32 x4(2.17) with the same stability polynomial as K(x). In this case, although the degrees of the entries coincide with those of (2.15) (and thus condition (2.6) holds), ¯ K(x) can not be decomposed in the form (2.2). Instead it admits the unique decomposition ¯ K(x) = 11 2x 0 1  1 0 −x+1 16 x31 11 2x 0 1 ,(2.18) which is not of the form (2.2). 2 2.2 From the stability polynomial to the splitting method We have seen that, under certain circumstances, the stability matrix K(x) allows us to get the composition (2.2) in a unique way and therefore the values of the coefficients of the splitting method. The question we analyze now is whether something similar can be done starting from the stability polynomial. We show that, given such a p(x), there exists a finite number of different time-reversible splitting schemes having p(x)as their stability polynomial. To begin with, suppose one has an even polynomial p(x) satisfying (2.11). Obviously, there exist an infinite number of splitting methods having such a p(x) as their 8 stability polynomial. Nevertheless, for each arbitrary even polynomial r(x)6=p(x) with r(0) = 0 there exist a finite number of consistent splitting methods with stability matrix (2.7) verifying K1(x) = p(x) + r(x) and K4(x) = p(x)−r(x), or equivalently p(x) = K1(x) + K4(x) 2, r(x) = K1(x)−K4(x) 2. The remaining entries of (2.7) are obtained by considering all possible decompositions of the polynomial p(x)2−r(x)2−1(= K1(x)K4(x)−1) as the product of two odd polynomials K2(x) and K3(x) satisfying (2.10). Proposition 2.3 gives then a decomposition of the form (2.12) for each choice of the stability matrix K(x). Finally, all possible consistent splitting methods corresponding to the polynomials p(x) and r(x) are obtained by selecting, among the finite number of different decompositions of the form (2.12) obtained in that way, those that are actually of the form (2.2). With the simplest choice r(x)≡0 one has K1(x)≡K4(x). In that case the stability matrix verifies the identity K(x)−1≡K(−x), and this is precisely the characterization of a time-reversible method [12]. In terms of the composition (2.2) it corresponds to taking either ak+1−i=ai, bk= 0, bk−i=bior a1= 0, ak+1−i= ai+1, bk+1−i=bi, i = 1,2,..., which results in a palindromic composition. In this way it is possible to construct explicitly all consistent time-reversible splitting methods with a prescribed stability polynomial p(x) satisfying (2.11). Example: Let us consider the stability polynomial of K(x) and ¯ K(x) in (2.15) and (2.17), respectively, p(x) = 1 −1 2x2+1 32x4,so that p(x)2−1 = −x21−x2 161−x2 82 .(2.19) There are six different ways of factorizing p(x)2−1 as a product of two odd polynomials K2(x) and K3(x) with K′ 2(0) = 1 = −K′ 3(0). The three choices satisfying d(K3)< d(K4) are: (i) K3(x) = −x1−x2 8which gives the stability matrix (2.15), with unique decomposition (2.16); (ii) K3(x) = −x1−x2 16 which gives the stability matrix (2.17) (with unique decomposition (2.18), and thus not corresponding to an splitting method of the form (1.2)); and (iii) K3(x) = −xwhich leads to the stability matrix ˜ K(x) = 1−1 2x2+1 32 x4x−5 16 x3+x5 32 −x7 1024 −x1−1 2x2+1 32 x4.(2.20) Application of the algorithm used in the proof of Proposition 2.3 allows us to factorize the matrix (2.20) as ˜ K(x) = 11 2x−1 32 x3 0 1  1 0 −x1 11 2x−1 32 x3 0 1 ,(2.21) which does not correspond to an splitting method of the form (1.2), as expected because ˜ K(x) does not satisfy conditions (2.6). The remaining three stability matrices are obtained by interchanging the roles of the polynomials K2(x) and −K3(x). 2 2.3 Stability According to the notion of stability given in the introduction, a splitting method is stable when applied to the harmonic oscillator if [K(x)]ncan be bounded independently of n≥1. As is well known, if the method is stable for a given x∈R, then 9 with ˜ M(h) = M(I+φ3h2(NM) + φ5h4(NM)2+···) (3.11) = (I+φ3h2(MN) + φ5h4(MN)2+···)M, ˜ N(h) = N(I+φ3h2(MN) + φ5h4(MN)2+···) (3.12) = (I+φ3h2(NM) + φ5h4(NM)2+···)N. This can be established, as in the cases (i) and (ii) before, in two particular situations: (a) The matrix MN is diagonalizable with positive eigenvalues, and in addition, Mand Nare square matrices and Mis invertible. In that case, let MN be decomposed as MN =R−1Λ2R, where Λ is a diagonal matrix. Then the system (3.9) is decoupled as (3.4) with the transformation P= Λ−1RMp, Q=Rq. A similar argument to that used in (i) leads to the required result whenever |h|pρ(MN)<min(r∗, x∗). (b) The matrix NM is diagonalizable with positive eigenvalues, and in addition, Mand Nare square matrices and Nis invertible. Then, a similar argument leads to the required result whenever |h|pρ(NM)<min(r∗, x∗). In general, we will next show that there exists r∗>0 (satisfying that r∗≤ min(r∗, x∗)), depending on the parameters aj, bjof the splitting method such that the approximate solution of (3.9) obtained is conjugate to the solution of the modified system (3.10)–(3.12) whenever |h|√ρM,N < r∗, where ρM,N = min(ρ(NM), ρ(MN)).(3.13) As this assertion can be proved for arbitrary matrices Nand M(without any constraint about the square matrices NM and MN), it is worth considering a more general class of systems: (iv) Let us examine now a linear system of the form (3.9) with arbitrary matrices Nand M. One step of the splitting method (1.2) applied to that system with f[A](z) = (Mp, 0)T, f[B](z) = (0,−Nq)T, z = (q, p)T, gives ψh(z) = K(h)z, where K(h) = I0 −bkN I  I akM 0I··· I0 −b1N I  I a1M 0I.(3.14) Studying the application of splitting methods to the system (3.9) is of interest, for instance, when considering the linearization around a stationary point of a Hamiltonian system with Hamiltonian function of the form H(q, p) = T(p) + V(q). Clearly, K(h) can be rewritten in the form K(h) =     Id1+X j≥1 k1,jh2j(MN)j,X j≥1 k2,jh2j−1M(NM)j−1 X j≥1 k3,jh2j−1N(MN)j−1Id2+X j≥1 k4,jh2j(NM)j   .(3.15) Here the coefficients ki,j are those of the polynomial entries (2.5) of the stability matrix (2.7) of the splitting method. It is worth noting that one step ψh(z) of an arbitrary partitioned Runge-Kutta (PRK) method applied to the partitioned system (3.9) has also the form ψh(z) = K(h)z, where the matrix K(h) is of the 16 form (3.15). For implicit PRK methods there is an infinite number of non-zero coefficients ki,j , and the expressions K1(x) = 1 + X j≥1 k1,j x2j, K2(x) = X j≥1 k2,j x2j−1 K3(x) = X j≥1 k3,j x2j−1, K4(x) = 1 + X j≥1 k4,j x2j(3.16) are obtained by expanding in series of powers of xcertain rational functions (the entries of the stability matrix K(x) of the method). For explicit PRK methods, K1(x), K2(x), K3(x), K4(x) are polynomial functions. The next result shows that any partitioned method (splitting methods, partitioned Runge–Kutta methods) applied to the system (3.9) is, for a sufficiently small step size h, conjugate to a non-partitioned method (defined as a power series expansion). Proposition 3.1 Let us consider a 2×2matrix (2.7) depending on the variable x whose entries are defined as power series (3.16) with non-zero radius of convergence. For arbitrary matrices M∈Rd1×d2, N ∈Rd2×d1, consider the square matrix of dimension (d1+d2)given by (3.15). Then, there exists r > 0and a power series Pj≥1sjxjsuch that the matrix K(h)given by (3.15) is, provided that |h|√ρM,N < r, similar to S(h) = Id1+d2+X j≥1 sjhj0M −N0j .(3.17) In addition, if det K(x)≡1(in particular, if K(x)is the stability matrix of a splitting method), then S(h)is the exponential of the matrix h0˜ M(h) −˜ N(h) 0 , where ˜ M(h)and ˜ N(h)are given by (3.11)–(3.12), and x+φ3x3+φ5x5+··· is the power series expansion of Φ(x) = arccos K1(x) + K4(x) 2= arcsin s1−K1(x) + K4(x) 22 . Proof: We first show that there exist r > 0 and a 2×2 matrix (2.28) whose entries are defined as power series P1(x) = 1 + X j≥1 p1,jx2j, P2(x) = X j≥1 p2,jx2j−1, P3(x) = X j≥1 p3,jx2j−1, P4(x) = 1 + X j≥1 p4,jx2j, with non-zero radius of convergence, such that, for |x|< r,P(x)K(x)P(x)−1is well defined and has the form S(x) = S1(x)S2(x) −S2(x)S1(x),(3.18) where S1(x) = 1 + X j≥1 (−1)js2jx2j, S2(x) = X j≥1 (−1)j−1s2j−1x2j−1.(3.19) 17 Once this is proven, it is straightforward to check that, for the square matrix P(h) of dimension (d1+d2) P(h) =     Id1+X j≥1 p1,jh2j(MN)j,X j≥1 p2,jh2j−1M(NM)j−1 X j≥1 p3,jh2j−1N(MN)j−1Id2+X j≥1 p4,jh2j(NM)j   ,(3.20) the matrix P(h)K(h)P(h)−1coincides, whenever |h|√ρM,N < r, with     Id1+X j≥1 (−1)js2jh2j(MN)j,X j≥1 (−1)j−1s2j−1h2j−1M(NM)j−1 X j≥1 (−1)js2j−1h2j−1N(MN)j−1Id2+X j≥1 (−1)js2jh2j(NM)j   , which is precisely (3.17). Indeed, one can directly check that P(x)K(x)P(x)−1=S(x) with S1(x) = K1(x) + K4(x) 2, S2(x) = pdet(K(x)) −S1(x)2,(3.21) P1(x) = s−K3(x) S2(x), P2(x) = K1(x)−K4(x) 2S2(x)P1(x), P3(x) = 0, P4(x) = 1 P1(x), and rcan be taken as the minimum among the radii of convergence of the series Kj(x), Sj(x), Pj(x). According to (3.19), S1(x) + iS2(x) = Psj(ix)j, and thus Psjxjis the series expansion of S1(−ix) + iS2(−ix) where S1(x) and S2(x) are given by (3.21). If det K(x)≡1 (in particular, if K(x) is the stability matrix of a splitting method), we have that S1(x) = K1(x) + K4(x) 2= cos(Φ(x)), S2(x) = p1−S1(x)2= sin(Φ(x)), where Φ(x) = arccos S1(x) = arcsin p1−S1(x)2, and therefore Psjxjis the series expansion of exp(iΦ(−ix)). If x+φ3x3+φ5x5+··· is the power series expansion of Φ(x), it is clear that iΦ(−ix) = x−φ3x3+φ5x5−··· and a simple calculation shows that S(h) is the exponential of iΦ−ih 0M −N0=h0˜ M(h) −˜ N(h) 0 , thus completing the proof. 2 Notice that, in the proof above, there are other choices for P(x). For instance, we could have required that P2(x) = 0, P4(x) = 1/P1(x). Different choices for P(x) in general will give a different value of r. Definition 3.2 Let us denote as r∗the maximal rfor which the statement of Proposition 3.1 holds. For splitting methods, we always have that r∗≤r∗and r∗≤x∗. The following generalization of Proposition 2.8 will be useful in the next section. Proposition 3.3 Suppose we have an even polynomial p(x)satisfying (2.11), so that 0< r∗≤x∗. Then, there exists a time-reversible stability matrix of the form K(x) = p(x)K2(x) K3(x)p(x)(3.22) for which x∗=x∗and r∗=r∗. 18 Proof: According to Definition 2.9, r∗>0 is the maximum of the modulus of the zeroes of 1 −p(x)2with odd multiplicity. Now let 0,±x1,...,±xlbe all the zeros with even multiplicity of the polynomial 1 −p(x)2with modulus |xj|< r∗. Then the polynomial 1 −p(x)2can be decomposed as 1−p(x)2=x2m0Q(x) l Y j=1 ((x/xj)2−1)2mj, where each m0, m1, . . . , mlis the multiplicity of the zeroes 0,±x1,...,±xl, respectively, and Q(x) is an even polynomial satisfying that Q(0) = 1 and has no zeroes with even multiplicity. We thus have that Φ(x) = arccos(p(x)) = arcsin(p1−p(x)2) = arcsin  pQ(x)xm0 l Y j=1 ((x/xj)2−1)mj , so that r∗is the maximum of the modulus of the zeroes of Q(x). We then choose a decomposition Q(x) = Q2(x)Q3(x) of even polynomials such that Q2(0) = Q3(0) = 1, and determine K2(x), K3(x) as K2(x) = xm0Q2(x) l Y j=1 ((x/xj)2−1)mj, K3(x) = −xm0Q3(x) l Y j=1 ((x/xj)2−1)mj. (3.23) This completes the proof, since, according to (2.31), P1(x) = 4 pQ3(x)/Q2(x) and P4(x) = 4 pQ2(x)/Q3(x), and the radius of convergence of their powers series expansions is precisely the maximum of the modulus of the zeroes of Q(x) = Q2(x)Q3(x), that is, r∗.2 4 Construction of processed splitting methods with enlarged stability domain and high accuracy The theoretical analysis done in the previous sections shows in particular that the stability polynomial p(x) carries all the information needed to construct processed splitting methods for numerically approximating the evolution of the harmonic oscillator. Our aim in this section is precisely to use this analysis to obtain efficient processed splitting methods to solve numerically the linear system (3.9). In other words, our goal is to approximate the exponential exp t0M −N0 (4.1) by means of S(h)m=P(h) [K(h)]mP(h)−1, where h=t/m is sufficiently small, the kernel K(h) is given by (3.14) (which can be rewritten as (3.15)), and P(h) is defined in terms of power series expansions as in the proof of Proposition 3.1 provided that h√ρM,N < r∗, where ρM,N is given by (3.13). We will concentrate ourselves in the case where either NM or MN is diagonalizable with positive eigenvalues, so that the performance of the method will be 19 directly related to the accuracy and stability of the method when applied to the harmonic oscillator. In practice, P(h) and P(h)−1will be approximated by polynomials, and one will be able to approximate the action of the exponential (4.1) on the vector (q, p)T by means of matrix-vector products of the form Mp and Nq. Taking previous considerations into account, we consider a composition of the form (3.14) whose stability polynomial p(x) fulfills the following requirements: C.1 p(x) = cos x+O(x2n+2) as x→0 for certain n≥1 (thus achieving effective order q= 2n). C.2 There exist l≥1 and xj∈R,j= 1,...,l, such that 0 < x1<··· < xl, each xjis a double zero of the polynomial p(x)−(−1)j, and all the (perhaps complex) zeroes of odd multiplicity of the polynomial (p(x)2−1) have modulus greater than xl(so that x∗≥r∗> xl). C.3 For each j= 1, . . . , l,xj=jπ. Once the polynomial p(x) is fixed, there still remains to determine a stability matrix K(x). In general, we have that x∗≤x∗and r∗≤r∗.The optimal case is achieved when x∗=x∗and r∗=r∗, and any processed method for which these two equalities hold are equivalent. The proof of Proposition 3.3 provides a procedure to obtain all stability matrices K(x) for which x∗=x∗and r∗=r∗. For each such a stability matrix K(x), we follow the algorithm described in the proof of Proposition 2.3 to obtain its decomposition (2.12), and we choose among them a stability matrix K(x) whose decomposition is of the form (2.2). This will give us the coefficients ai, bifor kernel of the processed method given by the composition (3.14). In subsection 4.3, we provide a simple procedure to obtain pre- and post-processors from the polynomials Ki(x). It is important to keep in mind that the cost of a composition method with polynomial stability p(x) is proportional to the degree of p(x). We can always improve both the stability and the accuracy of p(x) by increasing its degree, but this makes sense only if the improvement compensates for the extra computational cost required. 4.1 Construction of stability polynomials According to the previous requirements, we take as candidates for p(x) polynomials in the following family. For each n, l ≥0 we consider the even polynomial pn,l(x) with minimal degree among those satisfying (i) pn,l(x) = cos x+O(x2n+2) as x→0, and (ii) for each 1 ≤j≤l,xj=jπ is a double zero of pn,l(x)−(−1)j. For arbitrary n, l ≥1 we take pn,l(x) as pn,l(x) = 1 + n X j=1 (−1)jx2j (2j)! +x2n 2l X j=1 djx2j,(4.2) where the coefficients djare uniquely determined by the requirement that p(jπ) = (−1)j, p′(jπ) = 0, j = 1,...,l (4.3) holds for p(x) = pn,l(x). Notice the interpolatory nature of pn,l(x) (as cos(jπ) = (−1)jand cos′(jπ) = −sin(jπ) = 0). By using a symbolic algebra package one gets the numerical values of dj, j = 1,...,2l, with the desired accuracy and for any value of lof practical interest. With the polynomial pn,l(x) it is possible to get an estimate of the relative performance of the splitting methods which can be obtained from it. Since a k-stage 20 method has a stability polynomial of degree 2kwe can take the degree of pn,l(x) (d(pn,l) = 2(n+ 2l)) as twice the number of stages needed for the composition methods. The accuracy can be measured by evaluating the error function En,l(x)≡ arccos pn,l(x)−xfor different values of x∈[0, x∗]. Figure 1(a) shows En,l(x) versus COST= (n+ 2l)/x (to measure the accuracy at a given cost, where xplays the role of the time step) for n= 5, l= 3,5,7 and n= 10, l= 6,10,14 corresponding to approximations of order 10 and 20. Each choice for pn,l(x) is denoted by (n, l, 0) in the figure. The curves which stay below in the same picture show the highest performance, i.e., they give the smallest error at a given cost. From the figures we observe the surprising fact that the performance seems to improve with lfor each fixed value of n, and for most values of COST. This occurs for nearly all values of nand lchecked, up to (n+ 2l) = 50, corresponding to methods with up to 50 stages. Figure 1(b) shows the results for (n, l) = (5,7),(8,12),(10,14) which would correspond to methods with 19, 32 and 38 stages, respectively. On the other hand, if one is interested in approximating the solution matrix O(x) accurately for x∈(−x∗, x∗) with |x|as large as possible, we may require in addition to C.1–C.3 above, C.4 for a relatively low effective order q= 2n, the stability polynomial p(x) approximates cos(x) with acceptable precision for all x∈(−xl, xl). With the purpose of fulfilling this goal, we propose considering the following polynomials as candidates for the stability polynomial p(x). For each n, l, m ≥0, we take pn,l,m(x) = n X j=1 (−1)jx2j (2j)! +x2n 2l X j=1 djx2j+x2n l Y j=1 (x2−(jπ)2)2 m X i=1 eix2i,(4.4) satisfying (4.3) for p(x) = pn,l,m(x), so that the coefficients dj(1 ≤j≤2l) verify the same conditions as before (and thus they are uniquely determined). We have now the free parameters ei(1 ≤i≤m), which we propose to determine in such a way that Zlπ −lπ 1−x lπ 2−1/2pn,l,m(x)−cos x x2n+2 2 dx (4.5) is minimized. Notice that this is equivalent to minimizing in the least square sense the coefficients of the Chebyshev series expansion of (pn,l,m(x)−cos x)/(x2n+2), which depend linearly on ei(1 ≤i≤m), and thus the values of eican be exactly determined. In practice, this can be conveniently done with the help of some symbolic algebra program. By following this approach we have analyzed stability polynomials with up to (n+2l+m) = 50 (corresponding to methods up to 50 stages) for different values of n, l, m. Analogously, to measure their relative performances, we compare the error En,l,m(x)≡arccos pn,l,m(x)−x(4.6) versus COST=(n+2l+m)/x for different real values of x. In Figure 1(c) we show the results obtained for some representative choices of pn,l,m(x), denoted by (n, l, m), corresponding to polynomials of the same degree as those shown in Figure 1(b). In all cases, the performance apparently improves with the number of stages. Figure 1(d) compares the performance of the best stability polynomial of each family (both correspond to polynomials of degree 76 and associated to 38-stage methods). It seems that up to a very high accuracy, the best performance corresponds to the second order method (1,14,9). The fact that second order schemes requiring a 21 −0.2 0 0.2 0.4 0.6 0.8 −20 −15 −10 −5 0 LOG(COST) LOG(ERROR) (5,3,0) (5,5,0) (5,7,0) (10,6,0) (10,10,0) (10,14,0) (a) −0.2 0 0.2 0.4 0.6 0.8 −20 −15 −10 −5 0 LOG(COST) LOG(ERROR) (5,7,0) (8,12,0) (10,14,0) (b) −0.2 0 0.2 0.4 0.6 0.8 −20 −15 −10 −5 0 LOG(COST) LOG(ERROR) (1,7,4) (1,12,7) (1,14,9) (c) −0.2 0 0.2 0.4 0.6 0.8 −20 −15 −10 −5 0 LOG(COST) LOG(ERROR) (10,14,0) (1,14,9) (d) Figure 1: Error En,l,m given by (4.6) versus COST= (n+ 2l+m)/x in double logarithmic scale: (a) for stability polynomials pn,l(x) with n= 5,10 (corresponding to approximations of order 10 and 20 and m= 0) and different values of l, which are denoted by (n, l, 0); (b) for (n, l) = (5,7),(8,12),(10,14); (c) the same for pn,l,m(x) with (n, l, m) = (1,7,4),(1,12,7),(1,14,9) corresponding to polynomials of the same degree as in (b); (d) comparison of the most efficient stability polynomials. large number of stages perform better than higher order integrators in this setting is perhaps surprising. We should bear in mind, however, that the new methods have been designed precisely by following the strategy stated in the introduction and pursued in sections 2 and 3: we select the coefficients in such a way that the error coefficients (beyond second order) are sufficiently small to get high accuracy in practice and the stability interval is not seriously deteriorated in comparison with a concatenation of leapfrog methods. 4.2 Construction of the stability matrix Once a polynomial p(x) satisfying conditions C.1–C.3 (and possibly C.4) is determined, the next step is choosing the remaining entries of the stability matrix (3.22). As previously stated, two different k-stage palindromic compositions are considered for the kernel: ehak+1AehbkBehakA···ehb1Beha1A,(4.7) with ak+2−i=ai, bk+1 = 0, bk+1−i=bi, i = 1,2,...and ehbk+1Behak+1AehbkBehakA···ehb1B(4.8) with a1= 0, ak+2−i=ai+1, bk+2−i=bi, i = 1,2,.... 22 In both cases p(x) has degree 2k. With respect to the entries of the corresponding stability matrix K(x), we have K1(x) = K4(x) = p(x), and (K2(x), K3(x)) have degree (2k−1,2k+1) for (4.7) and degree (2k+1,2k−1) for (4.8). The polynomials (K2(x), K3(x)) are such that p(x)2−1 = K2(x)K3(x), K′ 2(0) = −K′ 3(0) = 1, K2(xj) = K3(xj) = 0, j = 1,...,l, and they satisfy (2.26), thus assuring that det K(x) = 1, K(x) is a consistent approximation to (2.1), x∗=x∗and r∗=r∗. Clearly, there is a finite number of different choices of such pairs (K2(x), K3(x)), and among them, we choose a pair such that the corresponding matrix K(x) admits a decomposition of the form (2.2). For convenience, we denote by Pk2na processed method of order 2nwhose kernel is a k-stage composition of the form (2.2). As representative of the methods which can be obtained by applying this procedure, in Table 1 we show the coefficients ai, bifor the kernel of a pair of processed methods. The first set of coefficients corresponds to P1910, given by the composition (4.7) with k= 19, whereas the second belongs to P3216, given by the composition (4.8) with k= 32. Coefficients for a method P382 can be found in [3]. It is worth noticing here a distinctive pattern observed in the coefficients of the methods we have obtained. Let us consider, in particular, the scheme P3216 from Table 1. The coefficients ai, bi, i = 1,...,6 are very close to a sequence of leapfrog stages ψαih,2=ϕ[B] αih/2◦ϕ[A] αih◦ϕ[B] αih/2with αi≈0.05 (this value is only slightly larger than the corresponding to a full sequence of leapfrog stages with αi= 1/32, i = 1,...,32 and is also closely related to the rule of thumb proposed by McLachlan [24]). There are some coefficients, like b13 and b14, with considerably larger values, but these appear in a very particular sequence. Notice that the composition K(bi, ai, bi−1)≡ehbiBehaiAehbi−1B=1−h2aibi−1hai −h(bi+bi−1) + h3aibibi−11−h2aibi gives in this case K(b14, a14, b13)≈1−4.1·10−5h2−7.3·10−5h −0.02h+ 2.4·10−5h31 + 4.3·10−5h2, i.e., ehb14Beha14Aehb13B≈ehB/50. We also find this pattern (a very small coefficient between two relatively large coefficients of oposite sign and similar magnitude) in the method P1910 in Table 1 for K(b7, a7, b6) and K(b9, a9, b8). This provides an illustration of the fact that, in some cases, many-stage methods with large coefficients can also lead to very accurate and stable integrators. 4.3 Construction of the processor As for the processor, since the kernel is time-reversible, it can be chosen as (2.30). Recall that, for their practical implementation, P1(x) and P4(x) must be replaced by polynomial approximations, say P1(x) = s X i=0 cix2i, P4(x) = s X i=0 dix2i(4.9) for a given s. In this way the constraint P4=P−1 1is relaxed to P4=P−1 1+O(x2s+2). 23 Table 1: Coefficients for a 19-stage and a 32-stage time-reversible kernels corresponding to processed methods of orders 10, P1910, and 16, P3216, respectively. P1910 a1= 0.0432386502874358427757883618871 b1= 0.0874171140239240929444597874709 a2= 0.0891872116514875241139576575882 b2= 0.0895405507537538756041132269850 a3= 0.0874015611733434678704032626168 b3= 0.0864066075260518454826592764125 a4= 0.0954273508490522988798690279811 b4= 0.140834736382004911175445238602 a5=−0.0753249126916028783286798309378 b5=−0.0137118117308991304396120981534 a6= 0.202523451531452141504790651968 b6= 0.541807462991626392685440183001 a7=−0.000603437796174370985636258252420 b7=−0.461545568134225404224525737926 a8= 0.141029942275295351245992767342 b8= 0.414574847635699390317333308406 a9= 0.0000764516092828444432144561097509 b9=−0.417468813318454485878866802863 a10 =1 2−(a1+···+a9)b10 = 1 −2(b1+· · · +b9) a21−i=ai, i = 1, . . . , 10 b20−i=bi, i = 1, . . . , 9 P3216 a1= 0 b1= 0.0246666504515374580138379933112 a2= 0.0503626559561541491851284108304 b2= 0.0526269985834362938158150887511 a3= 0.0546948611952386879984253468680 b3= 0.0557559872576229997353176147790 a4= 0.0554620390434566637065911933769 b4= 0.0537116878888677727588921080438 a5= 0.0516143924380795892137585965956 b5= 0.0519896869988046163617507304275 a6= 0.0568363649879098885339104529672 b6= 0.0666959676117604242374885628805 a7= 0.0939589227273508162683355424334 b7=−0.102796651142514055780607785308 a8=−0.00445692008047188584894138698734 b8= 0.182323867085459132242253779621 a9= 0.0817426743654653601759083129289 b9=−0.00542617878109449520635361125714 a10 =−0.0366714030328452540070009347543 b10 = 0.0593919899010186971711928695894 a11 = 0.0620267535945808302363559446459 b11 = 0.0462313377171662707918171716453 a12 =−0.0316075550822111219959097903622 b12 =−0.0137171722415664093079656810822 a13 = 0.0518562640986284507641256284631 b13 = 0.582408428792399942617750550408 a14 =−0.0000737830036206379685982463916033 b14 =−0.562094520697629270991481101437 a15 = 0.0536217552433463298408750165913 b15 =−0.0180034629218910159228722367539 a16 = 0.0150674488859324181502166600981 b16 = 0.00990593102843635080330651455161 a17 =1 2−(a1+···+a16)b17 = 1 −2(b1+· · · +b16) a34−i=ai+1, i = 1, . . . , 16 b34−i=bi, i = 1, . . . , 16 If we assume that S(x) = P(x)K(x)P(x)−1with S(x) given by (2.22), then the coefficients ci, diin (4.9) can be obtained, for instance, by truncating the Taylor expansion of the expressions (2.31). Note that by construction, the radius of convergence of the series P1(x) and P4(x) is r∗=r∗> xl. Coefficients ci, difor P382 can be found in [3]. There are many other ways to approximate the processor which might be more convenient for a given problem. For instance, one may consider even polynomials ˜ Pj(x) of degree 2(n+m) such that Pj(x)−˜ Pj(x) = O(x2n+2) as x→0, which minimize Zlπ −lπ 1−x lπ 2−1/2 ˜ Pj(x)−Pj(x) x2n+2 !2 dx. There is still another procedure which may be suitable in case the output is frequently required. The post-processor can be virtually cost free if approximated using the intermediate stages obtained during the computation of the kernel (see [1] for more details). 5 Numerical examples We have analyzed the relative performance of the stability polynomials when approximating the function cos x. This study has allowed us to choose some representative stability polynomials among those showing the best performance and 24 subsequently we have built processed splitting methods from them. It is then important to check whether this relative performance still takes place in practical applications for the splitting methods obtained. For the numerical tests carried out here we have selected the following representative k-stage processed methods of order 2n, Pk2n, built in this paper: (i) the high order processed methods P1910, P3216 and P3820 obtained using the stability polynomial pn,l(x) in (4.2) with (n, l) = (5,7),(8,12),(10,14), respectively, where k=n+ 2land (ii) the second order processed schemes P192, P322 and P382, obtained from the stability polynomial pn,l,m(x) in (4.4) with (n, l, m) = (1,7,4),(1,12,7),(1,14,9), respectively, where k=n+ 2l+m, and optimized by minimizing (4.5). In Table 2, the relative stability threshold x∗/k of our selected processed splitting methods are displayed. We also include for each method the parameter r∗/k, where r∗has been introduced in section 3. Method (n, l, m)x∗/k r∗/k P1910 (5,7,0) 1.11974 1.10487 P3216 (8,12,0) 1.11308 1.06485 P3820 (10,14,0) 1.09686 1.04713 P192 (1,7,4) 1.2463 1.20186 P322 (1,12,7) 1.24978 1.15949 P382 (1,14,9) 1.23292 1.14573 Table 2: Relevant parameters for the selected new processed splitting methods. The following standard non-processed splitting methods from the literature are chosen for comparison: •The 1-stage second order leapfrog method, ψh,2, given in (1.3) and denoted by LF12. •The well known 3-stage fourth-order time-reversible method (YS34) [33], and the 17-stage eighth-order time-reversible method (M178) [21, 25] (very similar performances are attained with the eighth-order method given in [12, 14]). Both methods are used with ψh,2as the basic scheme. •The m-stage mth-order non-symmetric methods (GMmm) with m= 4,6,8,10,12 given in [10], and specifically designed for the harmonic oscillator. We have also considered as a reference the standard 4-stage fourth order nonsymplectic Runge–Kutta method, RK44. The corresponding stability parameters x∗/k and r∗/k of all the splitting methods of reference considered in the numerical comparisons are displayed in Table 3. 5.1 The harmonic oscillator As a first example we consider again the one dimensional harmonic oscillator q′ p′=0 1 −1 0  q p. This trivial example is well suited as a test bench for the following purposes: (i) to check that all coefficients of the kernel and postprocessor are correct with sufficient accuracy, (ii) to see whether the relative performance shown by the stability polynomials is still valid for the processed splitting methods obtained from them, 25 [14] W. Kahan and R.C. Li, Composition constants for raising the order of unconventional schemes for ordinary differential equations, Math. Comp.,66 (1997), 1089–1099. [15] R. Kosloff, Time-dependent quantum-mechanical methods for molecular dynamics, J. Phys. Chem.,92 (1988), pp. 2087–2100. [16] C. Leforestier, R.H. Bisseling, C. Cerjam., M.D. Feit, R. Friesner, A. Guldberg, A. Hammerich, G. Jolicard, W. Karrlein, H.-D. Meyer, N. Lipkin, O. Roncero, and R. Kosloff, A comparison of different propagation schemes for the time dependent Schroedinger equation, J. Comput. Phys.,94 (1991), pp. 59–80. [17] B. Leimkuhler and S. Reich, Simulating Hamiltonian Dynamics, Cambridge University Press, Cambridge 2004. [18] X. Liu, P. Ding, J. Hong, and L. Wang, Optimization of symplectic schemes for time-dependent Schr¨odinger equations, Comput. Math. Appl.,50 (2005), pp. 637–644. [19] M.A. L´opez-Marcos, J.M. Sanz-Serna, and R.D. Skeel, An explicit symplectic integrator with maximal stability interval, in: D.F. Griffiths and G.A. Watson, eds., Numerical Analysis, A.R. Mitchel 75th Birthday Volume (World Scietific, Singapore, 1996), pp. 163–176. [20] M.A. L´opez-Marcos, J.M. Sanz-Serna, and R.D. Skeel, Explicit symplectic integrators using Hessian-vector products, SIAM J. Sci. Comput.,18 (1997), pp. 223–238. [21] R.I. McLachlan, On the numerical integration of ordinary differential equations by symmetric composition methods, SIAM J. Sci. Comput.,16 (1995), pp. 151–168. [22] R.I. McLachlan, More on symplectic correctors, in Integration Algorithms and Classical Mechanics, Vol. 10, J.E. Marsden, G.W. Patrick, and W.F. Shadwick, eds., American Mathematical Society, Providence, R.I. (1996), pp. 141–149. [23] R.I. McLachlan and S.K. Gray, Optimal stability polynomials for splitting methods, with applications to the time-dependent Schr¨odinger equation, Appl. Numer. Math.,25 (1997), pp. 275–286. [24] R.I. McLachlan, Families of high-order composition methods, Numer. Alg. 31 (2002), pp. 233-246. [25] R.I. McLachlan and R.G.W. Quispel, Splitting methods, Acta Numerica,11 (2002), pp. 341–434. [26] R.I. McLachlan and R.G.W. Quispel, Geometric integrators for ODEs, J. Phys. A: Math. Gen.,39 (2006), pp. 5251–5285. [27] R. Rieben, D. White, and G. Rodrigue, High-order symplectic integration methods for finite element solutions to time dependent Maxwell equations, IEEE Trans. Antennas Propagat., 52 (2004), pp. 2190–2195. [28] G. Rowlands, A numerical algorithm for Hamiltonian systems, J. Comput. Phys.,97 (1991), pp. 235–239. [29] J.M. Sanz-Serna and M.P. Calvo, Numerical Hamiltonian Problems, Chapman & Hall, London, 1994. 32 [30] J.M. Sanz-Serna and A. Portillo, Classical numerical integrators for wavepacket dynamics, J. Chem. Phys.,104 (1996), pp. 2349–2355. [31] J. Wisdom, M. Holman, and J. Touma, Symplectic correctors. In: Integration Algorithms and Classical Mechanics, Vol. 10, J.E. Marsden, G.W. Patrick, and W.F. Shadwick, eds., American Mathematical Society, Providence, R.I. (1996), pp. 217–244. [32] K. Yee, Numerical solution of initial boundary value problems involving Maxwell’s equations in isotropic media, IEEE Trans. Antennas Propagat., 14 (1966), pp. 302–307. [33] H. Yoshida, Construction of higher order symplectic integrators, Phys. Lett. A, 150 (1990), pp. 262–268. [34] W. Zhu, X. Zhao, and Y. Tang, Numerical methods with high order of accuracy applied in the quantum system, J. Chem. Phys.,104 (1996), pp. 2275–2286. 33