1 Introduction

The Fokker–Planck equation (FPE) is used in a wide variety of natural sciences, including solid-state physics, astrophysics, quantum optics, chemical physics, theoretical biology, and control theory [8, 9]. The FPE was first proposed by Fokker and Planck [20] to analyse the Brownian motion of particles. Over the past few decades, significant research has been conducted on the FPE [4,5,6,7, 10, 12, 13, 18]. The one-dimensional FPE can be formulated as follows [23]:

$$\begin{aligned} u_t = -(f(x,t) u)_x+\frac{1}{2}(g(x,t) u)_{xx}, \end{aligned}$$
(1)

with coefficients \(f=f(x)\) and \( g=g(t)\), where f(x) and g(t) are differentiable functions. u(xt) is the probability density and \(u_\sigma \) denotes the differential of u with respect to \(\sigma \). This equation is fundamental to the theory of continuous Markovian processes. The Korteweg–de Vries (KdV) equation is one of the most studied non-linear partial differential equations (PDEs). It is a model for various physical phenomena, such as shallow water waves, solitary waves, and acoustic waves. The KdV equation is a modified version of the Burgers equation and a simplified version of the full Navier–Stokes equations. The KdV equation has been widely studied in the literature due to its rich mathematical structure and its applications in various fields. The KdV equation has a Lie symmetry, which is a continuous transformation of form \(x \rightarrow x+\Delta x,\) \(t\rightarrow t+\Delta t\), and \(u\rightarrow u+\Delta u,\) where \(\Delta u\) is a function of xt,  and u. This allows one to reduce the order of the equation and study its solutions in more detail. The Fokker–Planck equation is an update of the KdV equation and is a modification of the KdV equation, which incorporates the effects of diffusion and drift. The FPE also has a Lie symmetry, which is a continuous transformation of form \(x \rightarrow x+\Delta x,\) \(t\rightarrow t+\Delta t\), and \(u\rightarrow u+\Delta u,\) where \(\Delta u\) is a function of xt,  and u. This allows one to reduce the order of the equation and study its solutions in more detail. FPE also has the advantage of describing the evolution of a system of particles in multiple dimensions. This makes it a useful tool for the study of the behaviour of populations of organisms that are subjected to random fluctuations in their environment. In addition, the FPE can be used to derive exact solutions for the KdV equation. This makes it an invaluable tool for studying non-linear PDEs, especially those arising in studying shallow water waves, solitary waves, and acoustic waves. FPE can also be used to study the behaviour of populations of organisms that are subjected to random fluctuations in their environment. The Lie symmetry of the equation allows one to reduce the order of the equation and study its solutions in more detail. In summary, FPE is an update of the KdV equation, which incorporates the effects of diffusion and drift. It has a Lie symmetry that allows one to reduce the order of the equation and study its solutions in more detail. It can also be used to derive exact solutions for the KdV equation, making it an invaluable tool for studying non-linear PDEs. Many techniques have been used to solve specific cases of the FPE: the quantum mechanic’s technique [4], the Fourier transform method [24], the differential transform method [10], and the numerical method [5, 6, 12, 25]. However, a powerful tool employed to study the FPE is the Lie symmetry, which was introduced by Sophus Lie [14]. Currently, Lie symmetries are being researched in-depth for application to the classification of invariant solutions of DEs and PDEs [11, 18]. The Lie symmetries of some equations of the Fokker–Planck type were studied by Sastri and Dunn [21]. Further, the symmetry properties of some FPEs have also been studied [23]. Other studies have focused on the Lie point symmetries of the FPE [17, 19]. Further, researchers have focused on a particular case of an FPE using the Lie group method, finding that, from the invariant condition, it is possible to obtain the infinitesimal generators or vectors associated with the FPE [16]. In the aforementioned papers, FPE (1) is considered in the form of \( u_t=u+x u_x+u_{xx}\), with coefficients \(f=-x \) and \( g=2\), where the authors have assigned the Lie point symmetries of the FPE, as well as the potential symmetries [17, 19]. In this paper, we have considered FPE (1) in case (3) by assuming the coefficients \( f(x)=x\) and \(g(t)=e^{t}\), which we think is more complex than the version used in the aforementioned papers [17, 19]. Similarly, we have been able to determine the group of symmetries for this case, which is case (3). Further, Kamano et al. introduced FPE (1) by assuming the coefficients \( f=a_1+a_2 x\) and \(g=2 \) [13], in the following form: \(u_t=-a_2 u-(a_2 x+a_1 ) u_x+\frac{1}{2} u_{xx}\). In the equation, \(a_1\) and \( a_2 \) are constants. Camano et al. determined the point of Lie symmetries in the FPE, finding that the FPE had six symmetries with one infinite-dimensional symmetry generated. This result is identical to our work in Case (5), which assumes that the values of coefficients \( f(x)=x-1\) and \(g(t)=e^t\). Sastri and Dunn [21] explored the structure of the local Lie symmetry groups of various partial differential equations (PDEs) of the FPE type in one spatial dimension. Three special exceptions were applied to FPE (1):

$$\begin{aligned}&1) \, f=0,\, g=1 , \\&2) \, f=2\gamma -\alpha x ,\, g=\gamma x;{} & {} \text{ where } \, \gamma \, \text{ and } \, \alpha \, \text{ are } \text{ constants, } \text{ and } \\&3) \, f= \frac{1}{4} (1-4 p) x^{-2p},\, g=\frac{1}{4} x^{1-2p};{} & {} \text{ where } \, p \, \text{ is } \text{ constant. } \end{aligned}$$

