The Heun general function - Maple Help

Online Help

All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Conversions : Function : HeunG

HeunG - The Heun general function

HeunGPrime - The derivative of the Heun general function

Calling Sequence

HeunG(a, q, α, β, γ, δ, z)

HeunGPrime(a, q, α, β, γ, δ, z)




algebraic expression



algebraic expression



algebraic expression



algebraic expression



algebraic expression



algebraic expression



algebraic expression



The HeunG function is the solution of the Heun General equation. Following the first reference (at the end), the equation and the conditions at the origin satisfied by HeunG are

FunctionAdvisor(definition, HeunG);



Heun's equation is an extension of the 2F1 hypergeometric equation in that it is a second-order Fuchsian equation with four regular singular points. The 2F1 equation has three regular singularities. The HeunG function, thus, contains as particular cases all the functions of the hypergeometric 2F1 class.


Another important case of Heun's equation, for q=ah4,α=ν2,β=12+ν2,δ=12,γ=12, is Lame's equation in algebraic form,

diff(y(z),z,z) + 1/2*(1/z + 1/(z-1) + 1/(z-a))*diff(y(z),z) + (a*h-nu*(nu+1)*z)/(4*z*(z-1)*(z-a))*y(z) = 0;



where the parameter ν is called the order of the equation and many special features arise when ν is an integer. Lame's equation arises in the separation of variables in Laplace's equation.


The HeunG(a,q,α,β,γ,δ,z) function is a local (Frobenius) solution to Heun's equation, computed as a power series expansion around the origin, a regular singular point. The radius of convergence of this series is zs where zs is the location of the singularity closer to the origin, either a or 1. An analytic continuation of HeunG is obtained through identities, relating the values of the function in different regions, or by expanding the solution around the other singularities (a, 1 or ). For example, the value of the function outside a circle of radius 2 is computable from the value of another HeunG function inside that circle using

HeunG(a,q,alpha,beta,gamma,delta,z) = (1-z)^(-alpha)*HeunG(a/(a-1),(-q+gamma*alpha*a)/(a-1),alpha,alpha-delta+1,gamma,alpha-beta+1,z/(z-1));



For certain values of the parameters, it can happen that the expansion around the origin is also a Frobenius solution around the next adjacent singularity, so the function is analytic in some domain including both singularities. In the literature, the term Heun function is sometimes reserved for these cases, important in physical applications.


A more special situation happens when the parameters entering HeunG are such that the function is, simultaneously, a Frobenius solution around three adjacent singularities and hence analytic in a domain containing all of them. In such a case the solution will also be a Frobenius solution around the fourth singularity and HeunG will be a polynomial. A necessary (not sufficient) condition for this case is that α=n, with n a positive integer, and q has one of a finite number of characteristic values, in which case the function is a polynomial of degree n.


Heun's equation can be transformed into another version of itself, that is, an equation with four regular singularities three of which are located at 0,1,, by any of 24 Mobius transformations z -> fz of the independent variable z; these forms of fz are




Note that the location of the fourth singularity resulting from these transformations, say λ, is in general different from a. The six possible values of λ are a,1a,11a,aa1,1a and a1a.

Taking into account that Heun's equation has 4 regular singularities, that at around each one it is possible to construct 2 Frobenius solutions, and that there exist these 24 transformations mapping the equation into one of the same type, the solution to Heun's equation can be written in 192 different manners. This situation is equivalent to the one of the 2F1 hypergeometric equation, where instead of 4 there are 3 regular singularities, instead of 24 transformations there are only 6, and so the solution can be written in 24 different manners.

This group of transformations of order 24 admitted by Heun's equation also leads to a rather large number of identities for the function solution HeunG, among which you have




Some hypergeometric special cases of HeunG are




When α=n, with n a positive integer, the nth + 1 coefficient in the series expansion is a polynomial in q of order n&plus;1. If q is a root of that polynomial, that coefficient is zero and with it all the following ones, so the series truncates and HeunG is a polynomial. For example, for α=−1







So the coefficient of z2 is




solving for q, requesting from solve to return using RootOf we have







substituting in HG we have




When the function admits a polynomial form, as is the case of HG_polynomial by construction, to obtain the actual polynomial of degree n (in this case n&equals;1) use




See Also

FunctionAdvisor, Heun, HeunB, HeunC, HeunD, HeunT, hypergeom



Ronveaux, A. ed. Heun's Differential Equations. Oxford University Press, 1995.


Slavyanov, S.Y., and Lay, W. Special Functions, A Unified Theory Based on Singularities. Oxford Mathematical Monographs, 2000.

Download Help Document

Was this information helpful?

Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam