Volume 2025, Issue 1 9705701
Research Article
Open Access

Series and Rational Solutions of the Second Kind Painlevé Equations by Using the Quantum Pseudospectral Method

Saeid Abbasbandy

Corresponding Author

Saeid Abbasbandy

Department of Applied Mathematics , Faculty of Science , Imam Khomeini International University , Qazvin , Iran , ikiu.ac.ir

Search for more papers by this author
First published: 07 May 2025
Academic Editor: Shikha Binwal

Abstract

The Painlevé equations and their series and rational solutions are essential in applied, pure mathematics and theoretical physics. Recently, quantum algorithms have helped to implement numerical algorithms more easily by performing linear algebra in our working. This article uses a hybrid of quantum computing schemes and spectral methods for the second Painlevé equation. Two approaches are investigated: first, a series solution is obtained, and then the rational solutions. The successive linearization method is used for the linearization of the Painlevé-II equation. In the computer implementation, the solution value of the Painlevé-II equation is considered as a final quantum state. In each iterative scheme, by adding the current quantum state, we can compute the final quantum state. We need different quantum models for each approach, series, and rational solutions. Numerical examples illustrate the efficiency of this method, and reasonable solutions are obtained for a wide range of parameter values.

1. Introduction

In the years 1895–1910, Painlevé and Gambier investigated the famous nonlinear second-order differential equation:
(1)
where R is a holomorphic function in t and rational in w and w. It can be proved that this equation has the Painlevé property, and it means that the only moveable singularities are poles. Painlevé explained the solutions of (1) in terms of classical special functions or elliptic functions, except in six cases which are irreducible and required new special functions to obtain the solutions [1]. In this work, the second kind of the Painlevé equation is
(2)
where α is a known parameter considered. This equation can be obtained from the Korteweg–de Vries (KdV) equation and has many applications in physics, describing the electric field in a semiconductor, plasma physics, statistical mechanics, quantum gravity, general relativity, nonlinear waves, fiber optics, and nonlinear optics [24]. In recent years, many researchers have tried to solve this equation through many methods. For example, solving (2) with the initial conditions,
(3)
by the analytic continuation method [5], the Adomian’s decomposition method [6], the homotopy analysis method (HAM) [7], the Sinc-collocation method, the variational iteration method (VIM) [8], the optimal homotopy asymptotic method (OHAM) [9], and the variational auxiliary parameter (VAP) [10].

Spectral methods have an important role in solving engineering problems such as differential equations, with efficient and accurate numerical solutions (see [11, 12]) and many other books in this topic. By the combination of spectral methods and a mesh-free approach, many problems can be solved [13, 14]. Very recently, Taema and Youssri have developed a spectral collocation method by using third-kind Chebyshev polynomials to solve a system of two nonlinear integrodifferential equations that arise in biological modeling [15]. Youssri and Atta have proposed a novel spectral algorithm utilizing Fibonacci polynomials to numerically solve both linear and nonlinear integrodifferential equations with fractional-order derivatives [16].

In this article, a quantum pseudospectral method (QPSM) for the nonlinear second kind Painlevé equation (1) is considered; very recently, this method has been used for solving the general Lane–Emden type equations [17]. The author believes that it is the first attempt to find the series and rational solution for the Painlevé-II equation with the quantum pseudo-spectral method. Two approaches are studied. In the first attempt, the governing equation (2) for t ∈ [0, 1] with the initial conditions (2) is considered. In the second attempt, the rational solutions of the second kind Painlevé equation are considered. The QPSM by using the quantum linear system algorithm (QLSA) [18] is designed for linear initial value problems (IVP) [19]. The quantum algorithm in [19] is based on a pseudo-spectral method for time-dependent IVP with the polynomial complexity.