These three cases did not include the case of \(g=g(t)\), which we investigated in this article, finding some new symmetries of FPE (1). In this work, using the symmetry-finding package Dimsym [22], Reduce was performed to determine the symmetries for the equations under study. FPE is a PDE that is widely used to model a variety of physical phenomena. This equation is fundamental to the theory of continuous Markovian processes. It has been used to study various natural sciences, including solid-state physics, astrophysics, quantum optics, chemical physics, theoretical biology, and control theory. Over the past few decades, significant research has been conducted on FPE, with various techniques used to solve specific cases. One of the most powerful tools employed to study FPE is the Lie symmetry approach, which was introduced by Sophus Lie. This method has been used to identify precise solutions to differential equations and has yielded several new symmetry reductions and exact solutions for numerous theoretically and physically relevant PDEs. In this study, the Lie symmetry approach was used to obtain the symmetries of various specific cases of FPE. FPE is a PDE used to describe the evolution of a probability distribution in terms of time. FPE has been used in many applications, such as solid-state physics, astrophysics, quantum optics, chemical physics, theoretical biology, and control theory. This study addressed applying the classical Lie symmetry approach to FPE to identify new exact solutions. Six cases were considered, with different values for the coefficients f(x) and g(t). The Lie point symmetries of each of the cases were determined, and new exact solutions were provided for each case. The classical Lie symmetry approach is a powerful tool for studying FPE. It involves finding the infinitesimal generator and determining equations that determine the symmetries. The determination of the symmetries for each case was carried out using the symmetry-finding package Dimsym [22], Reduce. New exact solutions to FPE were obtained for each case. The findings of this study provide a deeper insight into the application of FPE in various fields of natural sciences. The classical Lie symmetry approach is a powerful tool for finding new exact solutions and symmetries for FPE. The results of this study can be used to further our understanding of FPE and its applications in various fields. The Lie symmetry approach is a powerful tool for PDEs. This technique has been extensively used in mathematics, physics, and engineering to obtain exact solutions for various PDEs. Sophus Lie first developed this method in 1881, and has since become an indispensable tool for studying PDEs. The lie symmetry approach has been applied to FPE to yield several new symmetry reductions and exact solutions for numerous theoretically and physically relevant PDEs. FPE is a fundamental equation in the theory of continuous Markovian processes and is used to analyse the Brownian motion of particles. It has been widely used in various natural sciences, including solid-state physics, astrophysics, quantum optics, chemical physics, theoretical biology, and control theory. The Lie symmetry approach has been used to determine the symmetries of FPE, which can be used to reduce the complexity of the equation and find exact solutions. This method provides a systematic way of finding PDEs’ symmetry reductions and exact solutions. Using the infinitesimal generator of the Lie symmetry group, obtaining the invariant solutions of the PDE is possible. The Lie symmetry approach has also been used to determine the Lie point symmetries of FPE, which can also be used to reduce the complexity of the equation and obtain exact solutions. In this study, the Lie symmetry approach was applied to FPE with coefficients f(x) and g(t) to obtain new exact solutions. Six cases were considered, with different values for the coefficients f(x) and g(t). The Lie symmetry approach was then used to determine the symmetries of FPE for each case. New exact solutions to FPE were then obtained for each of the six cases. In conclusion, the Lie symmetry approach is a useful tool for the study of PDEs, particularly FPE. This method has yielded several new symmetry reductions and exact solutions for numerous theoretically and physically relevant PDEs. This study has demonstrated the effectiveness of the Lie symmetry approach for FPE and has provided new exact solutions for each of the six cases considered. FPE is a PDE used to describe the evolution of probability distributions. As such, it has a wide range of applications in fields such as solid-state physics, astrophysics, quantum optics, chemical physics, theoretical biology, and control theory [8, 9]. To solve specific cases of FPE, a variety of techniques have been employed. The most common are the quantum mechanics technique [4], the Fourier transform method [24], the differential transform method [10], and the numerical method [5, 6, 12, 25]. In addition, the classical Lie symmetry approach has been used to yield several new symmetry reductions and exact solutions to the FPE [17, 19, 23]. This method transforms a given differential equation into a simpler form by the action of a continuous group of transformations. In this paper, the Lie symmetry approach is used to analyse FPE. The Lie point symmetries of FPE are first determined, and then the infinitesimal generators or vectors associated with FPE are obtained from the invariant condition. The six cases investigated in this study assume different values for the coefficients f(x) and g(t). For each case, a set of symmetries with respect to FPE is obtained, and new exact solutions to (1) are provided. The results of this study demonstrate that the Lie point symmetries of FPE can be used to find new exact solutions to FPE (1). The Lie symmetry method is particularly useful in finding precise solutions to differential equations. It has yielded several new symmetry reductions and exact solutions for numerous theoretically and physically relevant PDEs. The paper is organized as follows: in section ***(), the general form of the infinitesimal generator admitted by FPE is provided, and the transformed solutions and determining systems of symmetries for the governing equation are discussed. Special cases are considered in subsection*** (), and a set of symmetries with respect to the FPE is obtained for each of the six cases. In section ***(), new exact solutions to ***(1) are provided in each of the six cases. Finally, a summary of the results is presented in the concluding section.

2 Classical symmetries of FPE

The most well-known of Lie’s generalisations is the classical method for finding the group invariant solution for PDEs [2, 3, 15]. The goal of this study is to obtain a set of symmetries of the FPE, with the general form (1) the conditions \(f=f(x)\) and \(g=g(t)\). It can also be rewritten as

$$\begin{aligned} u_t= -(f_x u+f u_x )+\frac{1}{2} g u_{xx}. \end{aligned}$$
(2)

The KdV equation is a PDE in mathematical physics that describes the behaviour of shallow water waves. It was derived by Boussinesq and Korteweg–de Vries in 1895 and is fundamental to studying non-linear waves. The KdV equation is a non-linear PDE, which contains terms of a higher order than the first derivatives. In particular, it contains a cubic non-linearity responsible for the formation of solitons. FPE is an evolution equation derived from the KdV equation. It was proposed by Fokker and Planck in 1926 and is used to describe the temporal evolution of a probability distribution. FPE is a parabolic PDE that describes the time evolution of a probability density function (PDF). It is essentially a diffusion equation with an additional drift term, which is responsible for the non-linearity of the equation. Compared to the KdV equation, FPE is a much more general equation that includes an additional drift term. This drift term is responsible for the non-linearity of the equation and allows the equation to describe a wide variety of physical phenomena, such as Brownian motion, diffusion, and the classical FPE. Additionally, FPE can be used to study the temporal evolution of probability distributions in physical systems. This paper’s authors have studied the Lie symmetry analysis and exact solutions of FPE. Lie symmetry analysis is a mathematical tool used to analyse the symmetry of differential equations. It is based on the idea that if a differential equation is invariant under a certain set of transformations, then it is possible to find the exact solutions to the equation. The authors have used this method to analyse the symmetry of FPE and to find its exact solutions. In conclusion, FPE is an extension of the KdV equation that includes an additional drift term. This drift term is responsible for the non-linearity of the equation and allows it to describe a wide variety of physical phenomena.

To find the one-parameter group of transformations

$$\begin{aligned} x_1&= x+\varepsilon X(x, t, u)+O(\varepsilon ^2),\\ t_1&= t+\varepsilon T(x, t, u)+O(\varepsilon ^2),\\ u_1&= u+\varepsilon U(x, t, u)+O(\varepsilon ^2), \end{aligned}$$

that leaves (2) invariant. We need to solve the condition

$$\begin{aligned} (\Gamma ^2 \Delta ) \equiv 0 \, \mod \, \Delta =0, \end{aligned}$$
(3)

Where

$$\begin{aligned} \Delta =u_t+(f_xu+fu_x )- \frac{1}{2}gu_{xx}, \end{aligned}$$

and \(\Gamma ^{(2)} \) is the second-order prolongation of the infinitesimal generator

$$\begin{aligned} \Gamma = X (x,t,u)\partial _x+T (x,t,u)\partial _{t}+ U(x,t,u)\partial _{u}. \end{aligned}$$
(4)

where \(\partial _x:=\partial /\partial x\), and so on; namely,

$$\begin{aligned} \Gamma ^{ (2)}=\Gamma +U_{[x]}\partial _{u_x}+U_{[t]}\partial _{u_t}+U_{[xx]}\partial _{u_{xx}}+U_{[tt]}\partial _{u_{tt}}+U_{[xt]}\partial _{u_{xt}}, \end{aligned}$$
(5)

