1 Introduction

Fractional derivatives are well suited to describe wave propagation in complex media. When introduced in classical wave equations, they allow the modeling of attenuation and dispersion that better describes sound propagation in biological tissues. Fractional derivatives have been used for modeling heat transfer or diffusion [1, 2], seismic data [3] and sound wave propagation, [46] only to name a few. When modeling sound propagation, the use of fractional derivatives leads to models that better describe observations of attenuation and dispersion [7]. The wave equation for viscous losses involving integer-order derivatives only leads to an attenuation which is proportional to the square of the frequency. This does not always reflect reality. For instance, for biological tissues [8] and marine sediments [9], the frequency dependency of attenuation and dispersion is more complicated. Different forms of the wave equation have been proposed to reflect this complexity [4, 7, 1012].

Several simulators take a modified nonlinear wave equation as a starting point by replacing the traditional loss operator by fractional derivatives [7, 13, 14] or a convolution in time [15, 16]. Their justification for modifying the standard wave equations is the ability of fractional derivatives to lead to a dispersion equation that better describes attenuation and dispersion. A wave equation based on fractional constitutive equations gives an alternative to modeling absorption and dispersion in complex media like biological tissues. However, in the case where the medium, through which these sounds are propagating, is variable or heterogeneous, neither the wave equation described by integer order nor that described by constant fractional order are suited for describing the phenomena. To solve the above problems, the variable-order (VO) fractional acoustic wave equation models are suggested for use in this work. This present work is therefore devoted to the discussion underpinning the description of the extension of an acoustic wave equation to the concept of the variational-order derivative and the solution of the generalized equation using the Crank-Nicholson scheme.

2 A possible modification of an acoustic wave equation

For the readers that are not acquainted with the concept of the variational-order derivative, we start this section by presenting the basic definition of this derivative.

2.1 Variable-order differential operator

Let f:RR, xf(x) denote a continuous but necessary differentiable, let α(x) be a continuous function in (0,1]. Then its variable-order differential in [a,) is defined as

D 0 α ( x ) ( f ( x ) ) = 1 Γ ( 1 α ( x ) ) 0 x ( x t ) α ( t ) d f ( t ) d t dt.
(2.1)

The above derivative is called the Caputo variational-order differential operator, in addition, the derivative of the constant is zero.

2.2 Statement of the problem

Attenuation of propagating waves in many materials follows a power law over several decades of frequency variation [17], Szabo and Wu [18]

α= α 0 ω y ,

where α 0 and y are constants that characterize the medium. Such attenuation can be described by wave equations with particular loss operators.

In this paper we consider only the acoustic wave equation with loss operator. A wave equation with a loss operator L, which in the general case is a convolution, is

2 u 1 c 0 2 2 u t 2 +Lu=0,
(2.2)

where c 0 is a propagation velocity and u(x;y;z;t) is the particle displacement. As is well established, the form of the loss operator is simple to justify from the underlying physics for only a few values of y. One such case is classical visco-elasticity, which is used as a first-order model, for instance, air and water. The loss operator is then [17]

Lu=τ ( 2 u ) t .
(2.3)

It gives a power law with exponent y=2 when ωτ1, where τ is medium-specific relaxation time. In 1994 Szabo developed a wave equation for y[0;2] which for y=2 was similar to an approximation to equation (2.3) where the viscoelastic loss term instead is a third-order time derivative [18]

Lu= ( τ c 0 2 ) 3 u t 3 .
(2.4)

In 2004 Chen and Holm reformulated the lossy wave equation in terms of a spatial fractional derivative with a fractional Laplacian. Under these circumstances, the loss operator was proposed as [19]

Lu ( 2 ) y / 2 u t .
(2.5)

This operator covers exactly the loss operator of equation (2.3) for y=2, not just its low-frequency approximation. However, a disadvantage of these formulations is that they do not guarantee a causal solution. Recently Wismer [20] proposed a loss operator to be in the form of

Lu= τ y 1 y 1 ( 2 u ) t y 1 .
(2.6)

The above proposed loss operator is equivalent to the loss operator of the viscoelastic equation for y=2. This operator is interesting as it turns out to be based on an underlying fractional Kelvin-Voigt model despite the impression Wismer [20] gives that it was found by inspection just like the previous operators. Although the wave equations given here may successfully be applied for wave propagation simulation, most of them are nevertheless derived through ad hoc procedures which are not directly linked to more basic physical principles.

