Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2015 Feb 1.
Published in final edited form as: J Comput Phys. 2013 Nov 11;258:10.1016/j.jcp.2013.11.002. doi: 10.1016/j.jcp.2013.11.002

Array-representation Integration Factor Method for High-dimensional Systems

Dongyong Wang a, Lei Zhang b, Qing Nie c,*
PMCID: PMC3886925  NIHMSID: NIHMS541430  PMID: 24415797

Abstract

High order spatial derivatives and stiff reactions often introduce severe temporal stability constraints on the time step in numerical methods. Implicit integration method (IIF) method, which treats diffusion exactly and reaction implicitly, provides excellent stability properties with good efficiency by decoupling the treatment of reactions and diffusions. One major challenge for IIF is storage and calculation of the potential dense exponential matrices of the sparse discretization matrices resulted from the linear differential operators. Motivated by a compact representation for IIF (cIIF) for Laplacian operators in two and three dimensions, we introduce an array-representation technique for efficient handling of exponential matrices from a general linear differential operator that may include cross-derivatives and non-constant diffusion coefficients. In this approach, exponentials are only needed for matrices of small size that depend only on the order of derivatives and number of discretization points, independent of the size of spatial dimensions. This method is particularly advantageous for high dimensional systems, and it can be easily incorporated with IIF to preserve the excellent stability of IIF. Implementation and direct simulations of the array-representation compact IIF (AcIIF) on systems, such as Fokker-Planck equations in three and four dimensions and chemical master equations, in addition to reaction-diffusion equations, show efficiency, accuracy, and robustness of the new method. Such array-presentation based on methods may have broad applications for simulating other complex systems involving high-dimensional data.

Keywords: Reaction-diffusion equations, implicit method, splitting method, Fokker-Planck equations, chemical master equation

1. Introduction

Consider a general reaction-diffusion equation of the form

tu(x,t)=i,j=1nxi(Dij(u,x)xju(x,t))+F(u,x), (1)

where n is the spatial dimension and x = {x1, …, xn}. A non-linear term F(u, x) is often interpreted as a reaction term. Coefficients Dij can be either constants or functions of u and x. The function u(x, t) usually represents concentrations of physical or biological species with reactions among them, for which one usually has n = 2 or n = 3. However, u(x, t) can also be considered as a probability density functions for stochastic dynamics described by Fokker-Planck equations [1], for which the dimension n represents the number of biochemical species.

Spatial discretizaton for differential equations of higher spatial dimensions (even for n = 3) often requires large, sometimes prohibitive, data storage and management as well as expensive CPU time at a fixed time point. In addition, temporal discretization, which strongly depends on the stiffness of reactions and treatment of the high order derivatives (e.g. the diffusion term), may lead to severe stability conditions that require very small time steps, resulting in excessive computational cost.

Integration factor (IF) or exponential time differencing (ETD) methods are effective approaches to deal with temporal stability constraints associated with high order derivatives [2, 3, 4]. By treating linear operators of the highest order derivative exactly, IF or ETD methods are able to achieve excellent temporal stability [2, 5, 6]. To deal with additional stability constraints from stiff reactions, a class of semi-implicit integration factor (IIF) methods [7] were developed for implicit treatment of the stiff reactions. In the IIF approach, the diffusion term is solved exactly like the IF method while the nonlinear equations resulted from the implicit treatment of reactions is decoupled from the diffusion term to avoid solving large nonlinear systems involving both diffusions and reactions, such as in a standard implicit method for reaction-diffusion equations. IIF methods have a great stability property with its second order scheme being linearly unconditionally stable.

In IF or ETD type of methods, the dominant computational cost arises from the storage and calculation of exponentials of matrices resulting from discretization of the linear differential operators in the PDEs. To deal with this difficulty, compact representation of the discretization matrices was introduced in the context of IIF method [8]. In compact implicit integration factor method (cIIF), the discretized solutions are represented in a matrix form rather than a vector while the discretized diffusion operator are represented in matrices of much smaller size than the standard matrices for IIF while preserving the stability property of the IIF. For two or three dimensions, cIIF is significantly more efficient in both storage and CPU cost. In addition, cIIF method is robust in its implementation and integration with other spatial and temporal algorithms. It can handle general curvilinear coordinates as well as combine with adaptive mesh refinements in a straightforward fashion [9]. One can also apply cIIF to stiff reactions and diffusions while using other specialized hyperbolic solvers (e.g WENO methods [10, 11]) for convection terms to solve reaction-diffusion-convection equations efficiently [12]).

One alternative approach for IF (or ETD) methods to avoid storage of the exponentials of large matrices is to use Krylov subspace method to compute the multiplication between the vector and the exponentials of matrices without explicitly forming the matrices [13, 14]. The advantage of applying Krylov subspace method is that it can handle complicated diffusion operators, e.g. diffusion coefficients are spatial functions or elliptic operators contains cross derivatives, while cIIF in previous studies [8] can only handle systems of constant diffusion coefficients and Laplacian operators restricted to two and three dimensions. In contrast to cIIF, in which exponentials of matrices are pre-calculated only once and stored for repeated usages at each time step of the temporal updating, the Krylov subspace method needs to be carried out at each time step, leading to a significant increase in CPU time.

In this paper, we introduce an array representation for the linear differential operators that may contain non-constant diffusion coefficients as well as cross-derivatives in two, three or higher dimensions. This array-representation approach is based on the idea of compact Implicit Integration Factor (cIIF), that is, when discretizing the terms with partial derivatives, regard the unknown solution as a vector with index connected to corresponding variables, while keeping other indexes fixed with unrelated variables. This new approach yields several discretization matrices of a small size that depend only on the number of derivatives in the continuous operators and the number of spatial discretization points in the direction of each derivative, in contrast to IF (or ETD) that requires exponentials of matrices whose size depend on the number of dimensions. In particular, the array representation can be incorporated into IIF to maintain the nice stability property of IIF as well as the implicit local treatment of the reactions decoupled from the diffusions. Like IIF, the second order array-representation (compact) implicit integration method (AcIIF) is A-stable. An operator splitting technique is incorporated into AcIIF for certain differential operators, resulting in non-commutable operations between discretization matrices. The AcIIF method is an extension of cIIF method that is able to deal with cross derivatives and non-constant diffusion coefficients in addition to other applications.

To study the accuracy and efficiency of AcIIF, we implement AcIIF methods and compare it with several other existing methods for both two and three dimensional reaction-diffusion equations. In addition, we apply AcIIF to solve Fokker-Planck equations in three and four dimensions. To demonstrate other applications of the array representation, we also use this approach to directly solve chemical master equations. In CMEs, the structure of the rate matrix for a reaction containing k species of molecules is very similar to the discretization matrix for a k-th order partial differential equation with cross derivatives. The overall direct simulations show the excellent properties of AcIIF and its distinct advantage in high spatial dimensions.

2. Array-representation (compact) Implicit Integration Factor Method (AcIIF)

2.1. Array representation for reaction-diffusion systems in three dimension without cross derivatives

To illustrate the array-representation approach, we first consider three-dimensional reaction-diffusion equations without cross-derivatives and with constant diffusion coefficients and periodic boundary conditions:

ut(x,y,z,t)=DΔu(x,y,z,t)+f(u(x,y,z,t)), (2)

where (x, y, z) ∈ Ω = {0 < x, y, z < l}. Let Nx, Ny, Nz be the number of spatial grid points in each spatial direction and hx, hy, hz be the grid size, respectively. Denote Uk1,k2,k3 as the approximated solution of u at the grid point (k1hx, k2hy, k3hz). The approximation of D2/x2 using the second order central difference discretization can be written in terms of multi-dimensional arrays, U = (Uk1,k2,k3), through a linear mapping Inline graphic,

(xU)k1,k2,k3:=Dhx2(Uk1+1,k2,k3-2Uk1,k2,k3+Uk1-1,k2,k3) (3)

where 1 ≤ k1Nx, 1 ≤ k2Ny, and 1 ≤ k3Nz. Similarly, using Inline graphic and Inline graphic to represent the approximations D2/y2 and D2/z2, respectively, Eq. (2) is approximated by

dUdt=xU+yU+zU+f(U). (4)

Multiplying the integration factor, e( Inline graphic+ Inline graphic+ Inline graphic)t, to both sides and integrating from tn to tn+1, two adjacent discretized temporal points, we derive a class of semi-implicit integration factor methods (IIF) after approximating the integral [7]. For example, the second order IIF takes the form

Un+1-Δt2f(Un+1)=e(x+y+z)Δt(Un+Δt2f(Un)) (5)

where UnU at time point tn.

