1 Introduction

The study of stochastic phenomena has been extensively increased in recent years, due to their applications in various fields such as physics, chemistry, biology, circuit theory, and even finance [1,2,3,4]. In such phenomena, one of the most popular differential equations, the so-called FPE, naturally arises [4]. Actually, it has been historically presented not only to the investigation of stochastic systems but also the Brownian motion of particles [4]. Mathematically, FPE is a linear partial differential equation that describes the time evolution of the probability density function associated with a dynamical system with random features [5]. Depending on the dynamics of drift and diffusion functions of such systems, the resulting FPE may be extremely complicated or quite simple, and accordingly, numerical algorithms or analytical solutions are proposed. Among analytical methods, various approaches have been presented, such as supersymmetry [4], Lie algebra [6], Laplace transformation [7], Fourier analysis [8], variational methods [9], Ornstein–Uhlenbeck process [10], etc. For instance, Lo [6] solved FPE for time-dependent nonlinear drift and diffusion coefficients using the Lie-algebraic approach analytically. Likewise, Grain et al. [11] has used a dynamical system technique to consider a stochastic inflationary cosmological model in phase-space.

On the other hand, one of the most commonly proposed approaches is the transformation of FPE into the Schrodinger equation formally, to get an analytical solution of the first one. In this regard, Zarrinkamar et al. [7] considered harmonic oscillator, Morse potential, and free particle using Laplace transformation. They showed that the resulting FPE of these potentials are, respectively, equivalent to quadratic, exponential, and logarithmic drift forces with a constant diffusion. In a similar work, Brics et al. [12] found exact solutions of FPE for tangent hyperbolic and constant drift forces with constant diffusion, in analogy to the Schrödinger equation for shifted Poschl–Teller and constant potentials, respectively. Additionally, Anjos et al. [4] provided analytical solutions of generalized Morse and Hulthén potentials by using the supersymmetry technique in quantum mechanics. However, the FPE-Schrödinger analogy method, which is based on the solvability of the latter equation, is limited only to consider confined potentials, which restricts its applicability. Obviously, in this analogy, each potential in the Schrodinger equation corresponds to a pair of drift and diffusion functions in FPE. This correspondence impose a specific mathematical form to FPE naturally, that may have undesirable physical properties in the framework of stochastic phenomena.

However, the existence of equivalence between FPE and the differential equation of type (3), allows one to use Nikiforov–Uvarov (NU) formalism, as a powerful approach to solve FPE [13]. This method is based on reducing the second-order linear differential equation to a generalized equation of the hypergeometric type. The solutions of the latter equation are presented in terms of special orthogonal functions, as well as the corresponding eigenvalues are obtained [13, 14]. One of the motivations for the present work is to demonstrate the merit of the NU method to get an analytical solution of FPE for a given pair of drift and diffusion functions. We will realize this aim in three important examples.

2 Fokker–Planck equation

The one-dimensional FPE of the probability distribution P(xt) is given by

$$\begin{aligned} \frac{\partial }{\partial t}P(x,t) = -\frac{\partial }{\partial x}( F(x) P(x, t)) + \frac{\partial ^2 }{\partial x^2}(D(x)P(x,t)), \end{aligned}$$
(1)

where F(x) and D(x) are the drift and diffusion functions, representing the deterministic and the stochastic part of the equation, respectively. In mathematical literature, this equation is often referred to as the forward Kolmogorov equation [15]. For analysis of this equation, one may use separation of variables method and assume that \(P(x, t)=T(t)\psi (x)\). It allows one to rewrite (1) as

$$\begin{aligned} \psi ^{\prime \prime }(x)+\left\{ \frac{2D^{\prime }(x)+F(x)}{D(x)}\right\} \psi ^{\prime }(x)+\left\{ \frac{D^{\prime \prime }(x)+F^{\prime }(x)+\lambda }{D(x)}\right\} \psi (x)=0, \end{aligned}$$
(2)

with \(T(t)=T_0e^{-\lambda t}\) in which \(T_0\) and \(\lambda >0\) are constants. To solve this equation for a given pair of drift and diffusion coefficients, let us consider the NU method.

3 The Nikiforov–Uvarov method