Suppose the unknown function w(.) for i ∈ [M] = {1, 2, …, M} has the following expression:
(4)
with the unknown Wi(.) and wk(.) as the successive approximation solutions that are obtained recursively by applying the QPSM on the linearized form of equation (2) after substituting (4), where M is the number of iterations. By simple calculating, we have
(5)
Let w0(.) be an initial approximation that satisfies the initial conditions in (3), for example
(6)
Also, we assumed that limiWi = 0. Then, for i ∈ [M], wi(.) is computed by solving the linearization form of (5) iteratively. It means the linear IVP
(7)
where
(8)
with should be solved, where M is the order of the QPSM. Similar to [17], the IVP (6) converts to a system of ordinary differential equations (ODEs):
(9)
with the conditions zi,0(0) = zi,1(0) = 0, zi,0 = wi, and . By (9), the coefficient matrix is defined as follows:
(10)
Now, we want to use the pseudospectral method by using the Chebyshev polynomials [11, 20]. By applying the truncated Chebyshev polynomial approximation for (7), we have for v ∈ {0, 1}
(11)
for any and also for s ∈ [−1, 1],
(12)
In (11), s ∈ [−1, 1] and hence later we rescale the range of the independent variable in (2) to [−1, 1]. We use the Chebyshev–Gauss–Lobatto quadrature nodes, sk = cos((kπ)/n) for k ∈ [n + 1]0 = {0, 1, …, n}, to solve the linear system obtained from (9). For calculating ci,v,l, let us consider in
(13)
with
(14)
and the coefficients of the upper triangular matrix Dn are [12]
(15)
and
(16)
Hence, by (9) and (11) for k ∈ [n + 1]0 and i ∈ [M], we have
(17)
In our approach, the linear system (17) is solved by the QLSA. Now, to improve the accuracy of the domain of (2), it is divided into m subintervals
(18)
with Ψ0 = 0, Ψm = 1. Each subinterval [Ψq, Ψq+1] for q ∈ [m]0 rescaled onto [−1, 1]. Let Δq = 1/m = Ψq+1 − Ψq. Hence, t ∈ [0, 1] converts to s ∈ [−1, 1] with
(19)
and hence,
(20)
After rescaling (7), then (9) converts to
(21)
where
(22)
and C = (ds/dt) and yi,q,v(s) = zi,v(t) = zi,v(IKq(s)) for t ∈ [Ψq, Ψq+1], v ∈ {0, 1}, q ∈ [m]0, and i ∈ [M]. By (21), the coefficient matrix is defined as follows:
(23)

2. QPSM

For a better understanding of quantum computing symbols, see [21]. As discussed in the previous section, we should solve a linear system like
(24)
in each iteration by the QLSA presented in [19] from the linear equation (21). The vector
(25)
describes the solution by
(26)
where ci,ρ,kq+1) is the coefficient of Chebyshev expansion of yi,q,ρ(Kqq+1)), xiρ is the last state yi,m−1,ρ(Kqm)), and p is a padding trick [18, 22]. We require as the output at t = 1 because w0(1) = 1 + α/2.
The elements of Li and Bi are computed according to the QPSM by the flowchart described in Figure 1, [17]. It can be proved that for the linear system (21), we have
(27)
Details are in the caption following the image
Flowchart steps in the quantum pseudospectral method.

In continuation, the total error in this method is explained. A part of the error is due to the linearization of equation (5). Remarks 1 and 3 explain this. Another part of the error is related to the pseudo-spectral method (see Lemma 1).

Remark 1. The error generated in (7) is due to

(28)
and the linearization error is bounded by . Hence, for a sufficiently large M, we should have Wi⟶0 in the convergence case.

Remark 2. With respect to (5) and (6), obviously error in (28) in the ith iteration is

(29)

Lemma 1 (see [23].)For the linear system Li|Xi〉 = |Bi〉 in (24), let yi and be the approximate and exact ODE solutions, respectively, in each iteration. Then, for sufficiently large n, at the time T, the L2 norm of the error satisfies

(30)

3. Results and Discussion

Some examples with different α in (2) for showing accuracy and comparing with other methods are considered. In all examples, we put p = 1, and Python 3.12.4 is used for programming. Algorithm 1 shows the description of this method.

In the first attempt, we consider α = 1 in the second Painlevé equation (2). Figure 2(a) shows results of the QPSM for n = m = 20 with M = 5, and the right figure shows the relative absolute error of the QPSM concerning the Runge–Kutta method (RKM) [24] with atol = 0.00000001 (absolute tolerances). Table 1 shows a comparison between the QPSM, the RKM, the Sinc-collocation method [8], the VIM [25], the OHAM [9], the VAP [10], and the Legendre τ-decomposition method (LTM) [6].

