1 Introduction

Stochastic delay differential equations played an important role in application areas, such as physics, biology, economics, and finance [14]. Stochastic pantograph differential equations are particular cases of stochastic unbounded delay differential equations, Ockendon and Tayler [5] found how the electric current is collected by the pantograph of an electric locomotive, therefore one speaks of stochastic pantograph differential equations.

In recent years, as one of the most important characteristics of stochastic systems, the stability analysis caused much more attention [610]. Generally speaking, due to the characteristics of stochastic differential equations themselves, it is difficult for us to get analytical solution of equations, therefore, researching the proper numerical methods for a numerical solution has certain theoretical value and practical significance. However, the research for the numerical solution of stochastic pantograph differential equations is still rare. Fan [11] investigated mean-square asymptotic stability of the θ method for linear stochastic pantograph differential equations. Hua [12, 13] developed an almost surely asymptotic stability analytical solution and numerical solution for neutral stochastic pantograph differential equations. Xiao [14] proved mean-square stability of the Milstein method for stochastic pantograph differential equations under suitable conditions. Zhou [15] showed that the Euler-Maruyama method can preserve almost surely exponential stability of stochastic pantograph differential equations under the linear growth conditions, and the backward Euler-Maruyama method can reproduce almost surely exponential stability for highly nonlinear stochastic pantograph differential equations. The numerical research for stochastic pantograph differential equations has just begun, and the stability analysis of the numerical solution of the equations needs further perfection and development.

Unfortunately, some conditions of stability are somewhat restrictive as applied to practical applications. This paper mainly proves that if an analytical solution is stable, then so is the exponential Euler method applied to the system for any step-size \(h>0\). Namely, the exponential Euler method for semi-linear stochastic pantograph differential equations is general mean-square stable.

2 Exponential Euler scheme for stochastic pantograph differential equations

Throughout this paper, unless otherwise specified, let \((\Omega,\mathcal {F},P)\) be a complete probability space with a filtration \((\mathcal {F}_{t})_{t\geq0}\), which is increasing and right continuous, and \(\mathcal{F}_{0}\) contains all P-null sets. \(W(t)\) is Wiener process defined on the probability space, which may be \(\mathcal{F}_{t}\)-adapted and independent of \(\mathcal{F}_{0}\). Let \(\mid\cdot\mid\) be the Euclidean norm. The inner product of x, y in \(\mathbb{R}^{n}\) is denoted by \(\langle x,y\rangle\) or \(x^{T}y\), \(\mathbb{R}^{n}\) is n-dimensional Euclidean space. If A is a vector or matrix, its transpose is denoted by \(A^{T}\), if A is a matrix, the trace norm of the matrix A is \(|A|=\sqrt{\operatorname{trace}(A^{T}A)}\). We use \(a\vee b\) and \(a\wedge b\) to denote \(\max\{a,b\}\) and \(\min\{a,b\}\).

We first introduce the exponential Euler method [16, 17] for a semi-linear ordinary differential equation,

$$ \textstyle\begin{cases} u'(t)+Au(t)=g(t,u),\\ u(t_{0})=u_{0}. \end{cases} $$
(1)

Making use of method of variation of constant, the expression of the solution is

$$ u(t_{n}+h)=e^{-Ah}u(t_{n})+ \int_{0}^{t}e^{-A(h-\tau)}g\bigl(t_{n}+ \tau ,u(t_{n}+\tau)\bigr)\,d\tau. $$

Applying the exponential Runge-Kutta method to equation (1),

$$\begin{aligned}& u_{n+1}=e^{-Ah}u_{n}+h\sum _{i=1}^{p}\lambda_{i}(-Ah)g(t_{n}+c_{i}h,u_{n,i}), \\& u_{n,i}=e^{-c_{i}Ah}u_{n}+h\sum _{j=1}^{p}\mu_{ij}(-Ah)g(t_{n}+c_{j}h,u_{n,j}), \end{aligned}$$

where

$$ \lambda_{i}(-Ah)=\frac{1}{h} \int_{0}^{h}e^{-A(h-\tau)}L_{i}(\tau)\,d \tau , \quad\quad\mu_{ij}(-Ah)=\frac{1}{h} \int_{0}^{c_{i}h}e^{-A(c_{i}h-\tau )}L_{j}(\tau)\,d \tau, $$

\(L_{j}(\tau)\) is the Lagrange interpolating polynomial, \(c_{1}, c_{2},\ldots, c_{p}\) are nodes, \(u_{n}\), \(u_{n,i}\) are approximate values of \(u(t_{n})\), and \(u(t_{n}+c_{i}h)\), letting \(B_{n,i}=g(t_{n}+c_{i}h,u_{n,i})\), then the numerical scheme can be written as

$$ u_{n+1}=e^{-Ah}u_{n}+h\sum _{i=1}^{p}\lambda_{i}(-Ah)B_{n,i}. $$

When \(i=1\), the numerical scheme of the first-order exponential Runge-Kutta method is

$$ u_{n+1}=e^{-Ah}u_{n}+ \int_{0}^{h}e^{-A(h-\tau)}\,d\tau g(t_{n},u_{n}). $$

That is,

$$ u_{n+1}=e^{-Ah}u_{n}+e^{-Ah}g(t_{n},u_{n}) \biggl(\frac{1-e^{Ah}}{A}\biggr). $$

Hence, \(u_{n+1}=e^{-Ah}u_{n}+e^{-Ah}g(t_{n},u_{n})h\) is called the numerical scheme of the exponential Euler method.

Then, consider the following semi-linear stochastic pantograph differential equations:

$$ \textstyle\begin{cases}dx(t)=(Ax(t)+f(t,x(t),x(pt)))\,dt+g(t,x(t),x(pt))\,dW(t),\\ x(0)=\xi, \end{cases} $$
(2)

where \(t>0\), \(0< p<1\), ξ is the initial function, \(W(t)\) is a Wiener process, \(f:\mathbb{R}^{+}\times\mathbb{R}^{n}\times\mathbb{R}^{n}\rightarrow \mathbb{R}^{n}\) and \(g:\mathbb{R}^{+}\times\mathbb{R}^{n}\times\mathbb {R}^{n}\rightarrow\mathbb{R}^{n}\) are two given Borel-measurable functions, and f and g are called drift coefficient and diffusion coefficient, respectively. \(A\in\mathbb{R}^{n\times n}\) is the generator of a strongly continuous analytical semi-group \(S=(S(t))_{t\geq0}\) [18]. By the definition of the stochastic differential equations, equation (2) can be rewritten as the following stochastic integral equation:

$$\begin{aligned} x(t) =&e^{At}\xi + \int_{0}^{t}e^{A(t-s)}f\bigl(s,x(s),x(ps) \bigr)\,ds \\ &{}+ \int_{0}^{t}e^{A(t-s)}g\bigl(s,x(s),x(ps) \bigr)\,dW(s). \end{aligned}$$
(3)

We can derive numerical schemes by [19]. From this, we have

$$\begin{aligned} x(t_{n+1}) =&e^{At}x_{n}+ \int _{t_{n}}^{t_{n+1}}e^{A(t_{n+1}-s)}f\bigl(s,x(s),x(ps) \bigr)\,ds \\ &{}+ \int_{t_{n}}^{t_{n+1}}e^{A(t_{n+1}-s)}g\bigl(s,x(s),x(ps) \bigr)\,dW(s) \end{aligned}$$
(4)

if we choose the interval to approximate the integrals in the drift and diffusion terms, we obtain

$$ x_{n+1}=e^{Ah}x_{n}+e^{Ah}f(t_{n},x_{n},x_{[pn]})h+e^{Ah}g(t_{n},x_{n},x_{[pn]}) \triangle W_{n}, $$
(5)

where the initial value \(\xi=x_{0}\), \(x_{n}\) is an approximation to analytical solution \(x(t_{n})\), which is \(\mathcal {F}_{t_{n}}\)-measurable, \(h>0\) is the given step-size, and \(h=t_{n+1}-t_{n}\), \(\triangle W_{n}=W(t_{n+1})-W(t_{n})\) are independent \(N(0,h)\) distributed stochastic variables. So equation (5) is called the exponential Euler scheme for semi-linear stochastic pantograph differential equations.

3 Mean-square stability of analytical solution

In this part, we illustrate the mean-square stability of the analytical solution for semi-linear stochastic pantograph differential equations under some suitable conditions. First of all, in order to consider the existence and uniqueness of the solution for equation (2), we impose the following assumption.

Assumption 3.1

[20]

We assume that f, g are sufficiently smooth and satisfy the Lipschitz condition and the linear growth condition, that is,

  1. (1)

    (Lipschitz condition) for all \(x_{1}, x_{2}, y_{1}, y_{2}\in\mathbb {R}^{n}\), there exist a positive constant K, and \(t\in[0,T]\), such that

    $$\begin{aligned}& \bigl|f(t,x_{1},y_{1})-f(t,x_{2},y_{2})\bigr|^{2} \vee\bigl|g(t,x_{1},y_{1})-g(t,x_{2},y_{2})\bigr|^{2} \\& \quad\leq K\bigl(|x_{1}-x_{2}|^{2}+|y_{1}-y_{2}|^{2} \bigr); \end{aligned}$$
    (6)
  2. (2)

    (linear growth condition) for all \((t,x,y)\in[0,T]\times\mathbb {R}^{n}\times\mathbb{R}^{n}\), and assuming there exists a positive constant L

    $$ \bigl|f(t,x,y)\bigr|^{2}\vee\bigl|g(t,x,y)\bigr|^{2}\leq L \bigl(1+|x|^{2}+|y|^{2}\bigr), $$
    (7)

    there exists a unique solution \(x(t)\) to equation (2) and the solution belongs to \(\mathcal{M}^{2}([0,T];\mathbb{R})\), namely \(x(t)\) satisfies \(E\int_{0}^{t}|x(t)|^{2}<\infty\).

Definition 3.1

The solution of equation (2) is said to be mean-square stable if

$$ \lim_{t\rightarrow\infty}E\bigl|x(t)\bigr|^{2}=0. $$
(8)

Definition 3.2

[21]

\(\mu[A]\) is a logarithmic norm of the matrix A, the definition is as follows:

$$ \mu[A]=\lim_{\triangle\rightarrow0^{+}}\frac{\| I+\triangle A\|-1}{\triangle}. $$

Particularly, if \(\|\cdot\|\) denotes the inner norm, \(\mu [A]\) can be written

$$ \mu[A]=\max_{\xi\neq0}\frac{\langle A\xi,\xi\rangle}{\|\xi \|^{2}}. $$

Theorem 3.1

Assume that the condition (6) holds, assume \(\mu[A]\) and K satisfy

$$ 1+2\mu[A]+2K+\frac{2K}{p}< 0. $$
(9)

Then the analytical solution of equation (2) is mean-square stable.

Proof

By the Itô formula [22], we have

$$\begin{aligned} d\bigl|x(t)\bigr|^{2} =&\bigl[2\bigl\langle x(t),Ax(t)+ f\bigl(t,x(t),x(pt)\bigr) \bigr\rangle +\bigl|g\bigl(t,x(t),x(pt)\bigr)\bigr|^{2}\bigr]\,dt \\ &{}+2\bigl\langle x(t),g\bigl(t,x(t),x(pt)\bigr)\bigr\rangle \,dW(t) \\ =&\bigl[2\bigl\langle x(t),Ax(t)\bigr\rangle +2\bigl\langle x(t),f \bigl(t,x(t),x(pt)\bigr)\bigr\rangle +\bigl|g\bigl(t,x(t),x(pt)\bigr)\bigr|^{2} \bigr]\,dt \\ &{}+2\bigl\langle x(t),g\bigl(t,x(t),x(pt)\bigr)\bigr\rangle \,dW(t). \end{aligned}$$

According to condition (6) and the inequality \(2ab\leq a^{2}+b^{2}\), we have

$$\begin{aligned} 2\bigl\langle x(t),f\bigl(t,x(t),x(pt)\bigr)\bigr\rangle \leq& \bigl|x(t)\bigr|^{2}+\bigl|f\bigl(t,x(t),x(pt)\bigr)\bigr|^{2} \\ \leq&(1+K)\bigl|x(t)\bigr|^{2}+K\bigl|x(pt)\bigr|^{2}. \end{aligned}$$

Combining with Definition 3.2, we can obtain

$$\begin{aligned} d\bigl|x(t)\bigr|^{2} \leq&\bigl[2\mu [A]\bigl|x(t)\bigr|^{2}+(1+K)\bigl|x(t)\bigr|^{2} +K\bigl|x(pt)\bigr|^{2}+K\bigl|x(t)\bigr|^{2} \\ &{}+K\bigl|x(pt)\bigr|^{2}\bigr]\,dt +2\bigl\langle x(t),g\bigl(t,x(t),x(pt)\bigr) \bigr\rangle \,dW(t) \\ =&\bigl[\bigl(1+2\mu[A]+2K\bigr)\bigl|x(t)\bigr|^{2}+2K\bigl|x(pt)\bigr|^{2} \bigr]\,dt \\ &{}+2\bigl\langle x(t),g\bigl(t,x(t),x(pt)\bigr)\bigr\rangle \,dW(t). \end{aligned}$$

Integrating from 0 to t on both sides of the above inequality, it turns into

$$\begin{aligned} \bigl|x(t)\bigr|^{2} \leq&|\xi|^{2}+ \int_{0}^{t}\bigl[\bigl(1+2\mu [A]+2K \bigr)\bigl|x(s)\bigr|^{2}+2K\bigl|x(ps)\bigr|^{2}\bigr]\,ds \\ &{}+2 \int_{0}^{t}x(s)g\bigl(s,x(s),x(ps)\bigr)\,dW(s). \end{aligned}$$

Taking the expectation,

$$\begin{aligned} E\bigl|x(t)\bigr|^{2} \leq& E|\xi|^{2}+E \int_{0}^{t}\bigl[\bigl(1+2\mu [A]+2K \bigr)\bigl|x(s)\bigr|^{2}+2K\bigl|x(ps)\bigr|^{2}\bigr]\,ds \\ \leq &E|\xi|^{2}+\bigl(1+2\mu[A]+2K\bigr)E \int_{0}^{t}\bigl|x(s)\bigr|^{2}\,ds+ \frac {2K}{p}E \int_{0}^{pt}\bigl|x(s)\bigr|^{2}\,ds \\ \leq& E|\xi|^{2}+\biggl(1+2\mu[A]+2K+\frac{2K}{p}\biggr)E \int_{0}^{t}\bigl|x(s)\bigr|^{2}\,ds. \end{aligned}$$

Together with condition \(1+2\mu[A]+2K+\frac{2K}{p}<0\), we have

$$ \lim_{t\rightarrow\infty}E\bigl|x(t)\bigr|^{2}=0. $$

The analytical solution is mean-square stable. Therefore, the theorem is proven. □

4 General mean-square stability of numerical solution of the exponential Euler method

We introduce the exponential Euler method for semi-linear stochastic pantograph differential equations in this section.

Definition 4.1

For any step-size \(h>0\), if the exponential Euler method to equation (2) generates a numerical approximation that satisfies

$$ \lim_{n\rightarrow\infty}E|x_{n}|^{2}=0 $$
(10)

then the numerical method applied to equation (2) is said to be general mean-square stable.

Theorem 4.1

Suppose that the conditions (6) and (9) hold, for arbitrary \(h>0\), then the numerical solution of the exponential Euler method is general mean-square stable.

Proof

According to equation (5) and taking squares on both sides, we can get

$$\begin{aligned} |x_{n+1}|^{2} =&\bigl|e^{Ah}x_{n}+e^{Ah}f(t_{n},x_{n},x_{[pn]})h+e^{Ah}g(t_{n},x_{n},x_{[pn]}) \triangle W_{n}\bigr|^{2} \\ =&e^{2\mu [A]h}\bigl(|x_{n}|^{2}+\bigl|f(t_{n},x_{n},x_{[pn]})\bigr|^{2}h^{2} +\bigl|g(t_{n},x_{n},x_{[pn]}) \triangle W_{n}\bigr|^{2}\bigr) \\ &{}+2e^{2\mu[A]h}\bigl\langle x_{n},f(t_{n},x_{n},X_{[pn]})h \bigr\rangle +2e^{2\mu [A]h}\bigl\langle x_{n},g(t_{n},x_{n},x_{[pn]}) \triangle W_{n}\bigr\rangle \\ &{}+2e^{2\mu[A]h}\bigl\langle f(t_{n},x_{n},x_{[pn]})h, g(t_{n},x_{n},x_{[pn]}) \triangle W_{n}\bigr\rangle . \end{aligned}$$

Taking the expectation and substituting condition (6), we obtain

$$\begin{aligned} E|x_{n+1}|^{2} \leq& e^{2\mu [A]h}E\bigl[|x_{n}|^{2}+K\bigl(|x_{n}|^{2}+|x_{[pn]}|^{2} \bigr)h^{2}+K\bigl(|x_{n}|^{2}+|x_{[pn]}|^{2}\bigr)|\triangle W_{n}|^{2} \bigr] \\ &{}+e^{2\mu[A]h}E\bigl[(1+K)|x_{n}|^{2} +K|x_{[pn]}|^{2}\bigr]h+2e^{2\mu[A]h}E\bigl\langle x_{n},g(t_{n},x_{n},x_{[pn]})\triangle W_{n}\bigr\rangle \\ &{}+2e^{2\mu[A]h}E\bigl\langle f(t_{n},x_{n},x_{[pn]})h,g(t_{n},x_{n},x_{[pn]}) \triangle W_{n}\bigr\rangle . \end{aligned}$$
(11)

We still note that \(E(\triangle W_{n})=0\), \(E[(\triangle W_{n})^{2}]=h\), and \(x_{n}\), \(x_{[pn]}\) are \(\mathcal{F}_{t_{n}}\) measurable, then

$$ E\bigl\langle x_{n},g(t_{n},x_{n},x_{[pn]}) \triangle W_{n}\bigr\rangle =E\bigl(x_{n}^{T}g(t_{n},x_{n},x_{[pn]}) \bigr)E(\triangle W_{n}|\mathcal{F}_{t_{n}})=0. $$

Similarly

$$\begin{aligned}& E\bigl\langle f(t_{n},x_{n},x_{[pn]})h,g(t_{n},x_{n},x_{[pn]}) \triangle W_{n}\bigr\rangle =0, \\& E\bigl|g(t_{n},x_{n},x_{[pn]})\triangle W_{n}\bigr|^{2}=E\bigl|g(t_{n},x_{n},x_{[pn]})\bigr|^{2}E \bigl(\triangle W_{n}^{2}|\mathcal {F}_{t_{n}}\bigr) \\& \hphantom{E\bigl|g(t_{n},x_{n},x_{[pn]})\triangle W_{n}\bigr|^{2}}=E\bigl|g(t_{n},x_{n},x_{[pn]})\bigr|^{2}h\leq K \bigl(E|x_{n}|^{2}+E|x_{[pn]}|^{2} \bigr)h. \end{aligned}$$

Equation (11) turns into

$$\begin{aligned} E|x_{n+1}|^{2} \leq& e^{2\mu [A]h}\bigl[ \bigl(1+Kh^{2}+2Kh+h\bigr)E|x_{n}|^{2}+ \bigl(Kh^{2}+2Kh\bigr)E|x_{[pn]}|^{2}\bigr] \\ =&B_{1}E|x_{n}|^{2}+B_{2}E|x_{[pn]}|^{2}, \end{aligned}$$

where

$$ B_{1}= e^{2\mu[A]h}\bigl(1+Kh^{2}+2Kh+h\bigr),\quad\quad B_{2}= e^{2\mu[A]h}\bigl(Kh^{2}+2Kh\bigr). $$

Then

$$ E|x_{n+1}|^{2}\leq(B_{1}+B_{2})\max \bigl\{ E|x_{n}|^{2},E|x_{[pn]}|^{2}\bigr\} , $$

and if

$$ 2\mu[A]h+\ln\bigl(1+2Kh^{2}+4Kh+h\bigr)< 0 $$
(12)

the exponential Euler method is mean-square stable. Then we verify that (12) holds under the conditions (9) and the following inequality. We all know that

$$ e^{x}>1+x+\frac{x^{2}}{2!}+\frac{x^{3}}{3!} $$

if

$$ \bigl(1+2Kh^{2}+4Kh+h\bigr)< 1-2\mu[A]h+ \frac{(-2\mu[A]h)^{2}}{2!}+\frac{(-2\mu[A]h)^{3}}{3!}. $$
(13)