In this section, we briefly review the mathematical NU method, which is based on reducing the second-order linear differential equation to a generalized equation of the hypergeometric type [13, 14]. In this formalism, solutions are given in terms of special orthogonal functions. Here, we apply this method to solve FPE for a given drift and diffusion functions. By introducing an appropriate coordinate transformation \(s=s(x)\), we rewrite this equation in the following form

$$\begin{aligned} \psi _{n}^{\prime \prime }(s)+\frac{\widetilde{\tau }(s)}{\Gamma (s)}\psi _{n}^{\prime }(s)+\frac{\widetilde{\sigma }(s)}{\Gamma ^{2}(s)}\psi _{n}(s)=0, \end{aligned}$$
(3)

where \(\widetilde{\tau }(s)\) is a first-degree polynomial, also \(\Gamma (s)\) and \(\widetilde{\sigma }(s)\) are polynomials at most of second-degree. Depending on the form of these polynomials, solutions of Eq. 3 are presented in terms of several classes of orthogonal functions, such as classical polynomials (Hermite, Jacobi, and Laguerre), spherical harmonics, Bessel, and hypergeometric functions. These functions, \(\psi _n(s)\), are often referred to as the special functions of mathematical physics. To obtain the particular solution of this equation, one usually takes

$$\begin{aligned} \psi _{n}(s)=\phi _{n}(s)y_{n}(s). \end{aligned}$$
(4)

This factorization leads to the following hypergeometric type of equation

$$\begin{aligned} \Gamma (s)y_{n}^{\prime \prime }(s)+\tau (s)y_{n}^{\prime }(s)+\lambda y_{n}(s)=0, \end{aligned}$$
(5)

where the new function \(\tau (s)\) is defined as

$$\begin{aligned} \tau (s)=\widetilde{\tau }(s)+2\pi (s), \end{aligned}$$
(6)

in which

$$\begin{aligned} \pi (s)= & {} \frac{\Gamma ^{\prime }(s)-\widetilde{\tau }(s)}{2}\nonumber \\&\pm \quad \sqrt{\left( \frac{\Gamma ^{\prime }(s)-\widetilde{\tau }(s)}{2}\right) ^{2}-\widetilde{ \sigma }(s)+k\Gamma (s)}. \end{aligned}$$
(7)

Here, k is a parameter that plays an essential role in the calculation of \(\pi (s)\), and it is simply obtained by setting the discriminant of the square root equal to zero. The values of k are also used to determine the eigenvalues via

$$\begin{aligned} \lambda =k+\pi ^{\prime }(s)= -n\tau ^{\prime }(s)-\frac{n\left( n-1\right) }{2} \Gamma ^{\prime \prime }(s),\quad {n=0,1,2,...,} \end{aligned}$$
(8)

where \(\lambda \) is a constant determined by n, and is often referred to as the eigenvalue. Besides, each \(\lambda \) corresponding to \(n=0,1,2,...\), introduces a particular polynomial of degree n, which is a special solution of FPE for a given pair of drift and diffusion functions. It must be pointed out that there are usually more than one \(\tau (s)\) functions in relation (6), corresponding to different values of \(\pi (s)\) in (7) for various k, where the suitable one satisfies the constraint \(\tau ^{\prime }(s)<0\) based on the NU formulation. Polynomial solutions of Eq. 5 are given by Rodrigues relation

$$\begin{aligned} y_{n}(s)=\frac{B_{n}}{\rho (s)}\frac{\mathrm{d}^{n}}{\mathrm{d}s^{n}}\left[ \Gamma ^{n}(s)\rho (s)\right] , \end{aligned}$$
(9)

where \(B_{n}\) is the normalization constant, and the weight function \(\rho (s)\) is obtained as follows [14]

$$\begin{aligned} \rho (s)=\exp \left\{ \int {\frac{\tau (s)-\sigma ^{\prime }(s)}{\sigma (s)}} \mathrm{d}s \right\} . \end{aligned}$$
(10)

Furthermore, the other part of the solution is given by [14]

$$\begin{aligned} \phi _n(s)=exp\left\{ \int {\frac{\pi (s)}{\sigma (s)}} \mathrm{d}s \right\} . \end{aligned}$$
(11)

4 Solving some examples of FPE by NU method

