Introduction

The variable coefficient nonlinear evolution equations (NLEEs) have become a pivotal and intricate realm of mathematical investigation, which forms a dynamic bridge between theoretical exploration and the intricacies of real-world phenomena1,2. These equations with variable coefficients play a vital role in modeling a wide array of natural systems, as they encapsulate the nuances that constant coefficients fail to capture3,4. By embodying spatial variability, NLEEs provide a richer understanding of complicated phenomena such as heat conduction, quantum mechanical interactions and fluid flow5,6,7. Also the equations underpin advancements in climate modeling, material science and medical imaging, guiding technological innovations by enhancing predictive capabilities and system understanding8,9,10. The implications of variable coefficient NLEEs extend beyond theoretical curiosity, permeating numerous scientific and engineering domains. In essence, the study of variable coefficient NLEEs reflects a harmonious combination between mathematical ingenuity and real-world complexity, accelerating our quest to decipher the fabric of the universe. In recent years, the search of numerical and exact solutions for nonlinear equations has gained particular prominence as a popular and captivating domain both in mathematics and physics. Various numerical methods contribute to the solution, such as Runge–Kutta method11,12,13, the Bayesian regularization technique (BRT)14,15,16,17, Levenberg–Marquardt approach (LMA)18,19, the shooting method20,21,22, the bvp4c technique23,24,25, the Keller box method26,27,28, the Lobatto IIIA method29, etc. Also researchers have developed several effective, powerful and efficient exact methods for uncovering the solutions of these equations. Notable techniques encompass the Jacobi elliptic function expansion scheme30, the Hirota bilinear method31, the exp-function method32, the new extended algebraic method33, the unified method34, the \(F\)-expansion technique35, the auxiliary equation outline36, the Darboux transformation technique37, the Bäcklund transformation38, the modified extended tanh technique with Riccati equation39, the generalized \((G^{\prime}/G)\)-expansion approach40, the modified Kudryashov method41,42,43, the sine–Gordon expansion method44, the modified sine–cosine method45, the consistent Riccati expansion solvability technique46, the modified sine–Gordon expansion approach47, the modified simple equation method48,49,50, the generalized Kudryashov method51,52,53, among others.

The Boussinesq system is named after the French physicist Joseph Valentin Boussinesq involves a set of simplified equations derived from the Navier–Stokes equations in the nineteenth century, focusing on shallow water conditions and ignoring specific terms of less significance where the wavelength of waves is significantly larger than the water depth. This system finds applications in various fields such as tsunami modeling54, coastal engineering55, river/flood forecasting56, oceanography57, wave energy technology design58 and geophysical fluid dynamics59. It is utilized to predict wave effects, optimize energy devices, interpret internal wave behavior, forecast flows, simulate wave propagation and conduct studies in related areas60,61,62.

In this article, we deal with the Boussinesq equation, with a specific emphasis on its variable coefficients. A discussion of previous studies is necessary to gain a solid understanding of the nuances of this system. Wazwaz63 artfully applied the tanh method and the sine–cosine method, and Shakeel64 skillfully harnessed the novel \((G^{\prime}/G)\)-expansion method to tackle the Boussinesq model with constant coefficients. Recently Chu et al.65 applied the Adomian decomposition method to handle this equation characterized by constant coefficients for fractional order. Notably, the present study endeavors to extend this understanding to the realm of variable coefficients, unveiling exact solutions through the adept employment of three specific techniques: the modified simple equation method, the generalized Kudryashov method and the modified sine–Gordon expansion method. The objective of the article is highlighted: to extend the understanding of the Boussinesq equations in the case of variable coefficients. The study uncovers the exact solutions using three specific techniques: the modified simple equation method, the generalized Kudryashov method, and the modified sine–Gordon expansion method. This extension builds upon previous works that primarily addressed the Boussinesq equation with constant coefficients, demonstrating the innovative approach of the present study in tackling the complexities of variable coefficients. The explanations of the obtained solutions show how the variable coefficients influence the system behavior and offering a detailed direction for comprehending the intricate interplay of nonlinear effects in a controlled manner. In this case, the behavior of wave shapes, amplitudes, wavelengths and propagation directions emerge as a dynamic interplay that continuously evolves across both space and time.

The rest of the article is organized in the following way: section "Analysis of the methods" provides a detailed description of the selected methods of research. In section "Extraction of solutions", solutions of the selected model are presented. section "Results and discussion" presents a graphical analysis of the obtained solutions. Finally, section “Conclusion” concludes the article, summarizing key insights and suggesting for future directions.

Analysis of the methods

This section provides a broad overview of the employed methods to tackle the problem of variable coefficient Boussinesq system. In the investigation of wave solutions for the system, we used the power of three distinct yet complementary methods. Generally these techniques provide closed-form wave solutions with further free parameters than the other methods. Therefore, the obtained solutions can accurately explain the phenomenon of the system. Moreover, the chosen methods are able to provide all types of soliton solutions such as kink, periodic, bell-shape, spike type, and other solitons; which are not feasible in many techniques. So each of these approaches has been strategically chosen and meticulously executed to offer unique insights and solutions. Elaborations on the distinctive approaches of the three techniques in finding exact solutions are presented below.

Common starting for the first two methods

Let us consider the evolution equation in the following nonlinear form:

$$F\left(u, {u}_{t}, {u}_{x}, {u}_{tt}, {u}_{xt}, {u}_{xx}, \dots \right)=0,$$
(1)

wherein \(F\) is a polynomial function of \(u(x, t)\) and its partial derivatives, incorporating both the highest order derivatives and nonlinear terms.

Consider the form below for the traveling wave transformation.

$$u\left(x, t\right)=U\left(\xi \right),\xi =p\left(t\right)x+q\left(t\right),$$
(2)

where both \(p\left(t\right)\) and \(q\left(t\right)\) are functions that possess differentiability with respect to \(t\).

Through the application of this wave transformation, Eq. (1) can be transformed into the following nonlinear ordinary differential equation:

$$F\left(U, \left(\dot{p}x, \dot{q}\right){U}^{\prime}, p{U}^{\prime},{p}^{2} {U}^{{\prime}{\prime}}, p\left(\dot{p}x, \dot{q}\right){U}^{{\prime}{\prime}}, \dot{p}{U}^{\prime}, \dots \right)=0,$$
(3)

In here, the prime and dot marks signify the derivatives with respect to \(\xi\) and \(t\), respectively, \(i.e. {U}^{\prime}=\frac{dU}{d\xi }, \dot{p}=\frac{dp}{dt}\mathrm{ and }\dot{q}=\frac{dq}{dt}\).

The modified simple equation method

Presented below are the major steps of the MSE method48,49,50:

Step 1: In accordance with the method, the solution \(U(\xi )\) of Eq. (3) is regarded as:

$$U\left(\xi \right)={\sum }_{i=0}^{n}{a}_{i}\left(t\right){\left(\frac{{\varphi }^{\prime}\left(\xi \right)}{\varphi \left(\xi \right)}\right)}^{i}.$$
(4)

Each of the time-varying functions \({a}_{i}\left(t\right)\), \(i=0, 1, 2, \dots , n\), where \({a}_{n}\left(t\right)\ne 0\), and the unidentified function \(\varphi \left(\xi \right)\) must be determined, while \(\varphi \left(\xi \right)\) satisfies both the conditions \(\varphi \left(\xi \right)\ne 0\) and \({\varphi }^{\prime}\left(\xi \right)\ne 0\).

