1 Introduction

As is known by using the definite integrals the scientists have investigated many practical problems as the computation of the area bounded by some functions or by the direct lines, the volume of some different figures, the volumes of rotation bodies, distances between objects, energy of signals, earthquakes and others (see for example [1, pp. 169–222, 2, 3]). The investigation of the definite integrals is narrowly connected with the determined of the solution of the initial-value problem for the ODEs. Therefore to construct the methods for the computation of the definite integrals were engaged many known scientists as the Newton, Kottes, Gauss, Chebyshev, Simpson, Adams and etc. (see for example [4, 5]). The scientists are constructed different formulas for the computation of definite integrals having the various exactness.

And also is known that for the receiving more exact results in computing of definite integrals there used making smaller of the step size which reduces to increasing of the volume of calculation works. And is known that the first direct method for solving of the initial-value problem for ODE has been constructed by Euler using the simplest form of quadrature formula. By taking into account that the order of accuracy for Euler method equal to 1 (one) therefore for the construction of more accurate methods than Euler’s, the specialists have proposed to use interpolation polynomials with the high exactness in the construction of the methods to compute the definite integrals (see for example [6, 7]). But here for the construction of more exact methods have proposed to use the method of unknown coefficients. And for investigation of definite integrals using the subinterval method by using that compared the results received here with the known.

Now let us to calculation of definite integrals written as:

$$I= \int \limits _{x_0}^b {f(x)dx},$$
(1)

here sufficiently smooth function f(x) is defined in the interval \([x_0,b]\). For the construction of the methods to calculation of definite integral (1) let us denote by \(f_i\) the values of the function of f(x) at the node points \(x_{i}=x_{0}+ih\) \((i=0,1,\ldots ,N)\). Here \(0<h\)-step size by the help of which the interval \([x_0,b]\) to divided to N equal parts.

For the calculation of the integral (1) let us consider the following function:

$$y(x)= \int \limits _{x_0}^b {f(s)ds},\quad x_{0}\le {x}\le {b}.$$
(2)

From here receive that \(I=y(b)\).

It is evident that \(y'(x)=f(x)\),\(y(x_{0})=0\), which calls as the initial-value problem for the ODE of the first order. This problem in the subinterval \([x_{i},x_{i+1}]\) can be written as:

$$y'(x)=f(x), y(x_{i})=y_{i}, x\in [x_{i},x_{i+1}].$$
(3)

Let the problem to be presented as the following:

$$y(x_{i+1})=y(x_{i})+ \int \limits _{x_i}^{x_{i+1}} {f(s)ds}, (i=0,1,\ldots ,N-1).$$
(4)

By using this equality scientists have constructed the methods to solve the problem (3) with the different orders of accuracy. Here we proposed to use finite-difference methods and applied them to solve the problems (3) and (4) and have constructed the methods of forward-jumping (advanced) and hybrid types to calculate the definite integral (1).

2 Construction of finite-difference methods

As is known one of the popular methods for solving of the problem (3) is the finite difference or multistep method which can be presented as the following:

$$\sum \limits _{i = 0}^s {\alpha _{i}y_{n + i}}= h\sum \limits _{i = 0}^k {\beta _{i}f_{n+i}}$$
(5)
$$(n=0,1,\ldots ,N-l; l=\max (s,k)).$$

This method was investigated by some authors (see for example [8,9,10,11,12,13,14]). Note that method (5) in the case \(s=k\) is fundamentally investigated by Dahlquist [8] and have shown that if the method of (5) stable in the case \(s=k\) and have the degree p then \(p\le 2[k/2]+2\) and for all the values of the order of k, there are stable methods with the maximal degrees. Here we use the known definition of the conception degree and stability has been proposed by Dahlquist [8].

Definition 1

The method (5) is stable if the roots of the characteristic polynomials \(\rho (\lambda )\) of the method (5) lie in the unit circle on the boundary of which there is no multiply root. Here \(\rho (\lambda )\) can be presented as:

$$\rho (\lambda )=\alpha _{s}\lambda ^{s}+\alpha _{s-1}\lambda ^{s-1}+\cdots +\alpha _{1}\lambda +\alpha _{0}.$$
(6)

Definition 2

The method has the degree of p, if the following holds:

$$\sum \limits _{i = 0}^s {\alpha _{i}y(x+ih)}- h\sum \limits _{i = 0}^k {\beta _{i}y'(x+ih)}=O(h^{p+1}),\quad h\rightarrow 0.$$

Here p is integer.

It follows to remark that all known methods of type (5) are subjected to Dahlquist’s law. But in the work [13] have proved the existence of the stable methods of type (5) with the degree \(p=k+m+1\) (for the values \(k\ge {3m}, m=k-s\)). The methods of the same property have constructed by other authors (see for example [14,15,16]). By taking into account this property of the forward-jumping methods here consider the application of the forward-jumping methods to solving of the problem (3). Therefore let us suppose that \(s<k\). Note that if in this case, the function of f(x) depends on the function of y(x), it is to say that \(f(x)\equiv {\varphi (x,y)}\) then application of the forward-jumping methods accompanied by some difficulties. By taking into account this receive that the application of the forward-jumping methods to calculation of the definite integrals prefers than the known implicit or explicit methods. But for the calculation of \(y(x_{N})\) by forward-jumping methods we are need to use some values of function f(x) in outside of the considering segment.

By using the bounders \(p\le {k+m+1}\) \((m\le {[k/3]})\), receive that for the construction of more exact stable methods the value of k must be chosen greater. For example, if \(k\ge 9\) then one can construct the stable method of type (5) with the degree \(p\le {k+4}\) . As is known for increasing exactness the method (5) the increasing of the exactness of the of initial-values \(y_{j}\) \((j=0,1,\ldots ,k-1)\) is necessary. Therefore the scientists have discussed to use the other schema for the construction of the stable methods with the high degrees. For this aim, proposed to use the Gauss, Chebyshev, Labbotto, and others interpolation polynomials. In the results of which appeared the new methods. These methods remained of the hybrid methods and in simple form can be written as following (see for example [17,18,19,20]):

$$\sum \limits _{i = 0}^s {\alpha _{i}y_{n + i}}= h\sum \limits _{i = 0}^k {\beta _{i}f_{n+i+\nu _{i}}}.$$
(7)

here \(\nu _{i}\) \((i=0,1,\ldots ,k)\) are the hybrid points which can be defined as the solution of the some nonlinear system of algebraic equations.

To construct more accurate methods here have proposed to use the following method, which have been investigated and applied to the solving some similarly problems (see for example [21,22,23,24]):

$$\sum \limits _{i = 0}^{k-m} {\alpha _{i}y_{n + i}}= h\sum \limits _{i = 0}^k {\beta _{i}f_{n+i}}+ h\sum \limits _{i = 0}^k {\gamma _{i}f_{n+i+\nu _{i}}}$$
(8)
$$(|\nu _{i}|<1,i=0,1,\ldots ,k).$$

This method can be received by using some of interpolation polynomials in the computing of definite integrals. But here we want to construct the methods of type (8) by help of the method of unknown coefficients. For this aim, let us use the equality \(y'(x)=f(x)\) and to consider following Taylor expansions:

$$\begin{aligned} y(x+ih)=y(x)+ihy'(x)+\frac{(ih)^{2}}{2!}y''(x)+\cdots +\frac{(ih)^{p}}{p!}y^{(p)}(x)+O(h^{p+1}),\\ y'(x+l_{i}h)=y'(x)+l_{i}hy''(x)+\frac{(l_{i}h)^{2}}{2!}y'''(x)+\cdots +\frac{(l_{i}h)^{p-1}}{(p-1)!}y^{(p)}(x)+O(h^{p}). \end{aligned}$$

By using these equalities in the asymptotic equality (4), receive that to hold the asymptotic equality (4) the satisfying of the following conditions is necessary and sufficient:

$$\begin{aligned}&\sum \limits _{i = 0}^{k-m} {\alpha _{i}}=0;\nonumber \\&\sum \limits _{i = 0}^k {\beta _{i}}+ \sum \limits _{i = 0}^k {\gamma _{i}}= \sum \limits _{i = 0}^{k-m} {i\alpha _{i}};\nonumber \\&\sum \limits _{i = 0}^{k} {(\frac{i^{l}}{l!}\beta _{i}+\frac{(i+\nu _{i})^{l}}{l!}\gamma _{i})}= \sum \limits _{i = 0}^{k-m} {\frac{i^{l+1}}{(l+1)!}\alpha _{i}}\nonumber \\&l=1,2,\ldots ,p-1. \end{aligned}$$
(9)

By using the solution of the nonlinear system (9) one can construct the stable methods of type (8). Note that in the system of (9) there are \(p+1\) equations and \(4k+3-m\) unknowns. If the system (9) has the solution in the case \(p+1=4k+3-m\), then receive that there exist the methods of type (8) with the degree \(p=4k+2-m\). In usually, the methods with the degree \(p=4k+2-m\) are unusable. Here prove that there are exist the stable methods for \(k>2\) with the degree \(p\le {3k+2+m}\). But it not follows from here that \(P_{\max }=3k+2+m\) \((k\ge {3m})\). The system (8) is nonlinear therefore to find some conditions for the existence of the unique solution is not easy.

Consequently, the existence of stable methods of type (9) with maximal degrees is not known for us. These properties of the nonlinear system of algebraic equations have been met in investigation of the Gauss and Chebyshev methods. Therefore, to find of the Gauss node points the authors have used the known polynomials (see for example [4, pp. 189–199, 25, pp. 463–469]). But here we for the finding of the solution of the system (9) have used the Mathcad program and in some cases receive the existence of the solution of the system (9) in the case \(p>3k+2+m\). Let us note that these solutions are approximate, therefore to assert about the existence of the stable methods with the degree \(p>3k+2+m\) is not correct. But to say that it is not stable method with the degree \(p>3k+2+m\) also is not correct. If to put \(\nu _{i}=0\) \((i=0,1,\ldots ,k)\) in the equality of (8) then receive the fundamentally investigated method which coincides with the method of (5). In this case, for the finding the values of the coefficients of this method one can be used the following way (see for example [26, 27]):

$$\begin{aligned}&\alpha _{0}=-\sigma _{0}^{(1)}+\sigma _{1}^{(1)}-\sigma _{2}^{(1)}+\cdots +(-1)^{k-1}\sigma _{k-2}^{(1)}+(-1)^{k}\sigma _{k-1}^{(1)}\nonumber \\&\alpha _{i}=\sum \limits _{j=i-1}^{k-1} {(-1)^{j-i+1}(j+1)j(j-1)\ldots (j-i+2)\sigma _{j}^{(1)}/{i!}}\nonumber \\&(i=1,2,\ldots ,k), \end{aligned}$$
(10)
$$\begin{aligned}&\beta _{0}=\sigma _{0}^{(2)}-\sigma _{1}^{(2)}+\sigma _{2}^{(2)}+\cdots +(-1)^{k-1}\sigma _{k-1}^{(2)}+(-1)^{k}\sigma _{k}^{(2)},\\&\beta _{i}=\sum \limits _{j=i-1}^{k-1} {(-1)^{j-i}j(j-1)\ldots (j-i+1)\sigma _{j}^{(2)}/{i!}}\\&(i=1,2,\ldots ,k). \end{aligned}$$

For the determined of the values of the constant \(\sigma _{j}^{(1)}\) and \(\sigma _{j}^{(2)}\) \((i=0,1,\ldots ,k)\) one can be used the following system:

$$\sum \limits _{i=0}^{j} {C_{i}\sigma _{j-i}^{(1)}}=\sigma _{j}^{(2)} (j=0,1,\ldots ,k;\sigma _{k}^{(1)}=0),$$

here

$$\begin{aligned}&C_{m}=\sum \limits _{\nu =1}^{m} {(-1)^{\nu -1}C_{m-i}/(i+1)};(C_{0}=1;m=1,2,3,\ldots )\nonumber \\&\quad \sum \limits _{i=j-k+1}^{j} {C_{i}\sigma _{j-i}^{(1)}}=0 (j=k+1,k+2,\ldots ,p-1). \end{aligned}$$
(11)

As it follows from here the determination of the solution of the systems (10) and (11) is simpler than the determination of the solution of the system (9). Because in solving (11) on the first step we find the values of constants \(\sigma _{0}^{(1)},\sigma _{1}^{(1)},\sigma _{k-1}^{(1)}\) and after them on the second step of the values of the constant \(\sigma _{j}^{(2)}\) \((i=0,1,\ldots ,k)\). But in solving of the system we must find the values of 2k-unknowns as the solution of the system (9). Let us remark that this idea is more effective in application of it to the construction of the multistep second derivative methods.

3 Application of the multistep second derivative methods to calculation of the definite integral

The multistep second derivative methods in more general form can be written as:

$$\sum \limits _{i = 0}^s {\alpha _{i}y_{n + i}}= h\sum \limits _{i = 0}^k {\beta _{i}y'_{n+i}}+ h^{2}\sum \limits _{i = 0}^k {\gamma _{i}y''_{n+i}},$$
(12)

here ksl are integer variable and independent on each other. By choosing these variables from the method (12) can be received the explicit, implicit and forward-jumping methods. Therefore method (12) called as more general form.

Let us consider application of the method (12) to calculation of the integral (2). In this case, receive the following:

$$\sum \limits _{i = 0}^s {\alpha _{i}y_{n + i}}= h\sum \limits _{i = 0}^k {\beta _{i}f_{n+i}}+ h^{2}\sum \limits _{i = 0}^l {\gamma _{i}f'_{n+i}}.$$
(13)

By taking into account that the function of f(x) is known then receive that by using the method (13) one can calculate the value of definite integral (1). The method (13) has been fundamentally investigated by some authors (see for example [28,29,30,31]). If the method of (13) is stable and has the degree of p then there exist the methods with the degree \(p\le {2k+2}\) (in the case \(s=k=l\) ) and there exists the methods with the degree \(p>2k+2\) in other cases.

It follows to note that the conception of stability for the method (13) depends on the values of the coefficients \(\beta _{i}\) \((i=0,1,\ldots ,k)\). If the conditions \(|\beta _{0}|+|\beta _{1}|+\cdots +|\beta _{s}|\ne 0\) are hold then the conception of stability for the method (13) is define as the stability of the method (5). But in the case \(|\beta _{0}|+|\beta _{1}|+\cdots +|\beta _{s}|=0\), the method (13) is said to be stable, if the roots of the polynomial \(\rho (\lambda )\) lie in the unit circle on the boundary of which there are no multiple roots without the double root \(\lambda =1\). It is evident that in this case the degree of the method (13) will be same with the degree of the method (5). For the simplicity, let us in the equality of (13) put \(s=k=l\). As was noted above in this case there are stable methods with the degree \(p=2k+2\) if \(|\beta _{0}|+|\beta _{1}|+\cdots +|\beta _{s}|\ne 0\) holds. It is not difficult to understand that by using of the method (13) one can determine the value of \(y_{n+k}\), if the values \(y_{j}\) \((j=0,1,\ldots ,k-1)\) are known. For solving of this, here proposed to use the following method:

$$\sum \limits _{i = 0}^k {\alpha _{i}y_{n + i}}= \sum \limits _{j=1}^s {h^{j}} \sum \limits _{i = 0}^k {\beta _{i}^{(j)}y_{n+i}^{(j)}}.$$
(14)

From this formula one can be received the Taylor expansion for the value \(k=1\). In this case, receive the one-step method which can be always applied to calculation of the definite integral (1), so that \(y_{0}=0\). Thus by using the described way we can construct the predictor-corrector methods with the different degrees to compute the values \(y_{j}\) \((j=0,1,\ldots ,k-1)\) and the values \(y_{n+k}\) \((n=0,1,\ldots ,N-k;x_{N}=x_{0}+Nh)\).

For the construction of stable methods of type (13) (in the case \(s=k=l\)), let us consider for determined the values of the coefficients of the method (13).

As was noted above to determine the values of the coefficients of the method (13) one can be used the method of unknown coefficients. And in this case, receive the system of algebraic equations which is similar to the system (9). But here we want to present the way for the finding of the values of the coefficients for the method (13) in using of which the volume of the computational work less than the computational work receiving in solving of the system which is similar to the system (9).

To find of the values of the coefficients \(\alpha _{i},\beta _{i},\gamma _{i}\) \((i=0,1,\ldots ,k)\) here proposed to use the following sequence linear systems of the algebraic equations and the system of (10):

$$\begin{aligned} \gamma _{0}&=\sigma _{0}^{(3)}-\sigma _{1}^{(3)}+\sigma _{2}^{(3)}+\cdots +(-1)^{k-1}\sigma _{k-1}^{(3)}+(-1)^{k}\sigma _{k}^{(3)},\nonumber \\ \gamma _{i}&= \sum \limits _{j=i-1}^{k-1} {(-1)^{j-i}j(j-1)\ldots (j-i+1)\sigma _{j}^{(3)}/{i!}}, i=1,2,\ldots ,k. \end{aligned}$$
(15)

But for the finding of the values of coefficients \(\sigma _{m}^{(l)}\) \((l=1,2,3;m=,1,\ldots ,k)\) here present to use the following system of algebraic equations:

$$\begin{aligned}&\sum \limits _{i=0}^{j} {C_{i}\sigma _{j-i}^{(1)}}+ \sum \limits _{i=0}^{j} {\frac{(-1)^{j-i+1}}{j-i+1}}\sigma _{j-i}^{(3)} =\sigma _{j}^{(2)},\,\,\,\, j=0,1,\ldots ,k,\,\,\,\, \sigma _{k}^{(1)}=0;\nonumber \\&\sum \limits _{i=j+1}^{j+k} {C_{i}\sigma _{j+k-i}^{(1)}}+ \sum \limits _{i=j}^{j+k} {\frac{(-1)^{i}}{i}}\sigma _{j+k-i}^{(3)} =0,\,\,\,\, j=1,\ldots ,k; \end{aligned}$$
(16)
$$\begin{aligned}&\sum \limits _{i=j+k+1}^{j+2k} {C_{i}\sigma _{j+2k-i}^{(1)}}+ \sum \limits _{i=j+k}^{j+2k} {\frac{(-1)^{i}}{i}}\sigma _{j+2k-i}^{(3)} =0,\,\,\,\, j=1,\ldots ,k;\\&\sum \limits _{i=2k+1}^{3k+1} {C_{i}\sigma _{3k+1-i}^{(1)}}+ \sum \limits _{i=2k+1}^{3k+1} {\frac{(-1)^{i}}{i}}\sigma _{3k+1-i}^{(3)} =C. \end{aligned}$$

Here, the constant C is the coefficient of the principal part in the expansion of the remainder term of the constructed methods. The equivalents of the system (9) and (16) one can be found in the work [25].

Let us note that in the case \(k=2\) linear part of the method (13) can be proposed as: \(y_{n+2}-y_{n}\). In this case, by replace h to h / 2 from the mentioned linear part receive: \(y_{n+1}-y_{n}\). Thus by this way have constructed the one-step method which is similar to hybrid methods. This scheme can be generalized by the following way:

$$y_{n+k}-y_{n}=h\sum \limits _{i = 0}^k {\beta _{i}f_{n+i}}+ h^{2}\sum \limits _{i = 0}^l {\gamma _{i}f'_{n+i}}.$$
(17)

For the receiving of the one-step method from the method (17) it is enough to choose step size h in the form h / k. It follows to note that the method (17) can be unstable for the values \(k>2\). But the receiving of the one-step form that will be stable.

4 The construction of some simple methods and their application to the calculation of definite integrals

In first let us consider constructing of stable methods of type (5). As is known for the case \(s=k\) one can construct stable methods with the degree \(p\le 8\) having the explicit and implicit type for the \(k\le 6\). Therefore let us consider the case when \(s<k\) and put \(k=2\). In this case, the integer m can receive the value \(m=1\) and the maximal value of the degree for this method will be equal to \(p=3\), which can be written as:

$$y_{n+1}=y_{n}+h(5f_{n}+8f_{n+1}-f_{n+2})/12.$$
(18)

And now let us put \(k=3\) and \(m=2\) then receive:

$$y_{n+1}=y_{n}+h(9f_{n}+19f_{n+1}-5f_{n+2}+f_{n+3})/24.$$
(19)

But for the case \(k=4\) and \(m=3\) the stable method can be written as:

$$y_{n+1}=y_{n}+h(251f_{n}+646f_{n+1}-264f_{n+2}+106f_{n+3}-19f_{n+4})/720.$$
(20)

The method (19) has the degree \(p=4\) but the method (20) has the degree \(p=5\). In [11] has proved that for the coefficients \(|\beta _{k-m+i}|>|\beta _{k-m+i+1}|\) and \(\beta _{k-m}>0\) (for \(\alpha _{k-m}>0\) ), \(\beta _{k-m+i}\beta _{k-m+i+1}<0\) are hold if the coefficients satisfies the condition: \(\beta _{k-m+i}\ne 0\), \(\beta _{k-m+i+1}\ne 0\). The above described methods satisfy these conditions.

The application of the methods (18) and (20) to the calculation of the integral (1) is very simple because \(y_{0}\) is known. Now let us consider the case \(k=3\) and \(m=1\). In this case, the method with the maximal degree can be written as:

$$y_{n+2}=(8y_{n+1}+11y_{n})/19+h(10f_{n}+57f_{n+1}+24f_{n+2}-f_{n+3})/57.$$
(21)

This method stable and has the degree \(p=5\). If in this method the step size h replace by the h / 2, then receive:

$$y_{n+2}=(8y_{n+1}+11y_{n})/19+h(10f_{n}+57f_{n+1/2}+24f_{n+1}-f_{n+3/2})/114.$$
(22)

The using the method (22) is more difficult than the method of (20) so that in the method of (22) is participate the term of \(y_{n 1/2}\). To find this value, one can use the method (19) or the method of (20). But if consider the case \(m=0\) and \(k=2\) then receive the following stable method with the degree \(p=4\):

$$y_{n+2}=y_{n}+h(f_{n+2}+4f_{n+1}+f_{n})/3,$$

and in this method after replacing of h by the h / 2 receive:

$$y_{n+1}=y_{n}+h(f_{n+1}+4f_{n+1/2}+f_{n})/6,$$
(23)

which can be applied to the computing of the integral (1) in separate form. Now let us consider construction of the stable method of type (8) and put \(k=1\). In this case, from the method (8) one can receive the stable methods having the different order of accuracy. For example the method with the degree \(p=6\) can be written as:

$$y_{n+1}=y_{n}+h(f_{n}+f_{n+1})/12+5h(f_{n+\alpha }+f_{n+1-\alpha })/12,\,\,\,\,\, \alpha =1/2-\sqrt{5}/10.$$
(24)

This method is implicit. In this case, the explicit method with the degree \(p=5\) can be written as:

$$\begin{aligned}&y_{n+1}=y_{n}+hf_{n}/9+h((16+\sqrt{6})f_{n+3/5-\alpha }+(16-\sqrt{6})f_{n+3/5+\alpha })/36,\nonumber \\&\quad \alpha =\sqrt{6}/10. \end{aligned}$$
(25)

If suppose that \(\beta _{i}=0\) \((i=0,1,\ldots ,k)\), then can be prove that there are the stable methods with the degree \(p=2k+2\). In the case \(k=1\), the method with the degree \(p=4\) has the following form:

$$\begin{aligned}&y_{n+1}=y_{n}+h(f_{n+l}+f_{n+1-l})/2,\nonumber \\&\quad l=1/2-\sqrt{3}/6. \end{aligned}$$
(26)

And now let us consider construction of the multistep second derivative methods. As was noted above if these methods are stable then the degree of these methods satisfies the condition \(p\le {2k+2}\). In first let us put \(s=k=l\) and \(k=1\). Then from the method of (18) one can receive the following methods (see for example [27,28,29,30]):

$$\begin{aligned} y_{n+1}&= y_{n}+h(f_{n+1}+f_{n})/2+h^{2}(-f'_{n+1}+f'_{n})/12,\nonumber \\ R_{n}&= h^{5}f_{(\xi )}^{(IV)}/720,\end{aligned}$$
(27)
$$\begin{aligned} y_{n+1}&= y_{n}+h(f_{n+1}+2f_{n})/2+h^{2}f'_{n}/6,\nonumber \\ R_{n}&= -h^{4}f_{(\xi )}^{(3)}/72,\end{aligned}$$
(28)
$$\begin{aligned} y_{n+1}&= y_{n}+hf_{n}+h^{2}f'_{n}/2,\nonumber \\ R_{n}&= h^{3}f''_{(\xi )}/6. \end{aligned}$$
(29)

Note that the method of (27) is implicit, the method (29) is explicit, but the method (28) depends on its application can be explicit or implicit. In our case, the method (28) is explicit because function f(x) independed on the function of y(x).

And now let us consider the case \(k=2\). In this case, from the (14) receive (see for example [11, p. 288]):

$$\begin{aligned} y_{n+2}&= y_{n+1}+h(-f_{n+1}+3f_{n})/2+h^{2}(17f'_{n+1}+7f'_{n})/12,\end{aligned}$$
(30)
$$\begin{aligned} y_{n+2}&= y_{n+1}+h(101f_{n+2}+128f_{n+1}+11f_{n})/240\nonumber \\&\quad +h^{2}(-13f'_{n+2}+40f'_{n+1}+3f'_{n})/240. \end{aligned}$$
(31)

These methods are stable and have the degree \(p=4\) and \(p=6\) respectively. Now let us consider construction of the stable forward-jumping second derivative methods. It is clear that if \(m=1\) then \(k\ge 2\). Therefore consider the case \(m=1\) and \(k=2\). In this case the stable method with the degree \(p=6\) can be written as (see for example [11, p. 288]):

$$\begin{aligned} y_{n+1}&= y_{n}+h(11f_{n+2}+128f_{n+1}+101f_{n})/240\nonumber \\&\quad +h^{2}(-3f'_{n+2}-40f'_{n+1}+3f'_{n})/240. \end{aligned}$$
(32)

For the construction of more exact methods let us put \(k=3\) and \(m=1\). In this case the stable method with the degree \(p=9\) can be written as following:

$$\begin{aligned} y_{n+2}&= (416y_{n+1}-103y_{n})/313+h(157f_{n+3}+1123f_{n+2}\nonumber \\&\quad +8451f_{n+1}-2830f_{n})/25353+h^{2}(-11f'_{n+3}-630f'_{n+2}\nonumber \\&\quad +1557f'_{n+1}-92f'_{n})/8451. \end{aligned}$$
(33)

If in the case \(k=3\), put \(m=2\), then receive the following one-step method with the degree \(p=9\) (see for example [11, p. 289]):

$$\begin{aligned}&y_{n+1}=y_{n}+h(1985f_{n+3}+12015f_{n+2}\nonumber \\&\quad +42255f_{n+1}+34465f_{n})/90720+h^{2}(-163f'_{n+3}-2421f'_{n+2}\nonumber \\&\quad -7659f'_{n+1}+1283f'_{n})/30240. \end{aligned}$$
(34)

The stable methods (32)–(34) have maximal degrees. As was noted above by using the high derivatives of the solution of the considering problems in the construction of the numerical methods, the values of the degrees for these methods can make greater. For example the following methods:

$$\begin{aligned}&y_{n+1}=y_{n}+h(f_{n+1}+f_{n})/2-h^{2}(f'_{n+1}-f'_{n})/10\nonumber \\&\quad\quad +h^{3}(f''_{n+1}-f''_{n})/120,\end{aligned}$$
(35)
$$\begin{aligned}&y_{n+1}=y_{n}+h(f_{n+1}+f_{n})/2-3h^{2}(f'_{n+1}-f'_{n})/28\nonumber \\&\quad\quad +h^{3}(f''_{n+1}-f''_{n})/84-h^{4}(f'''_{n+1}-f'''_{n})/1680. \end{aligned}$$
(36)

The methods (35) and (36) are stable and have the degrees \(p=6\) and \(p=8\), respectively. Note that the above described methods don’t allow some difficulties in application of them to calculate the definite integrals. For the illustration of the received here results let us apply the methods (18)–(20) and (24)–(26) to calculate the following definite integral:

$$I=\lambda \int \limits _{0}^{1} {exp{(\lambda {s}})ds}.$$
(37)

This problem has been reduced to solve the problem: \(y'(x)=exp{(\lambda {x})}\) \(y(0)=0\) the exact solution for which can be written as: \(y(x)=exp{(\lambda {x})}-1\). This problem has been solved by using of forward-jumping methods (17)–(20), hybrid methods (24)–(26) and multistep multiderivative methods (27), (35) and (36). For the comparison of the received results have been solved the considering problem for the different values \(\lambda\) and \(h=0,1\).

The results of the calculation of given definite integral have been tabulated in Tables 1 and 2.

Table 1 Results for solving example in the case \(\lambda =\pm 1\)
Table 2 Results for solving example in the case \(\lambda =\pm 5\)

For construction of the stable methods with high degrees here proposed the three ways. And have given some of the concrete methods of forward-jumping, hybrid and multistep second derivative types which have been compared by application of them to solve the example (37).

Remark. As in known in solving of many natural science problems arises the necessity for the computation of double integrals which in simple form can be written as:

$$ID= \int \limits _{a}^{b} {\int \limits _{c}^{d} {f(x,y)dx}dy}.$$
(38)

Let us transfer above described way to calculation of the integral (38). For this aim let us consider the following function:

$$u(x,y)= \int \limits _{a}^{x} {\int \limits _{c}^{y} {f(s,t)ds}dt}.$$

Calculation of this integral can be reduced to solving of the following initial-value problem:

$$\begin{aligned}&F'(x_{i},y)=f(x_{i},y),\,\,\,\,F(x_{i},c)=0,\,\,\,\,\,(i=0,1,\ldots ,n),\\&\quad u'(x,d)=F(x,d),\,\,\,\,\,u(a,d)=0, \end{aligned}$$

here

$$F(x,y)=\int \limits _{c}^{y} {f(x,t)dt}.$$

5 Conclusion

As was noted above here have described some ways to calculate the definite integral and their application to the computing of the double integrals. Given some comparison of the methods which have been recommended for calculation of the definite integrals. Have shown that the behavior of the errors for using methods depends on its type. For this aim, have used the results received for the step-size \(h=0,1\) which have tabulated in Tables 1 and 2. And also have shown that the errors basically depend on the properties of the solution of considering problems. As is seen from the Table 2 the results received by forward-jumping methods for the \(h=0,1\) and \(m=5\) are not satisfying results and cannot be considered as normal. But results received for the step-size \(h=0,1\) and \(m=1\) can be considered as normal. We hope that the above-described method will find its wide application in solving scientific and engineering problems. To show the advantages of described here method has considered the application of the above-mentioned method to calculate double definite integrals. And to calculate the values of concrete double integrals were applied to the proposed here methods. Taking into account the received here results have obtained that both methods to allow as theoretical and practical interest. This method is a new direction in the computation of definite integrals and we believe that it will find its followers.