A comparison between Eqs. 2 and 3 implies that the former may be solved using the NU method, for a given pair of drift and diffusion coefficients. For this purpose, let us consider three examples.

  • Case 1

As a first example, we assume an exponential form drift force with a constant diffusion coefficient as follows

$$\begin{aligned} F(x)=\alpha e^{-ax}-\beta , \quad D(x)=\sigma ^2, \end{aligned}$$
(12)

where a, \(\alpha \), \(\beta >0\) and \(\sigma \) are constant. With this choice, the corresponding Eq. 2 yields

$$\begin{aligned} \psi ^{\prime \prime }(x)-\left\{ \frac{\alpha e^{-ax}-\beta }{\sigma ^2}\right\} \psi ^{\prime }(x)+\left\{ \frac{\alpha a e^{-ax}+\lambda }{\sigma ^2}\right\} \psi (x)=0. \end{aligned}$$
(13)

By introducing the auxiliary variable \(s=e^{-ax}\), it is easily transformed into

$$\begin{aligned} \psi ^{\prime \prime }(s)+\left\{ \frac{\mu s+\nu }{s}\right\} \psi ^{\prime }(s)+\left\{ \frac{\mu s +\eta }{s^2}\right\} \psi (s)=0, \end{aligned}$$
(14)

with \(\mu =\frac{\alpha }{a\sigma ^2}\), \(\nu =1-\frac{\beta }{a\sigma ^2}\) and \(\eta =\frac{\lambda }{a^2\sigma ^2}\). Now, by comparing the last equation with Eq. 3, one obtains

$$\begin{aligned} \widetilde{\tau }(s)={\mu s+\nu }, \quad \widetilde{\sigma }(s)= {\mu s +\eta } \quad \Gamma (s)=s. \end{aligned}$$
(15)

By inserting them into relation (7) we get \(\pi \) function as follows

$$\begin{aligned} \pi (s)= & {} -\frac{1}{2}(\mu s+\nu -1)\nonumber \\&\quad \pm \sqrt{\left( \frac{\mu }{2}\right) ^2 s^2 +\left[ k-\frac{1}{2} \mu (3-\nu )\right] s+\frac{1}{4}\zeta ^2 } \end{aligned}$$
(16)

where \(\zeta = \sqrt{(1-\nu )^2-4\eta } \). Now, by setting the discriminant of the square root equal to zero we find

