1 Introduction

The b-family equation [1] with the uniform form

$$ u_{t} - u_{xxt} + (b + 1)uu_{x} = bu_{x}u_{xx} + uu_{xxx}, $$
(1)

as a kind of shallow water equations including famous Camassa-Holm equation (\(b = 2\)) and Degasperis-Procesi equation (\(b = 3\)), has received considerable interest during the last decade.

This partial differential equation (PDE) is a one-dimensional version of the active fluid transport that has been proved to be integrable and is called an infinite bi-Hamiltonian system. In the early 1990s, the Camassa-Holm equation was proposed by Camassa and Holm [2] and possesses an infinite number of conservation laws in involution for the existence of the bi-Hamiltonian. In their work, the discontinuity in the first derivative at its peak of the soliton solution has been given as a limiting form. Constantin [3] proved that the Camassa-Holm equation is completely integrable. Fisher and Schiff [4] showed that the Camassa-Holm equation has an infinite number of local conserved quantities by a Miura-Gardner-Kruskal-type construction. In the late 1990s, based on the method of asymptotic integrability, Degasperis and Procesi derived the Degasperis-Procesi equation. Since then, there are many works reported on this equation: Degasperis et al. [5] proved that the Degasperis-Procesi equation is also integrable and admits multipeakon solutions. Lundmark [6] proposed an inverse scattering approach for seeking n-peakon solutions and presented the jump discontinuity of the shockpeakon solution for the Degasperis-Procesi equation firstly. Coclite et al. [7] constructed several numerical schemes for capturing discontinuous solutions of the Degasperis-Procesi equation and proved that the schemes converge to entropy solutions. Later, Coclite et al. [8] studied the process of singularity formation for the b-family equation and presented the numerical results of the Degasperis-Procesi equation.

The aforementioned works for the b-family equation on the peakon solutions are conducted only in two special cases (\(b = 2\) and \(b = 3\)) because the equation is integrable only in these two cases, which means that the Camassa-Holm and the Degasperis-Procesi equations may contain many interesting geometric properties. The aim of this paper is to use the multisymplectic algorithms for the numerical simulation on the peakon solution of the Camassa-Holm equation [2]. When \(b = 2\), the Camassa-Holm equation reads

$$ u_{t} - u_{xxt} + 3uu_{x} = 2u_{x}u_{xx} + uu_{xxx}. $$
(2)

For Eq. (2), there are some special solitons called peakon solutions, which are known to be rich in geometric structures and to have nonsmooth traveling wave solutions.

Many numerical methods have been used to solve the Camassa-Holm equation. For example, Coclite et al. [9, 10] derived a finite difference scheme for the Camassa-Holm equation that can handle general \(H^{1}\) initial data. Xu and Shu [11] developed a local discontinuous Galerkin method that enhances some nonlinear high-order derivatives to solve the Camassa-Holm equation. Matsuo [12] presented a new \(G_{2}\)-conserving Galerkin scheme for the Camassa-Holm equation. Kalisch and Lenells [13] used a pseudospectral scheme to investigate the traveling-wave solutions of the Camassa-Holm equation. Subsequently, Kalisch and Raynaud [14] investigated the convergence of the pseudospectral scheme of the Camassa-Holm equation. However, reports on the numerical analysis of the Camassa-Holm equation based on structure-preserving method are limited: Cohen et al. [15] presented two multisymplectic formulations for the Camassa-Holm equation to simulate the peakon and peakon-antipeakon collisions. Zhu et al. [16] developed a multisymplectic wavelet collocation method for solving multisymplectic Hamiltonian system with periodic boundary conditions and showed high accuracy and good conservation properties of the numerical method.

As a kind of structure-preserving methods, the multisymplectic integrator can preserve the intrinsic properties of the infinite-Hamiltonian systems [1719] in each time step. It is well known that the peakon is a wave with local geometric property of the Camassa-Holm equation that can be investigated by the multisymplectic integrator because the multisymplectic method pays more attention to the local geometric properties of the systems.

