Introduction

Nonlinear partial differential equations are prevalent in many physical problems, such as solid mechanics, fluid dynamics, acoustics, nonlinear optics, plasma physics, and quantum field theory. They also find applications in chemical and biological systems and formulate the fundamental laws of nature. Within this broad spectrum, a particularly intriguing class of nonlinear partial differential equations known as soliton equations gives rise to physically attractive solutions known as solitons. These solitons have significantly contributed to the field of applied sciences. For a comprehensive understanding of these phenomena, refer to1,2,3,4,5,6,7,8,9,10,11 and the references therein, which offer detailed insights from both the theoretical and experimental perspectives.

There are important works related to the recent development in partial differential equations and their applications, including nonlinear pseudo hyperbolic partial differential equations12,13,14,15 and third-order fractional partial differential equations16,17,18. Pursuing suitable analytical methods to solve nonlinear partial differential equations is a central focus. Among the most widely adopted techniques are the variational iteration method19, the inverse scattering method20, the integral transform method21, the truncated expansion method22, the extended tanh-function method23, Jacobi elliptic method24, the Backlund transformations25, F-expansion method26,27, the sine-cosine function method28, the (G’/G)-expansion method29, and various extensions.

One of the valuable tools for solving certain types of PDEs is the method of characteristics1,9,10,11 and30. It involves transforming a PDE into a set of ordinary differential equations along characteristic curves. The characteristic curves represent the paths along which the solution of the PDE remains constant. The method of characteristics is a powerful technique for solving first-order partial differential equations (PDEs), including linear first-order PDEs such as the transport equation or the linear advection equation.

The well-known classical method usually refers to the variation of parameters31,32,33,34 and35. The variation of parameters is primarily a technique used for linear differential equations, both ordinary and partial. It involves finding a particular solution to a non-homogeneous equation by introducing a new function to replace a constant in the homogeneous solution. Solving NLPDEs can pose considerably greater complexity and demand a problem-specific approach since nonlinear equations lack the superposition properties present in linear equations. The approach relies on the particular structure and characteristics of the NLPDE being addressed.

The variation of parameters method has been successfully applied to certain nonlinear differential equations. We can refer to31 and33 as interesting studies. Common examples of second-order equations that can be converted into first-order forms include various types of nonlinear wave equations, heat equations, and specific conservation laws. The exact procedure for this reduction may vary depending on the specific equation and the desired format for further analysis.

However, the method of characteristics and the variation of parameters are two distinct methods used in different contexts. While these two methods have distinct applications, this study shows that combining the classical techniques derives new solutions for NLPDEs with specific initial conditions.

Several analytical methods consistently solve classes of second-order differential equations by variation of parameters. In31 and33, some types of nonlinear differential equations have been reduced to first-order using suitable parameter variations. The resulting first-order differential equations are, in most cases, transformable to well-known integrable or solvable classical differential equations. However, these methods are not applicable when dealing with nonlinear partial differential equations. Certain types of NLPDEs remain unsolvable using variations of parameters independently. By leveraging the strengths of classical techniques, we demonstrate an expanded scope of solvable NLPDEs, thus increasing the applicability of analytical solution methods to a broader range of problems.

As an extension of a previous study36, we introduced new solutions to NLPDEs. In this study, we consider the classes of nonlinear partial differential equations of the form:

$$\begin{aligned} u_{tt}+a(x,t)u_{xt}+b(t)u_{t}=\alpha (x,t)+ G(u)(u_{t}+a(x,t)u_{x})e^{-\int b(t)dt}, \end{aligned}$$

and

$$\begin{aligned} u_{t}^{m}(u_{tt}+a(x,t)u_{xt})+b(t)u_{t}^{m+1}=e^{-(m+1)\int b(t)dt}(u_{t}+a(x,t)u_{x}) F(u,u_{t}e^{\int b(t)dt}). \end{aligned}$$

Notably, some exceptional cases can arise. For example, we mention the nonlinear differential equations recorded in31, where the functions were restricted to one variable.

The remainder of this paper is organized as follows. In “First class of reducible nonlinear partial differential equations”, we apply our methodology to the first class of reducible second-order partial differential equations to determine the exact solutions of NLPDEs of the first type.