where \(U_{[i]} =D_{i} (U)-D_{i} (X)u_{x}-D_{i} (T)u_{t}\) and \(U_{[ij]}=D_{j}U_{[i]}-D_{j} (X)u_{ix}-D_{j} (T)u_{it}\), and ij represent either x or t. The KdV equation is a non-linear PDE that describes the behaviour of small-amplitude waves in shallow water. It is used to model shallow water waves, such as those that occur in rivers, estuaries, and oceans. The KdV equation has been applied in numerous other fields, such as non-linear optics, plasma physics, and solitons. FPE is an extension of the KdV equation. It is used to model the behaviour of particles in a non-uniform medium and is an example of a parabolic PDE. FPE is also used to model stochastic processes, such as diffusion and drift. In the Lie symmetry analysis, this article’s authors study FPE, which is given by Eq. (3). This equation represents an update on the KdV equation, including an additional term denoted by the symbol \(\Gamma ^2 \Delta \). This additional term is a measure of the curvature of the medium in which the particles travel, and thus influences the behaviour of the particles. The authors investigate the symmetries of the equation, which can be used to reduce the complexity of the equation and provide insight into the behaviour of the particles in the system. The authors then use the symmetries to find exact solutions to FPE. They find that the solutions exist for certain values of the parameters and that these solutions can provide insight into the behaviour of the particles in the system. In the above Eq. (4), the authors have proposed an update on the KdV equation. This update is known as FPE and is a non-linear PDE used to describe stochastic processes’ behaviour. FPE is a useful tool for studying the behaviour of stochastic processes, and has been used to model random walks, diffusion processes, and other stochastic phenomena. The main difference between the KdV equation and FPE is that the latter is used to study the behaviour of stochastic processes, while the former is used to study the behaviour of shallow water waves. Equation (5) extends the KdV equation and accounts for additional terms. This modified equation is referred to as FPE. It is a PDE that describes the evolution of PDFs in stochastic processes. FPE is an important tool in analysing stochastic processes because it describes how the probability of a system changes over time.The additional terms in Eq. (5) are \(U_{[x]}, U_{[t]}, U_{[xx]}, U_{[tt]},\) and \(U_{[xt]}\). These terms represent the diffusion of the PDEs over the space and time domains. The terms \(U_{[x]}\) and \(U_{[t]}\) represent diffusion in the x and t directions, respectively, while the terms \(U_{[xx]}\) and \(U_{[tt]}\) represent diffusion in the x-squared and t-squared directions, respectively. The term \(U_{[xt]}\) represents diffusion in the xt space. FPE is a more general form of the KdV equation and can be used to analyse more complex stochastic processes. It is useful in studying phenomena such as diffusion and random motion. It can also calculate the probability of a system moving from one state to another. FPE is an important tool in studying stochastic processes because it can provide insight into the behaviour of a system over time.

To find the classical symmetries for (2) we solve (3). Hence,

$$\begin{aligned} \Big [X\partial _{x}+T\partial _{t}+\cdots +U_{[xt]}\partial _{u_{xt}}\Big ]\big (u_t + (f_x u+f u_x )-\frac{g}{2} u_{xx} \big )=0, \end{aligned}$$
(6)

where \(u_{xx}=2g^{-1} ( (fu)_x+u_t)\). For linear (2) it can be shown that \(X_u=0\), \(T_u=0\), \(T_x=0\), and \(U_{uu}=0\). This yields \(X=X (x,t)\), \(T=T (t)\), and \(U (x,t,u)=A (x,t)u+B (x,t)\); therefore, we can expand Eq. (6) to obtain

$$\begin{aligned} \Bigg (&\frac{g}{2} X_{xx} - g U_{ux }+ f X_x-X_t + X f_x- T f \frac{g_t}{g} \Bigg ) u_x + \Bigg ( 2X_x - T_t- \frac{g_t}{g }T \Bigg ) u_t \nonumber \\&+ \Bigg (X f_{xx}+2X_x f_x - \frac{g_t}{g}T f_x-U_u f_x \Bigg )u + \Bigg (Uf_x+U_x f- \frac{g}{2} U_{xx} + U_t \Bigg )=0, \end{aligned}$$
(7)

upon substituting \( U (x,t,u)=A (x,t)u+B (x,t)\) in to Eq. (7), we obtain

$$\begin{aligned} \Bigg (&\frac{g}{2} X_{xx}-g A_x+f X_x-X_t+X f_x- T f \frac{g_t}{g}\Bigg ) u_x+\Bigg (2X_x-T_t-\frac{g_t}{g} T\Bigg ) u_t\nonumber \\&+\Bigg (X f_{xx}+2 X_x f_x- \frac{g_t}{g} T f_x-A f_x \Bigg )u \nonumber \\&+\Bigg (A f_x u+B f_x+ A_x f u+ B_x f-\frac{g}{2} A_{xx} u-\frac{g}{2} B_{xx}+A_t u+ B_t \Bigg )=0. \end{aligned}$$
(8)

FPE, represented by Eq. (6), is an update on the KdV equation. FPE is a type of PDE used to model the diffusion of particles or populations through space or time. The equation is composed of three independent variables and four derivatives. In addition, it includes the additional parameter of \(U_{[xt]}\), which is a function of both the space and time variables. This parameter is used to represent a non-linear term which allows for the modelling of non-linear phenomena.

FPE can be used to study a wide range of physical systems. It is used to study chemical reactions, population dynamics, and the diffusion of particles in fluids. The equation can also be used to study the diffusion of heat or light in an anisotropic medium. The additional parameter of \(U_{[xt]}\) allows for modelling non-linear phenomena, such as solitary waves and non-linear waves. FPE is also used to study the dynamics of population growth or decline. The equation can be used to study the diffusion of a population in a given environment. The equation can also be used to study the effects of external influences on a population, such as the effects of pollution or the introduction of a new species. FPE (7) and (8) are extensions of the KdV equation, which considers the effects of diffusion and random fluctuations in the system. They are non-linear PDEs that describe the evolution of the probability density of a system over time. FPE can define a system’s evolution in which the random fluctuations are not necessarily small, as in the KdV equation.

This paper’s authors have proposed an update on the KdV equation, which they refer to as the ‘Fokker–Planck equation’. This equation generalises the KdV equation and includes additional terms that account for the effects of diffusion, random fluctuations, and reaction terms. Specifically, the equation includes terms for the diffusion, reaction, and drift coefficients as well as terms for the temporal and spatial derivatives. Additionally, the equation includes terms for the linear and non-linear terms of the reaction coefficients. FPE can describe various physical phenomena, including the propagation of waves in dispersive media, the motion of particles in a thermal bath, and the motion of particles in a turbulent medium. Additionally, the equation can be used to describe the effects of random fluctuations on the properties of an otherwise deterministic system.

Equation (8) must be satisfied identically for all values of \(u_x,u_t,u\) and 1; therefore, the coefficients of each of these terms must vanish. This leads to an over-determined linear system of equations, referred to as “determining equations” hereinafter:

$$\begin{aligned}&X_t-\frac{g}{2} X_{xx}+g A_x-(fX)_x+\frac{fg_t}{g}T=0,\nonumber \\&\frac{f_{xx}}{f_x}X+2X_x- \frac{g_t}{g}T-A=0,\nonumber \\&A_t- \frac{g}{2} A_{xx}+ (fA)_x=0,\nonumber \\&B_t-\frac{g}{2} B_{xx}+(fB)_x=0,\nonumber \\&2gX_x-(gT)_t=0. \end{aligned}$$
(9)

By using the Maple package to solve determining equations (9), we obtain

$$\begin{aligned} T=F_1 (t), \quad X=xg.\Big (\frac{F_1(t)}{g}\Big )'+F_2 (t), \quad U=F_3 (x,t)u+F_4 (x,t). \end{aligned}$$

The KdV equation is a popular model in mathematical physics used to describe the evolution of shallow water waves and other non-linear oscillations. It is a PDE of the form:

$$\begin{aligned} u_{t}+u u_{x}+u_{xxx}=0 \end{aligned}$$

Where u is a function of space (x) and time (t). This equation is useful for studying the dynamics of waves and solitons, and it can be used to study the stability of solutions. FPE proposed in the paper is a generalisation of the KdV equation. It has the form:

$$\begin{aligned} \big [F_1 (t)\big ] u_{t}+\left[ xg\cdot \Big (\frac{F_1(t)}{g}\Big )'+F_2 (t)\right] u_{x}=F_3 (x,t)u+F_4 (x,t), \end{aligned}$$

where \( F_{i}(t) \) and \(F_{j}(x,t) \) are arbitrary functions of time and space, respectively. FPE can be used to model a wider range of non-linear systems than the KdV equation, including those with random or stochastic behaviour. We make use of the automated computer-algebra symmetry package Dimsym, created by Sherring [22]. Using it for arbitrary functions f(x) and g(t), we find that (2) has a one-dimensional symmetry generated by the vector-field \(\Gamma _1 = u\,\partial _u\), and the infinite-dimensional symmetry generated by \(\Gamma _{\alpha }=\alpha (x,t) \partial _{u}\), where \(\alpha \) is any solution to (2). Both these scaling and superposition symmetries are typical of linear PDEs. As indicated by Dimsym, certain special choices of f(x) and g(t) have \(\Gamma _1\) and \(\Gamma _\alpha \) that are:

  1. 1)

    \(f=x^n\), \(g=ne^{mt}\),  where   n and m are constants.

  2. 2)

    \(f=ax^n+bx\), \(g=ne^{mt}\), where a, b, n, and m are constants.

  3. 3)

    \(f=x^2 e^{-x}\), \(g=e^t\).

  4. 4)

    \(f=x\,\ln x\), \(g=e^t\).

However, when maintaining f(x) and g(t) as arbitrary, Dimsym reports that division has been made by the expressions \(g'\) and \(gg''-(g')^2\). Equating the first expression to zero gives \(g (t)=\) constant while equating the second expression to zero gives \(g=ne^{mt}\). From the above, it is clear there are two forms of g(t); therefore, (2) may have additional symmetries, as follows:

$$\begin{aligned} g(t) = ne^{mt}\,\, \,\text {and}\,\,\, g(t) = n,\,\, \quad \text {where}\, n,m\, \text { are constants}. \end{aligned}$$

2.1 Special cases

We consider each of these values of g(t) in different cases with certain special choices of f(x) to determine the extra symmetries for (2):

Case 1: Assuming that \(g=n\) and \(f=nxe^x\), where n is an arbitrary constant and \(n\ne 0\). Substituting the values of g and f in (2) we obtain

$$\begin{aligned} \Delta \,:\, u_t=-ne^x(1+x)u-nxe^x u_x+\frac{n}{2} u_{xx}. \end{aligned}$$
(10)

FPE (10) is a mathematical equation describing the evolution of a stochastic process’s PDF over time. FPE is different from the KdV equation, which is a PDE that describes the evolution of a two-dimensional wave-like pattern over time. While the KdV equation applies to many physical systems, FPE applies to a much wider range of physical systems than the KdV, including systems where non-linearity and stochasticity are important. FPE is a linear second-order PDE. Its form is determined by the drift, diffusion and potential terms in the system. The general form of the FPE is given by:

$$\begin{aligned} u_t=-ne^x(1+x)u-nxe^x u_x+\frac{n}{2} u_{xx}. \end{aligned}$$

where u is the probability density function, n is the diffusion coefficient and x is a spatial coordinate. The drift term on the right side of the equation is a function of x and can include non-linear terms, while the diffusion and potential terms remain constant. FPE is useful in various applications, including the study of physical processes such as the diffusion of particles, the spread of epidemics, and the behaviour of financial markets. It can also be used to solve the non-linear dynamics of physical systems and to study the dynamics and evolution of complex systems. To analyse FPE and obtain exact solutions, the authors used the Lie symmetry analysis method. This method was used to reduce FPE to a simpler form, and then the authors used the exact solutions of the reduced equation to solve the original equation.

The results of the Lie symmetry analysis showed that FPE could be reduced to a linear equation, which can then be solved using the method of characteristics. The exact solutions obtained from the method of characteristics can be used to determine the system’s long-term behaviour. The results of the Lie symmetry analysis and the exact solutions obtained from it provide an essential tool for studying the dynamics of physical, biological and financial systems. In conclusion, FPE differs from the KdV equation and applies to a much wider range of physical systems. Using invariant condition (3) in Eq. (10), and equating the coefficients of the various monomials in partial derivatives with respect to x and various powers of u, the determining equations for the symmetry group of Eq. (10) can be found. By solving these equations, we obtain the following forms of coefficient functions:

$$\begin{aligned} T=c_3, \,\, X=0, \;\; U=c_1u+c_2\alpha (x,t). \end{aligned}$$
(11)

Where \(c_{ (i)}\), \(i=1,2,3\) are arbitrary constants and \(\alpha (x, t)\) is an arbitrary function in xt. By substituting the infinitesimal (11) in generator (4), we obtain the symmetries, given by

$$\begin{aligned} \Gamma _1=u\partial _{u},\;\;\qquad \Gamma _2=\partial _{t} \;\; \qquad \text {and} \;\; \Gamma _\alpha =\alpha (x,t)\partial _{u}. \end{aligned}$$

FPE (10) is a PDE that is used to describe the time evolution of a PDF of a stochastic process. It is a generalisation of the KdV equation and is used to describe phenomena such as diffusion processes and Brownian motion. This equation has been studied extensively in the literature and used to derive exact solutions using Lie symmetry analysis. FPE can be written as

$$\begin{aligned} c_3 u_t= c_1u+c_2\alpha (x,t) \end{aligned}$$

Where u is the probability density function, T is a diffusion coefficient, \(c_1, c_2,\) and \( c_3 \) are constants, and \( \alpha (x,t)\) is a function which depends on the spatial and temporal coordinates. The Lie symmetry analysis of FPE is based on the idea that if a system of equations has a certain symmetry, then it can be transformed into a simpler form by making certain coordinate transformations. In this case, the Lie symmetry analysis can be used to determine the form of the exact solution of FPE. Now, we use one of the symmetries to find a solution to Eq. (10). Equation (10) has symmetry with a generator \( \Gamma _{2}=\partial _{t}\), where the infinitesimals are \( X=0,\; T=1\), and \(U=0\). By substituting the infinitesimals in the invariant surface condition (ISc), the following can be obtained:

$$\begin{aligned} X u_{x}+T u_{t}=U. \end{aligned}$$
(12)