In this paper, we propose the loss operator to be converted to the concept of variational-order derivative as follows:

Lu=τ ρ ( x , t ) ( u ) t ρ ( x , t ) ,
(2.7)

where ρ(x,t) is a smooth function with the range (1,2] and ρ ( x , t ) t ρ ( x , t ) is the variational-order derivative. Therefore equation (2.2) can then be reformulated as follows:

2 u 1 c 0 2 2 u t 2 +τ ρ ( x , t ) ( u ) t ρ ( x , t ) =0.
(2.8)

The above equation is then called the ‘variable-order derivative acoustic wave equation with loss operator’. This new equation does not have obviously an exact analytical solution. In particular, the equation cannot be solved analytically. It is therefore important to examine its solution numerically. The aim of the next section is then devoted to the discussion underpinning the numerical solution of the modified equation using the Crank-Nicholson scheme.

3 Numerical solution of a variable-order derivative acoustic wave equation with loss operator

Numerical methods yield approximate solutions to the governing equation through the discretization of space and time. Within the discredited problem domain, the variable internal properties, boundaries and stresses of the system are approximated. Deterministic, distributed-parameter, numerical models can relax the rigid idealized conditions of analytical models or lumped-parameter models, and they can therefore be more realistic and flexible for simulating fields conditions. The finite difference schemes for constant-order time or space fractional diffusion equations have been widely studied [21, 22]. For constant-order time fractional diffusion equations, the implicit difference approximation scheme was proposed in [23]. The weighted average finite difference methods were introduced in [24]. The matrix approach for fractional diffusion equations was proposed in [25], and Hanert proposed a flexible numerical scheme for the discretization of the space-time fractional diffusion equation [26]. Lately, the numerical schemes for a VO space fractional advection-dispersion equation was considered by the author of [27]. An investigation of the explicit scheme for a VO nonlinear space fractional diffusion equation was done in [28]. Before performing the numerical methods, we assume that equation (2.3) has a unique and sufficiently smooth solution. To establish the numerical schemes for the above equation, we let x l =lh, 0lM, Mh=L, t k =kσ, 0kN, Nσ=T, h is the step and τ is the time size, M and N are grid points.

3.1 Crank-Nicholson scheme [29]

We introduce the Crank-Nicholson scheme as follows. Firstly, the discretization of first- and second-order space derivative is stated as follows:

u x = 1 2 ( ( u ( x l + 1 , t k + 1 ) u ( x l 1 , t k + 1 ) 2 ( h ) ) + ( u ( x l + 1 , t k ) Φ ( x l 1 , t k ) 2 ( h ) ) ) +O(h),
(3.1)
2 u ( x l , t k + 1 ) t 2 = 1 2 ( ( u ( x l + 1 , t k + 1 ) 2 u ( x l + 1 , t k ) + u ( x l + 1 , t k 1 ) ) h 2 2 u ( x l , t k + 1 ) t 2 = + ( u ( x l , t k + 1 ) 2 u ( x l , t k ) + u ( x l , t k 1 ) ) h 2 ) + O ( h 2 ) ,
(3.2)
2 u x 2 = 1 2 ( ( u ( x l + 1 , t k + 1 ) 2 u ( x l , t k + 1 ) + u ( x l 1 , t k + 1 ) ( h ) 2 ) 2 u x 2 = + ( u ( x l + 1 , t k ) 2 u ( x l , t k ) + u ( x l 1 , t k ) ( h ) 2 ) ) + O ( h 2 ) , u = 1 2 ( u ( x l , t k + 1 ) + u ( x l , t k ) ) .
(3.3)

The Crank-Nicholson scheme for the VO time fractional diffusion model can be stated as follows:

ρ l k + 1 u ( x l , t k + 1 ) t ρ l k + 1 = σ ρ l k + 1 Γ ( 2 ρ l k + 1 ) ( u ( x l , t k + 1 ) u ( x l , t k ) + j = 1 k [ u ( x l , t k + 1 j ) u ( x l , t k j ) ] [ ( j + 1 ) 1 ρ l k + 1 ( j ) 1 ρ l k + 1 ] ) .
(3.4)

Now, replacing equations (3.1), (3.2), (3.3) and (3.4) in (2.3), we obtain the following:

τ σ ρ l k + 1 Γ ( 2 ρ l k + 1 ) ( u ( x l , t k + 1 ) u ( x l , t k ) + j = 1 k [ u ( x l , t k + 1 j ) u ( x l , t k j ) ] [ ( j + 1 ) 1 ρ l k + 1 ( j ) 1 ρ l k + 1 ] ) + 1 2 ( ( u ( x l + 1 , t k + 1 ) 2 u ( x l , t k + 1 ) + u ( x l 1 , t k + 1 ) ( h ) 2 ) + ( u ( x l + 1 , t k ) 2 u ( x l , t k ) + u ( x l 1 , t k ) ( h ) 2 ) ) = 1 c 0 2 1 2 ( ( u ( x l + 1 , t k + 1 ) 2 u ( x l + 1 , t k ) + u ( x l + 1 , t k 1 ) ( h ) 2 ) + ( u ( x l , t k + 1 ) 2 u ( x l , t k ) + u ( x l , t k 1 ) ( h ) 2 ) ) .
(3.5)

For simplicity, let us put

b j l , k + 1 = ( j + 1 ) 1 α l k + 1 ( j ) 1 α l k + 1 ; T l k + 1 = Γ ( 2 ρ l k + 1 ) σ ρ l k + 1 2 τ c 0 2 h 2 and λ j l , k + 1 = b j 1 l , k + 1 b j l , k + 1 and u ( x l , t k ) = u l k .

Equation (3.5) becomes

u l k + 1 ( 1 + 2 T l k + 1 c 0 2 T l k + 1 ) = u l + 1 k + 1 ( c 0 2 T l k + 1 T l k + 1 ) + u l 1 k + 1 ( c 0 2 T l k + 1 T l k + 1 ) + u l k ( 1 + c 0 2 T l k + 1 + 2 T l k + 1 ) + u l k 1 ( T l k + 1 ) j = 1 k [ u l k + 1 j u l k j ] b j l , k + 1 .
(3.6)

4 Stability analysis of the Crank-Nicholson scheme

In this section, we analyze the stability conditions of the Crank-Nicholson scheme for the generalized acoustic wave equation.

Let ζ l k = u l k U l k , here U l k is the approximate solution at the point ( x l , t k ) (k=1,2,,N, l=1,2,,M1) and, in addition, ζ k = [ ζ 1 k , ζ 2 k , , ζ M 1 k ] T and the function ζ k (x) is chosen to be