Second class of reducible nonlinear partial differential equations” delves into the second class of reducible nonlinear partial differentiable equations. Based on these results, a new class of solutions was derived. We demonstrate the application of the proposed method using concrete examples to demonstrate its viability and efficiency. Using Mathematica algorithms, relevant numerical representations were exhibited in each example to show the pertinence of obtained analytical solutions. Finally, “Conclusion” concludes the paper.

First class of reducible nonlinear partial differential equations

Description of the method and construction of the general solutions

We consider the first class of nonlinear second-order partial differential equations compilable in the following general form:

$$\begin{aligned} u_{tt}+a(x,t)u_{xt}+b(t)u_{t}=\alpha (x,t)+ G(u)(u_{t}+a(x,t)u_{x})e^{-\int b(t)dt}, \end{aligned}$$
(1)

where u denotes a function of \((x,t)\in {\mathbb {R}}^{2}\).

First, we solve the characteristic equation

$$\begin{aligned} \left\{ \begin{array}{ccc} \frac{d}{dt}(x(t))&{}=&{}a(x(t),t) \\ x(0)&{}=&{}x_{0}. \end{array} \right. \end{aligned}$$

Then (1) can be rewritten as

$$\begin{aligned} u_{tt}+a(x(t),t)u_{xt}+b(t)u_{t}=\alpha (x(t),t)+ G(u)(u_{t}+a(x(t),t)u_{x})e^{-\int b(t)dt}. \end{aligned}$$
(2)

Multiplying both sides of (2) by \(e^{\int b(t)dt}\), we get

$$\begin{aligned} \frac{d}{dt}(u_{t}(x(t),t) e^{\int b(t)dt})=\alpha (x(t),t)e^{\int b(t)dt}+ G(u)(u_{t}+a(x(t),t)u_{x}). \end{aligned}$$
(3)

The nonlinear second-order partial differential equation (1) can be solved easily if we assume that

$$\begin{aligned} u_{t}(x,t)=(H(t)+K(u))e^{-\int b(t)dt}, \end{aligned}$$

where H and K are differentiable functions of t and u respectively.

Then, we differentiate to obtain

$$\begin{aligned} \frac{d}{dt}(u_{t}(x(t),t) e^{\int b(t)dt})=H'(t)+K'(u)(u_{t}+a(x(t),t)u_{x}). \end{aligned}$$
(4)

Substituting (4) into (3), we find that:

$$\begin{aligned} H'(t)=\alpha (x(t),t)e^{\int b(t)dt}, \end{aligned}$$
(5)

and

$$\begin{aligned} K'(u)=G(u). \end{aligned}$$
(6)

We obtain the following result.

Proposition 1

The second order partial differential equation (1) can be reduced to the first order differential equation

$$\begin{aligned} u_{t}(x,t)=(H(t)+K(u))e^{-\int b(t)dt}, \end{aligned}$$

where the functions H and K are the general solutions of \(H'(t)=\alpha (x(t),t)e^{\int b(t)dt}\), and \(K'(u)=G(u).\)

Remark 1

Let \(G=u^{n}\), where n is a non zero positive integer.

Then, the second order partial differential equation (1) becomes

$$\begin{aligned} u_{tt}+a(x,t)u_{xt}+b(t)u_{t}=\alpha (x,t)+ u^{n}(u_{t}+a(x,t)u_{x})e^{-\int b(t)dt}. \end{aligned}$$

Applying Eqs. (5) and (6), we get an Abel equation of the form

$$\begin{aligned} u_{t}(x,t))=(H(t)+\frac{u^{n+1}}{n+1})e^{-\int b(t)dt}. \end{aligned}$$

A comprehensive compilation of integrable Abel equations can be found in37,38,39 and40.

Application

Example 1

Let \(a(x,t)=x\), \(\alpha (x,t)=xe^{-t}\), \(b(x,t)=1\) and \(G(u)=2u\).

$$\begin{aligned} u_{tt}+xu_{xt}=xe^{-t}+2u(u_{t}+xu_{x})e^{-t}. \end{aligned}$$
(7)

with the initial conditions \(u(x,0)=1\) and \(u_{t}(x,0)=x+1\).

Solution:

We solve the characteristic equation

