WorksMathematics
Hypergeometric solutions to coupled Klein-Gordon equations in cosmology with small-field excursions
Abstract
The Klein-Gordon equation is a second order differential equation that appears in a variety of applications in mathematics, physics and engineering. This equation is often solved using numerical methods, since a general analytical solution is unattainable. However, one can find very useful analytical solutions for some special cases. In cosmology, the Klein-Gordon equation of a field can explain the physics of inflation and has important consequences on understanding the origin and evolution of the universe. An analytical solution to the Klein-Gordon equation in cosmology has been obtained in the small-field excursion approximation, and it turns out that the solution can be written in terms of the confluent hypergeometric limit function. In this work, we derive this result again while showing the details of the calculations and then generalize to the case of two coupled Klein-Gordon equations. We show that the solution of this coupled system can be written in terms of Kummer's hypergeometric limit function while considering minimal assumptions. We carry out a full numerical calculation of the coupled system and compare it to the results from the analytical expressions.
Introduction
Orthogonal polynomials and special functions play a fundamental role in applied mathematics because they provide exact solutions to many differential equations arising in physics and engineering. Classical families such as Legendre, Hermite, and Laguerre polynomials, and Bessel functions appear in problems involving wave propagation, quantum mechanics, electromagnetism, and fluid dynamics.
This study focuses on the Klein-Gordon (KG) equation, which is a second order ordinary differential equation that appears in many applications of mathematics and physics. The KG equation is solved numerically since exact solutions are rare because of the complexity of the underlying equations. In cosmology, the KG equation describes the evolution of a spin zero field (a scalar or pseudoscalar field) which can act as dark matter or dark energy [1, 2, 3]. A full and general analytical solution is not possible because the expanding universe introduces a time-dependent “friction” term and the choice of the potential term can impose different time scales in the equation. However, a full or partial analytical solution is possible for particular potential terms and for small field excursions [4, 5]. In [4], the authors analytically solved the KG equation for early time evolution before the field enters into an oscillatory behavior. The solution turns out to be the confluent hypergeometric limit function .
The importance of these mathematical structures extends beyond the aforementioned KG equations. Orthogonal polynomials and special functions frequently arise in the construction of spectral methods, approximation schemes, and eigenfunction expansions for differential equations. Namely, hypergeometric functions provide a unified framework for studying the behavior of solutions, deriving asymptotic approximations, and identifying relationships among seemingly distinct physical systems.
We begin with a review of confluent hypergeometric functions and their connections to generalized Laguerre polynomials. We then consider the KG equation describing a dark matter scalar field and show that its linearized early-time evolution can be expressed in terms of the confluent hypergeometric limit function . Next, we extend the analysis to a coupled system of dark matter and dark energy fields and demonstrate that the resulting equations can be reduced to Kummer’s differential equation, yielding solutions involving . Finally, we compare the resulting analytical expressions with numerical computations and investigate their behavior across a range of coupling strengths.
The confluent hypergeometric functions
The confluent hypergeometric functions form an important class of special functions and emerge naturally as confluent limits of the generalized hypergeometric functions. Particularly important are the confluent hypergeometric limit function and Kummer’s confluent hypergeometric function of the first kind (see [6] for a review).
Definition and the differential equation
Kummer’s differential equation is
where are fixed parameters. The point is a regular singular point, whereas is an irregular singular point. Equation (2.1) has two linearly independent solutions, one of which is Kummer’s confluent hypergeometric function of the first kind, introduced by Kummer in 1837 [7].
The function is defined by the absolutely convergent power series
where
is the Pochhammer symbol or rising factorial, with . Provided that , the series converges for all finite values of , and hence is an entire function of .
A second confluent hypergeometric function we consider is the confluent hypergeometric limit function
This function may be obtained as a confluent limit of :
The function satisfies the differential equation
Because of its close relationship to Bessel functions, serves as an important link between hypergeometric and Bessel function theory.
Basic properties
The confluent hypergeometric function satisfies
Differentiating term-by-term in the defining series yields the fundamental identity
One of the key identities satisfied by is Kummer’s transformation:
This transformation is frequently used in asymptotic analysis and in the derivation of numerous identities involving confluent hypergeometric functions.
The confluent hypergeometric limit function is closely related to the Bessel function of the first kind. Specifically,
Kummer’s confluent hypergeometric function of the first kind can also be related to the Bessel function of the first kind through
for [8]. Consequently, many properties of Bessel functions can be interpreted as properties of the hypergeometric functions and .
Asymptotics
The asymptotic behavior of confluent hypergeometric functions is considerably richer than that of most elementary functions.
For , Kummer’s function admits the asymptotic expansion
This expression shows that generally grows exponentially as becomes large. The second independent solution of Kummer’s equation (1), usually denoted by and referred to as Tricomi’s function, has the asymptotic behavior
and is therefore of particular interest in boundary-value problems requiring solutions that decay at infinity. For the limit function , asymptotic formulas may be derived from its connection with Bessel functions. In particular,
This behavior resembles the asymptotic growth of modified Bessel functions.
Particular examples
Many elementary and special functions arise as special cases of confluent hypergeometric functions.
The exponential function. When , (2) reduces to
Thus the exponential function itself is a special case of a confluent hypergeometric function.
Bessel functions. Using (6), we write
Hence Bessel functions can also be viewed as special cases of generalized hypergeometric functions.
The error function. The error function admits the representation
which explains the frequent appearance of confluent hypergeometric functions in diffusion theory and probability.
The gamma function. The gamma function is defined as
It can also be written in terms of the confluent hypergeometric function [9]
Laguerre polynomials. One of the most significant polynomial connections to Kummer’s function occurs when
Since
the infinite series terminates and becomes a polynomial of degree . The generalized Laguerre polynomials are defined by
The first few generalized Laguerre polynomials are
and
Substituting and into Kummer’s equation (1) produces the Laguerre differential equation
The generalized Laguerre polynomials form an orthogonal family on with respect to the weight function
satisfying
where is the Kronecker delta.
Applications of Laguerre polynomials. Laguerre polynomials play a central role in mathematical physics. Their most famous application occurs in quantum mechanics, where they appear in the exact solution of the hydrogen atom (e.g. see [10]). After separation of variables in spherical coordinates, the radial wavefunctions are given by
where denotes the Bohr radius and is a normalization constant. Consequently, the discrete energy levels and orbital structures of hydrogen-like atoms are intimately connected with generalized Laguerre polynomials.
In numerical analysis, Laguerre polynomials form the basis of Gauss–Laguerre quadrature, a highly efficient technique for evaluating integrals of the form
Finally, Laguerre polynomials appear in probability theory and statistics (e.g. see [11] and [12]).
Therefore, Laguerre polynomials provide a remarkable connection between confluent hypergeometric functions, orthogonal polynomial theory, quantum mechanics, optics, probability theory, and numerical analysis.
The Klein-Gordon equation in cosmology
We give an application of the confluent hypergeometric function obtained as a solution to the KG equation in cosmology. We begin with a single KG equation and then consider the case of two coupled KG equations representing dark matter and dark energy fields.
The single Klein-Gordon equation for a dark matter field
In this section, we follow closely the implementation of [4]. In their work, the authors rewrite the KG equation in terms of dimensionless quantities and directly show their final result. This section expands on the omitted steps and presents the progression leading to the final result.
The spacetime interval for an isotropic, homogeneous and spatially-flat universe is given by the Friedmann–Lemaître–Robertson–Walker (FLRW) metric
where is the scale factor, denotes the cosmic time and the symbol is the Kronecker delta.
The evolution of the scalar field (here represents dark matter) is described by the Klein-Gordon equation
where a dot denotes a derivative with respect to cosmic time, is the Hubble parameter and the potential is given by
The quantities and are real and positive while is a positive integer. The Hubble parameter can also be expressed as , where is today’s Hubble parameter (a constant) and is a function of the scale factor. In order to solve the KG equation, it is convenient to redefine the variables so that they are dimensionless. If we define , , (here is the Planck mass), and , then the ordinary second order differential equation we have to solve takes the form
where the prime is a derivative with respect to . Based on the new variables, the potential now takes the form
and
So, we have
with during radiation domination and during matter domination. We expand the potential about its initial value :
Taking the derivative of (3.4), we get
where such that so that and higher order terms can be dropped. Now, let us compute the derivatives using (3.2):
From this we can see that
So, we then write
Therefore, the differential equation (3.1) becomes
Setting , and
we finally have
The confluent hypergeometric limit function satisfies the differential equation (4). To bring (19) to the form of (4), define
where and are constants to be determined. Then
and
Substitute these into (19):
Multiply both sides by to get:
For the last term in (22) to have a constant coefficient one must have . We then get
Finally, setting will give
Comparing (23) with (4), we identify
The regular solution of (23) is the confluent hypergeometric limit function (3):
Knowing that , we find
where is a constant of integration to be determined. Restoring , we have
As , approaches , and since , we find that . So, we finally write
Set . Let us expand the confluent hypergeometric limiting function:
Replacing this expression back into (24), we get
which is precisely the result shown in [4].
Coupled Klein-Gordon equations: interacting dark matter and dark energy fields
The preceding section demonstrated that the linearized KG equation for a single dark matter scalar field can be transformed into a differential equation whose regular solution is the confluent hypergeometric limit function . While this provides a useful analytical description of single-field dynamics, many cosmological models allow interactions between different dark-sector components. In particular, coupling dark matter and dark energy through interacting scalar fields can significantly alter the evolution of the Universe. We therefore extend the analysis to a system of coupled KG equations and investigate whether exact analytical solutions can still be obtained using the theory of special functions.
In cosmology, a system of coupled Klein-Gordon equations representing two scalar fields [13, 3, 1, 2, 14, 15] has been used in an attempt to explain the different anomalies observed today. These anomalies represent differences between theory predictions and experimental measurements [16, 17]. It is therefore of interest to consider this system of interacting (coupled) KG equations to better understand the dynamics of the two fields as they evolve with time.
Consider two scalar fields and whose coupled Klein-Gordon equations are given by (in cosmic time):
where the potentials are given by
Again, , , and are real and positive constants.
Theorem 1 (Hypergeometric solution of the coupled Klein–Gordon system). Let and . Then the solution to the coupled Klein–Gordon system (3.16) is
where
with and . Here, and represents the initial values of the fields and .
Proof. We use a source term of the form [18] which implies that the KG equations now become
where is the coupling constant.
For each respective field, we define the following dimensionless quantities:
These changes in variables morph (3.20) into
and (3.21) into
As usual, the primes represent derivatives with respect to the independent variable . We continue by finding the derivatives of the potentials in (3.17) and (3.18),
After an expansion of the potentials around their initial values and , we get
and
Here, and . Now (3.22) and (3.23) become
and
where we have defined the interaction terms as
We define the mass terms
and the new variables
which allows us to cast the differential equations in the forms
and
We then define a complex-valued function , where is the imaginary unit. Under our assumptions , and , multiplying (37) by the imaginary unit and adding to (36) results in
The hypergeometric function of the first kind satisfies (1). We turn (38) into the form of Kummer’s equation, (1), by letting
with , and where , and are constants to be determined. Then
Substituting and into (38) gives
We extract the values for , and such that (39) takes the form of (1). We begin by observing that must vanish, that is,
We choose the negative root of and by setting , we get
Finally, by letting , we arrive at
We can identify from (40) and (1) that
Therefore, the general solution is
where is the Tricomi function (8). Hence
Imposing regularity at the origin eliminates the Tricomi function which blows up when . The function as . Therefore, the regular solution is
where . The two real fields are then
The real constants of integration and can be determined from initial conditions: at , and , so for , we get and for we get . Therefore, the function becomes
and our dark matter and dark energy fields evolve as
where
The theorem above establishes that under certain conditions the coupled dark matter–dark energy system possesses, at early times, an exact analytical solution in terms of Kummer’s confluent hypergeometric function . Having obtained closed-form expressions for the interacting fields, it is natural to investigate their physical behavior in limiting regimes. In cosmological applications, particularly important cases correspond to very weak coupling and very strong coupling, since these limits determine whether the dark sectors evolve nearly independently or as a single effective system. We therefore analyze the asymptotic behavior of the solutions in these two regimes.
Asymptotic behavior of the fields
We discuss the asymptotic nature of and for and .
We first consider the case of very large coupling, (or ). We get
For the case of zero or very small coupling ( or ), we get using (7)
where is the Bessel function of the first kind (2.6) of fractional order and is the gamma function (2.9). In this limit, and for , the field solutions (3.32) and (3.33) become
Note that in the limit we have
which means that and as expected.
Numerical analysis
In this section, we give a numerical analysis exhibiting the evolution of the fields and with cosmic time, represented by the independent variable . Our aim is to show the ranges over which the analytical and numerical solutions of the KG equations agree and where deviations begin to appear. Recall that the analytical solutions were obtained by Taylor expanding the potentials (28) and (29) around small field excursions, i.e., and . Once the fields overcome the friction term (represented by the Hubble parameter), they will begin to move away from their initial values. We expect disagreements between the analytical and numerical solutions when the fields stray far from their initial values, while the two solutions should track each other as long as and remain small enough. The evolution of the fields and in Figure 1–Figure 5 show the analytical solutions of (43) and (44) and the exact numerical solutions of (33) and (34) for a number of cases with different values of and the interaction (coupling) strength . Note that since we take , then from (35), we have . In all of the figures, we take (for radiation domination).