Details are in the caption following the image
The results for the series solution of the second Painlevé equation with α = 1 and M = 5, m = n = 20.
Table 1. Comparison of the values of w(t) by different methods at α = 1.
t QPSM RKM Sinc VIM OHAM VAP LTM
0.1 1.01524354 1.01524596 1.015243802 1.015243537 1.01697332 1.015 1.01525769
0.2 1.06261465 1.06260244 1.062615730 1.062614651 1.06804971 1.063 1.06259868
0.3 1.14637603 1.14639773 1.146377520 1.146376034 1.15463133 1.146 1.14638761
0.4 1.27415229 1.27538325 1.274150163 1.274152278 1.28209418 1.275 1.27413995
0.5 1.45921345 1.45945595 1.459216534 1.459213319 1.46396018 1.468 1.45923019
0.6 1.72537555 1.72434098 1.725383228 1.725374098 1.72697690 1.743 1.72535520
0.7 2.11844345 2.11843013 2.118441811 2.118431139 2.11915382 2.156 2.11846104
0.8 2.73693513 2.73674274 2.736942571 2.736846427 2.73683163 2.806 2.73693516
0.9 3.84437392 3.83519858 3.834408328 3.833780746 3.83251635 3.934 3.83437316
1.0 6.30892109 6.31139164 6.259
    Algorithm 1: QPSM algorithm for finding the series solution of the Painlevé-II equation.
  • Input:M = 5, n = m = 20, p = 1 and initial approximation w0(t) = (α/2)t2 + 1.

  • Output:w(1)

  • 1.

    y = yInitial = w0(1)

  • 2.

    fori⟵1 to Mdo

  • 3.

     Compute L1, L2, L3, L4, L5 in Section 2 // for computing Li in (24)

  • 4.

     Compute Bi, right-hand side of (24)

  • 5.

     Compute , the solution of (24)

  • 6.

     Extract xi0 from Xi // (2m(n + 1) + 1)th vector component

  • 7.

    yy + xi0

  • 8.

    returny

Figure 3(a) shows results of the QPSM for α = 2 and n = m = 20 with M = 5, and the right figure shows the relative absolute error of the QPSM concerning the RKM [24] with atol = 0.00000001 (absolute tolerances). Table 2 shows a comparison between the QPSM, the RKM, Adomian’s decomposition method (ADM) [7], theLTM [6], the Sinc-collocation method, and VIM coupled with Padé approximation (VIPA) [8]. Figure 4 show the residual error in first partition for M = 5 and n = m = 20. The results show the efficiency of the QPSM.

Details are in the caption following the image
The results for the series solution of the second Painlevé equation with α = 2 and M = 5, m = n = 20.
Table 2. Comparison of the values of w(t) by different methods at α = 2.
t QPSM RKM ADM LTM Sinc VIPA
0.1 1.02026919 1.02027074 1.020269194 1.021047331 1.020269516 1.020269194
0.2 1.08304976 1.08303857 1.083049760 1.082116225 1.083050684 1.083049760
0.3 1.19379025 1.19410929 1.193790245 1.194531584 1.193791418 1.193790245
0.4 1.36282365 1.36443616 1.362823651 1.361992274 1.362825244 1.362823638
0.5 1.60929104 1.60878420 1.609291039 1.610416473 1.609294013 1.609290816
0.6 1.97019075 1.96918366 1.970190748 1.968817717 1.970195495 1.970188429
0.7 2.52374240 2.52393387 2.523742462 2.525021861 2.523748780 2.523724908
0.8 3.46221940 3.46346053 3.462223434 3.461891692 3.462235205 3.462114640
0.9 5.40216795 5.40317736 5.402303840 5.400956596 5.402575104 5.401914998
1.0 11.84754955 11.92435805
Details are in the caption following the image
The residual error of the second Painlevé equation with M = 5, m = n = 20, and α = 1 (a) and α = 5 (b).

4. Approximating the Rational Solutions

As we said before, the second Painlevé equation (2) has many interesting properties such as the Painlevé property, which means that the only moveable singularities are poles [1], and by the Lax pair, we can solve the Cauchy problem for this equation [26]. It can be proved that this equation has exactly one rational solution if and only if . Some rational solutions are listed in Table 3, [1].

