1. Introduction
As core modeling tools in mathematical physics, differential equation models accurately describe complex system behaviors across physics, engineering science, financial engineering, and other multidisciplinary fields [
1,
2]. In evaluating the advantages and disadvantages of numerical schemes, stochastic oscillators are important differential equation models [
3,
4,
5,
6,
7]. Numerous studies explore the linear stochastic oscillator
,
, equally:
where
and
m are given real-valued parameter, and
W(
t) is Brownian motion. The dot means differentiation: ˙ =
,
.
Proposition 1 ([
6]).
For the Hamiltonian stochastic system given in (1), it maintains the symplectic 2-form . And its solution can be represented as follows: exhibits oscillatory behavior. Furthermore, it also satisfies the the following condition: The above proposition reveals that the solution phase flow of (
1) is symplectic. When
,
; so, the growth of its second moment exhibits a pattern of linear evolution over time. Meanwhile, its solution exhibits oscillation.
In the past decades, many numerical methods for solving stochastic differential equations have been widely studied ref. [
8,
9,
10,
11,
12]. Especially, Runge–Kutta methods are widely used to solve stochastic ODEs. Based on both convergence order conditions and quadratic invariant-preserving conditions, ref. [
8] constructs some stochastic Runge–Kutta schemes preserving quadratic invariants with strong and weak convergence order respectively. Ref. [
9] concerns the stochastic Runge–Kutta method with high strong order for solving the Stratonovich stochastic differential equations with scalar noise. Additionally, the Euler–Maruyama method is studied in [
10] for solving stochastic differential equations with G-Lévy process. Ref. [
11] discusses three-stage stochastic Runge–Kutta (SRK) methods with strong order 1 for a strong solution of Stratonovich stochastic differential equations. Ref. [
12] focuses on the numerical analysis of solutions to stochastic differential equations with jumps.
For the numerical methods, there is a special kind of method, namely stochastic symplectic and stochastic multi-symplectic methods [
13,
14,
15,
16,
17,
18]. As these references show, preserving the symplectic in a numerical way holds equal importance to the achievement of high accuracy when solving Hamiltonian systems. Ref. [
13] proposes three novel stochastic multi-symplectic methods to discretize stochastic Maxwell equations in order to investigate the preservation of these properties numerically. Ref. [
14] studies stochastic multi-symplectic conservation law for stochastic Hamiltonian partial differential equations, and develops a stochastic multi-symplectic method for numerically solving a kind of stochastic nonlinear Schrödinger equations. Ref. [
15] discusses the symplectic integrator for the numerical solution of a kind of high order Schrödinger equation with trapped terms. Ref. [
16] considers partitioned Runge–Kutta methods for Hamiltonian partial differential equations. Ref. [
17] proposes the stochastic symplectic and multi-symplectic methods.
Additionally, exponentially fitted methods are also applied to solve stochastic differential equations widely (see [
19,
20,
21,
22,
23,
24]). In ref. [
19], the exponential midpoint method is considered to have better accuracy than the traditional implicit midpoint method, which is one of the reasons why we chose this method. Ref. [
20] establishes a category of embedded exponentially fitted Rosenbrock methods incorporating variable coefficients and an adaptive step size, which enables the attainment of third-order convergence. Ref. [
21] presents an exponentially fitted Runge–Kutta fifth-order method with six stages. Ref. [
22] studies two different exponential fitted Runge–Kutta collocation methods with fixed points and with frequency-dependent points. Ref. [
23] considers the ability of numerical exponentially fitted Runge–Kutta methods to preserve certain structural properties of the flow associated with differential systems. Ref. [
24] constructs exponentially fitted Runge–Kutta methods with s stages.
For stochastic differential equations, a variety of parameter estimation methods have been proposed in ref. [
25,
26,
27,
28]. Ref. [
25] proposes three methods of parameter estimation based on discrete observation data for stochastic differential equations. Ref. [
26] discusses the relation between maximum likelihood and quasi maximum likelihood estimation. The maximum likelihood estimation for stochastic differential equations driven by fractional Brownian motion is proposed in ref. [
27]. The authors of [
28] propose exponentially fitted Runge–Kutta methods that have s stages while presenting the method for estimating the parameter.
In recent years, with increasing demands for accuracy and efficiency in scientific computing, structure-preserving integrators have gained significant attention in the numerical solution of stochastic differential equations, particularly for stochastic Hamiltonian systems. Additionally, in comparison with traditional linear multistep or Runge–Kutta methods, exponentially fitted schemes can achieve superior phase and amplitude accuracy with big step sizes.
However, as the need for long-term stochastic simulation grows, many existing methods still exhibit notable limitations when applied to complex systems. Conventional stochastic integrators often overlook the geometric structure of the system, leading to non-physical phenomena such as energy drift in long-term simulations. For stochastic systems with high-frequency oscillatory behavior, traditional numerical methods typically require extremely small time steps to maintain accuracy. The exponential-fitted midpoint method effectively addresses these issues.
Accordingly, inspired by these studies, this paper intends to apply the exponentially fitted midpoint method to stochastic oscillators, investigating its numerical solution effect, strong convergence, and parameter estimation performance. Finally, several numerical experiments are presented to support our theoretical findings. This constitutes the core research motivation of this work.
The remainder of this paper is organized as follows. In
Section 2, we propose the exponentially fitted midpoint scheme for stochastic oscillators, and analyze its convergence order. In
Section 3, we demonstrate certain properties of this scheme. In
Section 4, we present the parameter estimation of stochastic oscillator based on the numerical discrete scheme. In
Section 5, numerical simulations are presented, illustrating the effectiveness of the proposed exponentially fitted midpoint scheme. Some conclusions and prospects are given in
Section 6 to end this paper.
2. Exponentially Fitted Midpoint Scheme
When the one-stage exponentially fitted Runge–Kutta scheme featuring a node is applied to the deterministic first-order system
, it yields the following:
Here
,
h is the fixed step size. Enabling the scheme to be exact with respect to the linear fitting trigonometric space formed by
and symplectic [
21], we obtain an exponentially fitted midpoint scheme with
,
,
,
,
; the frequency parameter
is a fitting parameter, equivalently:
By using the Taylor expansion formula, the local truncation error of the exponential midpoint method can be obtained as
. Here
,
,
. Hence, it follows that the scheme converges with a convergence order of 2. If
is chosen such that
, then the scheme will be characterized by convergence of order 3 [
18]. When partitioning with equidistant points, we apply exponentially fitted midpoint (denoted by EFM) scheme to (
1) and obtain the following formula:
where
h is the temporal step-size and
is an indeterminate variable. Meanwhile, the numerical values corresponding to
and
are represented by
and
, respectively.
Theorem 1. For the linear stochastic system (1), the EFM scheme (5a,b) is convergent with root mean-square order 1. Proof of Theorem 1. With respect to the linear stochastic system (
1), the Euler–Maruyama scheme is convergent with root mean-square order 1, and its corresponding formula reads
We suppose
,
and take into account the local truncation error of the two schemes (5a,b) and (6a,b). From the EFM scheme (5a,b), we get the following:
where
,
. Then, substitute (
7a) and (7b) into (5b) and (
5a) respectively. We can obtain the following:
We can derive:
Then from (6a,b) and (9a,b), we obtain the following errors:
Now, from the assumption that
and
, with (10a,b), we can derive:
We perform Taylor expansion of parameter
a and
b (defined by
and
h) with respect to the step size
h,
is a a given constant, and express their local truncation error as a power series of
h. The following result can be obtained:
From (
11)–(
16), we can get the following:
Then, (
17) and (
18) reveal that
. So, the EFM scheme (5a,b) converges to 1 in the mean-square sense. □
6. Conclusions and Prospects
In this paper, by applying the EFM scheme (
4) to solve the linear stochastic oscillator system (
1), the symplectic EFM scheme (5a,b) can be derived. In the stochastic case, the EFM scheme possesses the convergence with mean-square order 1 regardless of the value of
. The long-term oscillatory characteristics of the numerical solutions are effectively preserved. Meanwhile, the EFM scheme can also approximately maintain the linear growth property of the solutions.
For parameter estimation, we discretize the stochastic oscillator by using the EFM method and the Euler–Maruyama method respectively. Under different conditions, through numerical experiments, the parameter estimation of both the exponential midpoint method and the Euler method is effective and can be applied to parameter estimation for stochastic differential equations.
Finally, applying the EFM method to a class of stochastic differential equations with oscillatory solutions possesses significant theoretical significance and broad application prospects. Looking forward, we aim to extend this approach to more complex stochastic partial differential equations and refine its parameter inversion methodology.