The rest of this paper is organized as follows. In Section 2, we deduce the multisymplectic formulation of the Camassa-Holm equation. In Section 3, we construct the multisymplectic Euler box scheme to simulate the peaked wave of the Camassa-Holm equation. In Section 4, the numerical results are carried out to show that this scheme is of high accuracy and has good invariant-conserving properties. Finally, some conclusions are given in the last section.

2 The multisymplectic formulations of the Camassa-Holm equation

The multisymplectic integrator algorithm has aroused considerable interest since it was presented in 1997 [17]. As a very robust framework, this algorithm has many advantages in the process of dealing with some conservative PDE systems, such as high accuracy and good long-time numerical behavior. The basic idea of a multisymplectic integrator is that the numerical scheme is designed to preserve the multisymplectic form at each time step [17]. Because the multisymplectic idea presented a new requirement for a numerical algorithm, it has aroused an important revolution in numerical methods for PDEs. Based on the multisymplectic idea, multisymplectic methods have been applied to approximate some famous conservative PDEs, which are exactly in existence of multisymplectic forms, such as nonlinear wave equations [18, 20, 21], Schrödinger equations [2225], KdV equations [2628], Boussinesq equations [29, 30], Maxwell equations [3133], b-family equations [15, 16, 34], Kawahara-type equation [35], etc. In this section, we give the multisymplectic form of the Camassa-Holm equation.

After the complete Legendre transform, a wide range of PDEs can be written in the multisymplectic canonical form

$$ \mathbf{Mz}_{t} + \mathbf{Kz}_{x} = \nabla_{z}S( \mathbf{z}),\quad \mathbf{z} \in \mathbf{R}^{d}, $$
(3)

where M and \(\mathbf{K} \in \mathbf{R}^{d \times d}\) are skew-symmetric matrices, and \(S:\mathbf{R}^{d} \to R\) is a smooth function of the state variable z. The above system has several conservation laws, which have been proposed in [17]. According to multisymplectic theory [17, 19], the multisymplectic conservation law can be expressed as

$$ \partial_{t}\omega + \partial_{x}\kappa = 0, $$
(4)

where the presymplectic forms ω and κ are

$$\omega = \frac{1}{2}\, \mathrm{d}\mathbf{z}\Lambda \mathbf{M}\, \mathrm{d} \mathbf{z}, \qquad \kappa = \frac{1}{2}\, \mathrm{d}\mathbf{z}\Lambda \mathbf{K}\, \mathrm{d}\mathbf{z}, $$

where Λ is the wedge product operator.

With the skewsymmetric matrices M and K, we can also derive the local conservation laws of energy and momentum by taking the inner product of multisymplectic form (3) with \(\partial_{t}\mathbf{z}\) and \(\partial_{x}\mathbf{z}\), respectively. The local energy conservation law is

$$ \partial_{t}e + \partial_{x}f = 0, $$
(5)

where the density functions are

$$e = S(\mathbf{z}) - \frac{1}{2}\mathbf{z}^{\mathrm{T}}\mathbf{K}\, \partial_{x}\mathbf{z},\qquad f = \frac{1}{2} \mathbf{z}^{\mathrm{T}}\mathbf{K}\, \partial_{t}\mathbf{z}, $$

and the local momentum conservation law is

$$ \partial_{t}h + \partial_{x}g = 0, $$
(6)

where the density functions are

$$h = \frac{1}{2}\mathbf{z}^{\mathrm{T}}\mathbf{M}\, \partial_{x} \mathbf{z},\qquad g = S(\mathbf{z}) - \frac{1}{2}\mathbf{z}^{\mathrm{T}} \mathbf{M}\, \partial_{t}\mathbf{z}. $$

By introducing the following canonical momenta and setting the state variable \(\mathbf{z} = [u,\varphi,w,\psi,v]^{\mathrm{T}} \in R^{5}\) we have

$$ \begin{aligned} &u_{t} = - w_{x}, \qquad \varphi_{x} = u, \\ &u_{x} = v, \qquad \frac{1}{2}u_{t} = - uv + \psi. \end{aligned} $$
(7)

The Camassa-Holm equation (2) can be reformulated as a multisymplectic canonical form (3) with the skew-symmetric matrices