ζ k (x)= { ζ l k if  x l h 2 < x x l + h 2 , l = 1 , 2 , , M 1 , 0 if  L h 2 < x L .
(4.1)

Then the function ζ k (x) can be expressed in Fourier series as follows:

ζ k (x)= m = m = δ m (m)exp[2iπmk/L],
(4.2)
δ k (x)= 1 L 0 L ρ k (x)exp [ 2 i π m x L ] dx.
(4.3)

It was established by [30] that

ρ 2 2 2 = m = m = δ k ( m ) 2 .

Observe that for all k,l1, 01 α l k + 1 <1. Then the following properties of the coefficients T l k + 1 , λ j l , k + 1 and b l k + 1 can be established.

(1) T l k + 1  are negative for all  l = 1 , 2 , , M 1 . (2) 0 < λ j l , k λ j 1 l , k 1 for all  l = 1 , 2 , , M 1 . (3) 0 b j l , k 1 , j = 0 k 1 b j + 1 l , k + 1 = 1 λ k l , k + 1 for all  l = 1 , 2 , , M 1 .
(4.4)

If we assume that ζ l k in equation (4.1) can be put in the delta-exponential form as follows:

ζ l k = δ k exp[iφlk],
(4.5)

where φ is a real spatial wave number, now replacing the above equation (4.5) in (3.6) we obtain

δ 1 ( 1 + 4 sin 2 ( φ h 2 ) T l 1 c 0 2 sin 2 ( φ h 2 ) T l 1 ) = δ 0 ( 1 + c 0 2 T l 1 sin 2 ( φ h 2 ) + 4 T l 1 sin 2 ( φ h 2 ) ) ; k = 0 , δ k + 1 ( 1 + 4 sin 2 ( φ h 2 ) T l k + 1 2 c 0 2 T l k + 1 sin 2 ( φ h 2 ) ) = + δ k ( 1 + c 0 2 T l k + 1 sin 2 ( φ h 2 ) + 2 T l k + 1 sin 2 ( φ h 2 ) λ 1 l , k + 1 ) j = 0 k 1 λ j + 1 l , k + 1 δ k j + λ k l , k + 1 δ 0 for  k 1 .
(4.6)

Now, according to (1), T l k + 1 are negative for all l=1,2,M1. Then from above equation (4.6), we have the following

δ 1 = + δ 0 ( 1 + c 0 2 T l 1 sin 2 ( φ h 2 ) + 4 T l 1 sin 2 ( φ h 2 ) ) ( 1 + 4 sin 2 ( φ h 2 ) T l 1 c 0 2 sin 2 ( φ h 2 ) T l 1 ) , δ k + 1 = δ k ( 1 + c 0 2 T l k + 1 sin 2 ( φ h 2 ) + 2 T l k + 1 sin 2 ( φ h 2 ) λ 1 l , k + 1 ) j = 0 k 1 λ j + 1 l , k + 1 δ k j + λ k l , k + 1 δ 0 ( 1 + 4 sin 2 ( φ h 2 ) T l k + 1 2 c 0 2 T l k + 1 sin 2 ( φ h 2 ) ) for  k 1 .
(4.7)

Our next investigation here is to show that for all k=1,2,,N1, the solution of equation (4.7) satisfies the following condition:

| δ k |<| δ 0 |.

To achieve this, we make use of the recurrence technique on the natural number k.

For k=1 and remembering that T l k + 1 are negative for all l=1,2,,M1, then we obtain

| δ 1 | | δ 0 | =| ( 1 + c 0 2 T l 1 sin 2 ( φ h 2 ) + 4 T l 1 sin 2 ( φ h 2 ) ) ( 1 + 4 sin 2 ( φ h 2 ) T l 1 c 0 2 sin 2 ( φ h 2 ) T l 1 ) |<1.
(4.8)

Assume that for m=2,3,,k, the property is verified. Then

| δ k + 1 | = | ( 1 + c 0 2 T l k + 1 sin 2 ( φ h 2 ) + 2 T l k + 1 sin 2 ( φ h 2 ) λ 1 l , k + 1 ) δ k j = 0 k 1 λ j + 1 l , k + 1 δ k j + λ k l , k + 1 δ 0 ( 1 + 4 sin 2 ( φ h 2 ) T l k + 1 2 c 0 2 T l k + 1 sin 2 ( φ h 2 ) ) | .
(4.9)

Making use of the triangular inequality, we obtain the following inequality:

| δ k + 1 | ( | ( 1 + c 0 2 T l k + 1 sin 2 ( φ h 2 ) + 2 T l k + 1 sin 2 ( φ h 2 ) λ 1 l , k + 1 ) | | δ k | + | j = 0 k 1 λ j + 1 l , k + 1 | | δ k j | + | λ k l , k + 1 | | δ 0 | ) / | 1 + 4 sin 2 ( φ h 2 ) T l k + 1 2 c 0 2 T l k + 1 sin 2 ( φ h 2 ) | .
(4.10)

Using the recurrence hypothesis, we have

| δ k + 1 | | ( 1 + c 0 2 T l k + 1 sin 2 ( φ h 2 ) + 2 T l k + 1 sin 2 ( φ h 2 ) ) | | δ 0 | + | j = 0 k 1 λ j + 1 l , k + 1 | | δ 0 | | 1 + 4 sin 2 ( φ h 2 ) T l k + 1 2 c 0 2 T l k + 1 sin 2 ( φ h 2 ) | , | δ k + 1 | | ( 1 + c 0 2 T l k + 1 sin 2 ( φ h 2 ) + 2 T l k + 1 sin 2 ( φ h 2 ) ) | | δ 0 | | 1 + 4 sin 2 ( φ h 2 ) T l k + 1 2 c 0 2 T l k + 1 sin 2 ( φ h 2 ) | , | δ k + 1 | | ( 1 + c 0 2 T l k + 1 sin 2 ( φ h 2 ) 2 T l k + 1 sin 2 ( φ h 2 ) ) | | δ 0 | | 1 + 4 sin 2 ( φ h 2 ) T l k + 1 2 c 0 2 T l k + 1 sin 2 ( φ h 2 ) | , | δ k + 1 | | δ 0 | ,
(4.11)

which completes the proof.

5 Convergence analysis of the Crank-Nicholson scheme

If we assume that u( x l , t k ) (l=1,2,,M, k=1,2,,N1) is the exact solution of our problem at the point ( x l , t k ), by letting Ω l k =u( x l , t k ) u l k and Ω k =(0, Ω 1 k , Ω 2 k ,, Ω M 1 k ), substituting this in equation (3.6), we obtain

Ω l 1 ( 1 + 2 T l 1 c 0 2 T l 1 ) + Ω l + 1 1 ( c 0 2 T l 1 + T l 1 ) + Ω l 1 1 ( c 0 2 T l 1 + T l 1 ) = E l 1 , Ω l k + 1 ( 1 + 2 T l k + 1 c 0 2 T l k + 1 ) + Ω l + 1 k + 1 ( c 0 2 T l k + 1 + T l k + 1 ) + Ω l 1 k + 1 ( c 0 2 T l k + 1 + T l k + 1 ) = j = 1 k [ Ω l k + 1 j Ω l k j ] λ j l , k + 1 + E l k + 1 , k 1 .
(5.1)

The expression E l k + 1 is given in the following form:

τ σ ρ l k + 1 Γ ( 2 ρ l k + 1 ) ( u ( x l , t k + 1 ) u ( x l , t k ) + j = 1 k [ u ( x l , t k + 1 j ) u ( x l , t k j ) ] b l k + 1 ) + 1 2 ( ( u ( x l + 1 , t k + 1 ) 2 u ( x l , t k + 1 ) + u ( x l 1 , t k + 1 ) ( h ) 2 ) + ( u ( x l + 1 , t k ) 2 u ( x l , t k ) + u ( x l 1 , t k ) ( h ) 2 ) ) + 1 c 0 2 1 2 ( ( u ( x l + 1 , t k + 1 ) 2 u ( x l + 1 , t k ) + u ( x l + 1 , t k 1 ) ( h ) 2 ) + ( u ( x l , t k + 1 ) 2 u ( x l , t k ) + u ( x l , t k 1 ) ( h ) 2 ) ) = E l k + 1 .

From equations (3.1) and (3.4), we have

2 u ( x l , t k + 1 ) x 2 + h 2 V 1 = 1 2 ( ( u ( x l + 1 , t k + 1 ) 2 u ( x l , t k + 1 ) + u ( x l 1 , t k + 1 ) ) h 2 2 u ( x l , t k + 1 ) x 2 + h 2 V 1 = + ( u ( x l + 1 , t k ) 2 u ( x l , t k ) + u ( x l 1 , t k ) ) h 2 ) , α l k + 1 Φ ( r l , t k + 1 ) t α l k + 1 + σ V 2 = t ρ l k + 1 Γ ( 2 ρ l k + 1 ) ( u ( x l , t k + 1 ) u ( x l , t k ) α l k + 1 Φ ( r l , t k + 1 ) t α l k + 1 + σ V 2 = + j = 1 k [ u ( x l , t k + 1 j ) u ( x l , t k j ) ] λ j l , k ) , 2 u ( x l , t k + 1 ) t 2 + h 2 V 3 = 1 2 ( ( u ( x l + 1 , t k + 1 ) 2 u ( x l + 1 , t k ) + u ( x l + 1 , t k 1 ) ) h 2 2 u ( x l , t k + 1 ) t 2 + h 2 V 3 = + ( u ( x l , t k + 1 ) 2 u ( x l , t k ) + u ( x l , t k 1 ) ) h 2 ) .

Then the expression E l k + 1 can be in the following form:

E l k + 1 = t ρ l k + 1 Γ ( 2 ρ l k + 1 ) ( α l k + 1 Φ ( r l , t k + 1 ) t α l k + 1 + 2 u ( x l , t k + 1 ) x 2 + 2 u ( x l , t k + 1 ) t 2 ) + V 1 σ 1 + ρ l k + 1 + V 2 h 2 σ ρ l k + V 3 h 2 σ ρ l k .

From the above we have that

R l k + 1 K ( σ 1 + ρ l k + 1 + 2 h 2 σ ρ l k ) ,
(5.2)

where V 1 , V 2 , V 3 and K are constants. Taking into account the Caputo-type fractional derivative, the detailed error analysis on the above schemes can refer to the work in [31] and further work by [32].

Lemma 1 Ω k + 1 K( σ 1 + ρ l k + 1 +2 h 2 τ α l k ) ( Ω j l , k + 1 ) 1 is true for (k=0,1,2,,N1), where w k = max 1 l M 1 ( Ω k ), K is a constant. In addition,

ρ k + 1 = { min 1 l M 1 ρ l k + 1 if τ < 1 , max 1 l M 1 ρ l k + 1 if τ > 1 .

This can be achieved via the recurrence technique on the natural number k.

When k=0, we have the following:

| Ω l 1 | | Ω l 1 | ( 1 + 2 T l 1 c 0 2 T l 1 ) + | Ω l + 1 1 | ( c 0 2 T l 1 + T l 1 ) + | Ω l 1 1 | ( c 0 2 T l 1 + T l 1 ) , | Ω l 1 ( 1 + 2 T l 1 c 0 2 T l 1 ) + Ω l + 1 1 ( c 0 2 T l 1 + T l 1 ) + Ω l 1 1 ( c 0 2 T l 1 + T l 1 ) | = | E l 1 | K ( σ 1 + ρ l k + 1 + 2 h 2 σ ρ l k ) ( λ j l , k + 1 ) 1 .
(5.3)

Now, suppose that Ω i + 1 K( σ 1 + ρ l i + 1 +2 h 2 σ ρ l i ) ( λ j l , i + 1 ) 1 , i=1,,N2. Then

| Ω l k + 1 | = | Ω l k + 1 | ( 1 + 2 T l k + 1 c 0 2 T l k + 1 ) + | Ω l + 1 k + 1 | ( c 0 2 T l k + 1 + T l k + 1 ) + | Ω l 1 k + 1 | ( c 0 2 T l k + 1 + T l k + 1 ) , | Ω l k + 1 ( 1 + 2 T l k + 1 c 0 2 T l k + 1 ) + Ω l + 1 k + 1 ( c 0 2 T l k + 1 + T l k + 1 ) + Ω l 1 k + 1 ( c 0 2 T l k + 1 + T l k + 1 ) | = | R l k + 1 + i = 1 k ( Ω l k i ) λ j l , k + 1 | | R l k + 1 | + i = 1 k | Ω l k i | λ j l , k + 1 K ( σ 1 + ρ l k + 1 + 2 h 2 σ ρ l k ) + i = 1 k Ω l k i λ j l , k + 1 K ( σ 1 + ρ l k + 1 + 2 h 2 σ ρ l k ) ( λ j l , k + 1 + λ 0 l , k + 1 λ j l , k + 1 ) ( λ j l , k + 1 ) 1 V ( σ 1 + ρ l k + 1 + 2 h 2 σ ρ l k ) ( λ 0 l , k + 1 ) ( λ j l , k + 1 ) 1 , | Ω l 1 + k | V ( σ 1 + ρ l k + 1 + h 2 σ ρ l k ) ( λ j l , k + 1 ) 1 ,

which completes the proof.

Theorem 1 The Crank-Nicholson scheme is convergent, and there exists a positive constant K such that

| u l k u( x l , t k )|K ( σ + 2 h 2 ) ,l=1,2,,M1,k=1,2,,N.
(5.4)

The interested can find the solvability of the Crank-Nicholson scheme in the work done by [29]. Therefore the details of the proof will not be presented in this paper.

6 Numerical simulation

In this section we show the numerical simulation of the acoustic wave equation with variational-order derivative loss operator. In the simple case, we consider the variational order of equation (2.7) to be in the form of ρ(x,t)=1+sin(xt), where (x,t)[1,1]×[0,t]. The approximate solution of the main problem has been depicted in Figure 1 which is plotted in Mathematica. This figure shows the movement of the sound through the deformable medium. Figure 3 shows the simulation for a different constant fractional-order derivative as a function of t for a fixed value of x=0.8.

Figure 1
figure 1

Numerical solution of the main problem for ρ(x,t)=1+sin(xt) , where (x,t)[1,1]×[0,t] .

In the simple case, we consider the variational order of equation (2.7) to be in the form of ρ(x,t)=1+cos(xt), where (x,t)[1,1]×[0,t]. The approximate solution of the main problem has been depicted in Figure 2, which is plotted in Mathematica. This figure shows the movement of the sound through the deformable medium.

Figure 2
figure 2

Numerical solution of the main problem ρ(x,t)=1+cos(xt) , where (x,t)[1,1]×[0,t] .

Figure 3
figure 3

Simulation for a different constant fractional-order derivative.

7 Conclusion

The wave equation for viscous losses involving integer-order derivatives only leads to an attenuation which is proportional to the square of the frequency. This does not always reflect reality. The acoustic wave equation with loss operator was generalized using some approaches of variational calculus. Since the modified equation is difficult to solve analytically, we make use of the numerical scheme to solve this new equation. The numerical used in solving this new equation is the Crank-Nicholson scheme. The convergence and the stability of this scheme in this case were presented in details.