Step 2: By utilizing the balance homogeneity principle between the leading nonlinear terms and the maximum order derivatives present in Eq. (3), we determine the value of the positive integer \(n\) appearing in Eq. (4).

Step 3: Inserting the sequential derivatives of \(U\left(\xi \right)\) into Eq. (3) leads to the creation of a polynomial equation representing \({\varphi }^{-1}\). In the ensuing stages, a system of equations arises through the process of setting the coefficients of \({{x}^{k}\varphi }^{-i}\) to zero for \(k=0, 1, 2, \dots\) and \(i=0, 1, 2, \dots , n\) in the polynomial. This system of equations yields a collection of algebraic equations for the parameters \({a}_{i}\left(t\right), p\left(t\right), q\left(t\right)\) and differential equations involving the derivatives of \(p\left(t\right), q\left(t\right)\) with regard to \(t\).

Step 4: Subsequently, the solution of Eq. (3) can be found by first solving the system derived in step 3 to determine \(\varphi \left(\xi \right), {a}_{i}\left(t\right), p\left(t\right)\) and \(q\left(t\right)\), and then substituting these values into Eq. (4), ultimately leading to the solutions of Eq. (1).

The Generalized Kudryashov method

Following are the key steps that describe the methodology of the generalized Kudryashov51,52,53:

Step 1: The approach proposes that the precise solution for Eq. (1) be represented in the subsequent rational structure:

$$U\left(\xi \right)=\frac{\sum_{i=0}^{n}{a}_{i}(t){\left(Q\left(\xi \right)\right)}^{i}}{\sum_{j=0}^{m}{b}_{j}(t){\left(Q\left(\xi \right)\right)}^{j}},$$
(5)

where \({a}_{i}\left(t\right) (i=0, 1, 2, \dots , n)\) and \({b}_{j}\left(t\right) (j=0, 1, 2, \dots , m)\) are functions dependent on t, to be solved at a later juncture, under the conditions \({a}_{n}\left(t\right)\ne 0\) and \({b}_{m}\left(t\right)\ne 0\). Furthermore, the following ODE is satisfied by \(Q(\xi )\):

$${Q}^{\prime}\left(\xi \right)=Q\left(\xi \right)\left(Q\left(\xi \right)-1\right).$$
(6)

It is clear that Eq. (6) possesses a solution in the following form:

$$Q\left(\xi \right)=\frac{1}{1+A{e}^{\xi }}.$$
(7)

Here, the symbol \(A\) stands as an integrating constant.

Step 2: The principle of homogeneous balance will guide us to identify the choices of positive integer for \(n\) and \(m\) within Eq. (5). To illustrate, we achieve balance by equating the highest order derivative with the corresponding highest order nonlinear term presented in Eq. (3).

Step 3: Substituting Eq. (5) into Eq. (3) along with Eq. (6), we acquire a polynomial of \(Q(\xi )\). By setting all of the coefficients of the like powers of \(Q(\xi )\), which are multiplied by \({x}^{k}\) for \(k=0, 1, 2, \dots\) to zero, we attain both algebraic and differential systems of equations of parameters \({a}_{i}\), \({b}_{j}\), \(p\), \(q\) and \(p\), \(q\) respectively. Through the utilization of the Mathematica or Maple software package program, these systems of equations can be solved. This process enables us to compute the values of the unknown parameters \({a}_{i}\), \({b}_{j}\), \(p\) and \(q\). Subsequently, we find the exact solutions for the reduced Eq. (3).

The modified sine–Gordon expansion method

The sine–Gordon equation is given by

$${u}_{xx}-{u}_{tt}={\text{sin}}\left(u\right).$$
(8)

Herein, \(u\) denotes a function of both \(x\) and \(t\). By introducing the wave variable \(\xi =px+qt\), we can rewrite the preceding equation as the subsequent nonlinear expression.

$$U^{\prime}{\prime}=\left\{1/({p}^{2}+{q}^{2})\right\}{\text{sin}}\left(U\right).$$
(9)

Here, the variable \(U\left(\xi \right)=u(x, t)\), where \(\xi\) and \(q/p\) stand for the amplitude and velocity of the traveling wave, respectively. Now Eq. (9) can be expressed as a first order differential equation as follows:

$${(U^{\prime}/2)}^{2}=\left\{1/({p}^{2}+{q}^{2})\right\}{{\text{sin}}}^{2}(U/2)+K.$$
(10)

The \(K\) appears in the above equation as an integrating constant. Substituting \(U(\xi )/2=w(\xi )\), \({a}^{2}=1/({p}^{2}+{q}^{2})\) and \(K=0\) into Eq. (10) yields:

$${w}^{\prime}=\frac{dw}{d\xi }={\text{sin}}\left(w\right),$$
(11)

taking \(w=w(\xi )\) and \(a=1\).

By solving Eq. (11) through separation of variables and simplification, we can confirm the validity of the following two interesting relations:

$${\text{sin}}\left(w\right)={\text{sin}}\left(w\left(\xi \right)\right)={\left.\frac{2r{e}^{\xi }}{{r}^{2}{e}^{2\xi }+1}\right]}_{r=1}={\text{sech}}\left(\xi \right),$$
(12)
$$\mathrm{and}\; \mathrm{cos}\left(w\right)={\text{cos}}\left(w\left(\xi \right)\right)={\left.\frac{{r}^{2}{e}^{2\xi }-1}{{r}^{2}{e}^{2\xi }+1}\right]}_{r=1}={\text{tanh}}\left(\xi \right).$$
(13)

The value of the integrating constant, \(r\ne 0\).

In light of the assumption, the solution for the polynomial nonlinear wave equation having variable coefficients of the form \(F\left(u, {u}_{t}, {u}_{x}, {u}_{tt}, {u}_{xt}, {u}_{xx}, \dots \right)=0\) can be regarded as:

$$U\left(\xi \right)=\sum_{i=1}^{n}{{\text{tanh}}}^{i-1}(\xi )\left\{{b}_{i}\left(t\right){\text{sech}}\left(\xi \right)+{a}_{i}\left(t\right){\text{tanh}}(\xi )\right\}+{a}_{0}\left(t\right).$$
(14)

The transformation \(U\left(\xi \right)=u(x, t)\), \(\xi =p\left(t\right)x+q(t)\) is utilized to reformulate the nonlinear wave equation with time-dependent coefficients, leading to an equivalent nonlinear equation, with \(p, q, {a}_{0}, {a}_{i}\) and \({b}_{i}\) \((i=1, 2, 3, \dots , n)\) as functions of time.

Through the application of the results indicated in Eqs. (12) and (13), we can represent Eq. (14) in an alternative form as follows:

$$U\left(w\right)=\sum_{i=1}^{n}{{\text{cos}}}^{i-1}(w)\left\{{b}_{i}\left(t\right){\text{sin}}(w)+{a}_{i}\left(t\right){\text{cos}}(w)\right\}+{a}_{0}\left(t\right),$$
(15)

which represents a polynomial of degree \(n\).

The parameter \(n\) can be determined using the balance procedure, which is the comparison of the highest order derivative with the highest nonlinear term. Subsequent to finding the parameter \(n\), simplifying by inserting solution (15) into the transformed nonlinear equation yields a trigonometric series in the form of \({x}^{k}{\text{sin}}(jw)\) and \({x}^{k}{\text{cos}}(jw)\), where \(j=0, 1, 2, \dots , n\) and \(k=0, 1, 2, \dots\)47. By equating to zero all the relevant harmonic terms \({\text{sin}}(jw)\) and \({\text{cos}}(jw)\) in multiplicative form with \({x}^{k}\), we establish a set of equations that relate to the unknowns \(p, q, {a}_{0}, {a}_{i}\) and \({b}_{i}\). As a result, the problem converts into algebraic equations for \(p, q, {a}_{0}, {a}_{i}, {b}_{i}\) and differential equations of \(p\) and \(q\) in relation to time. Computerized calculations are used to ascertain the values of \(p, q, {a}_{0}, {a}_{i}, {b}_{i}\) and subsequently, the solutions proposed in Eqs. (12), (13) and (15) are applied.