$$\mathbf{M} = \left [ \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} 0 & \frac{1}{2} & 0 & 0 & - \frac{1}{2} \\ - \frac{1}{2} & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ \frac{1}{2} & 0 & 0 & 0 & 0 \end{array}\displaystyle \right ], \qquad \mathbf{K} = \left [ \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} 0 & 0 & 0 & - 1 & 0 \\ 0 & 0 & - \frac{1}{2} & 0 & 0 \\ 0 & \frac{1}{2} & 0 & 0 & 0 \\ 1 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{array}\displaystyle \right ] $$

and the Hamiltonian function \(S(\mathbf{z}) = \frac{1}{2}uw - \frac{1}{2}u^{3} - \frac{1}{2}uv^{2} + v\psi\).

According to Eq. (4), a multisymplectic conservation law for the Camassa-Holm equation can be obtained:

$$ \frac{\partial}{\partial t}[\mathrm{d}u\Lambda \, \mathrm{d}\varphi + \mathrm{d}v\Lambda \, \mathrm{d}u] + \frac{\partial}{\partial x}(2\, \mathrm{d}\psi \Lambda \, \mathrm{d}u + \mathrm{d}w\Lambda \, \mathrm{d}\varphi ) = 0. $$
(8)

3 Multi-symplectic Euler box scheme for the Camassa-Holm equation

A numerical scheme is multisymplectic if and only if the numerical scheme preserves the discrete multisymplectic conservation law [19]. As a widely used numerical scheme, the Euler box scheme [36] for the PDEs (3) has been proved to be multisymplectic. An integrator form satisfying a discrete multisymplectic conservation law can be obtained by introducing the splitting of the two matrices M and K defined as \(\mathbf{M} = \mathbf{M}_{ +} + \mathbf{M}_{ -}\) and \(\mathbf{K} = \mathbf{K}_{ +} + \mathbf{K}_{ -}\), where \(\mathbf{M}_{ +}^{\mathrm{T}} = - \mathbf{M}_{ -}\) and \(\mathbf{K}_{ +}^{\mathrm{T}} = - \mathbf{K}_{ -}\).

Let \(t_{i}\), \(i = 1,2,\ldots\) ; \(x_{n}\), \(n = 1,2,\ldots\) be the grids of the integral domain, \(\Delta t = t_{i + 1} - t_{i}\) be the time step length, and \(\Delta x = x_{n + 1} - x_{n}\) be the spatial step length. Then the corresponding Euler box discrete scheme of Eq. (3) reads

$$ \mathbf{M}_{ +} \delta_{t}^{ +} \mathbf{z}^{n,i} + \mathbf{M}_{ -} \delta_{t}^{ -} \mathbf{z}^{n,i} + \mathbf{K}_{ +} \delta_{x}^{ +} \mathbf{z}^{n,i} + \mathbf{K}_{ -} \delta_{x}^{ -} \mathbf{z}^{n,i} = \nabla_{z}S\bigl(\mathbf{z}^{n,i} \bigr), $$
(9)

where

$$\begin{aligned}& \delta_{t}^{ +} \mathbf{z}^{n,i} = \frac{\mathbf{z}^{n,i + 1} - \mathbf{z}^{n,i}}{\Delta t},\qquad \delta_{x}^{ +} \mathbf{z}^{n,i} = \frac{\mathbf{z}^{n + 1,i} - \mathbf{z}^{n,i}}{\Delta x}, \\& \delta_{t}^{ -} \mathbf{z}^{n,i} = \frac{\mathbf{z}^{n,i} - \mathbf{z}^{n,i - 1}}{\Delta t},\qquad \delta_{x}^{ -} \mathbf{z}^{n,i} = \frac{\mathbf{z}^{n,i} - \mathbf{z}^{n - 1,i}}{\Delta x}. \end{aligned}$$

Now, we will construct the multisymplectic Euler box scheme for the Camassa-Holm equation in detail. Taking \(\mathbf{M}_{ +} = \frac{1}{2}\mathbf{M}\) and \(\mathbf{K}_{ +} = \frac{1}{2}\mathbf{K}\), the splitting of M and K reads