In a typical representation of the linear differential operator, the matrix ( Inline graphic + Inline graphic + Inline graphict has a size of NxNyNz × NxNyNz. Although the matrix itself is sparse, its exponential is usually not, leading to prohibitive storage and computing cost for any fine spatial meshes. Next, we decompose this matrix into small matrices based on an array representation.

If one defines a vector by fixing the last two indices, k2, k3, of the the three-dimensional array U,

U(:,k2,k3)=(U1,k2,k3,U2,k2,k3,,UNx,k2,k3)T, (6)

Then the three dimensional array U, can be treated as the collection of all such one dimensional vector on a two-dimensional array, with all k2, k3 going through from 1 to Ny and from 1 to Nz, respectively. We present this collection using symbol ⊗, with the super index indicates that this collection is along xi axis, then we have:

U=1k2Ny1k3NzU(:,k2,k3). (7)

Next, we define a Nx × Nx matrix Mx=D/hx2WNx×Nx, where

WN×N=(-21011-21001-21101-2)N×N. (8)

Then, MxU(:, k2, k3) represents the vector and matrix multiplication for any fixed pair of k2, k3. Using this approach, the linear mapping Inline graphic in the array representation becomes,

xU=1k2Ny1k3NzMxU(:,k2,k3). (9)

Consequently, the exponential of Inline graphic in the array representation takes the following form,

exU=1k2Ny1k3NzeMxU(:,k2,k3), (10)

as induced from the relation,

(x)mU=1k2Ny1k3Nz(Mx)mU(:,k2,k3),m+. (11)

Applying the definition of linear mapping exponential yields Eq. (10).

Clearly, Inline graphic and Inline graphic have similar array representations,

yU=1k1Nx1k3NzMyU(k1,:,k3),zU=1k1Nx1k2NyMzU(k1,k2,:), (12)

where My=D/hy2WNy×Ny and Mz=D/hz2WNz×Nz.

Using the array representations, one can easily show that the three linear mappings Inline graphic, Inline graphic and Inline graphic commute with each other, i.e.,

abU=baU,fora,b{x,y,z}. (13)

This commuting property results in

eLx+Ly+LzU=eLxeLyeLzU. (14)

Direct application of Eq. (14) to Eq. (5) results in the following second order array-representation Implicit Integration Factor (AcIIF) method:

Algorithm 1. Second order AcIIF (AcIIF2)

Un+1-Δt2f(Un+1)=1k2Ny1k3NzeMxΔt(1k1Nx1k3NzeMyΔt(1k1Nx1k2NyeMzΔtV(k1,k2,:))(k1,:,k3))(:,k2,k3), (15)

where V = Un + Δt/2f(Un).

Previously, a compact IIF (cIIF) was derived in a different fashion in two spatial dimensional systems by treating unknowns as a matrix, then the action of Inline graphic is like a left product to the matrix and Inline graphic is as its right product. And in three spatial dimensional cases, in addition to the left and right multiplications, a middle multiplication represents Inline graphic [8]. One major advantage of both cIIF and AcIIF methods that one only needs to compute the exponentials of Mx, My and Mz, which are much smaller matrices (only about N × N), in comparison to standard IF or ETD methods [15, 16], for which the exponential e( Inline graphic+ Inline graphic+ Inline graphict of dimension of NxNyNz × NxNyNz are needed. Clearly, cIIF and AcIIF have significant savings in both CPU cost and storage, in particular, for equations in three or higher dimensions.

For the systems without cross-derivatives (e.g. Eq. (15)), the second order AcIIF (2) is equivalent to the second order cIIF method [8]. As it will be shown next, the advantage of AcIIF lies in its potential applications to reaction-diffusion systems with cross derivatives and non-constant diffusion coefficients for which cIIF is unable to achieve.

2.2. AcIIF method for three-dimensional reaction-diffusion systems with cross derivatives

Consider the reaction-diffusion equations with second order cross derivatives:

ut=(a12x2+2b12xy+c12y2)u+(a22x2+2b22xz+c22z2)u+(a32y2+2b32yz+c32z2)u+f(u), (16)

in a cube, {(x, y, z) : 0 < x, y, z < l}, with periodic boundary conditions, satisfying the conditions aici>bi2, for i = 1, 2, 3. Applying a standard second order central difference approximation to a12x2+2b12xy+c12y2, one obtains its approximation, denoted by Inline graphic, as the following

(LxyU)k1,k2,k3=a1hx2(Uk1+1,k2,k3-2Uk1,k2,k3+Uk1-1,k2,k3)2b14hxhy(Uk1+1,k2+1,k3+Uk1-1,k2-1,k3-Uk1+1,k2-1,k3-Uk1-1,k2+1,k3)+c1hy2(Uk1,k2+1,k3-2Uk1,k2,k3+Uk1,k2-1,k3). (17)

Using similar definitions for Inline graphic and Inline graphic, the spatial approximation of Eq. (16) becomes

dUdt=(Lxz+Lxy+Lyz)U+f(U). (18)

To derive the array representation of the operator Inline graphic, we first fix k3 in U(:, :, k3) that represents a NxNy × NxNy matrix. Collect all these two dimensional matrices along a vector leads to:

U=1k3NzU(:,:,k3). (19)

Define a linear mapping, Inline graphic, from a matrix space consisting of all Nx × Ny matrices to itself as follows:

(AxyM)i,j=2b14hxhy(Mi+1,j+1+Mi-1,j-1-Mi-1,j+1-Mi+1,j-1)+a1hx2(Mi+1,j-2Mi,j+Mi-1,j)+c1hy2(Mi,j+1-2Mi,j+Mi,j-1). (20)

Then, the array representation of Inline graphic, in terms of Inline graphic, and its exponential become

LxyU=1k3NzAxyU(:,:,k3),eLxyU=1k3NzeAxyU(:,:,k3). (21)

Similarly, the array representation for Inline graphic and Inline graphic may be written in terms of Inline graphic and Inline graphic, respectively.

As long as Inline graphic, Inline graphic and Inline graphic commute with each other, applying Eq. (5) using the array representation to Eq. (18) leads to the following algorithm:

Algorithm 2. AcIIF2 for reaction-diffusion systems with cross derivatives

Un+1-Δt2f(Un+1)=1k1NxeAyzΔt(1k2NyeAxzΔt(1k3NzeAxyΔtV(:,:,k3))(:,k2,:))(k1,:,:), (22)

where V = Un + Δt/2f(Un).

In this algorithm, the exponential of Inline graphic is a NxNy × NxNy matrix, in comparison to Inline graphic that is a NxNyNz × NxNyNz matrix. Thus applying array representation leads to significant saving.

Cross derivatives may affect the commutable property of the discretized operators, resulting in the questions: under what conditions, Inline graphic, Inline graphic and Inline graphic can commute with each other and what to do with the algorithms if the commuting property doesn’t hold. In Section 3, we will give a sufficient condition for the commuting property. Alternatively, we next introduce a splitting technique to deal with the cases without such commuting property.

2.3. AcIIF method for reaction-diffusion systems with non-constant diffusion coefficients

When the diffusion coefficients in Eq. (16) are functions in space, minor modification is needed for the three discretization operators Inline graphic, Inline graphic, Inline graphic in array representations. Because each of the three operators depends on the other spatial dimension, we introduce a super index for Inline graphic to represent the operator at difference value of z = k3hz for the array representation of Inline graphic:

LxyU=1k3NzAxyk3U(:,:,k3) (23)

Similarly, the array representation of Inline graphic and Inline graphic can be written in terms of Ayzk1 and Axzk2.

As a result, the three operators can no longer commute with each other. Notice that

e(Lxy+Lyz+Lxz)Δt=eLxyΔteLxzΔteLyzΔt+O(Δt2), (24)

the algorithm for Eq. (22) for this general case becomes only first order in time.

The order of accuracy can be improved by using a Strang splitting scheme to approximate e( Inline graphic+ Inline graphic+ Inline graphict. In the Strang splitting method, two linear operators Inline graphic and Inline graphic defined on the same linear space have the following property [17]:

e(L1+L2)Δt=eL1Δt/2eL2ΔteL1Δt/2+R(Δt), (25)

where

R(Δt)=(L2L12d+L12L2+4L2L1L2-2L1L2L1-2L1L22-2L22L1)Δt3/24. (26)

For multiple linear operators, Inline graphic, Inline graphic, … Inline graphic, the Strang splitting method can be extended to the following by induction:

ei=1mLiΔt=i=1meLiΔt/2i=m1eLiΔt/2+O(Δt3). (27)

Now, applying Strang splitting to Eq. (5) leads to a second order method in both time and space:

Un+1-Δt2F(Un+1)=eΔt2LxyeΔt2LxzeΔtLyzeΔt2LxzeΔt2Lxy(Un+Δt2F(Un)). (28)

Consequently, the array representation for solving Eq. (16) with non-constant diffusion coefficients leads to

Algorithm 3. AcIIF2 for system (16)

V=Un+Δt2f(Un),V=1k1NxeAyzk1Δt(1k2NyeAxzk2Δt/2(1k3NzeAxyk3Δt/2V(:,:,k3))(:,k2,:))(k1,;,:),Un+1-f(Un+1)=1k3NzeAxyk3Δt/2(1k2NyeAxzk2Δt/2V(:,k2,:))(:,:,k3). (29)

Operator splitting leads to twice as many exponential-matrix and vector multiplication compared to the non-splitting case in Algorithm 2. Therefore, it is important to use appropriate order of splitting if a subset of operators can commute with each other to improve computational efficiency. For instance, for three operators Inline graphic, i = 1, 2, 3 where Inline graphic and Inline graphic can commute, however, Inline graphic cannot, one may have two different kinds of splittings:

e(L1+L2+L3)Δt=eL3Δt/2eL2ΔteL1ΔteL3Δt/2+O(Δ3t) (30)

and

e(L1+L2+L3)Δt=eL1Δt/2eL2Δt/2eL3ΔteL2Δt/2eL1Δt/2+O(Δ3t). (31)

Clearly, the splitting in Eq. (30) computes one fewer exponential matrix and vector multiplication than the splitting in Eq. (31).

2.4. AcIIF method for high dimensional reaction-diffusion systems

We next extend AcIIF to the reaction-diffusion equation in d spatial dimensions with d ≥ 3:

ut=1i<jdLx1xju+f(u)0<xi<1 (32)

where

Lxixj:=aij2xi2+2bij2xixj+cij2xi2,1i<jd, (33)

and we assume that diffusion coefficients, aij, bij and cij are spatial functions that satisfy the elliptical conditions:

aij>0,cij>0,aijcij>bij2. (34)

We also assume that the boundary conditions for the system are periodic.

Similar to the three dimensional case, in each direction xi, there are Nxi grid points with the grid size of hxi. We use a Nx1 × Nx2 × … Nxd d-dimensional array U = (Uk1,k2,…,kd), 1 ≤ kiNxi, i = 1, 2, …, d to represent the solution, and Inline graphic to represent the discretized operator of Lxixj, 1 ≤ i < jd. Next, we denote Uxi,xj(kr),ri,j as the matrix derived from U by fixing the dimensional index kr, ri, j. Thus, the array representation of Inline graphic becomes

LxixjU=1krNxrri,jAxixj(kr),ri,jUxi,xj(kr),ri,j (35)

where Axixj(kr),ri,j are linear mappings from the matrix space with all Nxi × Nxj matrices to itself and is similarly defined in the three-dimensional case.

If Inline graphic commute with each other, we are able to directly apply array representation to the IIF2 method to obtain a second order AcIIF method for solving Eq. (32):

Un+1-Δt2F(Un+1)=1krNxrr1,2eAx1x2(kr),r1,2Δt1krNxrr1,3eAx1x3(kr),r1,3Δt1krNxrrd-1,deAxd-1xd(kr),rd-1,dΔtV. (36)

If Inline graphic are not commutable, we apply Strang splitting and array representation to obtain the second order AcIIF method:

Un+1-Δt2F(Un+1)=1krNxrr1,2eAx1x2(kr),r1,2Δt/21krNxrrd-1,deAxd-1xd(kr),rd-1,dΔt/21krNxrrd-1,deAxd-1xd(kr),rd-1,dΔt/21krNxrr1,2eAx1x2(kr),r1,2Δt/2V, (37)

where V = Un + Δt/2F(Un) and 1 ≤ krNxr, r = 1, 2, …, d.

2.5. A sufficient condition for operator commuting

As evident in Strang splitting, proper choice of the order of operators Eq. (29) will decrease the computational cost, which can be improved if commuting operators can be found. Now, we give a sufficient condition for commutable operators.

Proposition 1

All linear operators Inline graphic, 1 ≤ i < jd commute with each other if the system in Eq. (32) satisfies:

  1. the diffusion coefficients are constant,

  2. the boundary conditions are periodic along each direction.

PROOF

With a given basis, the linear operator Inline graphic for the central difference discretization are N1N2Nd × N1N2Nd matrices in the following form,

(m1m2mN-1mNmNm1m2mN-1mN-1mNm1mN-2m2m3mNm1) (38)

where N = N1N2Nd and mi, i = 1, 2, …, N are real. Let two matrices A = (ai)N×N and B = (bi)N×N both take the form of Eq. (38). One can show directly that

(AB)ij=k=1Nak-i+2bj-k+1=s=1Nbs-i+2aj-s+1=(BA)ij,i,j, (39)

because ai±N = ai, bj±N = bj for ∀i, j where s = j + ik − 1.

This shows that Strang splitting is unnecessary for constant diffusion coefficients in high spatial dimension and Algorithm 2 is applicable for such reaction-diffusion equations.

3. Stability analysis, higher-order methods, and computational costs

Next, we study the linear stability of second order AcIIF methods, derive a third method, and discuss the computational costs of the methods.

3.1. Stability analysis

Based on linear stability analyses in [7] and [8], we claim that the second order AcIIF methods, Eq. (36) and Eq. (37), are asymptotically stable for the case of F(U) = dU and Lxixju = −cu, where d < 0 and c > 0 correspond to stable reactions and elliptic operators. For such a linear case, one has

un+1=e-cΔt(un+dΔt2un)+dΔt2un+1. (40)

Assuming un = einθ, we obtain

eiθ=e-cΔt(1+12λ)+12λeiθ, (41)

where λ = dΔt has a real part λr and imaginary part λi, leading to

λr=2(1-e-2cΔt)(1-e-cΔt)2+2(1+cosθ)e-cΔt,λi=4(sinθ)ce-cΔt(1-e-cΔt)2+2(1+cosθ)e-cΔt, (42)

since c > 0 and λr > 0 for 0 ≤ θ ≤ 2π. Then, the second order AcIIF is A-stable since the stability region includes the complex plane for all λ with λr < 0.

If we apply AcIIF methods Eq. (36) and Eq. (37) to Fokker-Planck equations or chemical master equations, where in each the operator Inline graphic defines a Markov process,

dUdt=LxixjU, (43)

then we claim that AcIIF methods Eq. (36) and Eq. (37) are still A-stable.

In order to show the A-stability, we prove that, under certain norm, ||eInline graphicΔt|| ≤ 1 holds for any Δt > 0 for such Inline graphic. Then, each Inline graphic can be treated as elliptic operators and the remaining proof goes through Eq. (40) to Eq. (42). Since Eq. (43) defines a Markov process, the total probability of all states, ΣUt) = ΣeInline graphicΔtU(0), maintains a value of 1 for any time step, when U(0) is a proper probability distribution, i.e. U(0) > 0 for each compartment and ΣU(0) = 1. Using the maximum norm ||.||1 and defining the corresponding linear operator norm, we first prove that for any U with U > 0,

eLxixjΔtU1=|eLxixjΔt(UU)|U=U1. (44)

Then, for U = U+U where U+ is with all positive compartments of U,

eLxixjΔt=maxU0eLxixjΔtU1U1=maxU0eLxixjΔtU+-eLxixjΔtU-UmaxU0(eLxixjΔtU+1U+eLxixjΔtU-1U)=1. (45)

Next, we can replace each Inline graphic in the Fokker-Planck equation or the chemical master equation by a negative scalar and the proof of A-stability for Eq. (36) and Eq. (37) for these two cases is done.

3.2. High order AcIIF method

If discretization operators are commutable, higher order (in time) AcIIF methods can be derived from the IIF method in a similar manner. For example, the third order IIF scheme [7] has the form:

Un+1=eLΔtUn+Δt(512F(Un+1)+23eLΔtF(Un)-112e2LΔtF(Un-1)) (46)

where Inline graphic = Σi,j Inline graphic. If all Inline graphic, ∀i, j commute with each other, we then obtain

eLU=1i<jdeLxixjU. (47)

If all discretized operators Inline graphic commute with each other, applying the array representation leads to the third order AcIIF method:

Algorithm 4. (Third order AcIIF method)

Un+1-5Δt12F(Un+1)=(kr),r1,2eAx1x2Δt(kr),rd-1,deAxd-1xdΔtV1-(kr),r1,2e2Ax1,x2Δt(kr),rd-1,de2Axd-1xdΔtV2 (48)
V1=Un+2Δt3F(Un),V2=Δt12F(Un-1) (49)

where 1 ≤ krNr, r = 1, 2, …, d.

In the case that some Inline graphic are not commutable, the splitting techniques may be applied to this subset of operators to achieve high order accuracy. However, since the formulation becomes much more tedious and complicated, we omit them here.

Remarks on higher order derivatives

The array representation can also be extended for equations with operators that contain high order and cross derivatives, such as those in the following form

mxi1xi2xim. (50)

Similarly, the second order central difference approximation in the multi-dimensional array U representation results in the discretization linear operator Inline graphic of the following compact form,

Lxi1,xi2,,ximU=1krNr,ri1,i2,,imAxi1xi2ximUxi1,xi2,,xim(kr),ri1,i2,,im (51)

where Uxi1,xi2,,xim(kr),ri1,i2,,im is a m-dimensional array by fixing the index kr, ri1, i2, …, im of U and Inline graphic, resulting from the central difference approximation, represents a linear mapping from m-dimensional array linear space to itself.

3.3. Computational cost

For stiff reaction-diffusion equations, the size of the time step usually dictates the overall cost of the temporal updating method. For an A-stable method such as AcIIF and IIF, the cost mainly results from the formation of the exponential-matrix and the corresponding vector-matrix multiplication during each time step. In array representation, small matrices of size in Ni × Ni for the Laplacian operator or NiNj × NiNj when the second order cross derivatives are presented in contrast to IIF in which the exponential of a N1N2Nd × N1N2Nd matrix is required. The advantage of AcIIF becomes more prominent for three or higher dimensional systems.

For a d-spatial dimensional case (d ≥ 3) with second order cross derivatives, the computational cost for manipulating the exponential matrices in IIF is O((N1N2Nd)2), or O(N2d) for Ni = N, i = 1, 2, …, d, while the corresponding cost for AcIIF is

1i<jdO((NiNj)2)N1N2NdNiNj. (52)

For the case of non-constant coefficients in diffusion, it is O(d2Nd+2) when Ni = N, i = 1, 2, …, d. For example, a six-dimensional system requires calculating an exponential of matrix with an approximated size of 108 × 108 when N = 20, in contrast to the AcIIF method that only needs exponentials of matrices of a size of 400 × 400.

Because the exponential-matrices are small in AcIIF, one may pre-calculate the exponential matrices once and store them during the calculations. An alternative approach, which is particularly useful for matrices with sizes exceeding the memory size, is to compute the exponential-matrix vector multiplication without explicit formation of the matrices through, for example, the Krylov subspace method [13, 18, 19]. In the direct simulations shown in the next section, we implement Padé approximation, which has a computational cost of O(N2) (both in storage and time) to compute a matrix exponential of N × N matrix [20], for reaction-diffusion equations with or without cross-derivatives in three dimensions, and we use Krylov subspace method for the Fokker-Planck equations in three or four dimensions and chemical master equations.

3.4. Array representation for Chemical Master Equations

Chemical master equations (CME) is a system of first-order ordinary differential equations for stochastic description of the time evolution of a network of biochemical reactions [21]. The solution of the system yields the probability density vector at discrete states of the bio-chemical network in time. The system is typically stiff and it can have many components and states, presenting difficulties for numerical methods and simulations [22, 23]. As seen below, the array representation provides a convenient approach to decompose the large rate matrix into smaller matrices for efficient usage of integration factor methods that can best deal with stiffness in the system.

If a given chemical reaction system consists of of d molecular species, namely X1, X2, …, Xd, with maximal copy numbers of N1, N2, …, Nd, respectively, then the system has Ntot = N1N2Nd possible states, for which a vector x = (x1, x2, …, xd) denotes each state. The R – th reaction takes the form

Rr:w1rX1+w2rX2++wdrXdv1rX1+v2rX2++vdrXd, (53)

where vir and wir, for every i and r, are non-negative integers and the system contains R number of reactions. The reaction rate at state x is ar(x) = ar(x1, x2, …, xd) and the vector

αr=(v1r-w1r,v2r-w2r,,vdr-wdr) (54)

denotes the change of copy number of the molecular species after the r – th reaction occurs once.

In array representation, one can use an N1 × N2× Nd d-dimensional array U to denote the probability density function, and each component of U, Ux, as the probability density at state x, which can be written as

Ux(t)=Prob[X1=x1,X2=x2,,Xd=xd,attimet]. (55)

Define the linear mapping Inline graphic,

(LrU)x=ar(x-αr)Ux-αr(t)-ar(x)Ux. (56)

The CME for the probability density functions becomes

U.(t)=r=1RLrU(t). (57)

To introduce the array representation for Inline graphic, we let i1r,i2r,,imrr denote the indices of non-zero entries in αr. Using the same notation as in Eq. (51), UXi1r,Xi2r,,Ximrr(xj),ji1r,i2r,,imrr denotes a mr-dimensional array by fixing indexes xj, ji1r,i2r,,imrr. Then, one obtains

U=1xjNjji1r,,imrrUXi1r,Xi2r,,Ximrr(xj),ji1r,i2r,,imrr. (58)

Define the linear mapping AXi1r,Xi2r,,Ximrr(xj),,ji1r,i2r,,imrr on mr-dimensional array V as

(AXi1r,Xi2r,,Ximrr(xj),,ji1r,i2r,,imrrV)(xi),ii1r,i2r,,imrr=ar(x-αr)V(xi-αir),ii1r,i2r,,imrr-ar(x)V(xi),ii1r,i2r,,imrr. (59)

Then the array representation of Inline graphic becomes

LrU=1xjNjji1r,i2r,,imrrAXi1,Xi2,,Ximr(xj),ji1r,i2r,,imrrUXi1,,Ximr(xj),ji1r,i2r,,imrr. (60)

For typical systems, each Inline graphic, r = 1, 2, −, R cannot commute with one another, thus the Strang splitting method is applied to approximate the solution, resulting in a second order integration factor method (AcIIF2) for CME Eq. (57):

Un+1-r=1ReLrΔt/2r=R1eLrΔt/2Un, (61)

where Un denotes the probability density functions at time tn = nΔt.

The exponential of Inline graphic can be written in terms of the exponentials of AXi1,Xi2,,Ximr(xj),ji1r,i2r,,imrr. If the reaction Rr only affects copy numbers of a few species, implying mr is small, the calculation of the latter exponential is much more efficient than computing the original one. In other words, the array representation saves storage and CPU time for the system containing many molecular species while each reaction only affects the copy number of a small portion of species.

4. Numerical simulations

To explore various applications of the AcIIF methods (Eq. (36) and Eq. (37)), we apply the second order AcIIF methods to five different systems: three-dimensional reaction-diffusion equations with constant diffusion coefficients or spatially-dependent diffusion constants; three-and four-dimensional Fokker-Planck equations; and chemical master equations arising from a biological application.

4.1. Three-dimensional reaction-diffusion equation with constant diffusion coefficients

We first apply AcIIF method Eq. (36) to the following reaction-diffusion equation

ut=(0.1uxx-0.15uxy+0.1uyy)+(0.1uxx+0.2uxx+0.2uzz)+(0.2uyy+0.15uyz+0.1uzz)+0.8u, (62)

where x, y, z ∈ (0, 2π) with periodic boundary conditions. With the initial condition u(x, y, z, 0) = sin(x + y + z), the equation has the exact solution u(x, y, z, t) = e−0.2t sin(x + y + z).

Based on the result from Section 2.5, for this case, the corresponding linear operators Inline graphic, Inline graphic and Inline graphic can commute with each other. Thus, Eq. (36) is a second order scheme in both time and space. We first compare the second order array-representation compact IIF with the standard IIF, both in second order. Because both methods are A-stable, we choose Δt = 1/N = hx/2π where Nx = Ny = Nz = N and Δt = 1/N = hx/2π, and simulation results are evaluated at t = 1. As seen in Table 1, both methods clearly show second order accuracy with similar sizes of errors as N increases, as one may expect from the analysis of both methods. On the other hand, we observe the CPU time for both methods to achieve the same accuracy is much larger in IIF than in AcIIF, because the exponential matrices in IIF have much larger size than AcIIF. When N becomes 32, IIF fails to compute as the size for matrix exponential becomes exceedingly large, leading to a lack of sufficient memory in a Matlab implementation on typical personal computers (4GB). Even in a cluster where computing a 323 × 323 matrix exponential is possible, the CPU time needed will be about 2 hours, and computation of a 643 × 643 matrix exponential takes more than a day. On the other hand, AcIIF runs normally with good accuracy, showing clear advantages in handling larger grid numbers for convergence of solutions.

Table 1.

A comparison between the second order array-representation compact IIF method (AcIIF2 in Eq. (36)) and IIF2 method.

Error in L Accuracy order CPU time
N AcIIF2 IIF2 AcIIF2 IIF2 AcIIF2 IIF2
8 0.0672 0.0672 - - 0.05s 0.34s
16 0.0169 0.0169 1.99 1.99 0.15s 30.5s
32 0.0042 - 2.01 - 5.13s -
64 0.0011 - 1.93 - 246s -

The symbol “-” denotes insufficient memory in calculation of the exponential matrix.

4.2. Three-dimensional diffusion reaction system with non-constant diffusion coefficients

To test the case with non-commutable differential operators, we consider the following reaction-diffusion equations with non-constant coefficients:

ut=(0.5uxx-0.5sin(x+y)uxy+0.5uyy)+(0.5uxx-1/3cosyuxz+1/3uzz)+(1+cosx)(0.5uyy-0.5uyz+1/3uzz)+f(x,y,z,u), (63)

where x, y, z ∈ (0, 2π) with periodic boundary conditions. With the initial condition u(x, y, z, 0) = sin(x + y + z), the equation has the exact solution u(x, y, z, t) = e−0.2t sin(x + y + z). Similar to the previous case, we choose Nx = Ny = Nz = N, grid size hx = hy = hz = 2π/N, Δt = 1/N, and t = 1 as the temporal point for evaluating the method.

In this non-commutable case, we need to compute N number of array-representation operators for each of Inline graphic, Inline graphic and Inline graphic. For example, to compute eInline graphic, we need the following calculations

Ayzkx~(1+cos((kx-1)hx)((0.5(·)yy-0.5(·)yz+1/3(·)zz),eLyz=kxAyzkxUyzkx (64)

for kx = 1, 2, …, N. In the commutable case, we only compute and save three of the exponential matrices of size N2 × N2, in contrast to 3N of exponential matrices of the same size. As a result, the non-commutable case takes significantly more CPU time than the commutable case as seen in Table 1 and Table 2. However, compared to the standard IIF method, AcIIF is still significantly much faster.

Table 2.

A comparison between AcIIF2 method (Eq. (37)) and IIF2 for the case of non-constant diffusion coefficients.

Error in L Accuracy order CPU time
N AcIIF2 IIF2 AcIIF2 IIF2 AcIIF2 IIF2
8 0.2744 0.2754 - - 0.29s 1.35s
16 0.0675 0.0678 2.02 2.02 2.2s 155s
32 0.0169 - 2.00 - 133s -

The order of accuracy for both AcIIF2 and IIF2 remain second order, as seen in Table (2). However, the error for the non-commutable case is larger than the commutable case at the same spatial and temporal resolutions, which is likely due to the splitting error in time. Similar to the constant diffusion case, IIF2 fails to run due to the memory problem for relatively larger N.

4.3. Three- and four- dimensional Fokker-Planck equations

The Fokker-Planck equation (FPE) describes the time evolution of the probability density function of stochastic systems [1]. The generalized FPE usually takes the following form

p(x,t)t=-r=1R{iNnrixi(qr(x,t)-12j=1Nnrjqr(x,t)xj)}. (65)

Here, in the case of bio-chemical reactions, R denotes the total number of chemical reactions involved in the system, N denotes the total number of different species participating the reactions, xj denotes the copy number of j-th reactant, and nri denotes the change of copy number of reactant i when the r-th reaction occurs once. p(x, t) represents the probability density of the system at the state x = (x1, x2, …, xN)(xRN+) and time t. In addition, we define

qr(x,t)=wr(x,t)p(x,t), (66)

where wr(x, t) is the reaction propensity function for r-th reaction at state x. For example, for the following bio-chemical reactions,

Xk1[X]Y,X+Yk2[X][Y]Z,k3Z, (67)

we have n1 = (−1, 1, 0), n2 = (−1, −1, 1), n3 = (0, 0, 1) and

w1(x,y,z,t)=k1x,w2(x,y,z,t)=k2xy,w3(x,y,z,t)=k3z. (68)

In general, FPE is a N-dimensional convection-diffusion equations with non-constant diffusive coefficients and second order cross derivatives. Because the system may be stiff, implicit temporal methods, such as Crank-Nicolson method [24], which requires solving nonlinear systems of large size at each time step, are often needed. While directly apply IIF method, the calculation of the huge matrix exponential is unaffordable in the high dimensional case. AcIIF, which has the good stability like Crank-Nicolson, is a better choice in solving FPE than IIF method as it divides the entire discretization matrix into multiple small pieces by the array-representation technique.

To apply AcIIF to FPE, we first study a three-dimensional case in which there are two metabolites and one enzyme, which is also studied in [25]. The reactions are:

k1Ak2BA+Bk3Ak4Bk5k6EAEAk7 (69)

The corresponding propensity rates are given as

k1=kA[EA]1+[A]/KIk2=kBk3=k[A][B]k4=μ[A]k5=μ[B]k6=kEA1+[A]/KRk7=μ[EA] (70)

where kA = 0.3s−1, kB = 2s−1, KI = 30, k = 0.001s−1, μ = 0.004s−1, KR = 30 and kEA= 1s−1 [25].

The computational domain for this system is chosen to be Ωh = [0, 100] × [0, 100] × [0, 45], which is large enough such that the probability of [A] > 100, [B] > 100, [EA] > 45 is sufficiently small, implying that the domain covers nearly all the possible states of the chemical reactions. After discretizing the FPE using second order central differences, we represent the density function by a three-dimensional array U(t) to represent the density function. Each component Ui1,i2,i3 (t) denotes the probability density for system at time t and state [A] = i1, [B] = i2, [EA] = i3. There are seven reactions, thus, in FPE Eq. (65), corresponding to R = 7. For r–th reaction, the corresponding discretized operator, denoted by Inline graphic, becomes

Lr=iNnrixi(qr(x,t)+12j=1Nnrjqr(x,t)xj). (71)

Because Inline graphic contains no cross derivatives for r ≠ 3, we can use the array representation presented in Section 2.1. On the other hand, Inline graphic contains a cross derivative 2/[A] [B], we use the array representation presented in Section 2.3. By direct application of AcIIF (Eq (37) based on splitting technique), we obtain an overall second order method. In particular, some of the reactions can be grouped into one matrix to reduce the number of splittings and number of calculations of exponential matrices, such as Inline graphic and Inline graphic, which both have 2/[A]2 and /[A] in Eq. (71).

To study the performance of AcIIF2, we also implement the second order Runge Kutta (RK2) method for a comparison. The error of solution in the maximal norm is based on a simulation result from the finest “spatial” grid (NA = NB = 200, NEA = 120) and finest time step (Δt = 5 × 10−3). The initial condition for each simulation is a Gaussian distribution centered at point (30, 40, 20) with standard derivation 30.

First, we observe in Table 3 that a much smaller Δt is required for RK2 to converge compared to AcIIF2 due to the fact that the reactions are stiff, requiring small Δt, for non A-stable methods such as RK2. Interestingly, AcIIF2 can reach the same overall error level as RK2 using a much larger time step for the same-sized “spatial” mesh, indicating that the numerical error for solving this FPE is likely dominated by spatial discretization. Thus, a large time step is sufficient for A-stable methods, such as IIF, while small time steps are still required for RK2 due to its stability constraints. In each time step RK2 is more efficient than AcIIF2; however, AcIIF2, which requires fewer time steps for a given t, still outperforms RK2 significantly in this case. We also plot the numerical results in Figure 1, where a grid with NA = NB = 60 and NEA = 30 and time step Δt = 1s are used.

Table 3.

A comparison between the second order AcIIF and Runge-Kutta (RK2) for the three-dimensional FPE (69) at t = 30.

AcIIF2/RK2
Grids (NA, NB, NEA) Δt Error in L CPU time RK2 unstable when
(25,25,15) 5/0.2 2.6 × 10−4/2.6 × 10−4 17.6s/71.2s Δt ≥ 0.3
(40,40,24) 5/0.15 1.3 × 10−4/1.4 × 10−4 35.3s/182.5s Δt ≥ 0.2
(50,50,30) 5/0.1 8.6 × 10−5/9.1 × 10−5 65.5s/470.2s Δt ≥ 0.15

Figure 1.

Figure 1

Numerical solution of system (69) using AcIIF2. Temporal discretization is set by the time step Δt = 1s, and the simulation is ran up to time t = 50s. (a) Shows the initial distribution of molecular species A and B, which are Gaussian distributions centered at (A, B) = (30, 40). (b) The distribution of molecular species A and B at t = 50s. (c) The contour plot of initial and final distributions. The dotted black line connects the centers of the solutions of the rate equations of system (69).

Next, we add another enzyme EB that synthesizes metabolite B in the same way that EA synthesizes A in the three-dimensional system Eq. (69). This extension leads to a four-dimensional FPE of four molecular species [A], [B], [EA] and [EB] [25],

kA·eA1+a/KIAkB·eB1+b/KIBA+Bk2·a.bAμ·aBμ·bkEA1+a/KREAEAμ·eAkEB1+b.KREBEBμ·eB (72)

where kA = kB = 0.3s−1, k2 = 0.001s−1, KI = 60, μ = 0.002s−1, kEA= kEB = 0.02s−1 and KR = 30.

The computational domain is chosen to be [0, 80] × [0, 80] × [0, 30] × [0, 30] that contains nearly all possible states of the system. We choose zero Dirichlet boundary conditions with the initial condition as a Gaussian distribution centering at (30, 40, 15, 12) with a standard deviation 40. There are nine reactions in the system, corresponding to nine array-representation operators. Based on commutability of the operators, we group some of them similar to the three dimensional case to increase the overall computational efficiency. One interesting observation is that that as the fourth dimension grid number NEB increases, the CPU time for increases only linearly, as seen in Table 4. For this set of simulations, we fix the other three grid numbers: NA = NB = NEA = 10, and keep doubling NEB from 4 to 32. IIF method computes the entire matrix exponential, thus its CPU time will increase by a fourth folder. While AcIIF only compute small matrix exponential, its CPU time will linearly depends on NEB. Finally, we plot the numerical results for NA = NB = 40, NEA = NEB= 20 and time step Δt = 1.

Table 4.

The CPU time for different grid numbers of the fourth dimension of the FPE.

NEA 4 8 16 32
CPU time(s) 5.6 8.3 14.5 32.6

4.4. An application to Chemical Master Equations

The Chemical Master Equation (CME) describes the time evolution of the probability density function. In CME, each reaction on the probability density evolution may be considered as diffusion-like operators with cross derivatives. Thus, AcIIF can be applied to solve such equations. We consider a family of proteins X with different conformational types X1, X2, …, Xd. Two conformational types Xi and Xi+1 can conform to each other through an enzyme E. Suppose that during reactions, no new protein is created; the enzyme is abundant so that one can treat the quantity of the enzyme as a constant; and intermediate products are extremely unstable. As a result, the entire system consists of the following bio-chemical reactions:

X1k1+X2k2+X3kd-1+XdX1k1-X2k2-X3kd-1-Xd (73)

for which the total copy number of the protein X is a constant,

X1+X2++Xd=N (74)

For simplicity, x = (x1, x2, …, xd) denotes each state where 0 ≤ xiN, i = 1, 2, …, d (although some of the states cannot be reached). In particular, the reaction

Xiki+Xi+1 (75)

defines a linear mapping on probability density function in CMEs, with the following array representation,

AXi,Xi+1(xj),ji,i+1Mm,n=-k1+mMm,n+k1+(m+1)Mm+1,n-1 (76)

where M is a 2-dimensional array. Other reactions can be treated in a similar way.

For a protein family with d conformational types and N total number of copies, the direct calculation of exponential of the linear mapping requires the exponentiation of a Nd × Nd matrix. However, in the array representation, only N2 × N2 matrices’ exponentials are required to be calculated. More saving in both storage and CPU time result in using the array representation when the number of species d gets larger.

To demonstrate this through direct simulations, we implement a second order array-representation integration factor method as well as the second order Runge-Kutta (a standard temporal integrator for CMEs) for the case of N = 30 and d = 3. The initial distribution of the molecules is set to be P(X1 = 30) = 1, that is, initially all molecules take the conformational type X1. We choose rate coefficients k1+=k2-=1,k1-=2,k2+=3 and we compute the solution up to t = 3 using different Δt. The maximal error of the solution is estimated based on an “exact” solution computed using a very small time step by RK2.

First, the second order accuracy of AcIIF2 method is clearly observed in Table 5. As expected, RK2 requires a very small time step due to its stability constraint in contrast to AcIIF’s stable and good accuracy, even at a time step as large as Δt = 1/4. As Δt decreases significantly (e.g. Δt ≤ 1/128), RK2 becomes stable and converges as seen in Table 5. At the same size of time step, we observe AcIIF2 and RK2 has similar size of errors. Of course, using the same size of time step, RK2 takes less CPU time and storage than AIF2, with both achieving similar accuracy. However, if moderately high accuracy (e.g. 10−4 for this particular system) is sufficient, AIF2 shows its advantage. In particular, as the number of species increases or the rate constants become more stiff, a combination of the array representation and the integration factor method becomes even more attractive in achieving both efficiency and accuracy.

Table 5.

A comparison between the second order array-representation compact integration factor method (AcIIF2) and Runge-Kutta (RK2) methods for simulating CMEs.

AcIIF2 RK2
Δt error order of acc error order of acc
1/4 7.95 × 10−4 - unstable
1/8 1.96 × 10−4 2.02 unstable
1/16 4.89 × 10−5 2.00 unstable
1/32 1.22 × 10−5 2.00 unstable
1/64 3.06 × 10−6 2.00 unstable
1/128 7.64 × 10−7 2.00 3.74 × 10−7 -
1/256 1.91 × 10−7 2.00 9.30 × 10−7 2.01

5. Discussions and Conclusions

Higher order spatial derivatives and reactions of drastically different time scales demand temporal schemes of the generous stability constraint. Implicit integration factor methods, which solve exactly the linear operator of higher order spatial derivatives along with an implicit treatment of the stiff reactions, are effective approaches for such types of different equations. One unique computational challenge associated with such methods is the handling of exponentials of matrices. Here, we have introduced a new array representation for the discretization matrices of the linear differential operators. Because of such representation, computing exponentials of large matrices is reduced to the calculation of exponentials of matrices of significantly smaller sizes. The saving and advantages for array representations in both storage and CPU time escalate as the dimension of the system increases. In addition, this approach can be directly combined with the implicit integration method for an overall efficient method (termed as AcIIF) of excellent temporal stability.

Due to its advantage for high dimensions and stiff reactions, such an approach is particularly appropriate for solving reaction-diffusion equations and other diffusion-like equations, such as Fokker-Planck equations. Our direct implementation and testing of the second order AcIIF, which is linearly absolute stable, has demonstrated its advantages compared to some existing approaches. Interestingly, such array representation can also be applied to chemical master equations, ODE systems of large size that often is stiff. The computational efficiency for such applications become most evident for biochemical networks of a large number of species with each reaction in the system affecting only few species.

Although the array representation has been presented only in the context of compact implicit integration factor methods, the approach can easily be applied to other integration factor or exponential difference methods. Other type of equations of higher order derivatives, (e.g. Cahn-Hilliard equations [26] of fourth order derivatives) in addition to reaction-diffusion equations and Fokker-Planck equations may also be handled using the array representation for better efficiency. To better deal with high spatial dimensions, one can incorporate the sparse grid [27] into the array-representation technique. The flexibility of such representation allows either direct calculation of the exponentials of matrices or using Krylov subspace for computing their exponential matrix-vector multiplications for saving in storages. Overall, the array representation along with integration factor methods provides an efficient approach for solving a wide range of problems arising from biological and physical applications.

Figure 2.

Figure 2

Numerical solution of system (72) using AcIIF2. Temporal discretization is set by the time step Δt = 1s, and the simulation is ran up to time t = 35s. (a) The distribution of molecular species A and B at t = 35s. (b) The contour plot of initial and final distributions of molecular species A and B. The dotted black line connects the centers of the solutions of the rate equations of system (72). (c) The distribution of molecular species EA and EB at t = 35s. (d) The contour plot of initial and final distributions of molecular species EA and EB. The dotted black line connects the centers of the solutions of the rate equations of system (72).

Acknowledgments

We would like to thank Jie Liang, Xinfeng Liu, Yongtao Zhang, and Hsiao-Mei Lu for many stimulating discussions. This work was supported by NSF grant DMS1161621 and NIH grants R01GM67247 and P50GM76516.

Footnotes

Publisher's Disclaimer: This is a PDF file of an unedited manuscript that has been accepted for publication. As a service to our customers we are providing this early version of the manuscript. The manuscript will undergo copyediting, typesetting, and review of the resulting proof before it is published in its final citable form. Please note that during the production process errors may be discovered which could affect the content, and all legal disclaimers that apply to the journal pertain.

References

  • 1.Risken H. The Fokker-Planck Equation: Methods of Solutions and Applications. Springer; 1996. [Google Scholar]
  • 2.Kassam A, Lloyd, Trefethen N. Fourth-order time stepping for stiff PDEs. SIAM J Sci Comput. 2005;26:1214–1233. [Google Scholar]
  • 3.Kleefeld B, Khaliq A, Wade B. An ETD Crank-Nicolson method for reaction-diffusion systems. Numer Methods Partial Differential Eq. 2012;28:1309–1335. [Google Scholar]
  • 4.Cox S, Matthews P. Exponential time differencing for stiff systems. J Comput Phys. 2002;176:430– 455. [Google Scholar]
  • 5.Du Q, Zhu W. Stability analysis and application of the exponential time differencing schemes. J Comput Math. 2004;22 [Google Scholar]
  • 6.Krogstad S. Generalized integrating factor methods for stiff PDEs. J Comput Phy. 2005;203:72–88. [Google Scholar]
  • 7.Nie Q, Zhang YT, Zhao R. Efficient semi-implicit schemes for stiff systems. J Comput Phys. 2006;214:521– 537. [Google Scholar]
  • 8.Nie Q, Wan F, Zhang YT, Liu X. Compact integration factor methods in high spatial dimensions. J Comput Phys. 2008;227:5238–5255. doi: 10.1016/j.jcp.2008.01.050. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Liu X, Nie Q. Compact integration factor methods for complex domains and adaptive mesh refinement. J Comput Phys. 2010;229:5692–5706. doi: 10.1016/j.jcp.2010.04.003. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Liu XD, Osher S, Chan T. Weighted essentially nonoscillatory schemes. J Comput Phys. 1994;115:200–212. [Google Scholar]
  • 11.Jiang GS, Shu CW. Efficient implementation of weighted ENO schemes. J Comput Phys. 1996;126:202–228. [Google Scholar]
  • 12.Zhao S, Ovadia J, Liu X, Zhang YT, Nie Q. Operator splitting implicit integration factor methods for stiff reaction-diffusion-advection systems. J Comput Phys. 2011;230:5996–6009. doi: 10.1016/j.jcp.2011.04.009. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Chen S, Zhang YT. Krylov implicit integration factor methods for spatial discretization on high dimensional unstructured meshes: Application to discontinuous Galerkin method. J Comput Phys. 2011;230:4336–4352. [Google Scholar]
  • 14.Gallopoulos E, Saad Y. Efficient solution of parabolic equations by Krylov approximation methods. SIAM J Sci Stat Comp. 1992;13:1236–1264. [Google Scholar]
  • 15.Hou T, Lowengrub J, Shelley M. Removing the stiffness from interfacial flows with surface tension. J Comput Phys. 1994;114:312. [Google Scholar]
  • 16.Beylkin G, Keiser J, Vozovoi L. A new class of tie discretization schemes for the solution of nonlinear PDEs. J Comput Phys. 1998;147:362–387. [Google Scholar]
  • 17.Strang G. On the construction and comparison of difference schemes. SIAM J Numer Anal. 1968;5:506–517. [Google Scholar]
  • 18.Hochbruck M, Lubich C. On Krylov subspace approximations to the matrix exponential operator. SIAM J Numer Anal. 1997;34:1911–1925. [Google Scholar]
  • 19.Saad Y. Analysis of some Krylov subspace approximations to the matrix exponential operator. SIAM J Numer Anal. 1992;29:209–228. [Google Scholar]
  • 20.Moler C, Loan C. Nineteen dubious ways to compute the exponential of a matrix, twenty-five years later. SIAM Review. 2003;45:3–49. [Google Scholar]
  • 21.Gillespie D. A rigorous derivation of the chemical master equation. Physica A. 1992;188:404–425. [Google Scholar]
  • 22.Jahnke T, Huisinga W. Solving the chemical master equation for monomolecular reaction systems analytically. J Math Biol. 2007;54:1–26. doi: 10.1007/s00285-006-0034-x. [DOI] [PubMed] [Google Scholar]
  • 23.WV etc. Solving the chemical master equation using sliding windows. BMC Systems Biology. 2010;4 doi: 10.1186/1752-0509-4-42. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Ferm L, Lotstedt P, Sjoberg P. Technical Report. 2004. Conservative solution of the fokker-planck equation for stochastic chemical equation. [Google Scholar]
  • 25.Sjoberg P, Lotstedt P, Elf J. Fokker-planck approximation of the master equation in molecular biology. Comput Visual Sci. 2009;12:37–50. [Google Scholar]
  • 26.Cahn J, Hilliard JE. Free energy of a nonuniform system. I. Interfacial free energy. J Chem Phys. 1958;28:258–351. [Google Scholar]
  • 27.Shen J, Yu H. Efficient spectral sparse grid methods and applications to high-dimensional elliptic problems. SIAM J Sci Comput. 2010;32:3228–3250. [Google Scholar]

RESOURCES