$$\begin{aligned} \pi (s)=\left\{ \begin{array}{ll} (1-\nu -\zeta )/2-\mu s&{}\quad \text{ for }\,\, k_+=\mu (3-\nu +\zeta )/2 \\ (1-\nu +\zeta )/2&{}\quad \text{ for }\,\, k_+=\mu (3-\nu +\zeta )/2 \\ (1-\nu +\zeta )/2-\mu s&{}\quad \text{ for }\,\, k_-=\mu (3-\nu -\zeta )/2 \\ (1-\nu -\zeta )/2&{}\quad \text{ for }\,\, k_-=\mu (3-\nu -\zeta )/2. \end{array}\right. \end{aligned}$$
(17)

In this stage, by choosing a suitable value for k which satisfies the condition \(\tau ^{\prime }(s)<0\) in relation (6), and considering a physical solution one achieves

$$\begin{aligned} \pi (s)= \frac{1}{2} \{ 1-\nu - \zeta \}-\mu s,\quad \text{ for } \quad k_+=\frac{1}{2}\mu (3-\nu +\zeta ) \end{aligned}$$
(18)

with \(\tau (s)= 1-\zeta -\mu s \). By inserting it into relation (10), the weight function is given by

$$\begin{aligned} \rho (s)= & {} \exp \left\{ -\int \left( {\mu +\frac{\zeta }{s}}\right) \mathrm{d}s \right\} ,\nonumber \\= & {} \text{ Const }\quad s^{-\zeta } e^{-\mu s}. \end{aligned}$$
(19)

Substituting \(\rho (s)\) into the Rodrigues relation (9) leads to

$$\begin{aligned} y_n (s)= & {} B_{n}{s^ \zeta e^{\mu s} } \left( \frac{\mathrm{d}}{\mathrm{d}s}\right) ^{n} \left[ {s^ {n-\zeta } e^{-\mu s} }\right] \nonumber \\= & {} L_n^{(n-\zeta )}(s), \end{aligned}$$
(20)

where \(L_n^{(n-\zeta )}(s)\) is the associated Laguerre polynomial. On the other hand, the other part of the solution is easily obtained from (11) as

$$\begin{aligned} \phi _n(s)= & {} \exp \left\{ \int \left( {\frac{1-\zeta -\nu }{2s}}-\mu \right) \mathrm{d}s \right\} ,\nonumber \\= & {} \text{ Const }\quad s^{-\frac{1}{2}(\zeta +\nu -1)} e^{-\mu s}. \end{aligned}$$
(21)

By multiplying the two parts, the final solution yields

$$\begin{aligned} \psi _n (x) = N \exp \left\{ {(\zeta +\nu -1)ax/2-\mu e^{-ax}}\right\} L_n^{(n-\zeta )}(e^{-ax}), \end{aligned}$$
(22)

where N is the normalization constant. The quantization condition (8) becomes \(\frac{1}{2} (3-\nu +\zeta )-1=n\), or explicitly

$$\begin{aligned} \lambda =an(\beta -an\sigma ^2), \quad n=0, 1, 2,... \end{aligned}$$
(23)
Fig. 1
figure 1

Variation of the probability distribution P(xt) for \(F(x)=\alpha e^{-ax}-\beta \) and \(D(x)=\sigma ^2\) in terms of x for \(a=1\), \(\alpha =0.37\), \(\beta =0.4\), and \(\sigma =0.16\)

The behavior of the probability distribution of P(xt) is illustrated in Fig. 1 in terms of x. Accordingly, the figure exhibits a Gaussian form, and its values decrease with increasing time. The main features of this solution are associated with pair functions (12), which is corresponding to Morse potential in the framework of non-relativistic quantum mechanics [3]. This potential has various applications, such as a description of, atomic interactions in physics [16], structure of the DNA in genetics [17], elastic and fracture behaviors in engineering mechanics [18], etc. It is also worthwhile to mention that Eq. 14 has already been solved based on the formal analogy with the Schrodinger equation using the supersymmetry approach [3], which confirms our results.

  • Case 2

As a second example, we consider the following set

$$\begin{aligned} F(x)=\frac{\alpha e^{-2ax}}{1-\beta e^{-2ax}}+\gamma , \quad D(x)={\sigma }^2. \end{aligned}$$
(24)

For this choice, Eq. 2 can be rewritten as

$$\begin{aligned}&\psi ^{\prime \prime }(x)-\frac{1}{\sigma ^2}\left\{ \frac{\alpha e^{-2ax}}{ (1-\beta e^{-2ax})}+\gamma \right\} \psi ^{\prime }(x)\nonumber \\&\quad +\frac{1}{\sigma ^2}\left\{ \frac{2a \alpha e^{-2ax}}{ (1-\beta e^{-2ax})^2}+\lambda \right\} \psi (x)=0. \end{aligned}$$
(25)

It can be easily shown that, by introducing the auxiliary variable \(s=e^{-2ax}\), this equation is transformed into

$$\begin{aligned}&\psi ^{\prime \prime }(s)+\left\{ \frac{(\alpha -\beta \gamma -2 a \beta \sigma ^2) s+\gamma +2 a \sigma ^2}{2 a \sigma ^2[ s(1-s)]}\right\} \psi ^{\prime }(s)\nonumber \\&\quad +\left\{ \frac{\lambda \beta ^2 s^2+2(a \alpha - \lambda \beta )s +\lambda }{4a^2 \sigma ^2[ s(1-s)]^2}\right\} \psi (s)=0. \end{aligned}$$
(26)

Now, by comparing the last equation with Eq. 3, one obtains

$$\begin{aligned} \widetilde{\tau }(s)= & {} \frac{{(\alpha -\beta \gamma -2 a \beta \sigma ^2) s+\gamma +2 a \sigma ^2}}{2a \sigma ^2},\nonumber \\ \widetilde{\sigma }(s)= & {} \frac{ {\lambda \beta ^2 s^2+2(a \alpha - \lambda \beta )s +\lambda }}{4a^2\sigma ^2}\nonumber \\ \Gamma (s)= & {} s(1-s). \end{aligned}$$
(27)

By inserting them into relation (7) we get \(\pi \) function as follows

$$\begin{aligned} \pi= & {} \pm \sqrt{ [k-K]s+\left[ -\beta \left( k+\frac{\beta \gamma ^2}{16a^2 \sigma ^4}\right) +\frac{1}{4}\left( \beta +\frac{\alpha -\beta \gamma }{2a \sigma ^2}\right) \right] s^2} \nonumber \\&-\quad \frac{1}{2} \left[ \frac{2a\beta \sigma ^2+\alpha -\beta \gamma }{2a\sigma ^2} s+\frac{\gamma }{2 a \sigma ^2}\right] \end{aligned}$$
(28)

where \(K=\frac{4a\alpha \sigma ^2-\beta \gamma ^2 +\gamma (2a\beta \sigma ^2+\alpha -\beta \gamma )}{8a^2 \sigma ^4}\), and we have assumed \( {\gamma ^2}={4\lambda \sigma ^2}\) for simplicity. By setting the discriminant of the square root equal to zero, an appropriate choice yields

$$\begin{aligned}&\pi =-\frac{\gamma }{4a\sigma ^2}-\frac{2a\beta \sigma ^2+\alpha -\beta \gamma \pm \zeta }{4a\sigma ^2}s \quad \text{ for }\quad k=\nonumber \\&\quad -\frac{\alpha \gamma +2a\beta \gamma \sigma ^2-4a\alpha \sigma ^2}{8a^2 \sigma ^4}, \end{aligned}$$
(29)

where \(\zeta =\sqrt{(2a\beta \sigma ^2+\alpha -\beta \gamma )^2+\beta [2\alpha \gamma +4a\beta \gamma \sigma ^2-\beta \gamma ^2-8a\alpha \sigma ^2]} \). Since the derivative of the \(\tau \) function in relation (6) should be negative; one must select a positive sign for \(\zeta \) in the last relation of \(\pi \). Accordingly, \(\tau (s)\) is

$$\begin{aligned} \tau (s)=-\left( 2\beta +\frac{\zeta }{2a\sigma ^2}\right) s+1. \end{aligned}$$
(30)

Now, by simple manipulation, integration of (10) yields

$$\begin{aligned} \rho (s)= & {} \exp \left\{ -\frac{\zeta }{2a\sigma ^2} \int {\frac{\mathrm{d}s}{1-\beta s}} \right\} ,\nonumber \\= & {} \text{ Const } ({1-\beta s})^{\frac{\zeta }{2a\beta \sigma ^2}}. \end{aligned}$$
(31)

By substituting this into the Rodrigues relation (9) we have

$$\begin{aligned} y_n(s)= & {} B_n(1-\beta s)^{-{\frac{\zeta }{2a\beta \sigma ^2}}}\left( \frac{\mathrm{d}}{\mathrm{d}s}\right) ^n\left[ s^n (1-\beta s)^{n+{\frac{\zeta }{2a\beta \sigma ^2}}}\right] ,\nonumber \\= & {} B_n P_n^{\left( \frac{\zeta }{2a\beta \sigma ^2},0\right) } (2\beta s-1) \end{aligned}$$
(32)

where \(P_n^{(l,m)}(s)\) denotes the generalized Jacobi-polynomial. The other part of the wave function in relation (11) simply becomes

$$\begin{aligned} \phi _n(s)= & {} \exp \left\{ -\frac{1}{4a \sigma ^2} \int {\frac{\gamma + [\alpha +2a\beta \sigma ^2+\zeta -\beta \gamma ]s }{s(1-\beta s)}} \mathrm{d}s \right\} ,\\= & {} \text{ Const }\quad s^{-\frac{\gamma }{4a \sigma ^2}} (1-\beta s)^{\frac{\alpha +\zeta }{4a\beta \sigma ^2}+1/2}. \end{aligned}$$

Finally, by multiplying the two parts, the total function is given by

$$\begin{aligned} \psi _n(x)= & {} N \,e^{\frac{\gamma x}{2 \sigma ^2}} (1-\beta e^{-2ax})^{\frac{\alpha +\zeta }{4a\beta \sigma ^2}+1/2 }\nonumber \\&P_n^{\left( \frac{\zeta }{2a\beta \sigma ^2},0\right) } (2\beta e^{-2ax}-1) \end{aligned}$$
(33)

where N is the normalization constant. Now, from the relation (8) we calculate the quantization condition as

$$\begin{aligned}&-\frac{\alpha \gamma +2a\beta \gamma \sigma ^2-4a\alpha \sigma ^2}{8a^2 \sigma ^4}\\&\quad -\frac{\zeta +\alpha -\beta \gamma +2a\beta \sigma ^2}{4a\sigma ^2}=n\left( \frac{\zeta +4a\beta \sigma ^2}{2a\sigma ^2}\right) \end{aligned}$$

or explicitly

$$\begin{aligned} \lambda= & {} \frac{\gamma ^2}{4\sigma ^2}=4[(n+1)\alpha -2a\beta \sigma ^2(3n+1)]^2a^2\sigma ^2/\alpha ^2,\nonumber \\ \quad&n=0, 1, 2,.... \end{aligned}$$
Fig. 2
figure 2

Variation of the probability distribution P(xt) for \(F(x)=\frac{\alpha e^{-2ax}}{1-\beta e^{-2ax}}+\gamma \) and \(D(x)={\sigma }^2\) in terms of x for \(a=0.5\), \(\alpha =0.3\), \(\beta =0.1\), \(\sigma =0.4\), and \(\gamma =-1\)

Figure 2 shows the variations of the probability distribution of P(xt) in terms of x. The distribution spreads to the right side as time goes on, and the probability decreases before \(x\approx 180\), and afterward it grows slowly. This solution of the FPE, which is associated with pair functions (24), is corresponding to Hulthen potential in the Schrodinger equation [4]. The exact solution of this equation has been obtained by Anjos et al. using the supersymmetric quantum mechanics approach [4], which is in agreement with our result. It is worthwhile to mention that Hulthen is one of the essential short-range potentials with interesting applications in nuclear, solid-state, and atomic physics [19, 20]. Furthermore, in the biological models, this potential is also used to describe the cellular differentiation process, dynamics of tumor growth, and cancer therapy [21,22,23].

  • Case 3

As a last example, let us set a logarithmic drift function with a quadratic diffusion as follows

$$\begin{aligned} F(x)=\alpha x-\beta x Ln x , \quad D(x)={\sigma }^2 x^2. \end{aligned}$$
(34)

Substituting them into Eq. 2 leads to

$$\begin{aligned}&\psi ^{\prime \prime }(x)+\left\{ \frac{4{\sigma }^2-\alpha +\beta Ln x}{{\sigma }^2 x} \right\} \psi ^{\prime }(x)\nonumber \\&\quad +\left\{ \frac{2{\sigma }^2 + \lambda +\beta -\alpha +\beta Ln x}{ {\sigma }^2 x^2 }\right\} \psi (x)=0. \end{aligned}$$
(35)

By applying the transformation \(s=Ln x\), we find the following simple form

$$\begin{aligned} \psi ^{\prime \prime }(s)+\{\mu s+\nu \}\psi ^{\prime }(s)+\{\mu s+\eta \}\psi (s)=0, \end{aligned}$$
(36)

where \(\mu =\beta {\sigma }^{-2}\), \(\nu =3-\alpha {\sigma }^{-2}\) and \(\eta = 2 +(\lambda +\beta -\alpha ) {\sigma }^{-2}\). By comparing this equation with Eq. 3 we have

$$\begin{aligned} \widetilde{\tau }(s)={\mu s+\nu }, \quad \widetilde{\sigma }(s)= {\mu s+\eta } \quad \Gamma (s)=1, \end{aligned}$$
(37)

and the corresponding \(\pi \) function becomes

$$\begin{aligned} \pi (s)=\left\{ \begin{array}{ll} -{\mu s-\nu }+1\quad &{}\quad \text{ for } \,k=\frac{ \lambda +\beta }{\sigma ^2} \\ -1\quad &{}\quad \text{ for } \,k=\frac{ \lambda +\beta }{\sigma ^2}. \end{array}\right. \end{aligned}$$
(38)

Here, we assume \(\beta >0\) and \(\alpha >\sigma ^2\) without loss of generality. Subsequently, from the relation (6) one should take \(\tau (s)=-\mu s-\nu +2 \), to ensure that \(\tau (s)\) has a negative derivative for \(\mu >0\). By inserting it into relation (10), the weight function is given by

$$\begin{aligned} \rho (s)= \text{ Const }\,e^{-\mu s^2/2+(2-\nu ) s}. \end{aligned}$$
(39)

Further, polynomial solution \(y_n(s)\) is obtained from the Rodrigues relation (9) as

$$\begin{aligned} y_n(s)= & {} B_{n}e^{\mu s^2/2-(2-\nu )s}\left( \frac{\mathrm{d}}{\mathrm{d}s}\right) ^{n}e^{-\mu s^2/2+(2-\nu )s},\\= & {} H_n\left( \sqrt{\mu /2}s+\frac{\nu -2}{\sqrt{2\mu }}\right) . \end{aligned}$$

which is the Hermit function. On the other hand, the other part of the solution is easily obtained from (11) as

$$\begin{aligned} \phi _n(s)=\text{ Const }\, e^{-\mu s^2/2 +(1-\nu )s}. \end{aligned}$$
(40)

Finally, by multiplying the two parts, the total function \(\psi _n(x)\) is obtained as follows

$$\begin{aligned} \psi _n(x)=N e^{-\frac{\mu }{2}\left( Ln x +\frac{\nu -1}{\mu }\right) ^2} H_n\left( \sqrt{\mu /2}Ln x+\frac{\nu -2}{\sqrt{2\mu }}\right) , \end{aligned}$$
(41)

where N is the normalization constant. Furthermore, the relation (8) leads to the quantization condition as

$$\begin{aligned} \lambda =n\beta , \quad n=0, 1, 2,... \end{aligned}$$
Fig. 3
figure 3

Variation of the probability distribution P(xt) for \(F(x)=\alpha x-\beta x Ln x\) and \(D(x)={\sigma }^2 x^2\) in terms of x for \(\alpha =8\), \(\beta =2.5\), and \(\sigma =1.8\)

Figure 3 shows the dynamics of the probability distribution of P(xt) in terms of x. According to this figure for three different time values, the probability grows sharply at the beginning, and then drops to small values, and eventually disappears. It shifts to the right side, by increasing the time. This model is usually used to predict the evolution of various stochastic biological phenomena in the literature [3, 10, 24]. For instance, Polotto et al. used this pattern to consider the evolution of the probability density function of the tumor growth by using the finite element method [3]. Similarly, Albano et al. simulated the effects of a time-dependent therapy for a parathyroid tumor, based on the Ornstein–Uhlenbeck process [10]. These works confirm our results well.

5 Conclusion

In this work, we proposed a new and powerful approach to solve FPE, known as the Nikiforov–Uvarov mathematical method, for a given pair of drift and diffusion coefficients. By using this formalism, the probability distribution was found analytically for three examples, and their time-evolution were studied at different times. In the first two cases, we solved FPE for exponential form drift forces with constant diffusions, that led to the associated Laguerre (22) and the generalized Jacobi (33) polynomials. These functions correspond to Morse and Hulthen potentials, respectively, based on a formal analogy between FPE and the Schrodinger equation. In the third case, it was shown that a logarithmic force with the quadratic diffusion model provided the Hermit-polynomial, that was used to investigate the effects of time-dependent therapy of tumor growth based on the Gompertz law of growth [10, 24]. The comparison between the three studied cases indicates that they display different behaviors. Specifically, in the Morse potential, the probability distribution exhibits almost a Gaussian form, without spreading, and its values decrease with increasing time. While, in Hulthen potential, the distribution propagates to the right, and as time increases, it reduces before \(x\approx 180\), and then rises gradually. In logarithmic force, the probability grows sharply at the beginning, and then drops to small values, and eventually disappears. By increasing the time, it shifts to the right side. Our results in these examples, were well consistent with the usual drift-diffusion dynamics in stochastic phenomena, and in good agreement with other reports. Finally, we demonstrated that the NU method is an efficient mathematical approach to obtain analytical solutions of FPE as well as the corresponding eigenvalues. Actually, the efficiency of this method depends on finding an appropriate coordinate transformation, which transforms FPE to the differential equation of type (3). However, further investigation is needed to develop a systematic way to obtain such transformation for a general type of FPE.