$$\mathbf{M}_{ +} = \left [ \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} 0 & \frac{1}{4} & 0 & 0 & - \frac{1}{4} \\ - \frac{1}{4} & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \\ \frac{1}{4} & 0 & 0 & 0 & 0 \end{array}\displaystyle \right ],\qquad \mathbf{K}_{ +} = \left [ \textstyle\begin{array}{@{}c@{\quad}c@{\quad}c@{\quad}c@{\quad}c@{}} 0 & 0 & 0 & - \frac{1}{2} & 0 \\ 0 & 0 & - \frac{1}{4} & 0 & 0 \\ 0 & \frac{1}{4} & 0 & 0 & 0 \\ \frac{1}{2} & 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 & 0 \end{array}\displaystyle \right ]. $$

Thus, the expanded form of the Euler box scheme for the multisymplectic structure (3) with the particular \(\mathbf{M}_{ +}\) and \(\mathbf{K}_{ +}\) is

$$\begin{aligned}& \frac{1}{4}\bigl(\delta_{t}^{ +} \varphi^{n,i} + \delta_{t}^{ -} \varphi^{n,i}\bigr) - \frac{1}{4}\bigl(\delta_{t}^{ +} v^{n,i} + \delta_{t}^{ -} v^{n,i}\bigr) - \frac{1}{2}\bigl(\delta_{x}^{ +} \psi^{n,i} + \delta_{x}^{ -} \psi^{n,i}\bigr) \\& \quad = \frac{1}{2}w^{n,i} - \frac{3}{2}\bigl(u^{n,i} \bigr)^{2} - \frac{1}{2}\bigl(v^{n,i} \bigr)^{2}, \\& - \frac{1}{4}\bigl(\delta_{t}^{ +} u^{n,i} + \delta_{t}^{ -} u^{n,i}\bigr) - \frac{1}{4} \bigl(\delta_{x}^{ +} w^{n,i} + \delta_{x}^{ -} w^{n,i}\bigr) = 0, \\& \frac{1}{4}\bigl(\delta_{x}^{ +} \varphi^{n,i} + \delta_{x}^{ -} \varphi^{n,i}\bigr) = \frac{1}{2}u^{n,i}, \\& \frac{1}{2}\bigl(\delta_{x}^{ +} u^{n,i} + \delta_{x}^{ -} u^{n,i}\bigr) = v^{n,i}, \\& \frac{1}{4}\bigl(\delta_{t}^{ +} u^{n,i} + \delta_{t}^{ -} u^{n,i}\bigr) = - u^{n,i}v^{n,i} + \psi^{n,i}. \end{aligned}$$

It involves considerable effort in computing the auxiliary variables φ, w, ψ, v and difficulty in defining their initial values. So, all the additional variables φ, w, ψ, v are eliminated by straightforward substitution and algebraic manipulations. Then the following multisymplectic Euler box scheme only in terms of the variable u is obtained:

$$ \delta_{t}u^{n,i} - \delta_{x}^{2} \delta_{t}u^{n,i} - \delta_{x}^{2} \bigl(u^{n,i}\delta_{x}u^{n,i}\bigr) + \frac{3}{2}\delta_{x}\bigl(u^{n,i}\bigr)^{2} + \frac{1}{2}\delta_{x}\bigl(\delta_{x}u^{n,i} \bigr)^{2} = 0, $$
(10)

where the centered divided differences \(\delta_{t}\), \(\delta_{x}\) are

$$\delta_{t} = \frac{1}{2}\bigl(\delta_{t}^{ +} + \delta_{t}^{ -} \bigr),\qquad \delta_{x} = \frac{1}{2}\bigl(\delta_{x}^{ +} + \delta_{x}^{ -} \bigr). $$

Expanding Eq. (10), we can obtain a thirteen-point multisymplectic scheme.

4 Numerical results on the peaked wave solution of the Camassa-Holm equation

A soliton is a solitary wave caused by a delicate balance between the nonlinear and dispersive effects in the medium. It maintains its shape while travels at a constant speed theoretically. However, in the absence of the dispersion term, the parameter b in the Camassa-Holm equation introduces the nonlinear and nonlocal balance. The nonlinear and nonlocal balance can still produce a soliton solution, which called the peakon solution, moving in the medium as