Table 3. List of rational solutions of the second Painlevé equation (2).
α w(t)
0 0
±1 ∓1/t
±2 ±(4 − 2t3)/(4t + t4)
±3 ∓(3t2(160 + 8t3 + t6))/(−320 + 24t6 + t9)
±4 ∓(4(−22400 − 112000t3 − 22400t6 + 1000t9 + 50t12 + t15))/(t(−80 + 20t3 + t6)(11200 + 60t6 + t9))

Remark 3 (see [1].)Let w(.) be the rational solution of the second Painlevé equation (2) with α ≠ 0 and n+, n be the number of poles with residue +1 and −1, respectively. Then, n+ = α(α − 1)/2 and n = α(α + 1)/2, and hence, n+ + n = α2. Moreover, there exists a rational function such as F(.) such that tw(t) = F(t3).

Remark 4 (see [3].)By Bäcklund transformation and for α ≠ ±1/2, we have

(31)
where w(t, α) is the solution of (2).

In continuation, we try to show the power of the QPSM to find the rational solutions of the second Painlevé equation (2) with α ≠ 0. Because of Remarks 3 and 4, we consider the Painlevé equation (2) for a region that does not contain origin, like t ∈ [1, 2]. Any rational solution w(t) of (2) can be written as the quotient of two entire functions, like w(t) = (v(t)/u(t)), and this representation is not unique. In this case, the entire functions v(.) and u(.) should satisfy [1],
(32)

Now, we have a system of nonlinear ODEs with two equations and two unknown functions v(.) and u(.), and in continuation, these functions are obtained by the QPSM.

Suppose the unknown functions v(.) and u(.) can be expanded as
(33)
with the unknowns Vi(.) and Ui(.) and vk(.) and uk(.) as the successive approximation solutions that are obtained recursively by applying the QPSM on the linearized form of equation (32) after substituting (33). Hence, we have
(34)
It can be shown that the system (34) linearized as
(35)
After constructing subintervals and rescaling (like (21)), the system (35) converts to
(36)
where
(37)
and like before C = (ds/dt), yi,q,ρ(s) = ui,ρ(t) = ui,ρ(IKq(s)) for ρ ∈ {0, 1}, yi,q,ρ(s) = vi,ρ(t) = vi,ρ(IKq(s)) for ρ ∈ {2, 3}, t ∈ [Ψq, Ψq+1], q ∈ [m]0, and i ∈ [M].

In continuation, we test the QPSM for (36) with α = 1, and with the help of Remarks 3 and 4, we take v0(t) = −1 and u0(t) = (1 + t2)/2. Figure 5(a) shows QPSM’s results for α = 1 and n = m = 20, with M = 5, and the right figure shows the absolute error of the QPSM concerning Table 3. Figure 6 show the results of the QPSM for α = 2 and m = n = 20, with 5 iterations (M = 5). In two examples, we see the efficiency of the QPSM.

Details are in the caption following the image
The results for the rational solution of the second Painlevé equation with α = 1 and M = 5, m = n = 20.
Details are in the caption following the image
The results for the rational solution of the second Painlevé equation with α = 2 and M = 5, m = n = 20.

5. Conclusions

One of the main advantages of the QSPM is its applicability to linear and nonlinear ODEs. The QPSM can be implemented on linear ODEs very easily, but nonlinear ODEs are not straightforward. Finding a suitable linearized form of nonlinear ODEs and finding the initial guess are not easy. This article proposes a novel approach based on quantum computing to solve the second Painlevé equation. These models have high nonlinearity. Two approaches are investigated: first, a series solution is obtained, and then the rational solutions. The nonlinear equations are linearized using the successive linearization method. In all examples, the comparisons with numerical and semianalytical methods show the efficiency of the results. The accurate results are obtained by choosing suitable parameter values. Given the capabilities of quantum algorithms, their implementation on fractional differential equations is not out of the question and could yield interesting results in this field in the future.

Conflicts of Interest

The author declares no conflicts of interest.

Funding

No funding was received for this research.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

    The full text of this article hosted at iucr.org is unavailable due to technical difficulties.