Abstract

An explicit numerical method to solve a fractional cable equation which involves two temporal Riemann-Liouville derivatives is studied. The numerical difference scheme is obtained by approximating the first-order derivative by a forward difference formula, the Riemann-Liouville derivatives by the GrΓΌnwald-Letnikov formula, and the spatial derivative by a three-point centered formula. The accuracy, stability, and convergence of the method are considered. The stability analysis is carried out by means of a kind of von Neumann method adapted to fractional equations. The convergence analysis is accomplished with a similar procedure. The von-Neumann stability analysis predicted very accurately the conditions under which the present explicit method is stable. This was thoroughly checked by means of extensive numerical integrations.

1. Introduction

Fractional calculus is a key tool for solving some relevant scientific problems in physics, engineering, biology, chemistry, hydrology, and so on [1–6]. A field of research in which the fractional formalism has been particularly useful is that related to anomalous diffusion processes [1, 7–13]. This kind of process is singularly abundant and important in biological media [14–16]. In this context, the electrodiffusion of ions in neurons is an anomalous diffusion problem to which the fractional calculus has recently been applied. The precise origin of the anomalous character of this diffusion process is not clear (see [17] and references therein), but in any case the consideration of anomalous diffusion in the modeling of electrodiffusion of ions in neurons seems pertinent. This problem has been addressed recently by Langlands et al. [17, 18]. An equation that plays a key role in their analysis is the following fractional cable (or telegrapher's or Cattaneo) equation (model II):πœ•π‘’=πœ•πœ•π‘‘1βˆ’π›Ύ1πœ•π‘‘1βˆ’π›Ύ1ξ‚΅πΎπœ•2π‘’πœ•π‘₯2ξ‚Άβˆ’πœ‡2πœ•1βˆ’π›Ύ2π‘’πœ•π‘‘1βˆ’π›Ύ2,(1.1) whereπœ•π›Ύπœ•π‘‘π›Ύ1𝑓(𝑑)≑𝑑Γ(π‘›βˆ’π›Ύ)π‘›π‘‘πœπ‘›ξ€œπ‘‘0π‘‘πœπ‘“(𝜏)(π‘‘βˆ’πœ)1+π›Ύβˆ’π‘›,(1.2) with π‘›βˆ’1<𝛾<𝑛 and 𝑛=integer, is the Riemann-Liouville fractional derivative. Here 𝑒 is the difference between the membrane potential and the resting membrane potential, 𝛾1 is the exponent characterizing the anomalous flux of ions along the nerve cell, and 𝛾2 is the exponent characterizing the anomalous flux across the membrane [17, 18]. Some earlier fractional cable equations were discussed in [19, 20].

A variety of analytical and numerical methods to solve many classes of fractional equations have been proposed and studied over the last few years [10, 21–30]. Of the numerical methods, finite difference methods have been particularly fruitful [31–38]. These methods can be broadly classified as explicit or implicit [39]. An implicit method for dealing with (1.1) has recently been considered by Liu et al. [38]. Although implicit methods are more cumbersome than explicit methods, they usually remain stable over a larger range of parameters, especially for large timesteps, which makes them particularly suitable for fractional diffusion problems. Nevertheless, explicit methods have some features that make them widely appreciated [32, 39]: flexibility, simplicity, small computational demand, and easy generalization to spatial dimensions higher than one. Unfortunately, they can become unstable in some cases, so that it is of great importance to determine the conditions under which these methods are stable. In this paper we will discuss an explicit finite difference scheme for solving the fractional cable equation, which is close to the methods studied in [32, 33]. We shall address two main questions: (i) whether this kind of method can cope with fractional equations involving different fractional derivatives, such as the fractional cable equation; (ii) whether the von Neumann stability analysis put forward in [32, 34] is suitable for this kind of equation.

2. The Numerical Method

Henceforth, we will use the notation π‘₯𝑗=𝑗Δπ‘₯, π‘‘π‘š=π‘šΞ”π‘‘, and 𝑒(π‘₯𝑗,π‘‘π‘š)=𝑒𝑗(π‘š)β‰ƒπ‘ˆπ‘—(π‘š), where π‘ˆπ‘—(π‘š) is the numerical estimate of the exact solution 𝑒(π‘₯,𝑑) at π‘₯=π‘₯𝑗 and 𝑑=π‘‘π‘š.

In order to get the numerical difference algorithm, we discretize the continuous differential and integro-differential operators as follows. For the discretization of the fractional Riemann-Liouville derivative we use the GrΓΌnwald-Letnikov formula𝑑1βˆ’π›Ύπ‘‘π‘‘1βˆ’π›Ύπ‘’(π‘₯,𝑑)=Δ𝑑1βˆ’π›Ύπ‘’ξ€·π‘₯,π‘‘π‘šξ€Έ+𝑂(Δ𝑑)(2.1) withΞ”π›Όπ‘‘π‘“ξ€·π‘‘π‘šξ€Έ=1(Δ𝑑)π›Όπ‘šξ“π‘˜=0πœ”π‘˜(𝛼)π‘“ξ€·π‘‘π‘šβˆ’π‘˜ξ€Έ,πœ”(2.2)π‘˜(𝛼)=ξ‚€1βˆ’1+π›Όπ‘˜ξ‚πœ”(𝛼)π‘˜βˆ’1,(2.3) and πœ”0(𝛼)=1. These coefficients come from the generating function [40] (1βˆ’π‘§)𝛼=βˆžξ“π‘˜=0πœ”π‘˜(𝛼)π‘§π‘˜.(2.4) To discretize the integer derivatives we use standard formulas: for the second-order spatial derivative we employ the three-point centered formulaπœ•2πœ•π‘₯2𝑒π‘₯𝑗,π‘‘π‘šξ€Έ=Ξ”2π‘₯𝑒𝑗(π‘š)+𝑂(Ξ”π‘₯)2(2.5) withΞ”2π‘₯𝑒𝑗(π‘š)=𝑒π‘₯𝑗+1,π‘‘π‘šξ€Έξ€·π‘₯βˆ’2𝑒𝑗,π‘‘π‘šξ€Έξ€·π‘₯+π‘’π‘—βˆ’1,π‘‘π‘šξ€Έ(Ξ”π‘₯)2,(2.6) and for the first-order time derivative we use the forward derivativeπœ•π‘’ξ€·π‘₯πœ•π‘‘π‘—,π‘‘π‘šξ€Έ=π›Ώπ‘‘π‘’π‘—π‘š+1+𝑂(Δ𝑑),(2.7) whereπ›Ώπ‘‘π‘’π‘—π‘š+1=𝑒π‘₯𝑗,π‘‘π‘š+1ξ€Έξ€·π‘₯βˆ’π‘’π‘—,π‘‘π‘šξ€Έ.Δ𝑑(2.8) Inserting (2.1), (2.5), and (2.7) into (1.1), one gets𝛿𝑑𝑒𝑗(π‘š+1)βˆ’πΎΞ”1βˆ’π›Ύ1𝑑Δ2π‘₯𝑒𝑗(π‘š)+πœ‡2Ξ”1βˆ’π›Ύ2𝑑𝑒𝑗(π‘š)=𝑇(π‘₯,𝑑),(2.9) where, as can easily be proved, the truncating error 𝑇(π‘₯,𝑑) is𝑇(π‘₯,𝑑)=𝑂(Δ𝑑)+𝑂(Ξ”π‘₯)2.(2.10) Neglecting the truncating error we get the finite difference scheme we are seeking:π›Ώπ‘‘π‘ˆπ‘—(π‘š+1)βˆ’πΎΞ”1βˆ’π›Ύ1𝑑Δ2π‘₯π‘ˆπ‘—(π‘š)+πœ‡2Ξ”1βˆ’π›Ύ2π‘‘π‘ˆπ‘—(π‘š)=0,(2.11) that is,π‘ˆπ‘—(π‘š+1)=π‘ˆπ‘—(π‘š)+π‘†π‘šξ“π‘˜=0πœ”1βˆ’π›Ύ1π‘˜ξ‚€π‘ˆ(π‘šβˆ’π‘˜)𝑗+1βˆ’2π‘ˆπ‘—(π‘šβˆ’π‘˜)+π‘ˆ(π‘šβˆ’π‘˜)π‘—βˆ’1ξ‚βˆ’πœ‡2(Δ𝑑)𝛾2π‘šξ“π‘˜=0πœ”1βˆ’π›Ύ2π‘˜π‘ˆπ‘—(π‘šβˆ’π‘˜),(2.12) where 𝑆=𝐾(Δ𝑑)𝛾1(Ξ”π‘₯)2.(2.13)

To test this algorithm, we solved (1.1) in the interval βˆ’πΏ/2≀π‘₯≀𝐿/2, with absorbing boundary conditions, 𝑒(π‘₯=βˆ’πΏ/2,𝑑)=𝑒(π‘₯=𝐿/2,𝑑)=0, and initial condition given by a Dirac's delta function centered at π‘₯=0: 𝑒(π‘₯,0)=𝛿(π‘₯). The exact solution of this problem for πΏβ†’βˆž is [17]1𝑒(π‘₯,𝑑)=√4𝑑𝛾1πœ‹βˆžξ“π‘˜=0ξ€·βˆ’πœ‡2𝑑𝛾2ξ€Έπ‘˜π»π‘˜!2,01,2⎑⎒⎒⎒⎣π‘₯24𝑑𝛾1||||||𝛾1βˆ’12+𝛾2π‘˜,𝛾11(0,1),2ξ‚βŽ€βŽ₯βŽ₯βŽ₯⎦+π‘˜,1,(2.14) where 𝐻 denotes the Fox 𝐻 function [10, 41]. In our numerical procedure, the exact initial condition 𝑒(π‘₯,0)=𝛿(π‘₯) is approximated by𝑒π‘₯𝑗=⎧βŽͺ⎨βŽͺ⎩1,0Ξ”π‘₯,𝑗=0,0,𝑗≠0.(2.15) The explicit difference scheme (2.12) is tested by comparing the analytical solution with the numerical solution for several cases of the problem described following (2.13) with different values of 𝛾1 and 𝛾2. We have computed the analytical solution by means of (2.14) truncating the series at π‘˜=20. The corresponding Fox 𝐻 function was evaluated by means of the series expansion described in [10, 41] truncating the infinite series after the first 50 terms. In Figures 1 and 2 we show the analytical and numerical solution for two values of 𝛾1 and 𝛾2 at π‘₯=0 and π‘₯=0.5. The differences between the exact and the numerical solution are shown in Figures 3 and 4. One sees that, except for very short times, the agreement is quite good. The large value of the error for small times is due in part to the approximation of the Dirac's delta function at π‘₯=0 by (2.15). This is clearly appreciated when noticing the quite different scales of Figures 3 and 4: the error is much smaller for π‘₯=0.5 than for π‘₯=0. For the cases with 𝛾1=1/2 we used a smaller value of Δ𝑑 and, simultaneously, a larger value of Ξ”π‘₯ than for the cases with 𝛾1=1 in order to keep the numerical scheme stable. This issue will be discussed in Section 3.

3. Stability

As usual for explicit methods, the present explicit difference scheme (2.12) is not unconditionally stable, that is, for any given set of values of 𝛾1, 𝛾2, πœ‡, and 𝐾 there are choices of Ξ”π‘₯ and Δ𝑑 for which the method is unstable. Therefore, it is important to determine the conditions under which the method is stable. To this end, here we shall employ the fractional von Neumann stability analysis (or Fourier analysis) put forward in [32] (see also [33–35]). The question we address is to what extent this procedure is valid for fractional diffusion equations that involve fractional derivatives of different order.

Proceeding as [32], we start by recognizing that the solution of our problem can be written as the linear combination of subdiffusive modes, 𝑒𝑗(π‘š)=βˆ‘π‘žπœπ‘ž(π‘š)π‘’π‘–π‘žπ‘—Ξ”π‘₯, where the sum is over all the wave numbers π‘ž supported by the lattice. Therefore, following the von Neumann ideas, we reduce the problem of analyzing the stability of the solution to the problem of analyzing the stability of a single generic subdiffusion mode, 𝜁(π‘š)π‘’π‘–π‘žπ‘—Ξ”π‘₯. Inserting this expression into (2.12) one gets𝜁(π‘š+1)=𝜁(π‘š)+π‘†π‘šξ“π‘˜=0πœ”(1βˆ’π›Ύ1)π‘˜ξ€·π‘’π‘–π‘žΞ”π‘₯βˆ’2+π‘’βˆ’π‘–π‘žΞ”π‘₯ξ€Έπœ(π‘šβˆ’π‘˜)βˆ’πœ‡2(Δ𝑑)𝛾2π‘šξ“π‘˜=0πœ”(1βˆ’π›Ύ2)π‘˜πœ(π‘šβˆ’π‘˜).(3.1) The stability of the mode is determined by the behavior of 𝜁(π‘š). Writing𝜁(π‘š+1)=πœ‰πœ(π‘š)(3.2) and assuming that the amplification factor πœ‰ of the subdiffusive mode is independent of time, we getπœ‰=1+π‘†π‘šξ“π‘˜=0πœ”(1βˆ’π›Ύ1)π‘˜ξ€·π‘’π‘–π‘žΞ”π‘₯βˆ’2+π‘’βˆ’π‘–π‘žΞ”π‘₯ξ€Έπœ‰βˆ’π‘˜βˆ’πœ‡2(Δ𝑑)𝛾2π‘šξ“π‘˜=0πœ”(1βˆ’π›Ύ2)π‘˜πœ‰βˆ’π‘˜.(3.3) If |πœ‰|>1 for some π‘ž, the temporal factor of the solution grows to infinity [c.f., (3.2)], and the mode is unstable. Considering the extreme value πœ‰=βˆ’1, one gets from (3.3) that the numerical method is stable if this inequality holds:π‘†β‰€π‘†π‘šΓ—=βˆ’2+πœ‡2(Δ𝑑)𝛾2βˆ‘π‘šπ‘˜=0πœ”(1βˆ’π›Ύ2)π‘˜(βˆ’1)π‘˜βˆ‘βˆ’4π‘šπ‘˜=0πœ”(1βˆ’π›Ύ1)π‘˜(βˆ’1)π‘˜,(3.4) where 𝑆=𝑆sin2ξ‚΅π‘žΞ”π‘₯2ξ‚Ά.(3.5) If one defines 𝑆×=limπ‘šβ†’βˆžπ‘†π‘šΓ—, one gets𝑆≀𝑆×=βˆ’2+πœ‡2(Δ𝑑)𝛾2βˆ‘βˆžπ‘˜=0πœ”(1βˆ’π›Ύ2)π‘˜(βˆ’1)π‘˜βˆ‘βˆ’4βˆžπ‘˜=0πœ”1βˆ’π›Ύ1π‘˜(βˆ’1)π‘˜.(3.6) But from (2.4) with 𝑧=βˆ’1 one sees that βˆ‘βˆžπ‘˜=1(βˆ’1)π‘˜πœ”π‘˜(1βˆ’π›Ύ)=21βˆ’π›Ύ, so that𝑆×=2𝛾2βˆ’πœ‡2(Δ𝑑)𝛾222+𝛾2βˆ’π›Ύ1.(3.7) Therefore, because 𝑆≀𝑆, we find that a sufficient condition for the present method to be stable is that 𝑆≀𝑆×. In Figures 5 and 6 we show two representative examples of the problem considered in Figure 2 but for two values of 𝑆, respectively, larger and smaller than the stability bound provided by (3.7). One sees that the value of 𝑆 that one chooses is crucial: when 𝑆 is smaller than 𝑆× one is inside the stable region and gets a sensible numerical solution (Figure 5); otherwise one gets an evidently unstable and nonsensical solution (Figure 6).

4. Numerical Check of the Stability Analysis

In this section we describe a comprehensive check of the validity of our stability analysis by using many different values of the parameters 𝛾1, 𝛾2, Δ𝑑, and Ξ”π‘₯ and testing whether the stability of the numerical method is as predicted by (3.7). Without loss of generality, we assume πœ‡=𝐾=1 in all cases. We proceed in the following way. First, we choose a set of values of 𝛾1, 𝛾2, Ξ”π‘₯, and 𝑆 and integrate the corresponding fractional cable equation. If||π‘ˆπ‘—π‘šβˆ’1βˆ’π‘ˆπ‘šπ‘—||>πœ†(4.1) for πœ†=10 within the first 1000 integrations, then we say the method is unstable; otherwise, we label the method as stable. We generated Figure 7 by starting the integration for values of 𝑆 well below the theoretical stability limit given by (3.7) and kept increasing its value by 0.001 until condition (4.1) was first reached. The last value for which the method was stable is recorded and plotted in Figure 7. The limit value πœ†=10 is arbitrary, but choosing any other reasonable value does not significantly change these plots.

5. Convergence Analysis

In this section we show that the present numerical method is convergent, that is, that the numerical solution converges towards the exact solution when the size of the spatiotemporal discretization goes to zero. Let us define 𝑒𝑗(π‘˜) as the difference between the exact and numerical solutions at the point (π‘₯𝑗,π‘‘π‘š): 𝑒𝑗(π‘˜)=𝑒𝑗(π‘˜)βˆ’π‘ˆπ‘—(π‘˜). Taking into account (2.9) and (2.11), one gets the equation that describes how this difference evolves:𝑒𝑗(π‘š+1)βˆ’π‘’π‘—(π‘š)βˆ’π‘†π‘šξ“π‘˜=0πœ”(1βˆ’π›Ύ1)π‘˜ξ‚€π‘’(π‘šβˆ’π‘˜)𝑗+1βˆ’2𝑒𝑗(π‘šβˆ’π‘˜)+𝑒(π‘šβˆ’π‘˜)π‘—βˆ’1+πœ‡2(Δ𝑑)𝛾2π‘šξ“π‘˜=0πœ”(1βˆ’π›Ύ2)π‘˜π‘’π‘—(π‘šβˆ’π‘˜)ξ€·π‘₯=𝑇𝑗,π‘‘π‘˜ξ€Έβ‰‘π‘‡π‘—(π‘š).(5.1) As we did in the previous section for π‘ˆπ‘—(π‘˜), we write 𝑒𝑗(π‘˜) and 𝑇𝑗(π‘š) as a combination of (sub) diffusion modes, 𝑒𝑗(π‘˜)=βˆ‘π‘žπœπ‘ž(π‘˜)π‘’π‘–π‘žπ‘—Ξ”π‘₯ and 𝑇𝑗(π‘š)=βˆ‘π‘žπœ’π‘ž(π‘š)π‘’π‘–π‘žπ‘—Ξ”π‘₯, and analyze the convergence of a single but generic π‘ž-mode [36, 39, 42]. Therefore, replacing 𝑒𝑗(π‘˜) by 𝜁(π‘˜)π‘’π‘–π‘žπ‘—Ξ”π‘₯ and 𝑇𝑗(π‘š) by πœ’(π‘š)π‘’π‘–π‘žπ‘—Ξ”π‘₯ in (5.1), we get𝜁(π‘š+1)=𝜁(π‘š)+π‘†π‘šξ“π‘˜=0πœ”(1βˆ’π›Ύ1)π‘˜πœ(π‘šβˆ’π‘˜)+πœ‡2(Δ𝑑)𝛾2π‘šξ“π‘˜=0πœ”(1βˆ’π›Ύ2)π‘˜πœ(π‘šβˆ’π‘˜)+πœ’(π‘š).(5.2)

Now we will prove by induction that |𝜁(π‘š)|=𝑂(Δ𝑑)+𝑂(Ξ”π‘₯)2 for all π‘š. To start, π‘ˆπ‘—(0) satisfies the initial condition by construction, so that 𝑒𝑗(0)=0. This means that 𝜁(0)=0. Therefore, from (5.2) one gets 𝜁(1)=πœ’(0). But from (2.10) one knows that |𝑇𝑗(0)|=|πœ’(0)|=𝑂(Δ𝑑)+𝑂(Ξ”π‘₯)2, so that |𝜁(1)|=𝑂(Δ𝑑)+𝑂(Ξ”π‘₯)2. Let us now assume that |𝜁(π‘˜)|=𝑂(Δ𝑑)+𝑂(Ξ”π‘₯)2 holds for π‘˜=1,…,π‘š. Then we will prove that |𝜁(π‘š+1)|=𝑂(Δ𝑑)+𝑂(Ξ”π‘₯)2. From (5.2) we obtain||𝜁(π‘š+1)||≀||πœ’(π‘š)||+||𝜁(π‘š)||+𝑆||𝜁{π‘š}||π‘šξ“π‘˜=0|||πœ”(1βˆ’π›Ύ1)π‘˜|||βˆ’πœ‡2(Δ𝑑)𝛾2||𝜁{π‘š}||π‘šξ“π‘˜=0|||πœ”(1βˆ’π›Ύ2)π‘˜|||,(5.3) where |𝜁{π‘š}| is the maximum value of |𝜁(π‘˜)| for π‘˜=0,…,π‘š. Taking into account (2.4), using the value 𝑧=1, and because πœ”0(𝛼)=1, it is easy to see that βˆ‘βˆžπ‘˜=1πœ”π‘˜(𝛼)=βˆ’1 or, equivalently, βˆ‘βˆžπ‘˜=1|πœ”π‘˜(𝛼)|=1 since πœ”π‘˜(𝛼)<0 for π‘˜β‰₯1 (see (2.3)). Therefore βˆ‘π‘šπ‘˜=0|πœ”π‘˜(1βˆ’π›Ύ)| is bounded (in fact, it is smaller than 2). Using this result in (5.3), together with |𝜁(π‘˜)|≀𝐢(Δ𝑑+(Ξ”π‘₯)2) and |πœ’(π‘˜)|≀𝐢(Δ𝑑+(Ξ”π‘₯)2), we find that ||𝜁(π‘š+1)||≀𝐢Δ𝑑+(Ξ”π‘₯)2ξ€Έ.(5.4) Therefore the amplitude of the subdiffusive modes goes to zero when the spatiotemporal mesh goes to zero. Employing the Parseval relation, this means that the norm of the error ‖𝑒(π‘˜)β€–2β‰‘βˆ‘π‘—|𝑒𝑗(π‘˜)|2=βˆ‘π‘ž|πœπ‘ž(π‘˜)|2 goes to zero when Δ𝑑 and Ξ”π‘₯ go to zero. This is what we aimed to prove.

6. Conclusions

An explicit method for solving a kind of fractional diffusion equation that involves several fractional Riemann-Liouville derivatives, which are approximated by means of the GrΓΌnwald-Letnikov formula, has been considered. The method was used to solve a class of equations of this type (fractional cable equations) with free boundary conditions, Dirac's delta initial condition, and different fractional exponents. The error of the numerical method is compatible with the truncating error, which is of order 𝑂(Δ𝑑)+𝑂(Ξ”π‘₯)2. It was also proved that the method is convergent. Besides, it was also found that a fractional von-Neumann stability analysis, which provides very precise stability conditions for standard fractional diffusion equations, leads also to a very accurate estimate of the stability conditions for cable equations.