Extraction of solutions

Consider the Boussinesq model subject to the variable coefficients of the following form:

$${u}_{t}+{v}_{x}=0,$$
(16)
$${v}_{t}+\alpha (t){\left({u}^{2}\right)}_{x}-\beta (t){u}_{xxx}=0,$$
(17)

with \(\alpha (t)\) and \(\beta (t)\) being differentiable functions throughout all \(t\).

The system of equations stated above is utilized to model the bidirectional movement of particular water waves in a smooth, horizontal channel saturated with a liquid that is both inviscid and irrotational66. The time-dependent coefficients in the model indicate that the properties of the medium or fluid are changing with time. These coefficients can significantly influence the transmission of waves through the medium, leading to multifaceted wave interactions and phenomena.

By implementing the transformations \(U(\xi )=u(x, t)\) and \(V(\xi )=v(x, t)\), with \(\xi\) representing the wave variable defined as \(\xi =p(t)x+q(t)\), and substituting them into Eqs. (16) and (17), the equations transform as follows:

$$\left(x\dot{p}+\dot{q}\right)U^{\prime}+pV^{\prime}=0,$$
(18)
$$\left(x\dot{p}+\dot{q}\right)V^{\prime}+2\alpha pUU^{\prime}-\beta {p}^{3}U^{{\prime}{\prime}{\prime}}=0,$$
(19)

Integrating once Eqs. (18) and (19) with regard to \(\xi\), we obtain

$$V = \frac{{\left( {x\dot{p} + \dot{q}} \right)U}}{p}.$$
(20)
$$\left(x\dot{p}+\dot{q}\right)V+p{U}^{2}\alpha -{p}^{3}\beta U^{{\prime}{\prime}}=0,$$
(21)

By replacing \(V\) from Eq. (20) into Eq. (21) and simplifying thereafter, we derive

$${p}^{4}\beta {U}^{{\prime}{\prime}}+{\left(x\dot{p}+\dot{q}\right)}^{2}U-{p}^{2}\alpha {U}^{2}=0,$$
(22)

The utilization of the homogeneous balance principle for the highest order linear term \(U^{{\prime}{\prime}}\) and the nonlinear term \({U}^{2}\) in (22) results in

$$n+2=2n,\mathrm{ implies }\quad n=2.$$

Solutions through the modified simple equation method

Since the balance number is \(n=2\), so we will explore the solution for Eq. (22) in accordance with the following prescribed structure of the method:

$$U\left(\xi \right)={a}_{0}\left(t\right)+{a}_{1}\left(t\right)\left(\frac{{\varphi }^{{\prime}}\left(\xi \right)}{\varphi \left(\xi \right)}\right)+{a}_{2}\left(t\right){\left(\frac{{\varphi }^{{\prime}}\left(\xi \right)}{\varphi \left(\xi \right)}\right)}^{2}.$$
(23)

As the method dictates, substituting (23) into (22) yields the following nonlinear algebraic and differential equations:

$$\begin{gathered} p^{2} \alpha a_{0}^{2} - a_{0} \dot{q}^{2} = 0,a_{0} \dot{p}\dot{q} = 0,a_{0} \dot{p}^{2} = 0,\left( {2p^{2} \alpha a_{0} a_{1} - a_{1} \dot{q}^{2} } \right)\varphi^{\prime } - p^{4} \beta a_{1} \varphi^{\prime \prime \prime } = 0, \hfill \\ a_{1} \dot{p}\dot{q}\varphi^{\prime } = 0,a_{1} \dot{p}^{2} \varphi^{\prime } = 0,a_{2} \dot{p}\dot{q}\varphi^{\prime 2} = 0a_{2} \dot{p}^{2} \varphi^{\prime 2} = 0, \hfill \\ \left( {p^{2} \alpha \left( {a_{1}^{2} + 2a_{0} a_{2} } \right) - a_{2} \dot{q}^{2} } \right)\varphi^{\prime 2} + p^{4} \beta \left( {3a_{1} \varphi^{\prime } \varphi^{\prime \prime } - 2a_{2} \left( {\varphi^{^{\prime\prime}2} + \varphi^{\prime } \varphi^{\prime \prime \prime } } \right)} \right) = 0, \hfill \\ \left( {p^{4} \beta a_{1} - p^{2} \alpha a_{1} a_{2} } \right)\varphi^{\prime 3} - 5p^{4} \beta a_{2} \varphi^{\prime 2} \varphi^{\prime \prime } = 0, \hfill \\ \left( {6p^{4} \beta a_{2} - p^{2} \alpha a_{2}^{2} } \right)\varphi^{\prime 4} = 0, \hfill \\ \end{gathered}$$
(24)

Solving the above set of algebraic and differential equations by using Mathematica software package program, we acquire solutions which are representing below:

$${a}_{0}=\frac{\alpha {a}_{1}^{2}}{36{\lambda }^{2}\beta },{a}_{1}={a}_{1},{a}_{2}=\frac{6{\lambda }^{2}\beta }{\alpha },p=\lambda ,q=\mu \pm \frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\; \mathrm{ and }\; \; \varphi =B-\left(\frac{6{\lambda }^{2}A\beta }{\alpha {a}_{1}}\right){e}^{-\left(\frac{\alpha {a}_{1}}{6{\lambda }^{2}\beta }\right)\xi }.$$

Thus, the variable coefficient Boussinesq system yields the following exact traveling wave solutions:

$$U\left(\xi \right)=\frac{\alpha {a}_{1}^{2}}{36{\lambda }^{2}\beta }+\frac{AB{\alpha }^{2}{a}_{1}^{3}{e}^{\left(\frac{\alpha {a}_{1}}{6{\lambda }^{2}\beta }\right)\xi }}{{\left(-6A{\lambda }^{2}\beta +B\alpha {a}_{1}{e}^{\left(\frac{\alpha {a}_{1}}{6{\lambda }^{2}\beta }\right)\xi }\right)}^{2}},$$
(25)
$$V\left(\xi \right)= -\frac{\alpha {a}_{1}^{2}\dot{q}}{36{\lambda }^{3}\beta }-\frac{AB{\alpha }^{2}{a}_{1}^{3}\dot{q}{e}^{\left(\frac{\alpha {a}_{1}}{6{\lambda }^{2}\beta }\right)\xi }}{{\lambda \left(-6A{\lambda }^{2}\beta +B\alpha {a}_{1}{e}^{\left(\frac{\alpha {a}_{1}}{6{\lambda }^{2}\beta }\right)\xi }\right)}^{2}}.$$
(26)

The above mentioned solutions can be transformed into hyperbolic functions, represented as:

$$U\left(\xi \right)=\frac{\alpha {a}_{1}^{2}}{36{\lambda }^{2}\beta }+\frac{AB{\alpha }^{2}{a}_{1}^{3}}{{\left(\left(B\alpha {a}_{1}-6A{\lambda }^{2}\beta \right){\text{cosh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)+\left(B\alpha {a}_{1}+6A{\lambda }^{2}\beta \right){\text{sinh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right)}^{2}},$$
(27)
$$V\left(\xi \right)=-\frac{\alpha {a}_{1}^{2}\dot{q}}{36{\lambda }^{3}\beta }-\frac{AB{\alpha }^{2}{a}_{1}^{3}\dot{q}}{\lambda {\left(\left(B\alpha {a}_{1}-6A{\lambda }^{2}\beta \right){\text{cosh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)+\left(B\alpha {a}_{1}+6A{\lambda }^{2}\beta \right){\text{sinh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right)}^{2}}.$$
(28)

As \(A\) and \(B\) are arbitrary functions of time. So it is possible to select their values arbitrarily, which are producing a variety of potential outcomes:

Case I: Assuming \(A=-\frac{\alpha {a}_{1}}{{\lambda }^{2}\beta }\) and \(B=6\), then solution (27) and (28) takes the form:

$$U\left(\xi \right)=\frac{\alpha {a}_{1}^{2}}{12{\lambda }^{2}\beta }\left(\frac{1}{3}-\frac{1}{2}{{\text{sech}}}^{2}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right),$$
(29)
$$V\left(\xi \right)=-\frac{\alpha {a}_{1}^{2}\dot{q}}{12{\lambda }^{3}\beta }\left(\frac{1}{3}-\frac{1}{2}{{\text{sech}}}^{2}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right).$$
(30)

Case II: The choice \(A=\frac{1}{{\lambda }^{2}\beta }\) and \(B=\frac{1}{\alpha {a}_{1}}\) convert the solutions (27) and (28) into the form:

$$U\left(\xi \right)=\frac{\alpha {a}_{1}^{2}}{36{\lambda }^{2}\beta }+\frac{\alpha {a}_{1}^{2}}{{\lambda }^{2}\beta {\left(5{\text{cosh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)-7{\text{sinh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right)}^{2}},$$
(31)
$$V\left(\xi \right)=-\frac{\alpha {a}_{1}^{2}\dot{q}}{36{\lambda }^{3}\beta }-\frac{\alpha {a}_{1}^{2}\dot{q}}{{\lambda }^{3}\beta {\left(5{\text{cosh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)-7{\text{sinh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right)}^{2}}.$$
(32)

Case III: If we consider \(A=\frac{1}{{6\lambda }^{2}}\) and \(B=\frac{1}{{a}_{1}}\) then solution (28) and (28) becomes

$$U\left(\xi \right)=\frac{\alpha {a}_{1}^{2}}{36{\lambda }^{2}\beta }+\frac{{\alpha }^{2}{a}_{1}^{2}}{6{\lambda }^{2}{\left(\left(\alpha -\beta \right){\text{cosh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)+\left(\alpha +\beta \right){\text{sinh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right)}^{2}},$$
(33)
$$V\left(\xi \right)=-\frac{\alpha {a}_{1}^{2}\dot{q}}{36{\lambda }^{3}\beta }-\frac{{\alpha }^{2}{a}_{1}^{2}\dot{q}}{6{\lambda }^{3}{\left(\left(\alpha -\beta \right){\text{cosh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)+\left(\alpha +\beta \right){\text{sinh}}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right)}^{2}}.$$
(34)

Case IV: Setting \(A=\frac{\alpha {a}_{1}}{{\lambda }^{2}\beta }\) and \(B=6\) in solutions (27) and (28), then

$$U\left(\xi \right)=\frac{\alpha {a}_{1}^{2}}{12{\lambda }^{2}\beta }\left(\frac{1}{3}+\frac{1}{2}{{\text{csch}}}^{2}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right),$$
(35)
$$V\left(\xi \right)=-\frac{\alpha {a}_{1}^{2}\dot{q}}{12{\lambda }^{3}\beta }\left(\frac{1}{3}+\frac{1}{2}{{\text{csch}}}^{2}\left(\frac{\alpha {a}_{1}\xi }{12{\lambda }^{2}\beta }\right)\right).$$
(36)

wherein \(\xi =p\left(t\right)x+q(t)\) with \(p\left(t\right)=\lambda\) and \(q=\mu \pm \frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\).

In the same process, for other considerations of the integral constants \(A\) and \(B\), more important and logical wave solutions can be obtained but the solutions are not shown in order to keep the size of this article to an elegant volume.

Solutions through the generalized Kudryashov method

Applying the homogeneous balance principle to the leading linear term \(U^{{\prime}{\prime}}\) and the non-linear term \({U}^{2}\) in Eq. (22) yields:

$$n-m+2=2n-2m,\mathrm{ implies }n=m+2.$$

If we choose \(m=1\), which gives \(n=3\).

Thus according to the method, the exact solution of (22) takes the following form:

$$U\left(\xi \right)=\frac{{a}_{0}\left(t\right)+{a}_{1}\left(t\right)Q\left(\xi \right)+{a}_{2}\left(t\right){\left(Q\left(\xi \right)\right)}^{2}+{a}_{3}\left(t\right){\left(Q\left(\xi \right)\right)}^{3}}{{b}_{0}\left(t\right)+{b}_{1}\left(t\right)Q\left(\xi \right)}.$$
(37)

Substituting (37) into (22) and using relation \({Q}^{{\prime}}\left(\xi \right)=Q(\xi )(Q\left(\xi \right)-1)\), we derive the subsequent nonlinear algebraic and differential equations following the method

$$\begin{aligned} & p^{2} \alpha a_{0}^{2} b_{0} - a_{0} b_{0}^{2} \dot{q}^{2} = 0, a_{0} b_{0}^{2} \dot{p}\dot{q} = 0, a_{0} b_{0}^{2} \dot{p}^{2} = 0, \left( {a_{1} b_{0}^{2} + 2a_{0} b_{0} b_{1} } \right)\dot{p}\dot{q} = 0, \\ & \quad p^{2} \alpha \left( {2a_{0} a_{1} b_{0} + a_{0}^{2} b_{1} } \right) - p^{4} \beta \left( {a_{1} b_{0}^{2} - a_{0} b_{0} b_{1} } \right) - \left( {a_{1} b_{0}^{2} + 2a_{0} b_{0} b_{1} } \right)\dot{q}^{2} = 0, \\ & \quad \left( {a_{1} b_{0}^{2} + 2a_{0} b_{0} b_{1} } \right)\dot{p}^{2} = 0,\left( {a_{2} b_{0}^{2} + 2a_{1} b_{0} b_{1} + a_{0} b_{1}^{2} } \right)\dot{p}\dot{q} = 0, \\ & \quad p^{2} \alpha (a_{1}^{2} b_{0} + 2a_{0} a_{2} b_{0} + 2a_{0} a_{1} b_{1} ) + p^{4} \beta (3a_{1} b_{0}^{2} - 4a_{2} b_{0}^{2} \\ & \quad - 3a_{0} b_{0} b_{1} + a_{1} b_{0} b_{1} - a_{0} b_{1}^{2} ) - \left( {a_{2} b_{0}^{2} + 2a_{1} b_{0} b_{1} + a_{0} b_{1}^{2} } \right)\dot{q}^{2} = 0, \\ & \quad \left( {a_{2} b_{0}^{2} + 2a_{1} b_{0} b_{1} + a_{0} b_{1}^{2} } \right)\dot{p}^{2} = 0, \\ & \quad p^{2} \alpha \left( {2b_{0} \left( {a_{1} a_{2} + a_{0} a_{3} } \right) + b_{1} (a_{1}^{2} + 2a_{0} a_{2} } \right)) - p^{4} \beta (b_{0}^{2} \left( {2a_{1} - 10a_{2} + 9a_{3} } \right) \\ & \quad - b_{1} \left( {2a_{0} b_{0} - a_{1} b_{0} - 3a_{2} b_{0} + a_{0} b_{1} } \right)) - \left( {a_{3} b_{0}^{2} + 2a_{2} b_{0} b_{1} + a_{1} b_{1}^{2} } \right)\dot{q}^{2} = 0, \\ & \quad \left( {a_{3} b_{0}^{2} + 2a_{2} b_{0} b_{1} + a_{1} b_{1}^{2} } \right)\dot{p}\dot{q} = 0,\left( {a_{3} b_{0}^{2} + 2a_{2} b_{0} b_{1} + a_{1} b_{1}^{2} } \right)\dot{p}^{2} = 0, \\ & \quad p^{2} \alpha \left( {a_{2}^{2} b_{0} + 2a_{1} a_{3} b_{0} + 2a_{1} a_{2} b_{1} + 2a_{0} a_{3} b_{1} } \right) - p^{4} \beta (6a_{2} b_{0}^{2} \\ & \quad - 21a_{3} b_{0}^{2} - 9a_{2} b_{0} b_{1} + 11a_{3} b_{0} b_{1} + a_{2} b_{1}^{2} ) - \left( {2a_{3} b_{0} b_{1} + a_{2} b_{1}^{2} } \right)\dot{q}^{2} = 0, \\ & \quad \left( {2a_{3} b_{0} b_{1} + a_{2} b_{1}^{2} } \right)\dot{p}\dot{q} = 0,\left( {2a_{3} b_{0} b_{1} + a_{2} b_{1}^{2} } \right)\dot{p}^{2} = 0, \\ & \quad p^{2} \alpha (2a_{2} a_{3} b_{0} + a_{2}^{2} b_{1} + 2a_{1} a_{3} b_{1} ) - p^{4} \beta (12a_{3} b_{0}^{2} + 6a_{2} b_{0} b_{1} \\ & \quad - 27a_{3} b_{0} b_{1} - 3a_{2} b_{1}^{2} + 4a_{3} b_{1}^{2} ) - a_{3} b_{1}^{2} \dot{q}^{2} = 0,a_{3} b_{1}^{2} \dot{p}\dot{q} = 0,a_{3} b_{1}^{2} \dot{p}^{2} = 0, \\ & \quad p^{2} \alpha \left( {a_{3}^{2} b_{0} + 2a_{2} a_{3} b_{1} } \right) - 2p^{4} \beta \left( {8a_{3} b_{0} b_{1} + a_{2} b_{1}^{2} - 5a_{3} b_{1}^{2} } \right) = 0, \\ & \quad p^{2} \alpha a_{3}^{2} b_{1} - 6p^{4} \beta a_{3} b_{1}^{2} = 0, \\ \end{aligned}$$
(38)

Solving the above set of algebraic and differentials presented in Eqs. (38), using Mathematica software, we found solutions that are presented below:

$${a}_{0}=\frac{{\uplambda }^{2}\beta {b}_{0}}{\alpha },{a}_{1}=\frac{{\uplambda }^{2}\beta (-6{b}_{0}+{b}_{1})}{\alpha },{a}_{2}=\frac{6{\uplambda }^{2}\beta ({b}_{0}-{b}_{1})}{\alpha },{a}_{3}=\frac{6{\uplambda }^{2}\beta {b}_{1}}{\alpha },{b}_{0}={b}_{0},{b}_{1}={b}_{1},p=\lambda \mathrm{ and }q=\mu \pm {\uplambda }^{2}\int \sqrt{\beta }dt.$$

Hence by employing the generalized Kudryashov method, we obtain the solutions for the Boussinesq system with variable coefficients (14) as follows:

$$U\left(\xi \right)=\frac{(1-4A{e}^{\xi }+{A}^{2}{e}^{2\xi }){\lambda }^{2}\beta }{{(1+A{e}^{\xi })}^{2}\alpha },$$
(39)
$$V\left(\xi \right)=-\frac{\left(1-4A{e}^{\xi }+{A}^{2}{e}^{2\xi }\right)\lambda \beta \dot{q}}{{\left(1+A{e}^{\xi }\right)}^{2}\alpha },$$
(40)

where \(A\) stands as an arbitrary constant.

The solutions described above can be expressed in terms of hyperbolic functions as follows:

$$U\left(\xi \right)=\frac{{\lambda }^{2}\beta \left(-4A+\left({A}^{2}+1\right){\text{cosh}}\xi +\left({A}^{2}-1\right){\text{sinh}}\xi \right)}{\alpha {\left(\left(A+1\right){\text{cosh}}\left(\frac{\xi }{2}\right)+\left(A-1\right){\text{sinh}}\left(\frac{\xi }{2}\right)\right)}^{2}},$$
(41)
$$V\left(\xi \right)=-\frac{\lambda \beta \dot{q}\left(-4A+\left({A}^{2}+1\right){\text{cosh}}\xi +\left({A}^{2}-1\right){\text{sinh}}\xi \right)}{\alpha {\left(\left(A+1\right){\text{cosh}}\left(\frac{\xi }{2}\right)+\left(A-1\right){\text{sinh}}\left(\frac{\xi }{2}\right)\right)}^{2}}.$$
(42)

Case I: If we choose \(A=1\) in the solutions (41) and (42), then

$$U\left(\xi \right)=\frac{{\lambda }^{2}\beta ({\text{cosh}}\xi -2)}{\alpha ({\text{cosh}}\xi +1)},$$
(43)
$$V\left(\xi \right)=-\frac{\lambda \beta \dot{q}\left({\text{cosh}}\xi -2\right)}{\alpha \left({\text{cosh}}\xi +1\right)}.$$
(44)

Case II: The consideration \(A=2\) converts the solution (41) and (42) into the form:

$$U\left(\xi \right)=\frac{{\lambda }^{2}\beta (-8+5{\text{cosh}}\xi +3{\text{sinh}}\xi )}{\alpha (4+5{\text{cosh}}\xi +3{\text{sinh}}\xi )},$$
(45)
$$V\left(\xi \right)=-\frac{\lambda \beta \dot{q}\left(-8+5{\text{cosh}}\xi +3{\text{sinh}}\xi \right)}{\alpha \left(4+5{\text{cosh}}\xi +3{\text{sinh}}\xi \right)}.$$
(46)

Case III: If we set \(A=-2\), then the solution (41) and (42) becomes

$$U\left(\xi \right)=\frac{{\lambda }^{2}\beta (8+5{\text{cosh}}\xi +3{\text{sinh}}\xi )}{\alpha (-4+5{\text{cosh}}\xi +3{\text{sinh}}\xi )},$$
(47)
$$V\left(\xi \right)=-\frac{\lambda \beta \dot{q}\left(8+5{\text{cosh}}\xi +3{\text{sinh}}\xi \right)}{\alpha \left(-4+5{\text{cosh}}\xi +3{\text{sinh}}\xi \right)}.$$
(48)

Case IV: Suppose \(A=-1\), then the solution (41) and (42) takes the form:

$$U\left(\xi \right)=\frac{{\lambda }^{2}\beta ({\text{cosh}}\xi +2)}{\alpha ({\text{cosh}}\xi -1)},$$
(49)
$$V\left(\xi \right)=-\frac{\lambda \beta \dot{q}\left({\text{cosh}}\xi +2\right)}{\alpha \left({\text{cosh}}\xi -1\right)}.$$
(50)

Here \(\xi =p\left(t\right)x+q(t)\), where \(p\left(t\right)=\lambda\) and \(q=\mu \pm {\uplambda }^{2}\int \sqrt{\beta }dt\).

By similar process, it is possible to derive numerous other indispensable and consistent wave solutions through variations in the integral constants \(A\). Nonetheless, in order to maintain elegant brevity of the paper we have chosen not to include these solutions.

Solutions through the modified sine–Gordon expansion method

As the balance number, \(n=2\). So based on the method, consider the solution for Eq. (22):

$$U\left(w\right)={b}_{2}{\text{sin}}(w){\text{cos}}(w)+{b}_{1}{\text{sin}}\left(w\right)+{a}_{2}{{\text{cos}}}^{2}\left(w\right)+{a}_{1}{\text{cos}}\left(w\right)+{a}_{0}.$$
(51)

By substituting (51) into (22) together with \({w}^{\prime}\left(\xi \right)={\text{sin}}(w)\), then as per the method we can derive the following nonlinear algebraic and differential equations:

$$\begin{aligned} & p^{2} \alpha \left( {4a_{0} b_{1} + a_{2} b_{1} + a_{1} b_{2} } \right) + p^{4} \beta b_{1} - 2b_{1} \dot{q}^{2} = 0,b_{1} \dot{p}\dot{q} = 0,b_{1} \dot{p}^{2} = 0, \\ & \quad p^{2} \alpha \left( {4a_{0} a_{1} + 3a_{1} a_{2} + b_{1} b_{2} } \right) + p^{4} \beta a_{1} - 2a_{1} \dot{q}^{2} = 0, \\ & \quad a_{1} \dot{p}\dot{q} = 0,a_{1} \dot{p}^{2} = 0,p^{2} \alpha \left( {2a_{1} b_{1} + 2a_{0} b_{2} + a_{2} b_{2} } \right) + 2p^{4} \beta b_{2} - b_{2} \dot{q}^{2} = 0, \\ & \quad b_{2} \dot{p}\dot{q} = 0,b_{2} \dot{p}^{2} = 0,p^{2} \alpha \left( {a_{1}^{2} + 2a_{0} a_{2} + a_{2}^{2} - b_{1}^{2} } \right) + 2p^{4} \beta a_{2} - a_{2} \dot{q}^{2} = 0, \\ & \quad a_{2} \dot{p}\dot{q} = 0,a_{2} \dot{p}^{2} = 0,p^{2} \alpha \left( {a_{2} b_{1} + a_{1} b_{2} } \right) - p^{4} \beta b_{1} = 0, \\ & \quad p^{2} \alpha \left( {a_{1} a_{2} - b_{1} b_{2} } \right) - p^{4} \beta a_{1} = 0,3p^{4} \beta b_{2} - p^{2} \alpha a_{2} b_{2} = 0, \\ & \quad p^{2} \alpha \left( {a_{2}^{2} - b_{2}^{2} } \right) - 6p^{4} \beta a_{2} = 0, \\ & \quad p^{2} \alpha \left( {8a_{0}^{2} + 4a_{1}^{2} + 8a_{0} a_{2} + 3a_{2}^{2} + 4b_{1}^{2} + b_{2}^{2} } \right) - 2p^{4} \beta a_{2} - 4\left( {2a_{0} + a_{2} } \right)\dot{q}^{2} = 0, \\ & \quad \left( {2a_{0} + a_{2} } \right)\dot{p}\dot{q} = 0, \\ & \quad \left( {2a_{0} + a_{2} } \right)\dot{p}^{2} = 0, \\ \end{aligned}$$
(52)

By using the Mathematica software package program to solve the system of algebraic and differential Eqs. (52) presented above, we obtain different sets of solutions that are presented below:

Set 1: \({a}_{0}=-\frac{6{\lambda }^{2}\beta }{\alpha }\), \({a}_{1}=0\), \({a}_{2}=\frac{6{\lambda }^{2}\beta }{\alpha }\), \({b}_{1}=0\), \({b}_{2}=0\), \(p=\lambda\), \(q=\mu \pm 2i{\lambda }^{2}\int \sqrt{\beta }dt\).

By using these results, the modified sine–Gordon expansion approach provides the solutions of the time-varying coefficient Boussinesq model as follows:

$$U\left(\xi \right)=-\frac{6{\lambda }^{2}\beta {{\text{sech}}}^{2}\xi }{\alpha },$$
(53)
$$V\left(\xi \right)=\frac{6\lambda \beta \dot{q}{{\text{sech}}}^{2}\xi }{\alpha }.$$
(54)

Set 2: \({a}_{0}=-\frac{2{\lambda }^{2}\beta }{\alpha }\), \({a}_{1}=0\), \({a}_{2}=\frac{6{\lambda }^{2}\beta }{\alpha }\), \({b}_{1}=0\), \({b}_{2}=0\), \(p=\lambda\), \(q=\mu \pm 2{\lambda }^{2}\int \sqrt{\beta }dt\).

The technique, with the aid of these results, offers the solutions to the time-varying coefficient Boussinesq system as follows:

$$U\left(\xi \right)=\frac{2{\lambda }^{2}\beta (-1+3{{\text{tanh}}}^{2}\xi )}{\alpha },$$
(55)
$$V\left(\xi \right)=\frac{2\lambda \beta \dot{q}(1-3{{\text{tanh}}}^{2}\xi )}{\alpha }.$$
(56)

Set 3: \({a}_{0}=-\frac{3{\lambda }^{2}\beta }{\alpha }\), \({a}_{1}=0\), \({a}_{2}=\frac{3{\lambda }^{2}\beta }{\alpha }\), \({b}_{1}=0\), \({b}_{2}=\pm \frac{3i{\lambda }^{2}\beta }{\alpha }\), \(p=\lambda\), \(q=\mu \pm i{\lambda }^{2}\int \sqrt{\beta }dt\).

These results enable the modified sine–Gordon expansion method to present the solutions of the time-varying coefficient Boussinesq equations as follows:

$$U\left(\xi \right)=\frac{3{\lambda }^{2}\beta }{\alpha }\left(-1-i{\text{sech}}\xi {\text{tanh}}\xi +{{\text{tanh}}}^{2}\xi \right),$$
(57)
$$V\left(\xi \right)=\frac{3\lambda \beta \dot{q}}{\alpha }\left(1+i{\text{sech}}\xi {\text{tanh}}\xi -{{\text{tanh}}}^{2}\xi \right).$$
(58)

Set 4: \({a}_{0}=-\frac{2{\lambda }^{2}\beta }{\alpha }\), \({a}_{1}=0\), \({a}_{2}=\frac{3{\lambda }^{2}\beta }{\alpha }\), \({b}_{1}=0\), \({b}_{2}=\pm \frac{3i{\lambda }^{2}\beta }{\alpha }\), \(p=\lambda\), \(q=\mu \pm {\lambda }^{2}\int \sqrt{\beta }dt\).

Utilizing these findings, the method yields the solutions to the time-varying coefficient Boussinesq model as follows:

$$U\left(\xi \right)=\frac{{\lambda }^{2}\beta }{\alpha }\left(-2-3i{\text{sech}}\xi {\text{tanh}}\xi +3{{\text{tanh}}}^{2}\xi \right),$$
(59)
$$V\left(\xi \right)=\frac{\lambda \beta \dot{q}}{\alpha }\left(2+3i{\text{sech}}\xi {\text{tanh}}\xi -3{{\text{tanh}}}^{2}\xi \right).$$
(60)

In the above sets of solutions, \(\xi =p\left(t\right)x+q(t)\).

Results and discussion

In this section, we have discussed the exact results obtained by the three methods by considering various parameters through diagrams. We have depicted the profile of soliton solutions obtained by successfully applying the MSE method, the generalized Kudryashov method and the modified sine–Gordon technique to the Boussinesq system with varying coefficients. All the figures provide a remarkable representation of how the soliton solutions of an equation are affected by the variable coefficients of the equation. Selection of different types of functions for the variable coefficients in the system, soliton solutions exhibit a diverse range of waveforms or variations, which are displayed with 3D surfaces and 2D and 3D curves to highlight the variations. It is noticeable from the figures that the variable coefficients of the equation and the wave velocity function continuously change the shape of the wave surface, i.e. the length, height and direction of the wave. To highlight the authenticity of this phenomenon, we have diagrammed the wave velocity solutions (29)–(36), (43)–(50) and (53)–(60) that have physical applications in the real world.

Graphical analysis of solutions: modified simple equation method

We have portrayed the results of the Boussinesq system with time-involving coefficients, marked as (29) and (30), for two distinct scenarios. In the first case, with \(\lambda =1\), \(\mu =0.6\), \({a}_{1}=t+1\), \(\alpha ={e}^{-t}\), \(\beta =\frac{1}{t}\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\) and in the second case, with \(\lambda =-0.65\), \(\mu =0.2\), \({a}_{1}=2t\), \(\alpha ={\text{cos}}3t\), \(\beta =2{t}^{2}\) for \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\), we have presented these outcomes in Figs. 1(i), (ii) and 2 (i), (ii) respectively, spanning the intervals of \(-10\le x\le 10\) and \(0\le t\le 10\). Additionally, we have included both 2D and 3D solution curves, each associated with specific time value. The solution surfaces for both \(u\) and \(v\) form the anti-lump shaped waves in the first case, whereas the second case displays irregular periodic solitons with rising wave-amplitudes and wavelengths. On the other hand, the directions of the arrows in the (c) diagrams of all figures reveal how the 2D curves change with time.

Figure 1
figure 1

(i) Graphical representations of solution (29) for \(u(x, t)\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 2, 3\). (ii) Graphical representations of solution (30) for \(v(x, t)\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 2, 3\).

Figure 2
figure 2

(i): Graphical representations of solution (29) for \(u(x, t)\) when \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=5, 6, 7\). (ii): Graphical representations of solution (30) for \(v(x, t)\) when \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=5, 6, 7\).

Furthermore, the results of the Boussinesq equations under changing coefficients, identified as (31) and (32), have represented graphically for \(\lambda =-1\), \(\mu =-26\), \({a}_{1}=3\), \(\alpha =2\), \(\beta =5{\text{sec}}\left(\frac{t}{20}\right)\), when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\) and \(\lambda =0.01\), \(\mu =-0.5\), \({a}_{1}={\text{cosh}}t\), \(\alpha =3\), \(\beta =5{e}^{2t}\), when \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\), in Figs. 3(i), (ii) and 4(i), (ii) respectively, across the ranges \(-10\le x\le 10\) and \(0\le t\le 10\), including both 2D and 3D representations of solution curves at various time. The solution surfaces for the first and second cases represent curve-shaped and irregular-shaped solitons respectively.

Figure 3
figure 3

(i): Graphical representations of solution (31) for \(u(x, t)\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). a Solution surface, b Solution curves in 3D form, b Solution curves in 2D form for t = 0, 5, 10. (ii): Graphical representations of solution (32) for \(v(x, t)\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). a Solution surface, b Solution curves in 3D form, c Solution curves in 2D form for t = 0, 5, 10.

Figure 4
figure 4

(i): Graphical representations of solution (31) for \(u(x, t)\) when \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for t = 4, 6, 8. (ii): Graphical representations of solution (32) for \(v(x, t)\) when \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for t = 4, 6, 8.

Again for \(\lambda =0.1\), \(\mu =-1.15\), \({a}_{1}=0.5\), \(\alpha ={\text{cos}}t\), \(\beta =2\), \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\) and \(\lambda =0.1\), \(\mu =-0.6\), \({a}_{1}=3{\text{tanh}}t\), \(\alpha =1\), \(\beta =2{\text{sinh}}t\), \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\), we have plotted the solutions of the time-varying coefficient Boussinesq model, denoted as (33) and (34), on Figs. 5(i), (ii) and 6(i), (ii) respectively. These plots encompassed the spatial domain \(-10\le x\le 10\) and the temporal domain \(0\le t\le 10\), also presented solution curves for distinct time points in both 2D and 3D diagrams. In the first scenario, the solution surfaces represent irregular periodic solitons, while they depict bell-shaped waves in the second scenario.

Figure 5
figure 5

(i): Graphical representations of solution (33) for \(u(x, t)\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=2, 5, 8\). (ii): Graphical representations of solution (34) for \(v(x, t)\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=2, 5, 8\).

Figure 6
figure 6

(i): Graphical representations of solution (33) for \(u(x, t)\) when \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 2, 3\). (ii): Graphical representations of solution (34) for \(v(x, t)\) when \(q=\mu +\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 2, 3\).

Graphical analysis of solutions: generalized Kudryashov method

For \(\lambda =0.25\), \(\mu =0.5\), \(\alpha ={\text{sec}}2t\), \(\beta ={{\text{tanh}}}^{2}t\) when \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\) and \(\lambda =1\), \(\mu =-15\), \(\alpha =10(t+1)\), \(\beta =\frac{{\left({t}^{2}-2t+2\right)}^{2}}{15}\) when \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\), the two results (43) and (44) of the Boussinesq system characterized by time-varying coefficients, have depicted in Figs. 7(i), (ii) and 8(i), (ii) over the limitations \(-10\le x\le 10\) and \(0\le t\le 10\), together with 2D and 3D representations of solution curves across different time. In the both cases, the solution surfaces take on distinct forms, with the first case showing double-periodic solitons in both directions and the second case revealing irregular half-range kink with anti-bell and half-range anti-kink with bell shaped solitons along \(t\)-axis for \(u(x, t)\) and \(v(x, t)\) respectively.

Figure 7
figure 7

(i): Graphical representations of solution (43) for \(u(x, t)\) when \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 5, 9\). (ii): Graphical representations of solution (44) for \(v(x, t)\) when \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 5, 9\).

Figure 8
figure 8

(i): Graphical representations of solution (43) for \(u(x, t)\) when \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=4, 5, 6\). (ii): Graphical representations of solution (44) for \(v(x, t)\) when \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=4, 5, 6\).

Within the Boussinesq equations with time-evolving coefficients, we have displayed the two results identified as (45) and (46) in Figs. 9(i), (ii) and 10(i), (ii) throughout the region where \(-10\le x\le 10\) and \(0\le t\le 10\) for two specific conditions. In the first condition, with \(\lambda =0.3\), \(\mu =1.8\), \(\alpha =10{e}^{t}\), \(\beta ={({t}^{2}-t+3)}^{2}\) in situation where \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\) and in the second condition, featuring \(\lambda =-0.35\), \(\mu =0.95\), \(\alpha ={\text{sec}}{e}^{t/5}\), \(\beta ={0.5}^{{\text{t}}/5}\) whenever \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\) have considered. Additionally these figures show both 2D and 3D solution curves for different values of time. Irregular anti-bell shaped solitons characterize the solution surfaces in the first case, whereas the second case displays irregular double-periodic solitons with respect to both axes.