Figure 1. Evolution of the fields and with the time parameter for the cases (top panels), (middle panels) and (bottom panels). Here, the coupling is turned off, i.e., and the initial field value is . The dashed red lines indicate .

Figure 5. Same as in Figure 1 but for .
We begin with the case of no interaction, i.e., and with an initial field value . The evolutions of the fields and in Figure 1 are shown for the cases (top panels), (middle panels) and (bottom panels). For the case, the analytical and numerical solutions track each other almost perfectly over the entire time range, since . The apparent deviations seen in the late time are primarily due to the onset of rapid oscillations that the fields undergo [19]. For example, in the case of the field, the oscillations in the numerical solution average out and converge to the analytical solution. For the and cases in Figure 1, the numerical and analytical solutions show an agreement up to , after which they diverge away from each other, with and , respectively. The initial field values for and are and , which are clearly equal to or comparable to , invalidating the accuracy of Taylor expansion of the potential. Although there is no coupling in this case, our assumption of equal masses, , imposes a dependency of on and , which explains why different values are obtained for the same choice of .
Compared to the choice of , changing the initial field value to introduces a slight deviation between the analytical and numerical solutions for the case as seen in Figure 2, where the field excursion has risen to . Deviations between the two solutions for and are visible around for all cases, , and . However, compared to the previous case, deviations in the and cases remain almost identical for the field , while for , they have been tamed and the effect is very stark in the case, where previously (for ) the deviation in was almost two order of magnitude, while for the , it has become an effect. The reason for this can be understood by realizing that no matter what the initial value of is, the numerical solution always converges to . The system has an attractor solution [20] (or a fixed point) which can be seen in the phase diagram depicting the field velocity versus the potential as shown in Figure 3 for the (left panel) and (right panel) cases. It is clear that the solution converges to , where , which indeed gives for . So, higher values mean smaller , which explains why the numerical and analytical solutions do not deviate widely apart as in the case shown in Figure 1. Here, too, the deviation is mainly driven by the value of .