By solving the corresponding invariant surface condition \(u_t=0,\) we obtain \(u=\varphi (\zeta )\) and \(\zeta = x \). By substituting this functional form into governing Eq. (10), we find that \(\varphi \) needs to satisfy \(\varphi ''-2 \zeta e^{\zeta } \varphi '-2 e^{\zeta } (1+\zeta ) \varphi =0\). By solving the above equation, we obtain \(\varphi (\zeta )= c\exp (2(\zeta -1) e^{\zeta })\) where c is an arbitrary constant. Hence, the solution to Eq. (10) is

$$\begin{aligned} u=c\exp (2(x-1)e^x). \end{aligned}$$

FPE (10) is an important mathematical tool used to study various physical phenomena. It is a PDE that describes the evolution of a PDF of a stochastic process over time. It is closely related to the KdV equation, an example of an integrable system that describes the evolution of a wave in a dispersive medium. FPE can be written as \(X u_x+Tu_t=U,\) where X and T are coefficients that describe the drift and diffusion terms of the equation, respectively. This equation can describe a wide range of phenomena, such as the diffusion of particles in a fluid medium, the behaviour of a population under the influence of natural selection, and the motion of particles in a gravitational field. The authors of this paper have proposed a new version of FPE, which includes a Lie symmetry analysis and exact solutions. This new version, the \( Xu_x+Tu_t=U \) equation, is derived from the KdV equation by introducing an additional term. This additional term reduces the number of independent variables in FPE and thus simplifies the analysis. The authors have also presented exact solutions to this new version of FPE, which are obtained by applying the Lie symmetry analysis. These solutions can be used to describe the dynamics of the system and to obtain information about the behaviour of the PDF. Furthermore, these exact solutions can also be used to study the time evolution of the PDF and to analyse the stability of the system. In conclusion, the authors have proposed an update to the KdV equation, which is a PDE used to describe the evolution of a PDF over time.

Case 2: Assuming that \(g=ne^{mt}\) and \(f=x\), where nm are arbitrary constants and \( m,n\ne 0\). By substituting the values of g and f in Eq. (2) we obtain

$$\begin{aligned} \Delta \,:\; u_t=-u-xu_x+\frac{n}{2}e^{mt}u_{xx}, \end{aligned}$$
(13)

The KdV equation is a non-linear PDE that describes the evolution of non-linear shallow water waves. This equation has been widely studied in the literature and used to model numerous physical phenomena, such as fluid flow and wave propagation. However, the KdV equation cannot accurately describe all physical phenomena, such as those with dissipation and diffusion effects. Equation (13), an update on the KdV equation, is FPE, which describes the evolution of a PDF of particles. This equation incorporates dissipation and diffusion effects, which are not accounted for in the KdV equation. The addition of the term \( [\frac{n}{2} e^{mt} u_{xx}] \) to the KdV equation introduces a diffusion coefficient, allowing for the description of diffusion effects. Additionally, the term \((-x u_x )\) in Eq. (13) describes the dissipation of the wave, which is not present in the KdV equation.

Using invariant condition (3) in Eq. (13), and equating the coefficients of the various monomials in partial derivatives with respect to x and various powers of  u, the determining equations for the symmetry group of Eq. (13) can be found. By solving these equations, the following forms of coefficient functions are obtained

$$\begin{aligned} T&= 2c_1+c_2 e^{- (m-2)t} +c_3 e^{ (m-2)t},\nonumber \\ X&=(m-1) c_3 e^{ (m-2)t} x+ c_1 m x + c_4 e^t+c_5 e^{ (m-1)t}+c_2 xe^{- (m-2)t},\nonumber \\ U&=\frac{-1}{2n} \Big (c_3 e^{-2t} m^2 x^2 u-4 c_3 m e^{-2t} x^2 u+ c_3\, n\,m\,e^{ (m-2)t} u+4 c_3 e^{-2t} x^2 u\nonumber \nonumber \\&\quad +2 c_5 m e^{-t} x u+2 c_2 n u e^{- (m-2)t}-4 c_5 e^{-t} x u-2 c_6 n u-2 n\, \alpha (x,t)\Big ). \end{aligned}$$
(14)

Where \(c_{ (i)}\), \(i=1,2,\ldots ,6\) are arbitrary constants and \(\alpha \) is an arbitrary function in xt. By substituting infinitesimal (14) into generator (4), the symmetries can be obtained as follows:

$$\begin{aligned} \begin{aligned}&\Gamma _1 = m x \partial _{x} + 2\partial _{t},\\&\Gamma _2 =e^{- (m-2)t}\Big (x\partial _{x} + \partial _{t} -u \partial _{u}\Big ),\\&\Gamma _3 = (m-1)xe^{ (m-2)t} \partial _{x} +e^{ (m-2)t} \partial _{t}\\&\qquad -\frac{e^{-2t}}{2n}\Big (n \,m e^{mt}+ (m-2)^2 x^2 \Big )u\,\partial _{u}, \end{aligned} \qquad \begin{aligned}&\Gamma _4 = e^t \partial _{x},\\&\Gamma _5 = e^{ (m-1)t} \partial _{x} - \frac{m-2}{ne^t}xu\,\partial _{u},\\&\Gamma _6 = u \partial _{u},\\&\Gamma _{\alpha }=\alpha (x,t) \partial _{u}. \end{aligned} \end{aligned}$$

Now, we can find the solution to Eq. (13) by using one of the above mentioned symmetries. Equation (13) has symmetry with generator \( \Gamma _{1} = m x \partial _{x} + 2 \partial _{t}\), where the infinitesimals are \( X= mx, T=2\) and \(U=0\). By substituting the infinitesimals into invariant surface condition (12), we obtain the corresponding invariant surface condition \( m x u_{x} + 2u_{t}=0 \) with its solution, and we get \( u= \varphi (\zeta )\) where \(\zeta = x e^{-mt/2}\). Substituting this functional form into Eq. (13), we find that \(\varphi \) needs to satisfy \(\varphi '' + \zeta (m-2) \varphi '- 2\varphi =0\). By solving the above mentioned equation, we obtain

$$\begin{aligned} \varphi (\zeta )&= c_{1} \exp \Big (\frac{2-m}{n}\zeta ^{2}\Big ) \text {M} \Big ( \frac{m-1}{m-2},\frac{3}{2}, \frac{1}{2} \frac{(m-2)\zeta ^{2}}{n} \Big ) \zeta \\&\quad + c_{2} \exp \Big (\frac{2-m}{n}\zeta ^{2}\Big ) \text {U} \Big ( \frac{m-1}{m-2},\frac{3}{2},\frac{1}{2} \frac{(m-2)\zeta ^{2}}{n}\Big ) \zeta , \end{aligned}$$

where \(c_{1}\) and \( c_{2}\) are arbitrary constants, and M, U are the Kummer-M and Kummer-U, functions respectively (see e.g. [1]). Hence, the solution to Eq. (13), is

$$\begin{aligned} u(x,t)&= c_{1} \exp \Big (\frac{2-m}{2n}x^2e^{-mt}\Big ) \text {M} \Big ( \frac{m-1}{m-2},\frac{3}{2}, \frac{1}{2} \frac{(m-2)x^2e^{-mt}}{n} \Big ) x e^{-mt/2} \\&\quad + c_{2} \exp \Big (\frac{2-m}{2n}x^2e^{-mt}\Big ) \text {U} \Big ( \frac{m-1}{m-2},\frac{3}{2},\frac{1}{2} \frac{(m-2)x^2e^{-mt}}{n}\Big ) x e^{-mt/2}. \end{aligned}$$

The KdV equation is a PDE used to model the behaviour of shallow water waves. It is a non-linear dispersive wave equation that describes the propagation of long waves in an inviscid medium. The equation is named after the Dutch mathematician Diederik Korteweg and the physicist Gustav de Vries, who derived it in 1895. The KdV equation is a good approximation for a wide range of physical phenomena, such as surface waves in shallow water, wave-structure interactions, internal wave-structure interactions, and non-linear optics. The Lie symmetry analysis and exact solutions of FPE presented in Eq. (13) are an update on the KdV equation. This update incorporates FPE to more accurately model the behaviour of shallow water waves. FPE is a non-linear integro-differential equation that describes the time evolution of a PDF. This equation is used to model the behaviour of a system where particles, such as water molecules, are subject to random forces. This equation is used to model the diffusion of particles and is a good approximation for a wide range of physical phenomena, such as turbulence, optical beams, and chemical reactions. The main difference between the KdV equation and the updated FPE is that the KdV equation is a dispersive wave equation, while FPE is an integro-differential equation. The KdV equation describes the propagation of shallow water waves, while FPE describes the diffusion of particles in a system. The KdV equation is a non-linear equation, while FPE is a linear equation. The KdV equation is used to model wave-structure interactions, while FPE is used to model non-linear optics, turbulence, and chemical reactions. In conclusion, the Lie symmetry analysis and exact solutions of FPE presented in Eq. (13) is an update on the KdV equation. This update incorporates FPE to model the behaviour of shallow water waves more accurately.

Case 3: Assuming that \(g=e^t\) and \(f=x\), by substituting the values of g and f into (2), we obtain

$$\begin{aligned} \Delta \,:\; u_t=-u-xu_x+\frac{e^t}{2}u_{xx}. \end{aligned}$$
(15)

Using invariant condition (3) in Eq. (15), and equating the coefficients of the various monomials in partial derivatives with respect to x and various powers of u, we can find the determining equations for the symmetry group of Eq. (15). By solving these equations, we obtain the following forms of the coefficient functions:

$$\begin{aligned} T&= 2c_1+4c_2 e^{t} +4c_3 e^{-t},\qquad \qquad X = (4c_2 e^t+c_1)x+c_4+c_5 e^t,\\ U&= -\big (c_2 e^t +c_3 e^{-t}\big )x^2u - \big ( (c_3 e^{-t}-c_2 e^t)x - c_4 \big )xu e^{-t} \\&\quad -\big (4c_2 e^t + 2c_3 e^{-t} - c_6 \big )u+ \alpha (x,t). \end{aligned}$$

where \(c_{ (i)}\), \(i=1,2,\ldots ,6\) are arbitrary constants and \(\alpha \) is an arbitrary function in xt. By substituting the infinitesimal X, T, and U into generator (4), we obtain the symmetries given by

$$\begin{aligned} \begin{aligned}&\Gamma _1 = x \partial _{x} + 2\partial _{t},\\&\Gamma _2 =xe^{t} \partial _{x} + e^{t} \partial _{t} -e^{t} u \partial _{u},\\&\Gamma _3 = 2e^{-t} \partial _{t}-e^{-2t}\big (x^2+e^t\big )u\,\partial _{u}, \end{aligned} \qquad \qquad \begin{aligned}&\Gamma _4 = \partial _{x}+x e^{-t} u \partial _{u},\\&\Gamma _5 = e^{t} \partial _{x},\\&\Gamma _6 = u \partial _{u},\\&\Gamma _{\alpha }=\alpha (x,t) \partial _{u}. \end{aligned} \end{aligned}$$

The KdV equation is a non-linear PDE frequently used to describe the dynamics of shallow water waves in a uniform depth channel. It has been used to model various physical phenomena, including the propagation of solitary waves and small-amplitude waves in homogeneous media. FPE (15) is a generalisation of the KdV equation that considers the effects of diffusion and randomness on the propagation of waves. FPE contains additional terms in comparison to the KdV equation, which is designed to capture the effects of diffusion and randomness. These terms include the diffusion coefficient \(( \frac{1}{2}e^{t} ),\) as well as the drift term, \( (-x \,u_x ),\) which accounts for the effect of random external forces on the system. By including these terms, FPE can describe the effects of randomness, diffusion, and non-linearity on the propagation of waves in a homogeneous medium. We can use one of these symmetries to find the solution to Eq. (15). Equation (15) has symmetry with generator \(\Gamma _{2}= x e^{t} \partial {x} + e^{t} \partial {t} - e^{t} \partial {u}\), where the infinitesimals are \(X=x e^{t},\,T=e^{t}\) and \( U =\, - e^{t} u\). By substituting the infinitesimals in ISc (12) and solving the corresponding ISc \( x e^{t} u_{x}+ e^{t} u_{t}= - e^{t} u\), we obtain: \(u=\varphi {(\zeta )}/x\), where \( \zeta =x e^{-t}\). By substituting this functional form into governing Eq. (15), we find that \(\varphi \) needs to satisfy \(\zeta ^{2} \varphi ''-2\zeta \varphi ' + 2\varphi =0\). By solving this equation, we get \( \varphi (\zeta )= c_{1} \zeta +c_{2} \zeta ^{2}\), where \( c_{1} \) and \( c_{2} \) are arbitrary constants. Hence, the solution to Eq. (15) is

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

Plot of the exact solution of (16) obtained by the classical generator of  \(\Gamma _{2}\)   for the values of \( c_{1} = 1,\, c_{2} = 1\) ; spaces \( x=-3\ldots 3,\) \( t=-3\ldots 3\)  in  3D

FPE is a generalisation of the KdV equation and describes the evolution of a probability density in a system of particles. It is derived from the KdV equation by including a diffusion term, which accounts for the random motion of the particles. This diffusion term is represented in the equation by a second-order PDE, which is solved using a technique known as Lie symmetry analysis. The Lie symmetry analysis allows for the exact solution of the equation, solving the form of a linear combination of exponential functions. FPE describes the evolution of a probability density in a system of particles, represented by the equation \([u = c_{1} e^{-t}+c_{2} (x e^{-2t})]\). This equation updates the KdV equation because it considers the particles’ random motion by adding a diffusion term. This diffusion term is represented in the equation by a second-order PDE, which is solved using Lie symmetry analysis. The Lie symmetry analysis is a powerful tool that can be used to determine the exact solution of FPE. This technique allows the exact solution of the equation to be obtained in the form of a linear combination of exponential functions. This form of solution is easier to interpret and understand than the original equation as it is written in terms of simple mathematical functions. It also allows for the analysis of the behaviour of the system with respect to different initial conditions. FPE provides a more sophisticated method of analyzing a system of particles than the KdV equation. The addition of the diffusion term makes the equation more complex but also more accurate in its prediction of the behaviour of the system. Additionally, the Lie symmetry analysis provides an exact solution to the equation, making it easier to interpret and understand. This makes FPE a powerful tool for studying the behaviour of a system of particles.

Case 4: Assuming that \(g=be^t\) and \(f=x+a\), where ab are arbitrary constants and \(a,b\ne 0\). By substituting the values of g and f into (2), we obtain

$$\begin{aligned} \Delta \,:\; u_t=-u- (x+a)u_x+\frac{1}{2} be^{t} u_{xx}. \end{aligned}$$
(17)

By using invariant condition (3) in Eq. (17), and equating the coefficients of the various monomials in partial derivatives with respect to x and various powers of u, we can find the determining equations for the symmetry group of Eq. (17). By solving these equations, we obtain the following forms of coefficient functions:

$$\begin{aligned} T&= 2c_1+c_2 e^{-t} +c_3 e^{t},\qquad \qquad X= \big ( c_1 + c_3 e^t \big )x+c_4 + c_5 e^{t},\\ U&= \frac{1}{2b} \Big (-\big (c_2 e^{-t}+ c_3 e^{t}\big ) e^{-t}x^2 u \\&\quad + \Big (\big (2a+x\big )\big ( -c_2 e^{-t} + c_3 e^{t}\big )-2\big (2c_1 +c_2 e^{-t} +c_3 e^{t}\big )a +2 c_4 \Big ) x e^{-t} u \\&\quad + \Big (2\big [2bc_6-\big (2 c_3 e^{t} + (2a^2c_1+bc_2-2a c_4) e^{-t} +c_2 a^2 e^{-2t}\big ) \big ]u+ \alpha (x,t)\Big )\Big ), \end{aligned}$$

where \(c_{ (i)}\), \(i=1,2,\ldots ,6\) are arbitrary constants and \(\alpha \) is an arbitrary function in xt. By substituting the infinitesimal X, T, and U into generator (4), we obtain the symmetries given by

$$\begin{aligned} \begin{aligned}&\Gamma _1 = x \partial _{x} + 2\partial _{t}-\frac{a (x+a)}{be^t}u\, \partial _{u},\\&\Gamma _2 = e^{-t} \partial _{t}-\frac{1}{2be^t} \big ( (x+a)^2e^{-t}+ b \big )u \partial _{u},\\&\Gamma _3 = x e^{t}\partial _{x} + e^t \partial _{t} -e^t u \partial _{u}, \end{aligned} \begin{aligned}&\Gamma _4 = \partial _{x}+ \frac{x+a}{be^t}u \partial _{u},\\&\Gamma _5 = e^{t} \partial _{x},\\&\Gamma _6 = u \partial _{u},\\&\Gamma _{\alpha }=\alpha (x,t) \partial _{u}. \end{aligned} \end{aligned}$$

The KdV equation is a non-linear PDE that describes the evolution of a unidirectional wave in a dispersive medium. It is used to model various phenomena, including shallow water waves, ion-acoustic waves in plasmas, and ion-acoustic shocks in semiconductors. FPE (17) is a generalisation of the KdV equation that considers the diffusion of particles in the medium. In this equation, variable (u) represents the density of particles in the medium and variable (x) is the spatial coordinate. Variable (a) is a constant that describes the strength of non-linearity in the medium. Variable \( (b e^{t}) \) is the diffusion coefficient, which increases with time. Therefore, this equation describes the evolution of particles in a non-linear, dispersive medium with diffusion. The Lie symmetry analysis of FPE can be used to determine the exact solutions of the equation. The Lie symmetry analysis is an approach to solving non-linear PDEs that involve finding continuous transformations of the independent and dependent variables that leave the equation invariant. This approach can reduce the number of independent variables or reduce the equation to a simpler form. It can also be used to find the exact solutions to the equation. In the case of FPE (17), the Lie symmetry analysis reveals several possible exact solutions, depending on the initial conditions. For example, there is an exact solution for a free particle, which is valid for any initial conditions. There is also an exact solution for a particle in a potential, valid in the absence of diffusion. Finally, there is an exact solution for a particle in a potential with diffusion, valid for any initial conditions. Overall, FPE (17) updates the KdV equation. This equation considers the diffusion of particles in the medium, which is not present in the KdV equation. The Lie symmetry analysis can be used to determine the exact solutions of the equation, which can help to understand the behaviour of particles in a non-linear, dispersive medium with diffusion. Now, one of the symmetries is used to find a solution to Eq. (17). Equation (17) has symmetry with generator \(\Gamma _4\), where the infinitesimals are

$$\begin{aligned} X=1,\qquad T=0 \quad \text {and }\quad U=(x+a)u/(b e^t). \end{aligned}$$

By substituting the infinitesimals into invariant surface condition (12) and solving the corresponding invariant surface condition \(u_x=(x+a)u/(b e^t)\), we obtain

$$\begin{aligned} u= \varphi (\zeta )\exp \Big (\frac{x(x+2a)}{2be^t}\Big )\,\,\text { where}\, \, \zeta =t. \end{aligned}$$

By substituting this functional form into Eq. (17), we find that \(\varphi \) needs to satisfy

$$\begin{aligned} \varphi '+ \big (\frac{a^2+b}{2b}\big ) \varphi = 0. \end{aligned}$$

By solving the aforementioned equation, we get

$$\begin{aligned} \varphi (\zeta )= c_{1} \exp {\Big (\frac{-1}{2b} \big (a^2+b\big ) \zeta \Big )}, \end{aligned}$$

where \( c_{1} \) is an arbitrary constant. Hence, the solution to Eq. (17) is

$$\begin{aligned} u(x,t) = c_{1} \exp {\Big (\frac{1}{2b}\big [ x(x+2a) e^{-t}-(a^2+b)t \big ] \Big )}, \end{aligned}$$
(18)
Fig. 2
figure 2

Plot of the exact solution of (18) obtained by the classical generator of \(\Gamma _{4}\) for \( c_{1} = 1,\, a = 2 \) and \( b = 2\); spaces \( x=-3\ldots 3,\) \( t=-3\ldots 3\) in 3D

The KdV equation is used to model a variety of wave phenomena, such as shallow water waves or solitons. It has been studied extensively since its introduction in 1895 and has been found to possess various exact solutions. On the other hand, FPE is a PDE, which models the evolution of a probability density. It was first proposed by Fokker and Planck in 1920 and is used to describe the time evolution of a system with random fluctuations, such as diffusion and heat conduction. Equation (18) is an exact solution to the FPE, and as such, it has some similarities and some differences with the KdV equation. Firstly, FPE does not possess the same non-linear terms as the KdV equation. Thus, it does not possess the same kind of non-linear wave-like solutions. Secondly, FPE is a first-order PDE, while the KdV equation is a third-order equation.

Case 5: Assuming that \(g=e^t\) and \(f=x-1\), and by substituting the values of g and f in (2), we obtain

$$\begin{aligned} \Delta \,:\; u_t=-u- (x-1) u_x+\frac{e^t}{2} u_{xx}. \end{aligned}$$
(19)

Using invariant condition (3) in (19), and equating the coefficients of the various monomials in partial derivatives with respect to x and various powers of u, we can find the determining equations for the symmetry group of (19). By solving these equations, we obtain the following forms of the coefficient functions

$$\begin{aligned}&T= 2c_1+2c_2 e^{-t} +2c_3 e^{t},\qquad \qquad X= \big ( c_1 + 2c_3 e^t \big )x+c_4 + c_5 e^{t},\\&U=\frac{-x^2u}{2e^t} \big (c_2 e^{-t}+ c_3 e^{t}\big ) +\frac{xu}{e^t}\Big (\frac{x}{2}\big [c_3 e^t-c_2 e^{-t}\big ] + c_1 + 2c_2 e^{-t} + c_4 \Big )\\&\qquad - u\big ( 2c_3 e^t + (c_1+c_2+c_4)e^{-t} + c_2 e^{-2t} - c_6 \big )+ \alpha (x,t), \end{aligned}$$

where \(c_{ (i)}\), \(i=1,2,\ldots ,6\) are arbitrary constants and \(\alpha \) is an arbitrary function in xt. By substituting the infinitesimal X, T, and U in generator (4), we obtain the symmetries given by

$$\begin{aligned} \begin{aligned}&\Gamma _1 = x\,\partial _x+2\partial _t+e^{-t}(x-1)\,u\,\partial _u,\\&\Gamma _2 = 2e^{-t} \partial _t-e^{-2t}\big ((x-1)^2+e^t\big )\,u\,\partial _u,\\&\Gamma _3 = x e^t\,\partial _x + e^t \partial _t - e^tu\,\partial _u, \end{aligned} \begin{aligned}&\Gamma _4 = \partial _x+ e^{-t}(x-1)\,u\,\partial _u,\\&\Gamma _5 = e^t\,\partial _x,\\&\Gamma _6 = u\,\partial _u,\\&\Gamma _{\alpha }=\alpha (x,t)\,\partial _{u}. \end{aligned} \end{aligned}$$

Now, we use one of the symmetries to find a solution to (19). Equation (19) has symmetry with generator \(\Gamma _{3} = x e^{t} \partial {x} + e^{t} \partial {t} - e^{t} u \, \partial {u}\), where the infinitesimals are \(X=x e^{t}\), \(T= e^{t}\), and \( U = - e^{t} u\). By substituting the infinitesimals in ISc (12) and solving the corresponding invariant surface condition \(x e^{t} u_{x} + e^{t} u_{t} = - e^{t} u \) we obtain \(u= e^{- t}\, \varphi (\zeta ) \) where \(\zeta = x e^{- t}\). By substituting this functional form into Eq. (19), we find that \( \varphi \) needs to satisfy \(\varphi '' + 2\varphi ' =0\). By solving the aforementioned equation, we obtain \(\varphi (\zeta ) = c_{1} + c_{2} e^{-2\zeta }\), where \( c_{1}\) and \( c_{2} \) are arbitrary constants. Hence, the solution to (19) is

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

The KdV equation is a non-linear PDE that describes the behaviour of a wide range of physical phenomena, including waves in shallow water, small-amplitude gravity waves, and the propagation of solitons in non-linear media. The KdV equation is a mathematical model used to describe waves in various systems, including shallow water waves, plasma waves, and acoustic waves. Equation (19) is an update on the KdV equation. This equation is a version of FPE, which is a linear PDE used to describe the evolution of a probability distribution over time. FPE can be used to describe the behaviour of a variety of physical systems, including thermodynamic systems, chemical reactions, biological systems, and financial markets. The main difference between the KdV equation and Eq. (19) is that the KdV equation is non-linear, while Eq. (19) is linear. FPE is a linear equation because it is derived from a system of linear differential equations, which means that FPE is more amenable to analytical solutions than the KdV equation. Additionally, FPE can be used to model the evolution of probability distributions, while the KdV equation is primarily used to model wave behaviour. The specific form of Eq. (19) also differs from the KdV equation in several important ways. The equation includes a temporal term, a spatial term, and a diffusion term, which are not present in the KdV equation. Additionally, the equation includes a coefficient for the spatial term of \((x-1)\), which is not present in the KdV equation. Finally, the equation includes a coefficient for the diffusion term of \( (\frac{1}{2}e^{t} )\) which is also not present in the KdV equation.

Case 6: Assuming that \(g=a\) and \(f=b\), where ab are arbitrary constants and \(a,b\ne 0\). Let \(a=1\) and \(b=1\). Substituting g and f into Eq. (2), we obtain

$$\begin{aligned} \Delta \,:\; u_t=-u_x+\frac{1}{2} u_{xx}, \end{aligned}$$
(20)

Using invariant condition (3) in Eq. (20), and equating the coefficients of the various monomials in partial derivatives with respect to x and various powers of u, we can obtain the determining equations for the symmetry group of Eq. (20). By solving these equations, we obtain the following forms of the coefficient functions:

$$\begin{aligned} T&= 2c_1 t^2 + 2c_2 t +c_3,\\ X&= \big ( (1+2x) c_1 + c_2 + c_5\big )t +c_2 x + c_4,\\ U&= -u\big ( c_1 (x-t)^2 + (c_5 + c_1)x - c_5 t - c_6 \big )+\alpha (x,t). \end{aligned}$$

Where \(c_{ (i)}\), \(i=1,2,\ldots ,6\) are arbitrary constants and \(\alpha \) is an arbitrary function in xt. By substituting the infinitesimal X, T and U into the generator (4), we obtain the symmetries given by

$$\begin{aligned}&\Gamma _1 = t (2x+1) \partial _{x} + 2t^2\partial _{t}-\big ( (x-t)^2+x\big )u\partial _{u},{} & {} \\&\Gamma _2 = (x+t) \partial _{x} + 2t\partial _{t},{} & {} \hspace{-4cm} \Gamma _3 = \partial _{t},\\&\Gamma _4 = \partial _{x},{} & {} \hspace{-4cm} \Gamma _5 = t \partial _{x} +\big (t-x \big ) u \partial _{u},\\&\Gamma _6 = u \partial _{u},{} & {} \hspace{-4cm} \Gamma _{\alpha }=\alpha (x,t) \partial _{u}. \end{aligned}$$

FPE, as described in Eq. (20), is an update on the KdV equation but includes a diffusion term. FPE is a non-linear PDE used in studying systems with random fluctuations and is a type of diffusion equation. Specifically, FPE has the form \( [u_t=-u_x+ \frac{1}{2} u_{xx}]\), which is similar to the KdV equation, but with the addition of the second-order diffusion term on the right-hand side. The KdV equation is a non-linear dispersive PDE that describes one-dimensional wave propagation in shallow waters. It is used to study problems in fluid dynamics, such as the transmission of waves in shallow water and the formation of shock waves. The KdV equation is linear, meaning the solutions can be found by solving a linear system. In contrast, FPE is a non-linear equation, and the solutions cannot be found by solving a linear system. Now, it is possible to find the solution to Eq. (20) by using one of the symmetries above. Equation (20) has symmetry with generator \(\Gamma _{2}= (x+t)\, \partial {x} + 2t\, \partial {t}\) where the infinitesimals are \(X=x+t\), \(T=2t\) and  \( U=0\). By substituting the infinitesimals into ISc (12) and solving the corresponding invariant surface condition \( (x+t) u_{x} + 2t u_{t}=0\), we obtain \( u= \varphi (\zeta ) \) where \( \zeta = (x-t)/\sqrt{t}\). By substituting this functional form into Eq. (20), we find that \(\varphi \) needs to satisfy \(\varphi ''+ \zeta \,\varphi '=0\), such that \(\varphi =c_1+c_2{{\,\textrm{erf}\,}}(\zeta /\sqrt{2})\), where \(c_1\) and \(c_2\) are arbitrary constants, and \({{\,\textrm{erf}\,}}z\equiv \frac{2}{\sqrt{\pi }}\int _{0}^{z}e^{-\xi }d\xi \) is the error function (also called the probability integral) [1]. Hence, the solution to Eq. (20) is

$$\begin{aligned} u(x,t) = c_{1} + c_{2}\, {{\,\textrm{erf}\,}}\left( \frac{x-t}{\sqrt{2t}} \right) .\end{aligned}$$
(21)
Fig. 3
figure 3

Plot of the exact solution of (21) obtained by the classical generator of \( \Gamma _{2}\) for \(c_{1} = 1, c_{2} = 1\); spaces \( x\,=\,-3\ldots 3,\)  \( t \,=\,-3\ldots 3 \) in 3D

The KdV equation is a canonical non-linear PDE that describes the evolution of shallow water waves and other physical phenomena. It has been used to model many physical phenomena, such as water plasma, and other dispersive waves. However, the KdV equation is limited in the behaviour of more complex systems. In particular, it does not accurately model the effects of random noise on the system. To address this, the authors of this paper have proposed an update on the KdV equation in the form of FPE, a type of stochastic differential equation. FPE is similar to the KdV equation as it is also a non-linear PDE that describes the evolution of a system. However, it is different as it includes a random noise term, which is responsible for introducing random fluctuations in the system. The authors have also used the Lie symmetry analysis to find exact solutions to FPE. They found that the exact solution to FPE is \( u(x,t) = c_{1} + c_{2}\, {{\,\textrm{erf}\,}}\big (\frac{x-t}{\sqrt{2t}} \big )\).

Fig. 4
figure 4

PLOT CASE3

Fig. 5
figure 5

PLOT CASE4

Fig. 6
figure 6

PLOT CASE6

3 Conclusion

In this paper, the Lie symmetry group method is applied to study the Fokker–Planck equation, and determining systems of symmetries for the FPE are discussed. By applying the classical symmetry method to several special cases of the FPE, we found that (1) has six symmetries, with one infinite-dimensional symmetry generated in each of the six cases. Some 3D plots for solution Eq. (1) are shown in Figs. 1, 2 and 3 that use suitable parameter values. Finally, in each of these cases, new exact solutions to the FPE are provided.