Figure 9
figure 9

(i): Graphical representations of solution (45) for \(u(x, t)\) when \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=3, 6, 9\). (ii): Graphical representations of solution (46) for \(v(x, t)\) when \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=3, 6, 9\).

Figure 10
figure 10

(i): Graphical representations of solution (45) for \(u(x, t)\) when \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=0, 5, 10\). (ii): Graphical representations of solution (46) for \(v(x, t)\) when \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=0, 5, 10\).

In the case of \(\lambda =0.05\), \(\mu =1.5\), \(\alpha ={\text{sec}}{t}^{3}\), \(\beta =1\) when \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\) and for \(\lambda =-0.16\), \(\mu =4.85\), \(\alpha =10{\text{csc}}{e}^{3t}\), \(\beta ={{\text{cos}}}^{2}\frac{t}{8}\) with \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\), we have displayed the two results (47) and (48) of the Boussinesq system with time-influenced coefficients in Figs. 11(i), (ii) and 12(i), (ii) within the boundaries of \(-10\le x\le 10\) and \(0\le t\le 10\), along with 2D and 3D representations of solution curves at different points of time. In both cases the two solution surfaces show irregular periodic solitons, but they exhibit their distinct properties.

Figure 11
figure 11

(i): Graphical representations of solution (47) for \(u(x, t)\) when \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 5, 9\). (ii): Graphical representations of solution (48) for \(v(x, t)\) when \(q=\mu -{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 5, 9\).

Figure 12
figure 12

(i): Graphical representations of solution (47) for \(u(x, t)\) when \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=2, 4, 6\). (ii): Graphical representations of solution (48) for \(v(x, t)\) when \(q=\mu +{\uplambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=2, 4, 6\).

Graphical analysis of solutions: modified sine–Gordon expansion method

In Fig. 13(i) and (ii), as well as Fig. 14(i) and (ii), we have illustrated the solutions to the Boussinesq model, identified as (53) and (54) for the two sets of parameters \(\lambda =0.5\), \(\mu =2.5\), \(\alpha ={\text{ln}}(t+1.5)\), \(\beta =-t\), where \(q=\mu -2i{\lambda }^{2}\int \sqrt{\beta }dt\) and \(\lambda =0.25\), \(\mu =-2.35\), \(\alpha ={t}^{3}{{\text{coth}}}^{2}t\), \(\beta =-{t}^{2}\), when \(q=\mu +2i{\lambda }^{2}\int \sqrt{\beta }dt\). These graphical representations span the area \(-10\le x\le 10\) and \(0\le t\le 10\), also incorporate the representations of both solution curves for various time points in 2D and 3D diagrams. In both cases, solitons with bell-shaped and anti-bell-shaped profiles, subject to parabolic tapering, represent the respective solution surfaces.

Figure 13
figure 13

(i): Graphical representations of solution (53) for \(u(x, t)\) when \(q=\mu -2i{\lambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=2, 4, 6\). (ii): Graphical representations of solution (54) for \(v(x, t)\) when \(q=\mu -2i{\lambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=2, 4, 6\).

Figure 14
figure 14

(i): Graphical representations of solution (53) for \(u(x, t)\) when \(q=\mu +2i{\lambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 4, 7\). (ii): Graphical representations of solution (54) for \(v(x, t)\) when \(q=\mu +2i{\lambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 4, 7\).

Using \(\lambda =-0.75\), \(\mu =0.45\), \(\alpha =2{\text{sin}}\left(\frac{t+1}{15}\right)\), \(\beta ={\text{cos}}\left(\frac{t}{10}\right)\), for \(q=\mu -2{\lambda }^{2}\int \sqrt{\beta }dt\) and \(\lambda =0.15\), \(\mu =-0.35\), \(\alpha =3{\text{sec}}t\), \(\beta ={\text{ln}}(t+3)\), for \(q=\mu +2{\lambda }^{2}\int \sqrt{\beta }dt\), we have generated graphical representations in Figs. 15(i), (ii) and 16(i), (ii) for the results (55) and (56) of the Boussinesq model, covering the bounded field where \(-10\le x\le 10\) and \(0\le t\le 10\), with additional 2D and 3D explanations of solution curves reflecting diverse time increments. For the first case, both solution surfaces portray anti-bell and bell-shaped solitons with parabolic tapering; and in the second case, they delineate double-periodic solitons for both \(u(x, t)\) and \(v(x, t)\), respectively.

Figure 15
figure 15

(i): Graphical representations of solution (55) for \(u(x, t)\) when \(q=\mu -2{\lambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=0, 1, 2\). (ii): Graphical representations of solution (56) for \(v(x, t)\) when \(q=\mu -2{\lambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=0, 1, 2\).

Figure 16
figure 16

(i): Graphical representations of solution (55) for \(u(x, t)\) when \(q=\mu +2{\lambda }^{2}\int \sqrt{\beta }dt\). (ii): Graphical representations of solution (56) for \(v(x, t)\) when \(q=\mu +2{\lambda }^{2}\int \sqrt{\beta }dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=0, 5, 10\).

Finally, we have refrained from showing figures for singular solutions (35), (36), (49), (50), (57)-(60) of the Boussinesq model, which are mathematically correct but have no physical application in the real world. Although sometimes considering special functions for variable coefficients, some of these solutions behave like non-singular solutions. Thus we have shown only the diagrams of solutions (35) and (36) in Fig. 17(i) and (ii) rather than illustrating all the graphs of those solutions. We have considered \(\lambda =1\), \(\mu =0.5\), \({a}_{1}=4\), \(\alpha =t\), \(\beta =3t\) and taking \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\) to display the figures for \(-10\le x\le 10\) and \(0\le t\le 10\), where both images reveal singular periodic solitons. Also in these figures the solution curves for different values of time are presented in 2D and 3D diagrams.

Figure 17
figure 17

(i): Graphical representations of solution (35) for \(u(x, t)\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 5, 9\). (ii): Graphical representations of solution (36) for \(v(x, t)\) when \(q=\mu -\frac{1}{6}\int \frac{\alpha {a}_{1}}{\sqrt{\beta }}dt\). (a) Solution surface, (b) Solution curves in 3D form, (c) Solution curves in 2D form for \(t=1, 5, 9\).

From the above discussion it is clear that the applied methods serve as suitable, applicable and very effective tools to find the soliton solutions of the nonlinear evolution models with variable coefficients, which are developed in engineering, physics and applied sciences.

Conclusion

In this study, we have developed substantial techniques for obtaining exact solutions to the Boussinesq systems characterized by the time-varying coefficients. The accessibility of these solutions through the utilization of the modified simple equation, the modified sine–Gordon expansion and the Kudryashov methods open up new paths for understanding and modeling intricate systems with variable coefficients. The explanations and visual presentations of the attained results for different cases increase the accessibility of our findings and enable a more intuitive grasp of the dynamics of the system. This research provides theoretical understanding as well as opportunities for advanced problem-solving technique by bridging the gap between constant and variable coefficient situations in Boussinesq equations. Although these methods have advantages, they encounter limitations when applied to solving equations. These limitations include sensitivity to changes in coefficients, challenges in presenting a physically meaningful interpretation, and the generation of impractical solutions. To address these constraints, there is a need to refine existing methods and explore hybrid approaches. This study might be used both in theory and in practice, which will make a significant contribution to thorough research in mathematical physics, which will act as a catalyst in the investigation of other problems in the future.