$$\begin{aligned} \left\{ \begin{array}{ccc} \frac{dx(t)}{dt}&{}=&{}x\\ x(0)&{}=&{}x_{0} \end{array} \right. \end{aligned}$$

which leads to \(x(t)=x_{0}e^{t}.\)

The functions H and K are general solutions of

$$\begin{aligned} \begin{array}{ccc} H'(t)&{}=&{} x(t)e^{-t}e^{t}=x(t),\\ K'(u)&{}=&{} 2u. \end{array} \end{aligned}$$

Then we get

$$\begin{aligned} H(t)=x +C_{1}, \end{aligned}$$

and

$$\begin{aligned} K(u)=u^{2}+C_{2}, \end{aligned}$$

where \(C_{1}\) and \(C_{2}\) are arbitrary constants.

The second-order partial differential equation (7) is reduced to the first-order differential equation

$$\begin{aligned} u_{t}(x,t)=(u^{2}+x)e^{-t}, \end{aligned}$$
(8)

with initial condition \(u(x,0)=1\).

The first-order differential equation (8) is an Abel equation, which can be solved using various methods. For more details, refer to37,38,39.

Using initial condition \(u(x,0)=1\) and \(u_{t}(x,0)=x+1\), we obtain explicit solutions of (7)

$$\begin{aligned} u(x,t)=\sqrt{x}\, \tan \left( \sqrt{x}\, {\mathrm e}^{-t} \left( -1+\frac{e^{t} \left( \sqrt{x}-arcos \left( -\frac{\sqrt{x}}{\sqrt{1+x}}\right) \right) }{\sqrt{x}}\right) \right) . \end{aligned}$$

Visualizing the precise solutions obtained by Mathematica algorithms (Fig. 1) and plotting solution profiles at different values of t, we observe the characteristics of several solutions of (7) with initial conditions \(u(x,0)=1\) and \(u_{t}(x,0)=x+1\). As a result, these solutions develop singularities at certain values of x and t. Note that despite the smoothness of the initial data, the spontaneous singular behavior in the solutions must be due to the nonlinear term of the equation.

Figure 1 displays the 2D, 3D and contour plots of the solutions in (7) within \(-10\le x\le 10\) and \(0\le t\le 4\) for 3D and contour graphs, \(t=1\) for 2D graph.

Figure 1
figure 1

The profile of the solutions in (7) with \(u(x,0)=x\) and \(u_{t}(x,0)=x+1\): (a) and (b) 3D and Contour plots with \(-10\le x\le 10\) and \(0\le t\le 4\), (c) 2D plot at \(t=1\).

Second class of reducible nonlinear partial differential equations

Description of the method and construction of the general solutions

The second group of second-order partial differential equations is formulated as follows:

$$\begin{aligned} u_{t}^{m}(u_{tt}+a(x,t)u_{xt})+b(t)u_{t}^{m+1}=e^{-(m+1)\int b(t)dt}(u_{t}+a(x,t)u_{x}) F(u,u_{t}e^{\int b(t)dt}). \end{aligned}$$
(9)

As in the previous section, the second-order nonlinear partial differential equation (9) can be readily solved if we suppose that

$$\begin{aligned} u_{t}(x,t)=K(u)e^{-\int b(t)dt}. \end{aligned}$$
(10)

where \(u=u(x(t),t)\) and K is a differentiable function.

Then

$$\begin{aligned} (u_{t}(x,t))^{m+1}=K^{m+1}(u)e^{-(m+1)\int b(t)dt}. \end{aligned}$$
(11)

Differentiate (11) to obtain

$$\begin{aligned} (m+1)u_{t}^{m}(u_{tt}+a(x,t)u_{xt})= & {} (m+1)K^{m}(u)K'(u)(u_{t}+a(x,t)u_{x})e^{-(m+1)\int b(t)dt},\nonumber \\{} & {} -b(t)(m+1)K^{m+1}(u)e^{-(m+1)\int b(t)dt}. \end{aligned}$$
(12)

Then

$$\begin{aligned}{} & {} K^{m}(u)K'(u)(u_{t}+a(x,t)u_{x})e^{-(m+1)\int b(t)dt}-b(t)K^{m+1}(u)e^{-(m+1)\int b(t)dt }+b(t)u_{t}^{m+1}\nonumber \\{} & {} \quad = e^{-(m+1)\int b(t)dt}(u_{t}+a(x,t)u_{x})F(u,u_{t}e^{\int b(t)dt}). \end{aligned}$$
(13)

Substituting Eqs. (10), (11) and (12) into (13), we find

$$\begin{aligned} K^{m}(u)K'(u)=F(u,K(u)). \end{aligned}$$

Therefore, the following statement holds.

Proposition 2

The second order nonlinear partial differential equation (9) can be reduced to the first order differential equation

$$\begin{aligned} u_{t}(x,t)=K(u)e^{-\int b(t)dt}. \end{aligned}$$

where the function K is the general solution of \(K^{m}(u)K'(u)=F(u,K(u)).\)

Applications

Example 2

Let \(m=0\), \(b=0\) and \(a=1\). Suppose that function F satisfies \(F(s,w)=w\).

$$\begin{aligned} u_{tt}+u_{xt}=u_{t}^{2}+u_{x}u_{t}, \end{aligned}$$
(14)

with the initial conditions \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\).

Solution:

Using the previous result, we find that the second-order nonlinear partial differential equation

$$\begin{aligned} u_{tt}+u_{xt}=u_{t}^{2}+u_{x}u_{t}, \end{aligned}$$

can be reduced to the first-order differential equation

$$\begin{aligned} u_{t}(x,t)=K(u), \end{aligned}$$
(15)

where K is the general solution of \(K'(u)=K(u).\) Taking \(x(t)=t+x_{0}\), we obtain \(K(u)=A(x_{0})e^{u}\), where A is an arbitrary constant of integration.

The differential equation (15) takes the form

$$\begin{aligned} u_{t}(x,t)=A(x_{0})e^{u} \end{aligned}$$

and the exact solutions of the second-order nonlinear partial differential equation (14) are analytically determined and take the following form:

$$\begin{aligned} u(x,t)=-\ln (F(x-t)+G(x)), \end{aligned}$$

where F and G are arbitrary functions.

It follows from the initial conditions at \((x_{0},0)\) given by \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\) that the exact solutions of (14) can be expressed explicitly as follows

$$\begin{aligned} u(x,t)=-\ln (1-\frac{t^{3}}{3}+t^{2}x-tx^{2}). \end{aligned}$$

Envisioning the precise solutions obtained by Mathematica (Fig. 2) and plotting solution profiles at different values of t, we have seen equations with smooth coefficients and initial data develop spontaneous singularities due to the nonlinearity of the equations. The solutions of (14) break down at some values of x and t, and no classical solution for the initial value problems exists beyond this point of breakdown.

Note that the nonlinear partial differential Eq. (14) yields a more straightforward solution than the initial value problem in the previous example.

Figure 2 displays the 2D, 3D and contour plots of the solutions in (14) within \(-2\le x\le 2\) and \(0\le t\le 2\) for 3D and contour graphs, \(t=2\) for 2D graph.

Figure 2
figure 2

The profile of the solutions in (14) with \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\): (a) and (b) 3D and Contour plots with \(-2\le x\le 2\) and \(0\le t\le 2\), (c) 2D plot at \(t=2\).