$$ u(t,x) = ce^{ - \vert x - ct \vert }, \quad c > 0, $$
(11)

where c is the wave speed. Obviously, the derivative of Eq. (11) has a jump discontinuity at its peak.

In this section, we reproduce the peaked wave solution of the Camassa-Holm equation and investigate the global conserved quantities for the peakon solution of the Camassa-Holm equation. In the following numerical experiments, the scheme (10) is used to simulate the peakon solution of the Camassa-Holm equation given by

$$ u = e^{ - \vert x - t \vert }. $$
(12)

The derivative of Eq. (12) at \(t = 0\) can be obtained directly:

$$ u_{x} = - \operatorname{sgn} (x)e^{ - \vert x \vert } $$
(13)

with the limits

$$ \lim_{x \to 0^{ +}} u_{x} = - 1, \qquad \lim _{x \to 0^{ -}} u_{x} = 1, $$
(14)

which describe the jump discontinuity at the peakon position.

4.1 Numerical results on peaked wave solution

We take the time step length \(\Delta t = 0.005\) and space step length \(\Delta x = 0.005\) in the domain \(D:(t,x) \in [0,2] \times [ - 5,5]\). Consider the following initial condition:

$$ u(0,x) = e^{ - \vert x \vert }. $$
(15)

As is well known, the peakon solution given by Eq. (12) for the Camassa-Holm equation is a sharp solitary wave with the unit amplitude traveling from left to right. Using the Euler box scheme (10), we obtained the waveforms of the peakon solution at moments \(t = 0, 0.5, 1,\mbox{and }1.5\) shown in Figure 1.

Figure 1
figure 1

Waveforms of the peakon solution.

From Figure 1 we can conclude that the wave shape of the numerical solution is smooth enough and does not change in the process of propagation. Thus, the multisymplectic Euler box scheme for the Camassa-Holm equation can be successfully used to simulate the peakon solution.

To investigate the geometric properties of the scheme (10), Figure 2 gives the errors between the numerical solution and exact solution at the moments \(t = 0.5, 1, \mbox{and }1.5\), and the numerical and exact results on some grid points at the moment \(t = 1\) are further shown in Table 1.

Figure 2
figure 2

The errors between the numerical solution and peakon solution.

Table 1 The numerical and exact data on some grid points at \(\pmb{t = 1}\)

Comparing the numerical result with the exact solution, we can conclude that the multisymplectic Euler box scheme (10) can simulate the peaked traveling wave with small numerical errors. As shown in Figure 2, the maximum magnitude of the errors is up to 10−3, which only appear at the points near the peakon, whereas on the grid points far away from the peakon, the magnitude of the errors are less than 10−6, as shown in Table 1.

Some numerical values of the left and right limits of \(u_{x}\) at the peakon position at different times are presented in Table 2.

Table 2 Numerical values of \(\pmb{u_{x}}\) at the peakon position

From Table 2 we find that the value of \(\lim_{x \to 0^{ +}} u_{x}\) is approximately 1 and \(\lim_{x \to 0^{ -}} u_{x}\) is about −1 in the process of the peaked wave propagation. Similarly to the theoretical results shown in Eq. (14), the discontinuity phenomenon on the peakon of the soliton solution is reproduced numerically.

As an explicit scheme, such a high precision of the multisymplectic Euler box scheme is worth being further verified in the future. The results illustrate the structure-preserving properties of the multisymplectic integration.

4.2 Three global conserved quantities for the Camassa-Holm equation

Referring to the bi-Hamiltonian structure of the Camassa-Holm equation [2], the Camassa-Holm equation has an infinite sequence of conservation laws that insure the existence of the peaked wave during the propagation process. The first three important global conserved quantities associated with the Camassa-Holm equation are [2, 15, 16]