Figure 2. Same as in Figure 1 but for .

Figure 3. The phase space diagram showing the field velocity versus the potential for the (left panel) and (right panel) cases when the interaction is switched off. The characteristic spirals seen in both cases signal the presence of a fixed point or an attractor solution for the KG equation of .
We now turn our attention to the case of weak coupling, by setting . The evolution of the fields and for an initial field value are shown in Figure 4. For (top panel), a very good agreement between the analytical and numerical solutions persists for both and , with the analytical solution showing more violent oscillations compared to the no-interaction () case. Since the initial value is dependent only on and , there is no change in the initial condition and the field-excursions for all cases remain identical to those in Figure 1. Again, for the and cases, oscillations in the analytical solutions for and become more prominent and, noticeably, deviations between the analytical and numerical solutions begin earlier than for the case. Furthermore, the numerical solution of still converges, on the average, to , with a slight asymmetry observed around the line.

Figure 4. Same as in Figure 1 but for .
For large , (38) reveals that the coupling (which is the same as ) contributes to the friction term giving an effective Hubble parameter . For zero or weak coupling , the term is large for small and small for large , i.e., the Hubble friction dominates the early time. However, with the presence of a large , is dominated by for small and by for large . Therefore, the Hubble friction does not wane as the universe expands. As a result, we expect the field excursions of and away from their initial values to be very minimal. This is indeed what we see in Figure 5. Recall that in the large limit, the solution converges to (46) which exhibits no oscillatory behavior and is only a function of the initial field values. The analytical and numerical solutions for both and exactly track each other with no noticeable deviations, except at the tail-end where numerical fluctuations exist. These fluctuations are not significant; they are enhanced by the log scale in the plots.
In summary, the hypergeometric solution to the coupled system of KG equations remains valid as long as field-excursions away from the initial field values remain small compared to these initial values. The case shows the best agreement between the numerical and analytical solutions over most of the considered time range, while an agreement between the two solutions is observed over a limited range for the and cases. A full agreement between the two solutions is possible for the case of very large coupling.
Conclusion
In this work, we revisited the analytical solution of the Klein-Gordon equation with the small-field excursions and extended the analysis to a system of two coupled Klein-Gordon equations. Under the assumption that field excursions remain small relative to their initial values, we showed that the coupled system admits solutions expressed in terms of Kummer’s confluent hypergeometric function.
To assess the validity of the analytical approach, we performed a full numerical integration of the coupled system and compared the numerical solutions with the corresponding analytical expressions. The comparison shows that the hypergeometric solutions remain valid as long as the field excursions from their initial values are sufficiently small. Among the cases considered, the solution with exhibits the best agreement with the numerical results over most of the evolution range. For and , agreement is maintained over a more restricted range, reflecting the limitations of the underlying approximation. We also found that the agreement between analytical and numerical solutions improves significantly with increasing coupling strength, with nearly complete agreement attainable for the case of very large coupling.
These results demonstrate that hypergeometric functions provide a robust analytical framework for describing coupled scalar-field dynamics, yielding accurate approximations and offering valuable insight into the behavior of systems that are otherwise accessible primarily through numerical methods.
Acknowledgments: The research of AA and TY is supported in part by the NASA CT Space Grant Prosum number P-2590.
References
- [1]Amin Aboubrahim and Pran Nath. Interacting ultralight dark matter and dark energy and fits to cosmological data in a field theory approach. JCAP, 09:076, 2024.arxiv.org/abs/2406.19284
- [2]Amin Aboubrahim and Pran Nath. Upper limits on dark energy-dark matter interaction from DESI DR2 in a field-theoretic analysis. JCAP, 10:081, 2025.arxiv.org/abs/2411.11177
- [3]Amin Aboubrahim, Andrew H. Giman, and Pran Nath. Cosmology of axion dark energy in supersymmetric models and constraints on high-scale parameters. Phys. Rev. D, 114(2):023501, 2026.arxiv.org/abs/2511.22559
- [4]Vivian Poulin, Tristan L. Smith, Daniel Grin, Tanvi Karwal, and Marc Kamionkowski. Cosmological implications of ultralight axionlike fields. Phys. Rev. D, 98(8):083525, 2018.DOI
- [5]Shinji Tsujikawa. Quintessence: A Review. Class. Quant. Grav., 30:214003, 2013.DOI
- [6]W. N. Mathews Jr., M. A. Esrick, Z. Y. Teoh, and J. K. Freericks. A physicist’s guide to the solution of Kummer’s equation and confluent hypergeometric functions. Condensed Matter Phys., 25(3):2022, 2022.DOI
- [7]Ernst Eduard Kummer. De generali quadam aequatione inter series hypergeometricas. Journal für die reine und angewandte Mathematik, 15:39–83, 1836.
- [8]Subrat Parida. ON CERTAIN NEW WAYS TO FIND ASYMPTOTIC FORMULAS FOR THE BESSEL FUNCTIONS OF THE FIRST KIND. working paper or preprint, September 2025.
- [9]I. N. Sneddon. L. J. Slater, Confluent Hypergeometric Functions (Cambridge University Press, 1960), 247 pp., 65s. Proceedings of the Edinburgh Mathematical Society, 12(3):169–169, 1961.
- [10]Nouredine Zettlili. Quantum Mechanics: Concepts and Applications. John Wiley & Sons, 2 edition, 2009.
- [11]Stephan Lawi. Hermite and Laguerre Polynomials and Matrix-Valued Stochastic Processes. Electronic Communications in Probability, 13(none):67 – 84, 2008.DOI
- [12]Hussein Mustapha and Roussos Dimitrakopoulos. Generalized laguerre expansions of multivariate probability densities with moments. Computers & Mathematics with Applications, 60(7):2178–2189, 2010.DOI
- [13]Amin Aboubrahim and Pran Nath. Automatic detection of fast oscillations of dark matter scalar field and updated cosmological constraints on QCDM. 8 2026.arxiv.org/abs/2608.13346
- [14]Saba Rahimy, Elsa M. Teixeira, and Ivonne Zavala. Deciphering coupled scalar dark sectors. Phys. Rev. D, 112(4):043512, 2025.
- [15]Elsa M. Teixeira, Gaspard Poulot, Carsten van de Bruck, Eleonora Di Valentino, and Vivian Poulin. Alleviating cosmological tensions with a hybrid dark sector. Phys. Rev. D, 113(2):023514, 2026.arxiv.org/abs/2412.14139
- [16]Eleonora Di Valentino et al. The CosmoVerse White Paper: Addressing observational tensions in cosmology with systematics and fundamental physics. Phys. Dark Univ., 49:101965, 2025.
- [17]Elcio Abdalla et al. Cosmology intertwined: A review of the particle physics, astrophysics, and cosmology associated with the cosmological tensions and anomalies. JHEAp, 34:49–211, 2022.DOI
- [18]Gabriela Garcia-Arroyo, L. Arturo Ureña-López, and J. Alberto Vázquez. Interacting scalar fields: Dark matter and early dark energy. Phys. Rev. D, 110(2):023529, 2024.
- [19]L. Arturo Ureña-López and Alma X. Gonzalez-Morales. Towards accurate cosmological predictions for rapidly oscillating scalar fields as dark matter. JCAP, 07:048, 2016.DOI
- [20]Luca Amendola. Perturbations in a coupled scalar field cosmology. Mon. Not. Roy. Astron. Soc., 312:521, 2000.DOI