Example 3

Let \(m=0\), \(b=1\) and \(a=1\).

Suppose the function F satisfies \(F(s,w)=w\).

$$\begin{aligned} u_{tt}+u_{xt}+u_{t}=(u_{t}+u_{x})u_{t}, \end{aligned}$$
(16)

with the initial conditions \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\).

Solution:

Using the previous result, we find that the second-order nonlinear partial differential equation

$$\begin{aligned} u_{tt}+u_{xt}+u_{t}=(u_{t}+u_{x})u_{t}, \end{aligned}$$

can be reduced to the first-order differential equation

$$\begin{aligned} u_{t}(x,t)=e^{-t}K(u), \end{aligned}$$
(17)

where K is the general solution of \(K'(u)=K(u).\)

The differential equation (17) takes the form

$$\begin{aligned} u_{t}(x,t)=e^{-t}A(x_{0})e^{u}, \end{aligned}$$

and the exact solutions of the second order nonlinear partial differential equation (16) are analytically determined and take the following form:

$$\begin{aligned} u(x,t)=-\ln (e^{-t}F(x-t)+G(x)) \end{aligned}$$

where F and G are arbitrary functions.

It follows from the initial conditions at \((x_{0},0)\) given by \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\) that the exact solutions of (16) can be expressed explicitly as follows

$$\begin{aligned} u(x,t)=-\ln (e^{-t} t^2+e^{-t} x^2-2 e^{-t} t x-2 e^{-t} x+2 e^{-t} t+2 e^{-t}-x^2+2 x-1). \end{aligned}$$