$$ \left \{ \textstyle\begin{array}{l} H_{0} = \int u\, \mathrm{d}x, \\ H_{1} = \frac{1}{2}\int (u^{2} + u_{x}^{2})\, \mathrm{d}x, \\ H_{2} = \frac{1}{2}\int (u^{3} + uu_{x}^{2})\, \mathrm{d}x. \end{array}\displaystyle \right . $$
(16)

As shown in Eq. (16), \(H_{0}\) and \(H_{1}\) represent the conservation laws for the mass and momentum with the process of the propagation, respectively. The third conserved quantity \(H_{2}\) is obtained by an action principle, which expressed in terms of a velocity potential [2]. The conservation laws for the Degasperis-Procesi equation are much weaker than the conservation laws for the Camassa-Holm equation. Thus, the orbital stability of Degasperis-Procesi peaked solitons is more subtle [37].

Note here that the local conservation laws of energy and momentum for the Camassa-Holm equation according to Eqs. (5) and (6) are, respectively,

$$\begin{aligned}& \partial_{t} \biggl[ S(\mathbf{z}) - \frac{1}{2} \biggl(\psi u_{x} + \frac{1}{2}w\varphi_{x} - \frac{1}{2}\varphi w_{x} - u\psi_{x}\biggr) \biggr] \\& \quad {}+ \partial_{x} \biggl[ \frac{1}{2}\biggl(\psi u_{t} + \frac{1}{2}w\varphi_{t} - \frac{1}{2}\varphi w_{t} - u\psi_{t}\biggr) \biggr] = 0, \\& \partial_{t} \biggl[ \frac{1}{4}( - u_{x}\varphi + u_{x}v + u\varphi_{x} - uv_{x}) \biggr] + \partial_{x} \biggl[ S(\mathbf{z}) + \frac{1}{4}(\varphi u_{t} - vu_{t} - u\varphi_{t} + uv_{t}) \biggr] = 0. \end{aligned}$$
(17)

Integrating the local momentum conservation law in Eq. (17) over the spatial domain, the global momentum conservation law can be obtained as

$$ \frac{1}{4}\frac{\mathrm{d}}{\mathrm{d}t} \int ( - u_{x}\varphi + u_{x}v + u \varphi_{x} - uv_{x})\, \mathrm{d}x + {\biggl.\biggl[ S(\mathbf{z}) + \frac{1}{4}(\varphi u_{t} - vu_{t} - u \varphi_{t} + uv_{t}) \biggr]\biggr|_{l_{1}}^{l_{2}}} = 0, $$
(18)

where \(l_{1}\) and \(l_{2}\) denote the upper and lower limits of the integral. Using the canonical momenta relations in Eq. (7), after two integrations by parts, Eq. (18) becomes

$$ \frac{1}{2}\frac{\mathrm{d}}{\mathrm{d}t} \int \bigl(u^{2} + u_{x}^{2}\bigr)\, \mathrm{d}x + [ D ]|_{l_{1}}^{l_{2}} = 0, $$
(19)

where \(D = S(\mathbf{z}) + \frac{1}{4}(\varphi u_{t} - vu_{t} - u\varphi_{t} + uv_{t}) - \frac{1}{4}(u\varphi + uu_{x})_{t}\).

Under the periodic boundary conditions, the value of \([ D ]|_{l_{1}}^{l_{2}}\) is zero. Thus, the global conserved quantity \(H_{1}\) is just the global conserved momentum quantity associated with the Camassa-Holm equation. Similarly, integrating the local energy conservation law in Eq. (17) over the spatial domain, the global energy conservation law can be obtained, which is just the global conserved quantity \(H_{2}\) for the Camassa-Holm equation.

In Section 4.1 we find that the values of u approach to zero when \(\vert x \vert > 15\), and thus the three conserved quantities (16) can be approximated as

$$ \left \{ \textstyle\begin{array}{l} H_{0} = \int_{ - 15}^{15} u\, \mathrm{d}x, \\ H_{1} = \frac{1}{2}\int_{ - 15}^{15} (u^{2} + u_{x}^{2})\, \mathrm{d}x, \\ H_{2} = \frac{1}{2}\int_{ - 15}^{15} (u^{3} + uu_{x}^{2})\, \mathrm{d}x. \end{array}\displaystyle \right . $$
(20)

Calculating Eq. (20), the values of the three conserved quantities can be obtained:

$$ H_{0} = 2 - 2e^{ - 15},\qquad H_{1} = 1 - e^{ - 30}, \qquad H_{2} = \frac{2}{3} - \frac{2}{3}e^{ - 45}. $$
(21)

It is well known that the multisymplectic method can preserve the inherent local geometric properties of infinite-dimensional Hamiltonian systems, so we would like to know whether the quantities mentioned above are conserved. The relative errors in \(H_{0}\), \(H_{1}\), and \(H_{2}\) of the multisymplectic Euler box scheme (10) about the three conserved quantities (20) on each grid point are recorded, and the integration of which with respect to x is obtained to show the preserving status of the conserved quantities in the Camassa-Holm equation.

Similarly, we take the time step length \(\Delta x = 0.005\) and space step length \(\Delta t = 0.005\) in the domain \(D:(t,x) \in [0,2] \times [ - 15,15]\). Considering the initial condition (15), the numerical values of u can be obtained firstly. The discrete conserved quantities (20) of the Camassa-Holm equation can be simplified as follows:

$$ \left \{ \textstyle\begin{array}{l} H_{0} = \int_{ - 15}^{15} u\, \mathrm{d}x \approx \Delta x\sum_{n = 1}^{N} u^{n,i}, \\ H_{1} = \frac{1}{2}\int_{ - 15}^{15} (u^{2} + u_{x}^{2})\, \mathrm{d}x \approx \frac{\Delta x}{2}\sum_{n = 1}^{N} [ (u^{n,i})^{2} + (\frac{u^{n + 1,i} - u^{n - 1,i}}{2\Delta x})^{2} ], \\ H_{2} = \frac{1}{2}\int_{ - 15}^{15} (u^{3} + uu_{x}^{2})\, \mathrm{d}x \approx \frac{\Delta x}{2}\sum_{n = 1}^{N} [ (u^{n,i})^{3} + u^{n,i} \cdot (\frac{u^{n + 1,i} - u^{n - 1,i}}{2\Delta x})^{2} ]. \end{array}\displaystyle \right . $$
(22)

Then, according to Eq. (22), the discretization form of the three conserved quantities can be calculated. The relative errors are defined by

$$ \operatorname{Re}_{i} = \frac{\vert H_{i} - H_{i}(t) \vert }{H_{i}(t)},\quad i = 0,1,2, $$
(23)

where \(H_{i}(t)\) are the numerical solutions of the conserved quantities \(H_{i}\) at \(t \in [0, 2]\).

The numerical solution in a larger spatial domain of the traveling peaked wave is given in Figure 3, which is similar to the results given in Section 4.1, that is, the wave shape is smooth enough in the process of the propagation. The errors between numerical solution and exact solution are in the same order of magnitude shown in Figure 2; thus, these results are not presented here.

Figure 3
figure 3

Waveforms of the peakon solution.

The relative errors of the conserved quantities (20) according to the definition (23) are presented in Figure 4. From Figure 4 we can find that the relative values of the errors of the conserved quantities (20) are less than \(5 \times 10^{ - 3}\), which implies that the three global conserved quantities (16) are preserved in the Camassa-Holm equation and proves that the numerical results contain some inherent geometric properties of the Camassa-Holm equation. The small errors of the conserved quantities (20) illustrate that the multisymplectic Euler box scheme (10) has good numerical behavior and can be used to simulate the traveling peaked wave solution of the Camassa-Holm equation.

Figure 4
figure 4

Relative errors of the conserved quantities.

5 Conclusions

In this paper, the multisymplectic method, a numerical method that can preserve the local geometric properties of the Hamiltonian systems, is used to simulate the peakon of the Camassa-Holm equation.

By introducing the suitable canonical momenta the Camassa-Holm equation is first transformed into the multisymplectic structure. Then, based on the Euler box method, a multisymplectic discrete scheme is constructed. The numerical results of the peaked wave of the Camassa-Holm are presented. From the numerical results we can conclude that:

  1. 1.

    The multisymplectic Euler box method can well simulate the traveling peaked wave of the Camassa-Holm equation with small errors. The numerical simulation results also verified that the soliton has a discontinuity in the first derivative at its peak. These results illustrate the structure-preserving properties of the multisymplectic integration.

  2. 2.

    The numerical results on the three conserved quantities of the peakon imply that the multisymplectic method can preserve the inherent geometric properties of the Camassa-Holm equation.