Keywords

1 Introduction

Peer methods are two-step s-stage methods for the numerical solution of Ordinary Differential Equations (ODEs)

$$\begin{aligned} y'(t)=f\big (t,y(t)\big ). \end{aligned}$$
(1)

After the work of R. Weiner et al. [1], much more research has been conducted on peer methods, since based on the choice of their coefficients you can obtain explicit parallelizable methods [7,8,9,10], simply explicit methods [11,12,13,14,15,16] or implicit methods [17,18,19,20,21]. It is also possible to use particular techniques, such as the Exponential Fitting (EF) [6], obtaining peer methods adapted to the problem [22,23,24], as they follow the apriori known trend of the real solution.

In this paper we focus on solving the problem (1), and we derive the coefficients of the peer methods in a different way, using the approach that was applied on explicit two- and three-stage Runge-Kutta methods in [2]. Subsequently, the same technique was also applied by other authors on explicit four-stage Runge-Kutta methods [4]. In all these cases, for particular choices of the coefficients, A-stable versions of the methods are obtained, with accuracy order that increases by one compared to the standard case. In the paper [3], specific numerical tests have been carried out in order to confirm these theoretical observations.

We consider explicit peer methods of the form

$$\begin{aligned} \begin{aligned} \displaystyle Y_{n,i} = \,&\sum _{j=1}^{s} b_{ij}\, Y_{n-1,j} + h \, \sum _{j=1}^{s} a_{ij} \, f(t_{n-1,j},Y_{n-1,j})+h \, \sum _{j=1}^{i-1} r_{ij} \, f(t_{n,j},Y_{n,j}), \\ {}&i=1,...,s, \end{aligned} \end{aligned}$$
(2)

where the stages are \(Y_{n,i} \approx y(t_{n,i})\), with \(t_{n,i}=t_n+h \,c_i\), and the coefficients matrices are

$$\begin{aligned} A=(a_{ij})_{i,j=1}^s, \qquad B=(b_{ij})_{i,j=1}^s, \qquad R=(r_{ij})_{i,j=1}^s, \end{aligned}$$
(3)

with R lower triangular matrix.

The coefficients are obtained by modifying the classical order conditions for peer methods, according to the approach proposed in [2], and, as a consequence, they depend on the Jacobian of the function f. This new Jacobian-dependent methods have better stability properties than the classical ones.

The organization of this work is the following: in Sect. 2 we show the classic form of the explicit two-stage peer methods; in Sect. 3 we derive the Jacobian-dependent coefficients of the new two-stage peer methods by imposing different order conditions than the standard case; in Sect. 4 we analyze the linear stability properties of the classic and Jacobian-dependent methods, obtaining for the latter a particular version characterized by a bigger absolute stability region; in Sect. 5 we show numerical tests in order to confirm our theoretical observations; in Sect. 6 we discuss the results and the future research.

2 Classic Peer Methods

Given a discretization {\(t_n\), \(n=1, ..., N\)} of the time interval [\(t_0, T\)] associated to the problem (1), classic explicit two-stage (\(s=2\)) peer methods assume the form

$$\begin{aligned} \begin{aligned} Y_{n,1} = \,&b_{11} \, Y_{n-1,1} + b_{12} \, Y_{n-1,2} + h \, a_{11} \, f(t_{n-1,1},Y_{n-1,1}) + h \, a_{12} \, f(t_{n-1,2},Y_{n-1,2}), \\ Y_{n,2} = \,&b_{21} \, Y_{n-1,1} + b_{22} \, Y_{n-1,2} + h \, a_{21} \, f(t_{n-1,1},Y_{n-1,1}) + h \, a_{22} \, f(t_{n-1,2},Y_{n-1,2}) \\&+ h \, r_{21} \, f(t_{n,1},Y_{n,1}), \end{aligned} \end{aligned}$$
(4)

where \(c_1 \in [0,1)\) and \(c_2=1\) (it is convention to use \(c_s=1\) for s-stage peer methods). Remembering that \(Y_{n,i} \approx y(t_{n,i})\), \(t_{n,i}=t_n+h \,c_i\), the solution at the generic grid point \(t_n+h\) is determined by \(Y_{n,2}\), in each time step from \(t_n\) to \(t_{n+1}=t_n+h\).

The classical order conditions of explicit peer methods are obtained by annihilating the necessary number of residuals, defined as

$$\begin{aligned} \begin{aligned} h\,\varDelta _i:=\,&y(t_{n,i})-\sum _{j=1}^{s} b_{ij}\, y(t_{n-1,j}) - h \, \sum _{j=1}^{s} a_{ij} \, y'(t_{n-1,j}) + \sum _{j=1}^{i-1} r_{ij} y'(t_{n,j}),\\ {}&i=1,...,s. \end{aligned} \end{aligned}$$
(5)

In fact, the following definition applies:

Definition 1

The peer method

$$\begin{aligned} \begin{aligned} \displaystyle Y_{n,i} = \,&\sum _{j=1}^{s} b_{ij}\, Y_{n-1,j} + h \, \sum _{j=1}^{s} a_{ij} \, f(t_{n-1,j},Y_{n-1,j}) +h \, \sum _{j=1}^{i-1} r_{ij} \, f(t_{n,j},Y_{n,j}),\\&i=1,...,s, \end{aligned} \end{aligned}$$
(6)

is consistent of order p if

$$\begin{aligned} \varDelta _i=O(h^p), \qquad i=1,...,s. \end{aligned}$$
(7)

To familiarize with the technique we will apply in the next section, in the current section we collect the coefficients of classic explicit two-stage peer methods using it already.

2.1 Two-Stage Classic Version

In this paragraph we impose differently the same order conditions as obtained in [1] in the general case of s stages. In order to derive them, we define the Local Truncation Errors (LTEs) related to the stages as in (9), replacing \(Y_1(t)\) and \(Y_2(t)\) with the continuous functions defined in (10).

The method we analyze in this work is (4), and to have visibility of its free coefficients, we consider them in the following matrices:

$$\begin{aligned} A= \begin{pmatrix} a_{11} &{} a_{12} \\ a_{21} &{} a_{22} \end{pmatrix}, \; B=\begin{pmatrix} b_{11} &{} b_{12} \\ b_{21} &{} b_{22} \end{pmatrix}, \; R=\begin{pmatrix} 0 &{} 0 \\ r_{21} &{} 0 \end{pmatrix}, \; c=\begin{pmatrix} c_{1}&1 \end{pmatrix}. \end{aligned}$$
(8)

There are ten free coefficients, and we’re going to determine some of them by requiring that the accuracy order of the method be equal to two. After that, in Sect. 4, we’ll assign the coefficients left free with the aim of achieving optimal linear stability properties.

Remembering that the stages \(Y_{n,1}\) and \(Y_{n,2}\) determine the numerical solution at the mesh points \(t_n+h\,c_1\) and \(t_n+h\) \((=t_{n+1})\), respectively, we define the linear operators

$$\begin{aligned} \underline{L_1}\big (y(t)\big ) = y(t+h \,c_1) - Y_1(t),\qquad \underline{L_2}\big (y(t)\big ) = y(t+h) - Y_2(t), \end{aligned}$$
(9)

that are functions by which you can measure the error of (4). In fact, with \(Y_1(t)\) and \(Y_2(t)\) we indicate the continuous expressions of the discrete stages \(Y_{n,1}\) and \(Y_{n,2}\), respectively:

$$\begin{aligned} \begin{aligned} Y_1(t) = \,&b_{11} \, y\big (t+h(c_1-1)\big ) + b_{12} \, y(t) + h \, a_{11} \, y'\big (t+h(c_1-1)\big ) + h \, a_{12} \, y'(t), \\ Y_2(t) = \,&b_{21} \, y\big (t+h(c_1-1)\big ) + b_{22} \, y(t) + h \, a_{21} \, y'\big (t+h(c_1-1)\big ) + h \, a_{22} \, y'(t) \\ {}&+ h \, r_{21} y'(t+h\,c_1). \end{aligned} \end{aligned}$$
(10)

We evaluate \(\underline{L_1}\big (y(t)\big )\) and \(\underline{L_2}\big (y(t)\big )\) for \(y(t)=t^k\), \(k = 0, 1, 2, ...\), but, as explained in [2, 5, 6], for linear operators only the moments (i.e. the expressions of \(\underline{L_i}(t^k)\) corresponding to \(t = 0\)) are of concern. The notation we use to indicate the moments of order k associated with operator \(\underline{L_i}\) is \(L_{i,k}:=\underline{L_i}(t^k)\). Linear operators can be written in a form similar to Taylor series expansion, the terms of which are their respective moments, so the following property holds:

$$\begin{aligned} \underline{L_i}\big (y(t)\big )=\sum _{k=0}^{\infty } \frac{1}{k!}\,L_{i,k}\,y^{(k)}(t). \end{aligned}$$
(11)

These operators represent the LTEs committed, i.e. a measure to determine how much the solution of the differential Eq. (1) fails to solve the difference Eq. (4).

The complete expression of \(\underline{L_1}(t^k)\) is, combining (9) and (10),

$$\begin{aligned} \begin{aligned} \underline{L_1}(t^k)=\,&(t+h\,c_1)^k-b_{11}\big (t+h(c_1-1)\big )^k-b_{12}\,t^k-h\,k\,a_{11}\big (t+h(c_1-1)\big )^{k-1}\\ {}&-h\,k\,a_{12}t^{k-1}, \end{aligned} \end{aligned}$$
(12)

and the moments \(L_{1,0}\), \(L_{1,1}\), \(L_{1,2}\) and \(L_{1,3}\) are

$$\begin{aligned} \begin{aligned} L_{1,0}=\,&1-b_{11}-b_{12}, \\ L_{1,1}=\,&h\,c_1-h\,b_{11}(c_1-1)-h\,a_{11}-h\,a_{12},\\ L_{1,2}=\,&(h\,c_1)^2-b_{11}\big (h(c_1-1)\big )^2-2\,h\,a_{11}\big (h(c_1-1)\big ),\\ L_{1,3}=\,&(h\,c_1)^3-b_{11}\big (h(c_1-1)\big )^3-3\,h\,a_{11}\big (h(c_1-1)\big )^2. \end{aligned} \end{aligned}$$
(13)

Cancelling the first three moments leads to the following three equations system, which the coefficients of (4) must satisfy so that the accuracy order of the first stage \(Y_{n,1}\) is equal to two:

$$\begin{aligned} {\left\{ \begin{array}{ll} 1-b_{11}-b_{12}=0,\\ c_1-b_{11}(c_1-1)-a_{11}-a_{12}=0,\\ c_1^2-b_{11}(c_1-1)^2-2\,a_{11}(c_1-1)=0. \end{array}\right. } \end{aligned}$$
(14)

In fact, from (9) and applying (11) to \(\underline{L_1}(t^k)\), leads to

$$\begin{aligned} \displaystyle y(t+h\,c_1)=Y_1(t)+\frac{h^3}{3!}\big (c_1^3-b_{11}(c_1-1)^3-3\,a_{11}(c_1-1)^2\big )y'''(t)+O(h^4). \end{aligned}$$
(15)

We indicate the LTE on \(Y_{n,1}\) with \(err_1(t)\), and the Principal term of the Local Truncation Error (PLTE) on \(Y_{n,1}\) with \(t_{err_1}(t)\):

$$\begin{aligned} \begin{aligned}&err_1(t)=t_{err_1}(t)+O(h^4), \; \text {with} \\&t_{err_1}(t)=\displaystyle \frac{h^3}{3!}\big (c_1^3-b_{11}(c_1-1)^3-3\,a_{11}(c_1-1)^2\big )y'''(t). \end{aligned} \end{aligned}$$
(16)

By doing the same on the second stage \(Y_{n,2}\) which, like the first stage \(Y_{n,1}\), we calculate with order of accuracy equal to two, we obtain:

$$\begin{aligned} \begin{aligned} \displaystyle \underline{L_2}(t^k)=\,&(t+h)^k-b_{21}\big (t+h(c_1-1)\big )^k-b_{22}t^k-h\,k\,a_{21}\big (t+h(c_1-1)\big )^{k-1}\\ {}&-h\,k\,a_{22}\,t^{k-1}-h\,k\,r_{21}\big (t+c_1\,h\big )^{k-1}, \end{aligned} \end{aligned}$$
(17)
$$\begin{aligned} \begin{aligned} L_{2,0}=\,\,&1-b_{21}-b_{22}, \\ L_{2,1}=\,\,&h-h\,b_{21}(c_1-1)-h\,a_{21}-h\,a_{22}-h\,r_{21},\\ L_{2,2}=\,\,&h^2-b_{21}(h(c_1-1))^2-2\,h\,a_{21}(h(c_1-1))-2\,h^2r_{21}\,c_1,\\ L_{2,3}=\,\,&h^3-b_{21}(h(c_1-1))^3-3\,h\,a_{21}(h(c_1-1))^2-3\,h\,r_{21}\,(h\,c_1)^2, \end{aligned} \end{aligned}$$
(18)
$$\begin{aligned} {\left\{ \begin{array}{ll} 1-b_{21}-b_{22}=0,\\ 1-b_{21}(c_1-1)-a_{21}-a_{22}-r_{21}=0,\\ 1-b_{21}(c_1-1)^2-2\,a_{21}(c_1-1)-2\,r_{21}\,c_1=0, \end{array}\right. } \end{aligned}$$
(19)
$$\begin{aligned} y(t\,+\,h)\,=\,Y_2(t)\,+\,\frac{h^3}{3!}\big (1\,-\,b_{21}(c_1\,-\,1)^3\,-\,3\,a_{21}(c_1\,-\,1)^2\,-\,3\,r_{21}\,c_1^2\big )y'''(t)\,+\,O(h^4). \end{aligned}$$
(20)

In conclusion, requiring that the global accuracy order of the peer method (4) be equal to two, means deriving the coefficients by solving the systems (14) and (19). Invoking (8), we observe that four free coefficients remain to be assigned later.

The extension of this procedure in the case of s stages is possible and allows to get the coefficients of classical s-stage peer methods with accuracy order \(p=s\). It is customary to assign fixed values to the coefficients of B (respecting \(B 1 = 1 \), with \( 1 =(1,...,1)^T\)), R and c, obtaining (\(a_{ij}\))\(_{i,j=1}^s\) as a function of them [1]:

$$\begin{aligned} \begin{aligned}&A=(C\,V_0\,D^{-1}-R\,V_0)V_1^{-1}-B(C-I)V_1\,D^{-1}\,V_1^{-1},\\&V_0=(c_i^{j-1})_{i,j=1}^s, \; V_1=\big ((c_i-1)^{j-1}\big )_{i,j=1}^s, \; I=I_s \text { (Identity matrix of order s)},\\&D=diag(1,...,s), \; C=diag(c_i). \end{aligned} \end{aligned}$$
(21)

3 New Jacobian-Dependent Peer Methods

The new Jacobian-dependent methods are obtained by defining differently the functions \(Y_1(t)\) and \(Y_2(t)\) in (10), and therefore the operators (9) with whom we calculate the LTEs from which the stages are affected. In doing so, it will change the definition of \(\underline{L_2}\big (y(t)\big )\), but not that of \(\underline{L_1}\big (y(t)\big )\).

In fact, we are assuming that the following localizing assumption applies only at the previous grid points {\(t_0, ..., t_{n-1}\)}, but not at \(t_n\):

$$\begin{aligned} Y_{n-1,j} = y(t_{n-1} + h \, c_j), \; \forall j=1,...,s. \end{aligned}$$
(22)

Therefore, we’re going to consider the LTEs committed in the calculation of the previous stages \(Y_{n,j}\), \(j=1,...,i-1\) in determining \(Y_{n,j}\), \(j=i,...,s\). This change leads to the dependence of the coefficients on the Jacobian function of the problem f.

3.1 Two-Stage Jacobian-Dependent Version

As mentioned before, the application of the new hypothesis (22) on peer methods (4) doesn’t produce any changes in \(Y_{n,1}\), as it depends exclusively on \(Y_{n-1,j}\), \(j=1,2\). The only variation concerns \(Y_{n,2}\), because it depends on \(Y_{n,1}\), that is affected by the LTE (16). Therefore, the expression of \(\underline{L_1}(t^k)\) remains the same (12) as in the classic case, as well as the moments (13), the order conditions (14), and the LTE (16).

However, now we need to recalculate the order conditions of the second stage \(Y_{n,2}\), bearing in mind, this time, the error made in the calculation of the first stage \(Y_{n,1}\) (16). The new definition of \(Y_2(t)\) is

$$\begin{aligned} \begin{aligned} Y_2(t) = \,&b_{21} \, y\big (t+h(c_1-1)\big ) + b_{22} \, y(t) + h \, a_{21} \, y'\big (t+h(c_1-1)\big ) + h \, a_{22} \, y'(t) \\ {}&+ h \, r_{21} f\big (t+h\,c_1,Y_1(t)\big ), \end{aligned} \end{aligned}$$
(23)

where, unlike the definition of \(Y_2(t)\) in (10), there is \(f\big (t+h\,c_1,Y_1(t)\big )\) instead of \(y'(t+h\,c_1)\).

In fact, it now applies that

$$\begin{aligned} y'(t+h\,c_1)=f\big (t+h\,c_1,y(t+h\,c_1)\big )=f\big (t+h\,c_1,Y_1(t)+err_1(t)\big ). \end{aligned}$$
(24)

Remembering that the Taylor series expansion of a generic function g(x) at \(x_0\) is

$$\begin{aligned} \displaystyle g(x)=g(x_0)+g'(x_0)\,(x-x_0)+...+\frac{g^{n}(x_0)}{n!}(x-x_0)^n+O\big ((x-x_0)^n\big ), \end{aligned}$$
(25)

we get the Taylor series expansion of f in (24) at \(Y_1(t)\) as follows:

$$\begin{aligned} \begin{aligned}&f\big (t+h\,c_1,Y_1(t)+err_1(t)\big )=f\big (t+h\,c_1,Y_1(t)\big )+j_1(t)\,err_1(t)+O\big (err_1(t)^2\big )\\ {}&=f\big (t+h\,c_1,Y_1(t)\big )+j_1(t)\,t_{err_1}(t)+O(h^4),\\ {}&\text {with } j_1(t)=f_y(t+h\,c_1,y)_{|y=Y_1(t)} \text { (Jacobian function)}. \end{aligned} \end{aligned}$$
(26)

By combining (24) and (26), we finally get

$$\begin{aligned} f(t+h\,c_1,Y_1(t))=y'(t+h\,c_1)-j_1(t)\,t_{err_1}(t)+O(h^4). \end{aligned}$$
(27)

The replacement of the expression just found (27) in \(Y_2(t)\) (23) leads to the new shape of \(\underline{L_2}(t^k)\):

$$\begin{aligned} \begin{aligned} \displaystyle \underline{L_2}(t^k)=\,&(t+h)^k-b_{21}\big (t+h(c_1-1)\big )^k-b_{22}t^k-h\,k\,a_{21}\big (t+h(c_1-1)\big )^{k-1}\\ {}&-h\,k\,a_{22}t^{k-1}-h\,r_{21}\Big (k(t+h\,c_1)^{k-1}-j_1(t)\Big (\frac{h^3}{3!}\big (c_1^3-b_{11}(c_1-1)^3\\&-3\,a_{11}(c_1-1)^2k(k-1)(k-2)t^{k-3}\big )\Big )\Big ). \end{aligned} \end{aligned}$$
(28)

The new moments \(L_{2,0}\), \(L_{2,1}\), \(L_{2,2}\) and \(L_{2,3}\) are

$$\begin{aligned} \begin{aligned} L_{2,0}=\,&1-b_{21}-b_{22}, \\ L_{2,1}=\,&h-h\,b_{21}(c_1-1)-h\,a_{21}-h\,a_{22}-h\,r_{21},\\ L_{2,2}=\,&h^2-b_{21}\big (h(c_1-1)\big )^2-2\,h\,a_{21}\big (h(c_1-1)\big )-2\,h^2r_{21}\,c_1,\\ L_{2,3}=\,&h^3-b_{21}\big (h(c_1-1)\big )^3-3\,h\,a_{21}\big (h(c_1-1)\big )^2-3\,h\,r_{21}\,(h\,c_1)^2\\ {}&+m_1(t)\,r_{21}\big (h^3\big (c_1^3-b_{11}(c_1-1)^3-3\,a_{11}(c_1-1)^2\big )\big ), \end{aligned} \end{aligned}$$
(29)

where \(m_1(t)=h j_1(t)\). This time we cancel all the four moments, thus obtaining the second stage \(Y_{n,2}\) with accuracy order equal to three. Numerical experiments will show that, despite this, the global accuracy order of the new peer methods remains two:

$$\begin{aligned} {\left\{ \begin{array}{ll} 1-b_{21}-b_{22}=0,\\ 1-b_{21}(c_1-1)-a_{21}-a_{22}-r_{21}=0,\\ 1-b_{21}(c_1-1)^2-2 a_{21}(c_1-1)-2 r_{21} c_1=0,\\ 1-b_{21}(c_1-1)^3-3 a_{21}(c_1-1)^2-3 r_{21} c_1^2+m_1(t) r_{21}\big (c_1^3\\ -b_{11}(c_1-1)^3-3 a_{11}(c_1-1)^2\big )=0. \end{array}\right. } \end{aligned}$$
(30)

The resolution of the first three equations in (30) with (14) leads exactly to the same order conditions as the standard methods. Calculating instead the coefficients by solving the systems (30) and (14) in full, we get the new Jacobian-dependent peer methods. Jacobian dependency is evidenced by the presence of \(m_1(t)=h\,j_1(t)\) in the last equation of (30).

Always keeping in mind (8), as there are seven independent equations to be solved now, the number of free coefficients for new peer methods is three and no longer four. By fixing \(b_{11}\), \(b_{21}\) and \(c_1\), the coefficients of new peer methods are shown in (31). We observe that the coefficients \(a_{21}\), \(a_{22}\) and \(r_{21}\) of new methods depend on \(m_1(t)\), i.e. the Jacobian function of the problem at time t. This leads to two important considerations:

  • \(a_{21}\), \(a_{22}\) and \(r_{21}\) must be updated at each time-step;

  • in the multi-dimensional case, \(a_{21}\), \(a_{22}\) and \(r_{21}\) become matrices with the same size as \(m_1(t)\).

$$\begin{aligned} \begin{aligned} a_{11} = \,&\Big (-\big (b_{11}(-1 + c_1)^2\big ) + c_1^2\Big )/\Big (2(-1 + c_1)\Big ),\\ a_{12} =\,&\Big (-\big (b_{11}(-1 + c_1)^2\big ) + (-2 + c_1)c_1\Big )/\Big (2(-1 + c_1)\Big ),\\ a_{21} = \,&\Big (b_{11}(-1 + b_{21})m_1(t) + (-1 + b_{11} + 7b_{21} - 10b_{11}b_{21})c_1^3m_1(t)\\ {}&- (-1 + b_{11})b_{21}c_1^5m_1(t) + b_{21}c_1^4\big (2 + 5(-1 + b_{11})m_1(t)\big )\\ {}&+ c_1\big (4 + 3b_{11}m_1(t) + b_{21} (4 - 5b_{11}m_1(t))\big ) + c_1^2\big (-6 \\ {}&+ 3m_1(t) - 3b_{11}m_1(t) + b_{21}(-6 - 3\,m_1(t) + 10b_{11}m_1(t))\big )\Big )\\ {}&/\Big (2(-1 + c_1) (-(b_{11} m_1(t)) - 3(-1 + b_{11}) c_1^2 m_1(t) + (-1 \\ {}&+ b_{11})c_1^3 m_1(t) + 3c_1(-2 + b_{11}m_1(t))\big ) \Big ),\\ a_{22} = \,&\Big (-10 + 3b_{11}m_1(t) - 9(-1 + b_{11})c_1^3m_1(t) + 2(-1 + b_{11})c_1^4 m_1(t)\\ {}&+ c_1(24 - 11b_{11}m_1(t)) + 3c_1^2(-4 - 3m_1(t) + 5b_{11} m_1(t)) \\ {}&- b_{21}(-1 + c_1)^2\big (-2 - b_{11}m_1(t) - 3 (-1 + b_{11})c_1^2m_1(t) \\ {}&+ (-1 + b_{11})c_1^3m_1(t) + c_1(-4 + 3b_{11}m_1(t))\big )\Big )/ \Big (2 (-1 \\ {}&+c_1)\big (-(b_{11}m_1(t))- 3(-1 + b_{11})c_1^2 m_1(t) + (-1 \\ {}&+b_{11})c_1^3m_1(t) + 3c_1(-2 + b_{11}m_1(t))\big )\Big ),\\ r_{21}= \,&\Big (-5 - b_{21}(-1 + c_1)^3 + 3c_1\Big )/\Big (-(b_{11}m_1(t)) - 3(-1 + b_{11})c_1^2 m_1(t) \\ {}&+ (-1 + b_{11})c_1^3m_1(t) + 3c_1(-2 + b_{11}m_1(t))\Big ). \end{aligned} \end{aligned}$$
(31)

4 Linear Stability Analysis

The family of explicit s-stage peer methods can be written in the compact form

$$\begin{aligned} \begin{aligned}&Y_n=B\,Y_{n-1}+h\,A\,F(Y_{n-1})+h\,R\,F(Y_{n}), \\&\text {where } Y_n=(Y_{n,i})_{i=1}^s, F(Y_n)=\big (f(Y_{n,i})\big )_{i=1}^s. \end{aligned} \end{aligned}$$
(32)

In order to perform linear stability analysis of classic peer methods and new Jacobian-dependent peer methods, applying (32) to the test equation \(y'=\lambda y\), \(Re(\lambda )<0\), results in

$$\begin{aligned} Y_n=(I-zR)^{-1}(B+zA)Y_{n-1}=:M(z)Y_{n-1} \text {, with}\; z=h\lambda . \end{aligned}$$
(33)

Therefore, M(z) is the stability matrix of the method, i.e. the numerical method (32) is absolutely stable if \(\rho (M(z)) < 1\), where \(\rho \) is the spectral radius of M(z). The short analysis just shown is detailed in [1].

4.1 Absolute Stability Regions of the New Two-Stage Methods

We have used Mathematica to fix the coefficients left free after the imposition of the order conditions, with the aim of maximizing the size of the absolute stability region of classic and new two-stage peer methods.

Referring to new two-stage Jacobian-dependent peer methods, we need to fix \(b_{11}\), \(b_{21}\) and \(c_1\), then finding the other coefficients of the method by exploiting (31). The exploration range for these parameters is:

  • \(c_1 \in [0,1)\), because the intermediate stages determine the numerical solution within the subinterval \([t_n,t_{n+1}]\),

  • \(b_{11}\) and \(b_{21} \in [-2,2]\), that is usually the range of values in which the coefficients of the matrix B are considered for peer methods.

In doing so, we get the best result with

$$\begin{aligned} b_{11} = -0.59, \qquad b_{21} = -1, \qquad c_1 = 0.3. \end{aligned}$$
(34)

Trying to do the same thing for classic peer methods as well, using the same intervals for parameter exploration (this time obviously including \(r_{21}\) as well, which is a free parameter for the classic methods), we get the largest real axis of the corresponding absolute stability region by using

$$\begin{aligned} b_{11} = -0.52, \qquad b_{21} = -1.3, \qquad c_1 = 0.3, \qquad r_{21} = 0.8. \end{aligned}$$
(35)

Finally, in order to compare the new peer methods with the classical ones, we consider two-stage classic peer method with the same coefficients as the peer Jacobian-dependent (34), fixing the best possible value for \(r_{21}\):

$$\begin{aligned} b_{11} = -0.59, \qquad b_{21} = -1, \qquad c_1 = 0.3,\qquad r_{21} = 1.17. \end{aligned}$$
(36)

Figure (1) shows the absolute stability regions of Jacobian-dependent and classic methods, using as parameters those just reported.

We note that, although we have fixed the coefficients of the classic peer method (35) in such a way as to maximize the amplitude of the real axis in its stability region, the stability region of the new Jacobian-dependent peer method contains it. In addition, the absolute stability region of the classic method has a rather strange shape, narrowing in some places to just the real axis. The stability region of the classic version with non-optimal coefficients (36) is smaller than that of the other two methods.

5 Numerical Tests

In this section, we conduct numerical tests on two scalar ODEs, by solving them with Jacobian-dependent and classic peer methods, using as coefficient values (34) (for Jacobian-dependent version), (35), and (36) (for classic versions), in order to verify the theoretical properties we derived in the previous sections. Since the exact solution of the following problems is known, we evaluate the absolute error at the last grid point, and the order estimate of the methods using the formula

$$\begin{aligned} \displaystyle p(h)=\frac{cd(h)-cd(2\,h)}{log_{10}2}, \end{aligned}$$
(37)

where cd(h) is the achieved number of correct digits at the endpoint T of the integration interval \([t_0,T]\) with step-size equal to h. For more information on the quantities taken into account for numerical tests consult [3].

Fig. 1.
figure 1

Absolute stability regions of the Jacobian-dependent peer method with optimal coefficients (34), the classic peer method with optimal coefficients (35) and the classic peer method set the coefficients of the Jacobian-dependent method (36), respectively.

5.1 Prothero-Robinson Equation

Let’s solve the Prothero–Robinson scalar equation

$$\begin{aligned} {\left\{ \begin{array}{ll} y'(t)=\lambda \big (y(t)-sin(t)\big )+cos(t), \\ y(0)=0, \end{array}\right. } \end{aligned}$$
(38)

in the interval \([0, \pi /2]\), for different values of \(\lambda \). The exact solution of the problem (38) is \(y(t)=sin(t)\). This equation is widely used to test numerical methods as it becomes more and more stiff as \(|\lambda |\) increases.

The results shown in Tables (1), (2), (3), (4), (5) and (6) allow for the following important observations. The Jacobian-dependent method is much more accurate than the classic method with optimal coefficients (35) (there is a difference of two orders of magnitude between their respective absolute errors) and slightly more accurate than the classic method with the same coefficients (36). As the stiffness of the problem increases, it is necessary to use the Jacobian-dependent method, which has better stability properties than the other two, especially the classic peer with the same coefficients. Finally, the global accuracy order estimation of the three methods tends to two, so the classic methods and the new method don’t suffer from order reduction on stiff problems.

Figure (2) confirms the greater accuracy of the Jacobian-dependent method than the other two, for \(\lambda =-50\) and \(\lambda =-100\). In Fig. (3), we represent the trend of the three numerical solutions and the exact one, fixing the problem (i.e. \(\lambda =-10^3\)) and choosing two different values for h. For the first value of h, numerical solutions calculated with the two classical methods explode, and only the Jacobian-dependent method provides a good result. For a smaller value of h, even the classic method with coefficients (35) provides an acceptable solution. Finally, looking at Fig. (4), we can appreciate the fact that when the problem is very stiff (i.e. \(\lambda =-10^4\)), the Jacobian-dependent method becomes more convenient than the others.

Table 1. Absolute errors at the endpoint T on Prothero-Robinson problem (38), in correspondence of several values of the number N + 1 of mesh-points, with \(\lambda =-50\).
Table 2. Estimated order p(h) on Prothero-Robinson problem, with \(\lambda =-50\).
Table 3. Absolute errors at the endpoint T on Prothero-Robinson problem (38), in correspondence of several values of the number N + 1 of mesh-points, with \(\lambda =-10^2\).
Table 4. Estimated order p(h) on Prothero-Robinson problem, with \(\lambda =-10^2\).
Table 5. Absolute errors at the endpoint T on Prothero-Robinson problem (38), in correspondence of several values of the number N + 1 of mesh-points, with \(\lambda =-10^3\).
Table 6. Estimated order p(h) on Prothero-Robinson problem, with \(\lambda =-10^3\).
Fig. 2.
figure 2

Absolute errors as a function of h, for different values of \(\lambda \).

Fig. 3.
figure 3

Solution of the problem (38) for different values of h, with \(\lambda =-10^3\).

Fig. 4.
figure 4

Solution and absolute errors related to the problem (38), with \(h \approx 10^{-4}\) and \(\lambda =-10^4\).

5.2 Non-linear Scalar Equation

Let’s solve the non-linear scalar equation

$$\begin{aligned} {\left\{ \begin{array}{ll} y'(t)=-y(y+1), \\ y(0)=2, \end{array}\right. } \end{aligned}$$
(39)

in the interval [0, 5]. The exact solution of the problem (39) is \(\displaystyle y(t)=\frac{(2/3)e^{-t}}{1-(2/3)e^{-t}}\).

Table 7. Absolute errors at the endpoint T on non-linear scalar problem (39), in correspondence of several values of the step-size h.
Table 8. Estimated order p(h) on non-linear scalar problem.

The results (Tables (7) and (8)) related to the non-linear problem (39) confirm the observations and comments made previously, although in this case the stability advantage of Jacobian-dependent methods is not observed as the equation is non-stiff. The greater accuracy of new methods is confirmed.

6 Conclusions and Future Research

In this paper, we have derived new Jacobian-dependent peer methods with better stability properties than the classic ones. In addition, although we have focused on this new methods, we would like to stress the fact that we have also determined the coefficients of classic explicit peer methods (35) in order to maximize the relative absolute stability region.

Updating the coefficients that depend on the Jacobian function at each step comes at a higher cost. However, this additional cost is acceptable, given the benefits obtained both in terms of stability and accuracy.

The next research will focus on further improving the stability properties of Jacobian-dependent peer methods by investigating the possibility of deriving A-stable methods. Finally, we’ll adapt the methods obtained in this paper to the multi-dimensional case, transforming the coefficients that depend on the Jacobian function into matrices.