When we envision the exact solutions of (16) generated by Mathematica as depicted in Fig. 3 and create plots showing the solution profiles at various time points, we find that they deteriorate at specific values of both x and t. Beyond this point, a classical solution is no longer viable for the initial value problems.

Figure 3 displays the 2D, 3D and contour plots of the solutions in (16) within \(-2\le x\le 2\) and \(0\le t\le 2\) for 3D and contour graphs, \(t=2\) for 2D graph.

Figure 3
figure 3

The profile of the solutions in (16) with \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\): (a) and (b) 3D and Contour plots with \(-2\le x\le 2\) and \(0\le t\le 2\), (c) 2D plot at \(t=2\).

Example 4

Let \(m=0\), \(b=0\) and \(a=1\). Suppose that function F satisfies \(F(s,w)=s\).

$$\begin{aligned} u_{tt}+u_{xt}=(u_{t}+u_{x})u, \end{aligned}$$
(18)

with the initial conditions \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\).

Solution:

Using the previous result, we find that the second-order nonlinear partial differential equation

$$\begin{aligned} u_{tt}+u_{xt}=(u_{t}+u_{x})u, \end{aligned}$$

can be reduced to the first-order differential equation

$$\begin{aligned} u_{t}(x,t)=K(u), \end{aligned}$$
(19)

where K is the general solution of \(K'(u)=u.\)

The differential equation (19) takes the form

$$\begin{aligned} u_{t}(x,t)=\frac{1}{2}u^{2}+f(x-t), \end{aligned}$$

where f is an arbitrary function that leads to a Ricatti differential equation.

Taking in account the initial conditions \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\), the differential equation (19) becomes

$$\begin{aligned} u_{t}(x,t)=\frac{1}{2}u^{2}+(x-t)^{2}. \end{aligned}$$

The result was obtained using Mathematica code as a complicated function. As in the previous examples, the nonlinearity of the partial differential equations produces singular behavior in the solutions.

Figure 4 shows the 2D, 3D and contour plots of the solutions in (18) within \(-2\le x\le 2\) and \(0\le t\le 2\) for 3D and contour graphs, \(t=2\) for 2D graph.

Figure 4
figure 4

The profile of the solutions in (18) with \(u(x,0)=0\) and \(u_{t}(x,0)=x^{2}\): (a) and (b) 3D and Contour plots with \(-2\le x\le 2\) and \(0\le t\le 2\), (c) 2D plot at \(t=2\).

Example 5

Let \(m=0\), \(b=0\) and \(a=x\).

Suppose that function F satisfies \(F(s,w)=s^{2}\).

$$\begin{aligned} u_{tt}+xu_{xt}=(u_{t}+xu_{x})u^{2}, \end{aligned}$$
(20)

with the initial conditions \(u(x,0)=x\) and \(u_{t}(x,0)=\frac{x^{3}}{3}\).

Solution:

Using the previous result, we find that the second-order nonlinear partial differential equation

$$\begin{aligned} u_{tt}+xu_{xt}=(u_{t}+xu_{x})u^{2}, \end{aligned}$$

can be reduced to the first-order differential equation

$$\begin{aligned} u_{t}(x,t)=K(u), \end{aligned}$$
(21)