Simplifying equation (13), we obtain

$$ \frac{4}{3}\mu[A]^{3}h^{2}+\bigl(2K-2 \mu[A]\bigr)h+\bigl(1+2\mu[A]+4K\bigr)< 0. $$
(14)

Let

$$ m(h)=\frac{4}{3}\mu[A]^{3}h^{2}+\bigl(2K-2\mu[A] \bigr)h+\bigl(1+2\mu[A]+4K\bigr). $$

Due to \(0< p<1\) and condition (9),

$$ 1+2\mu[A]+4K< 1+2\mu[A]+2K+\frac{2K}{P}< 0. $$

We can see \(\mu[A]<0\), it is easy to know that

$$ m'(h)=\frac{8}{3}\mu[A]^{3}h+2K-2\mu[A]< 0 $$

when \(h>0\). We have the monotonicity of the function, namely, \(m(h)< m(0)\) and \(m(0)=1+2\mu[A]+4K<0\). Hence, equation (13) holds and this implies that

$$ \bigl(1+2Kh^{2}+4Kh+h\bigr)< e^{-2\mu[A]h} $$

and (12) holds.

So

$$ B_{1}+B_{2}=e^{2\mu[A]h}\bigl(1+2Kh^{2}+4Kh+h \bigr)< 1. $$

Because of \(B_{1}+B_{2}<1\), it is not difficult to see that \(E|x_{n}|^{2}\leq E|x_{[pn]}|^{2}\), therefore

$$\begin{aligned} E|x_{n+1}|^{2} \leq&(B_{1}+B_{2})E|x_{[pn]}|^{2} \leq (B_{1}+B_{2})^{2}E|x_{[p([pn]-1)]}|^{2} \\ \leq&\cdots\leq(B_{1}+B_{2})^{k}E|x_{0}|^{2} \end{aligned}$$

as k tends to infinity, \((B_{1}+B_{2})^{k}<1\). Then \(\lim_{n\rightarrow\infty }E|x_{n}|^{2}=0\), the exponential Euler method is general mean-square stable. This completes the proof. □

Remark 4.1

When \(p=1\), equation (2) turns into

$$ \textstyle\begin{cases} dx(t)=(Ax(t)+f(t,x(t)))\,dt+g(t,x(t))\,dW(t),\\ x(0)=\xi. \end{cases} $$
(15)

For convenience, we consider the scalar semi-linear stochastic pantograph differential equation

$$ \textstyle\begin{cases} dx(t)=(ax(t)+f(t,x(t)))\,dt+g(t,x(t))\,dW(t),\\ x(0)=\xi, \end{cases} $$
(16)

where \(a<0\), if conditions (6) and \(2a+2\sqrt{K}+K<0\) hold, for any step-size \(h>0\), the exponential Euler method is stable. This result was demonstrated by Shi and Xiao [23].

Remark 4.2

Consider the following scalar stochastic pantograph differential equation:

$$ \textstyle\begin{cases} dx(t)=ax(t)\,dt+(bx(t)+bx(pt))\,dW(t),\\ x(0)=\xi. \end{cases} $$
(17)

Take \(a=-5\), \(b=1\), \(c=2\). It is easy to see the coefficients satisfy the condition \(a< -\frac{1}{2}(|b|+|c|)^{2}\). Using the exponential Euler method for (17), we get

$$ x_{n+1}=e^{-5h}x_{n}+e^{-5h}(x_{n}+2x_{[pn]}) \triangle W_{n} . $$
(18)

Squaring both sides of (18), taking the expectation, and using the inequality \(2ab\leq a^{2}+b^{2}\), we have

$$\begin{aligned} Ex_{n+1}^{2} =&e^{-10h}x_{n}^{2}+e^{-10h} \bigl(x_{n}^{2}+4x_{n}x_{[pn]}+4x_{[pn]}^{2} \bigr)h \\ \leq &e^{-10h}x_{n}^{2}+e^{-10h} \bigl[x_{n}^{2}+2\bigl(x_{n}^{2}+x_{[pn]}^{2} \bigr)+4x_{[pn]}^{2}\bigr]h \\ \leq &e^{-10h}\bigl[(1+3h)x_{n}^{2}+6hx_{[pn]}^{2} \bigr]. \end{aligned}$$

