A mixed Laguerre-Legendre spectral collocation schemes is constructed for initial-boundary value problem of the nonlinear Fokker-Planck nonhomogeneous equations and the linear Fokker-Planck homogeneous equation by using the Laguerre interpolation functions in velocity, and the Legendre interpolation functions in time, which is a bivariate Lagrange interpolation approximation function based on Legendre and Laguerre Gauss quadrature notes. The original problem is changed into a matrix equation and solved by Newton iteration. Numerical experiments show that the algorithm has high accuracy and efficiency.
The nonlinear Fokker Planck equation is a class of partial differential equations that are commonly employed in diverse fields such as physics, mathematics, engineering, and other related fields, as exemplified in Reference.1 It plays a key role in describing many important processes in statistical mechanics, such as diffusion, transport, radiative transfer and fusion. However, due to its high-order, nonlinear, and coupling characteristics, solving the Fokker-Planck equation has always been a challenging problem. In the past three decades, with the rapid development of computer technology, the spectral method has become an important method for numerical simulation of some classical mathematical and physical equations, such as the Burgers equation, the KdV equation, and the Klein-Gordon equation (see, e.g. Refs.2–12). Therefore, it is also interesting to consider the initial-boundary value problem using spectral methods. Then the considered problem is as follows:
where represent the velocity of the particles, the density of probability, respectively.
Some authors have studied the initial value problem of the above equation (see Refs.13–15), but the work on the mixed problem has not been seen yet. On the other hand, in the aforementioned literature, the difference scheme is usually used in the time t direction, which leads to a serious imbalance between the nodes used in the velocity direction and the time direction, which greatly increases the work. To balance the nodes in velocity or space and time, some authors have considered time-space spectral collocation methods (see Refs.16–18). The pseudo-spectral method is more desirable in practical calculations because it is easier to implement and saves the work of dealing with nonlinear terms.4 The spectral collocation method is an effective technique for solving nonlinear equations.19 Since the nonlinear Fokker Planck equation contains a variable coefficient term , it is more suitable to numerically solve by binary spectral collocation method.
In this article, a mixed Laguerre-Legendre spectral collection scheme is proposed. The Laguerre spectral collocation method is used in velocity direction, which uses Laguerre interpolation functions based on Laguerre Gaussian quadrature nodes, and the Legendre spectral collocation method is used in time direction, which uses the Lagrange interpolation polynomial based on Legendre Gaussian quadrature points. By substituting binary interpolation polynomials into the original equation, a nonlinear systems is obtained, which can be solved with the Newton iteration.
Lagrange interpolation polynomials and its differential matrix
Lagrange basis polynomials in time and its differential matrix
The Legendre polynomial of degree m is (cf. Refs.5,9)
It is the th eigenfunction of the singular Sturm-Liouville problem
Related to th eigenvalue . Let , and be the roots of . Take . The Lagrange basis polynomials based on the Legendre-Gauss-Lobatto nodes are as follows:
Equivalently,
Let be the set of all polynomials of degree at most M, for ,
Which is the Lagrange interpolation polynomial of . Calculating the -th derivative of the above equation and taking , we get that
It is the th eigenfunction of the singular Sturm-Liouville problem
Related to th eigenvalue
In order to match the asymptotic behaviors of the exact solutions as , we introduce the new interpolation function functions (cf. Refs. 15,20). Let be a positive constant and
Let be the roots of the equation: , the corresponding Lagrange basis functions are (cf. Ref. 20)
Let be the set of all polynomials of degree at most N, and
For any , the Lagrange interpolation function can be written as
Calculating the -th derivative of the above equation and taking , we get that
Let
The entries of the matrix are determined by (cf. Ref. 20)
where stands for n order identity matrix, means the times of Kronecker. Let
the Jacobi matrix of Newton iteration is as follows:
Where represents a diagonal matrix generated by the elements of vector Y. The Newton iteration scheme is as follows:
In actual computation, we take
and the end condition of iteration:
We choose an appropriate right term in equation (1) with so that equation (1) has the following exact solution (cf. Ref. 13)
with initial value conditions and boundary conditions ( is a positive constant)
We use the maximum error below to measure numerical error
In Figure 1, the errors versus N of the scheme (13) with , in (15) and different in (10) is plotted. Clearly, the error rapidly decreases with the increase of N and indicates spectral accuracy in the velocity direction. Additionally, by appropriately selecting the value of the proportional factor in the basis function, the error accuracy can be improved. However, how to choose the value of is an open problem.
In Figure 2, the errors versus N of the scheme (13) with in (15) and in (10) is drawn. It indicates that scheme (13) is still effective for solutions with slower decay. When the parameter in (15), the decay of the function is relatively slow as . By appropriately increasing the degree of the velocity direction polynomial, higher accuracy can be achieved.
In Figure 3, the errors versus M of the scheme (13) with , in (15) and in (10) is depicted. It indicates that the algorithm can also achieve spectral accuracy in the time direction.
In Figure 4, the errors versus N of the scheme (13) with , , in (15) and in (10) is presented. It indicates that the algorithm can also achieve spectral accuracy for a long time.
In Figure 5, the CPU time(s) versus N of the scheme (13) with , in (15), in (10), with a CPU consumption of only over 70 s and T = 20, is given, which indicates that the algorithm proposed in this article is efficient.
Compared to references,13–15 it is noteworthy that the suggested algorithm balances the number of nodes used for discretizing the time direction utilizing the difference method with the polynomial degree in the velocity direction implementing the spectral method. Furthermore, there is a suitable proportion of polynomial degrees in both the time and velocity direction. This results in a reduction in the overall number of nodes, making this method advantageous.
Next, let's consider the following linear homogeneous equation (cf. Ref.21):
We expand the numerical solution of equation (16) like equation (10), like equation (13), the algorithm scheme of equation (16) is as follows:
In Figure 6, the errors versus N of the scheme (17) with and in (10) is drawn. It indicates that scheme (17) is effective for solutions of (16) with a homogeneous term at its right side.
In Figure 7, the errors versus M of the scheme (17) with and in (10) is depicted. It indicates that the algorithm can also achieve spectral accuracy in the time direction for a homogeneous term at its right side.
It should be pointed out that for the nonlinear homogeneous Fokker Planck equation (1), finding its exact solution is an open problem. Here, we only consider the binary spectral collocation method for a linear homogeneous Fokker Planck equation (16). In the future, we will report the relevant results of the binary spectral collocation method for the nonlinear homogeneous Fokker Planck equation (1).
Conclusions
In this paper, Legendre Gauss Lobatto node and Laguerre Gauss Radau node are used as collocation points in the time direction and velocity direction respectively. Legendre polynomial and Laguerre polynomial are used to construct the problem of binary Lagrange interpolation polynomial solving the nonlinear and linear Fokker Planck equation, which is time–velocity discretization into a nonlinear matrix equation, then it is solved by changing into nonlinear and linear system respectively. Numerical experiments show that the approximate solution can better approximate the theoretical solution, and the algorithm scheme has spectral accuracy in the time direction and velocity direction respectively. Combined with orthogonal polynomials interpolation technology, the difference error is fundamentally reduced and the accuracy of numerical calculation is improved. Numerical experiments show that the algorithm has a high accuracy for calculating partial differential equations with variable coefficient terms. The algorithm has strong flexibility, and can be optimized by adjusting parameters, as shown in Figure 1; better results can be achieved by changing the value of the scaling factor. The algorithm can also solve other nonlinear or linear problems.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the National Natural Science Foundation of China, Natural Science Foundation of Henan Province of China (grant numbers 12171141, 12271365, 11371123, 202300410156).
ORCID iD
Wang Tianjun
References
1.
AminikhahHJamalianA. A new efficient method for solving the nonlinear Fokker-Planck equation. Sci Iran2012; 19: 1133–1139.
2.
CoulaudOFunaroDKavianO. Laguerre spectral approximation of elliptic problems in exterior domains. Comput Mech Appl Mech Eng1990; 80: 451–458.
3.
BoydJP. The rate of convergence of Hermite function series. Math Comput1980; 35: 1309–1316.
4.
GuoBY. Spectral and pseudospectral methods for unbounded domains. Sci China Math2015; 45: 975–1024.
5.
GuoBY. Spectral methods and their applications. Singapore: World Scientific, 1998.
6.
ShenJTangTWangLL. Spectral methods: Algorithms, analysis and applications. Berlin: Spring-Verlag, 2011.
LiXGuoBY. A Legendre pseudospectral method for solving nonlinear Klein-Gordon equation. J Comput Math1997; 15: 105–126.
10.
LakestaniMDehghanM. Collocation and finite difference-collocation methods for the solution of nonlinear Klein-Gordon equation[J]. Comput Phys Commun2010; 181: 1392–1401.
11.
JieSTaoT. Spectral and high-order methods with applications. Beijing: Science Press, 2006.
12.
GuoBYZhangXY. Spectral method for differential equations of degenerate type on unbounded domains by using generalized Laguerre functions. Appl Numer Math2007; 57: 455–471.
13.
WangTJChaiG. A fully discrete pseudospectral method for the nonlinear Fokker-Planck equations on the whole line[J]. Appl Numer Math2022; 174: 17–33.
14.
ChaiGWangTJ. Generalized Hermite spectral method for nonlinear Fokker-Planck equations on the whole line. J Math Study2018; 51: 177–195.
15.
WangTJ. Composite generalized Laguerre spectral method for nonlinear Fokker-Planck equation on the whole line. Math Methods Appl Sci2017; 40: 1462–1474.
16.
JiaHLWangZQ. Chebyshev—Hermite spectral collocation method for KdV equations. Commun Appl Math Comput2013; 27: 1–8.
17.
LiuLMaHP. Space-time spectral method for parabolic inverse problem with unknown control parameter. J Numer Meth Comput Appl2020; 41: 19–26.
18.
MaYNWangTJLiBB. Space-time spectral collocation method for Korteweg-de Vries equation. Numer Calc Comput Appl2021; 42: 351–360.
19.
TatariMHaghighiM. A generalized Laguerre–Legendre spectral collocation method for solving initial-boundary value problems. Appl Math Model2014; 38: 1351–1364.
20.
WangTJ. Laguerre pseudospectral method for nonlinear heat transfer equation on semi-infinite interval. Commun Appl Math Comput2013; 27: 9–15.
21.
Schulze-HalbergARivasJMGilJJP, et al.Exact solutions of the Fokker–Planck equation from an nth order supersymmetric quantum mechanics approach[J]. Phys Lett A2009; 373: 1610–1615.