where K is the general solution of \(K'(u)=u^{2}.\)

Differential equation (21) takes the form of an Abel equation

$$\begin{aligned} u_{t}(x,t)=\frac{1}{3}u^{3}+f(xe^{-t}), \end{aligned}$$

where f is an arbitrary function.

By applying the initial conditions \(u(x,0)=x\) and \(u_{t}(x,0)=\frac{x^{3}}{3}\), the exact solutions of (20) are implicitly obtained by generating the Mathematica codes.

Plotting the solution profiles for several values of t (as depicted in Fig. 5) shows that the solution breaks down at some points.

Figure 5 shows the 2D, 3D and contour plots of the solutions in (20) within \(-1\le x\le 1\) and \(0\le t\le 2\) for 3D and contour graphs, \(t=1\) for 2D graph.

Figure 5
figure 5

The profile of the solutions in (20) with \(u(x,0)=x\) and \(u_{t}(x,0)=\frac{x^{3}}{3}\): (a) and (b) 3D and Contour plots with \(-1\le x\le 1\) and \(0\le t\le 2\), (c) 2D plot at \(t=1\).

Example 6

Let \(m=0\), \(b(t)=\frac{1}{t}\).

Suppose that function F satisfies \(F(s,w)=(\frac{w}{s})^{2} + 2\frac{w}{s}\).

The second-order nonlinear partial differential equation (9) becomes

$$\begin{aligned} u_{tt}+a(x,t)u_{xt}+\frac{1}{t}u_{t}=\frac{1}{t}(u_{t}+a(x,t)u_{x})((\frac{tu_{t}}{u})^{2}+2\frac{tu_{t}}{u}), \end{aligned}$$
(22)

with the initial conditions \(u(x,1)=1\) and \(u_{t}(x,1)=x^{2}.\)

Remark 2

Some interesting particular cases of (22) can be formed. As an example, we mention the equation

$$\begin{aligned} u''+\frac{1}{t}u'=tu'(\frac{u'}{u})^{2}+2\frac{u'^{2}}{u}, \end{aligned}$$
(23)

recorded in31 as Eq. (53). Equation (23) is obtained from (22) if we assume that u is only a function of t.

Solution:

Using our previous result, we find that (22) can be reduced to the first-order differential equation

$$\begin{aligned} u_{t}(x,t))=K(u)\frac{1}{t}, \end{aligned}$$
(24)

where K is the general solution of \(K'(u)=\frac{2}{u}K(u)+\frac{1}{u^{2}}K^{2}(u)\).

We get

$$\begin{aligned} K(u)=\frac{u^{2}}{A-u}. \end{aligned}$$

For \(a=1\), (22) takes the form

$$\begin{aligned} u_{tt}+u_{xt}+\frac{1}{t}u_{t}=\frac{1}{t}(u_{t}+u_{x})((\frac{tu_{t}}{u})^{2}+2\frac{tu_{t}}{u}). \end{aligned}$$
(25)

Then the general solutions of (25) are given by

$$\begin{aligned} u_{t}(x,t)=\frac{u^{2}}{f(x-t)-u}\frac{1}{t}, \end{aligned}$$

where f denotes an arbitrary function.

Remark 3

Let \(u(x,t)=t^{-1}B(x)\) be a family of solutions to Eq. (25).

If\(f(x,t)=A\), we get

$$\begin{aligned} -\frac{A}{u(x,t)}-\ln (u(x,t))=\ln (t)+B(x), \end{aligned}$$

which is an implicit solution of (25) where A an arbitrary constant and B is a function of x.

We checked the implicit solutions of (25) by generating Mathematica codes and considering the initial conditions \(u(x,1)=1\) and \(u_{t}(x,1)=x^{2}\).

Figure 6 shows the 2D, 3D and contour plots of the solutions in (25) within \(0\le x\le 1\) and \(0\le t\le 2\) for 3D and contour graphs, \(t=2\) for 2D graph.

Figure 6
figure 6

The profile of the solutions in (25) with \(u(x,1)=1\) and \(u_{t}(x,1)=x^{2}\): (a) and (b) 3D and Contour plots with \(0\le x\le 1\) and \(0\le t\le 2\), (c) 2D plot at \(t=2\).

Example 7

Let \(m=0\), \(b(t)=\frac{2}{t}\) and \(a=1\). Suppose that function F satisfies \(F(s,w)= w+w^{3}\).

$$\begin{aligned} u_{tt}+u_{xt}+\frac{2}{t}u_{t}=(u_{t}+u_{x})(u_{t}+t^{4}u_{t}^{3}), \end{aligned}$$
(26)

with the initial value conditions \(u(x,1)=x\) and \(u_{t}(x,1)=\frac{1}{\sqrt{2e^{-2x}-1}}\).

Remark 4

In31, the author studied special case of (26) where u is a single variable function of t.

In (26), if we suppose that u is only a function of t, we get

$$\begin{aligned} u''+\frac{2}{t}u'=u'^{2}+(tu')^{4}, \end{aligned}$$

which is the differential equation (61) investigated by the authors in31.

Solution:

(26) is reduced to the differential equation

$$\begin{aligned} u_{t}(x,t)=K(u)\frac{1}{t^{2}}, \end{aligned}$$
(27)

where K is the general solution of

$$\begin{aligned} K'(u)=k(u)+k^{3}(u). \\ K(u)=\pm (A e^{-2u}-1)^{-\frac{1}{2}}. \end{aligned}$$

Then the general solutions of 26 are given by

$$\begin{aligned} u_{t}(x,t)=t^{-2}(f(x-t)e^{-2u}-1)^{-\frac{1}{2}}, \end{aligned}$$

where f is an arbitrary function.

By generating Mathematica codes, we obtain implicit solutions of (26)

$$\begin{aligned} \sqrt{2 {\mathrm e}^{-2 u\left( x,t\right) }-1} \, t-\arctan \! \left( \sqrt{2 {\mathrm e}^{-2 u\left( x,t\right) }-1}\right) t-t \sqrt{2 {\mathrm e}^{-2 x}-1}+t \arctan \! \left( \sqrt{2 {\mathrm e}^{-2 x}-1}\right) +t-1=0. \end{aligned}$$

Figure 7 shows the 2D, 3D and contour plots of the solutions in (26) within \(-1\le x\le 1\) and \(0\le t\le 2\) for 3D and contour graphs, \(t=2\) for 2D graph.

Figure 7
figure 7

The profile of the solutions in (26) with \(u(x,1)=x\) and \(u_{t}(x,1)=\frac{1}{\sqrt{2e^{-2x}-1}}\): (a) and (b) 3D and Contour plots with \(-1\le x\le 1\) and \(0\le t\le 2\), (c) 2D plot at \(t=2\).

Example 8

Let \(m=0\), \(b(t)=-\frac{1}{t}\). Suppose that function F satisfies \(F(s,w)= 1+2\frac{s}{w}\).

$$\begin{aligned} u_{tt}+au_{xt}-\frac{1}{t}u_{t}=t(u_{t}+au_{x})(1+2t\frac{u}{u_{t}}). \end{aligned}$$
(28)

Remark 5

A special case of our findings was recorded in31. If we suppose that u is only a function of t in (28), we get

$$\begin{aligned} u''-(\frac{1}{t}+t)u'-2t^{2}u=0, \end{aligned}$$

which is exactly the differential equation (78) investigated by the authors of 31.

Solution:

(28) is reduced to the differential equation

$$\begin{aligned} u_{t}(x,t)=tK(u), \end{aligned}$$
(29)

where K satisfies

$$\begin{aligned} K'(u)K(u)=K(u)+2u.\end{aligned}$$
(30)

Two particular solutions to (30) are given by \(K_{1}(u)=2u\) and \(K_{2}(u)=-u\).

The general solutions of (30) satisfy the algebraic equation

$$\begin{aligned} (K(u)-2u)^{2}(K(u)+u)=A, \end{aligned}$$
(31)

where A is an arbitrary constant.

A real solution of (31) can be computed to yield

$$\begin{aligned} K(u)=\frac{\root 3 \of {\sqrt{A^2-4 A u^3}-2 u^3+A}}{\root 3 \of {2}}+\frac{\root 3 \of {2} u^2}{\root 3 \of {\sqrt{A^2-4 A u^3}-2 u^3+A}}+u. \end{aligned}$$

If \(a=1\), \(K(u)=\phi (u,x-t)\) where \(\phi\) is an arbitrary function.

Hence, we obtain an implicit solution of (28) as

$$\begin{aligned} u_{t}(x,t)=t\phi (u,x-t). \end{aligned}$$

We checked the implicit solutions of (28) by generating Mathematica codes and considering the initial conditions \(u(x,1)=1\).

Figure 8 shows the 2D, 3D and contour plots of the solutions in (28) within \(1\le x\le 4\) and \(0\le t\le 4\) for 3D and contour graphs, \(t=2\) for 2D graph.

Figure 8
figure 8

The profile of the solutions in (28) with \(u(x,1)=1\) and \(u_{t}(x,1)=x^{2}\): (a) and (b) 3D and Contour plots with \(1\le x\le 4\) and \(0\le t\le 4\), (c) 2D plot at \(t=2\).

Conclusion

In this paper, we presented a new method, a combination of the variation of parameters and other techniques, such as the method of characteristics, to derive exact solutions of nonlinear partial differential equations alongside specific initial conditions, a framework extensively applied in mathematical physics. Illustrative examples were provided to demonstrate the applicability of this method. Problems that are non-trivial when approached with conventional methods now appear straightforward, as the resulting functions are univariate. Our research findings indicate that fusing established classical techniques with innovative approaches yields efficient analytical solutions.

However, the combined approach may require significant computational effort, especially for NLPDEs with complex boundary conditions or high-dimensional spaces. Additionally, instability or convergence problems may arise, especially if the initial parameter or condition estimations are inadequate.