Namely

$$ e^{10h}Ex_{n+1}^{2}\leq(1+3h)x_{n}^{2}+6hx_{[pn]}^{2}. $$

Use the inequality \(e^{10h}>1+10h\). So

$$ Ex_{n+1}^{2}\leq\frac{(1+3h)x_{n}^{2}+6hx_{[pn]}^{2}}{e^{10h}}\leq\frac {1+9h}{1+10h}\max \bigl\{ x_{n}^{2},x_{[pn]}^{2}\bigr\} . $$

The coefficients \(\frac{1+9h}{1+10h}<1\). According to Theorem 4.1, the numerical solution produced by the exponential Euler method is mean-square stable for any step-size \(h>0\).

5 Numerical example

We will use numerical example to prove the effectiveness of the exponential Euler method. Consider the following stochastic pantograph differential equation:

$$ \textstyle\begin{cases} dx(t)=[a_{1}x(t)+a_{2}x(pt)]\,dt+[b_{1}x(t)+b_{2}x(pt)]\,dW(t),\\ x(0)=1. \end{cases} $$
(19)

If the coefficients of equation (19) satisfy

$$ a_{1}+|a_{2}|+\frac{1}{2}\bigl(|b_{1}|+|b_{2}|\bigr)^{2}< 0, $$
(20)

then the solution of (19) is mean-square stable.

Case 1. We choose the coefficients of the test equation (19) as \(a_{1}=-1.5\), \(a_{2}=3\), \(b_{1}=1\), \(b_{2}=0.5\), and \(p=0.5\). Obviously, the coefficients do not satisfy the condition (20). Numerical solutions produced by the exponential Euler method with \(h_{1}=0.05\), \(h_{2}=0.5\) are shown Figure 1. It is easy to see that numerical solutions are not mean-square stable.

Figure 1
figure 1

The exponential Euler method with \(\pmb{h_{1}=0.05}\) , \(\pmb{h_{2}=0.5}\) .

Case 2. Taking the coefficients as \(a_{1}=-6.5\), \(a_{2}=1\), \(b_{1}=1\), \(b_{2}=0.5\), and \(p=0.5\). The coefficients satisfy the condition (20). Namely, the analytical solution is stable. We used Matlab to randomly generate 50,000 discrete trajectories, getting the mean-square value of 50,000 trajectories at the same time, that is,

$$ Y_{j}=\frac{1}{50\text{,}000}\sum_{i=1}^{50\text{,}000}\bigl|y_{j}^{i}\bigr|^{2}, $$

where \(y_{j}^{i}\) is numerical solution of i trajectories at the time \(t_{j}\). Apply the exponential Euler method with step-size \(h_{3}=0.05\), \(h_{4}=0.5\), \(h_{5}=1.5\), and \(h_{6}=2.5\) as shown Figure 2. We observe that numerical solutions produced by the exponential Euler method with arbitrary step-sizes \(h>0\) are all stable.

Figure 2
figure 2

The exponential Euler method with \(\pmb{h_{3}=0.05}\) , \(\pmb{h_{4}=0.5}\) , \(\pmb{h_{5}=1.5}\) , \(\pmb{h_{6}=2.5}\) .

Case 3. Considering (17) and taking \(p=0.5\). We can know that numerical solutions produced by the Euler Maruyama method are not stable under \(h=0.2\), \(h=0.5\) (see [24]). While, under the same step-size, the exponential Euler numerical solutions are stable as shown Figure 3. It is proved that the exponential Euler method is more advantageous than the Euler Maruyama method in certain cases.

Figure 3
figure 3

The exponential Euler method with \(\pmb{h_{1}=0.2}\) , \(\pmb{h_{2}=0.5}\) .

6 Conclusions

In this paper, we investigate the stability of analytical solutions and numerical solutions for a class of semi-linear stochastic pantograph differential equations. We not only obtain the mean-square stability of the analytical solution under some sufficient conditions but we also prove the general mean-square stability of numerical solution. That is, if the semi-linear stochastic pantograph differential equation is stable, then the exponential Euler method applied to the system is mean-square stable for any step-size \(h>0\).