Skip to content

HeunC (Confluent Heun Function)

The general Heun equation has four regular singular points. If two of those singularities coalesce (a confluence limit), you obtain the confluent Heun equation:

  • two regular singular points (typically at z=0z=0 and z=1z=1),
  • one irregular singular point at z=z=\infty (rank 1 in the canonical CHE),
  • an accessory parameter that is not determined by local exponent data and often becomes an eigenvalue under global boundary conditions.

To minimize confusion, this page uses three parameter sets and always labels them:

  • DLMF / Wolfram parameters: (q,α,γ,δ,ϵ)(q,\alpha,\gamma,\delta,\epsilon).
  • Ronveaux (1995) parameters (Part B): (p,αR,γ,δ,σ)(p,\alpha_R,\gamma,\delta,\sigma).
  • Maple parameters: (αM,βM,γM,δM,ηM)(\alpha_M,\beta_M,\gamma_M,\delta_M,\eta_M).

The same letters appear in different roles across the literature; the subscripts RR and MM are meant to keep you sane.


A widely used canonical CHE (used by DLMF and the Wolfram Language) is

d2ydz2+(γz+δz1+ϵ)dydz+αzqz(z1)y=0,\frac{d^2y}{dz^2} +\left(\frac{\gamma}{z}+\frac{\delta}{z-1}+\epsilon\right)\frac{dy}{dz} +\frac{\alpha z-q}{z(z-1)}\,y=0,

with complex parameters (q,α,γ,δ,ϵ)(q,\alpha,\gamma,\delta,\epsilon) and independent variable zz.

Multiplying by z(z1)z(z-1) gives the equivalent polynomial-coefficient form:

z(z1)y+(γ(z1)+δz+ϵz(z1))y+(αzq)y=0.z(z-1)y'' + \big(\gamma(z-1)+\delta z+\epsilon\,z(z-1)\big)y' + (\alpha z-q)\,y = 0.

Singularities. For ϵ0\epsilon\neq 0, this equation has

  • regular singularities at z=0z=0 and z=1z=1,
  • an irregular singularity of rank 11 at z=z=\infty.

If ϵ=0\epsilon=0, then z=z=\infty becomes a regular singularity, and the equation reduces (after standard identification) to the Gauss hypergeometric class (a Fuchsian ODE with three regular singularities).

1.2 Local exponents at z=0z=0 and z=1z=1

Section titled “1.2 Local exponents at z=0z=0z=0 and z=1z=1z=1”

A quick Frobenius analysis gives characteristic exponents:

  • at z=0z=0: 00 and 1γ1-\gamma,
  • at z=1z=1: 00 and 1δ1-\delta.

So, when γZ\gamma\notin\mathbb{Z}, two independent local solutions about z=0z=0 behave like

y1(z)1,y2(z)z1γ(z0).y_1(z)\sim 1,\qquad y_2(z)\sim z^{1-\gamma}\quad(z\to 0).

Analogously at z=1z=1 with δ\delta.

  • γ\gamma and δ\delta control the exponent differences at z=0z=0 and z=1z=1.
  • ϵ\epsilon controls the strength of the irregular singularity at \infty (it is the parameter that disappears in the hypergeometric limit).
  • qq is the accessory parameter: it is not fixed by local exponent data and in applications is frequently determined by a global boundary condition (often an eigenvalue problem).
  • α\alpha is the remaining parameter in the coefficient of yy; together with (q,ϵ)(q,\epsilon) it controls the asymptotics at infinity.

2. Definition of the confluent Heun function HeunC

Section titled “2. Definition of the confluent Heun function HeunC”

In the Wolfram Language, HeunC[q,α,γ,δ,ϵ,z] denotes the solution of the canonical CHE that is regular at z=0z=0 and satisfies

HeunC(q,α,γ,δ,ϵ;0)=1.\mathrm{HeunC}(q,\alpha,\gamma,\delta,\epsilon;0)=1.

This is precisely the local Frobenius solution with exponent 00 at z=0z=0.

Wolfram also notes:

  • HeunC has a branch cut in the complex zz-plane running from z=1z=1 to z=z=\infty (principal branch choice),
  • values in “logarithmic cases” (notably nonpositive integer γ\gamma) are not determined in the same way as generic parameters.

2.2 Ronveaux (1995) canonical form and notation

Section titled “2.2 Ronveaux (1995) canonical form and notation”

Part B of Heun’s Differential Equations (Ronveaux, ed., 1995) works with the non-symmetrical canonical form (their Eq. (1.2.27)):

w(z)+(4p+γz+δz1)w(z)+4pαRzσz(z1)w(z)=0,w''(z) +\left(4p+\frac{\gamma}{z}+\frac{\delta}{z-1}\right)w'(z) +\frac{4p\,\alpha_R\,z-\sigma}{z(z-1)}\,w(z)=0,

with parameters (p,αR,γ,δ,σ)(p,\alpha_R,\gamma,\delta,\sigma).

They introduce the Frobenius solution at the origin,

Hc(a)(p,αR,γ,δ,σ;z),Hc(a)(;0)=1,Hc^{(a)}(p,\alpha_R,\gamma,\delta,\sigma;z),\qquad Hc^{(a)}(\cdots;0)=1,

and (for suitable pp) a solution defined by behavior at infinity (a “radial” solution).

2.3 Converting between Ronveaux and Wolfram/DLMF

Section titled “2.3 Converting between Ronveaux and Wolfram/DLMF”

Comparing the two canonical equations gives the direct identification:

ϵ=4p,α=4pαR=ϵαR,q=σ,\epsilon = 4p,\qquad \alpha = 4p\,\alpha_R = \epsilon\,\alpha_R,\qquad q = \sigma,

with γ\gamma and δ\delta the same in both forms.

So, up to relabeling,

Hc(a)(p,αR,γ,δ,σ;z)HeunC(q,α,γ,δ,ϵ;z)with(q,α,ϵ)=(σ,4pαR,4p).Hc^{(a)}(p,\alpha_R,\gamma,\delta,\sigma;z) \equiv \mathrm{HeunC}(q,\alpha,\gamma,\delta,\epsilon;z) \quad\text{with}\quad (q,\alpha,\epsilon)=(\sigma,4p\alpha_R,4p).

3. Power-series definition and the three-term recurrence

Section titled “3. Power-series definition and the three-term recurrence”

The most important practical fact about HeunC is that it is defined by a convergent power series around z=0z=0 with a three-term recurrence for its coefficients.

3.1 Series about z=0z=0 (Ronveaux form)

Section titled “3.1 Series about z=0z=0z=0 (Ronveaux form)”

Ronveaux defines the Frobenius solution at z=0z=0 by

Hc(a)(p,αR,γ,δ,σ;z)=k=0ck(a)zk,c0(a)=1.Hc^{(a)}(p,\alpha_R,\gamma,\delta,\sigma;z)=\sum_{k=0}^{\infty} c_k^{(a)}\, z^k, \qquad c_0^{(a)}=1.

The coefficients satisfy the three-term recurrence (their Eq. (2.2.14))

fk(a)ck+1(a)+gk(a)ck(a)+hk(a)ck1(a)=0,c1(a)=0,f_k^{(a)}\,c_{k+1}^{(a)} + g_k^{(a)}\,c_k^{(a)} + h_k^{(a)}\,c_{k-1}^{(a)} = 0, \qquad c_{-1}^{(a)}=0,

with

fk(a)=(k+1)(k+γ),f_k^{(a)} = -(k+1)(k+\gamma), gk(a)=k(k4p+γ+δ1)σ,g_k^{(a)} = k\big(k-4p+\gamma+\delta-1\big)-\sigma, hk(a)=4p(k+αR1).h_k^{(a)} = 4p\,(k+\alpha_R-1).

3.2 The same recurrence in (q,α,γ,δ,ϵ)(q,\alpha,\gamma,\delta,\epsilon) form

Section titled “3.2 The same recurrence in (q,α,γ,δ,ϵ)(q,\alpha,\gamma,\delta,\epsilon)(q,α,γ,δ,ϵ) form”

Using ϵ=4p\epsilon=4p, α=ϵαR\alpha=\epsilon\alpha_R, q=σq=\sigma, the recurrence can be written as

(k+1)(k+γ)ck+1+(k(kϵ+γ+δ1)q)ck+(ϵ(k1)+α)ck1=0,-(k+1)(k+\gamma)\,c_{k+1} +\big(k(k-\epsilon+\gamma+\delta-1)-q\big)c_k +\big(\epsilon(k-1)+\alpha\big)c_{k-1}=0,

with c1=0c_{-1}=0, c0=1c_0=1.

First coefficient. Setting k=0k=0 gives

c1=qγ,c_1 = -\frac{q}{\gamma},

so

HeunC(q,α,γ,δ,ϵ;z)=1qγz+O(z2),\mathrm{HeunC}(q,\alpha,\gamma,\delta,\epsilon;z)=1-\frac{q}{\gamma}z+O(z^2),

provided γ0\gamma\neq 0.

The nearest singularity to z=0z=0 is at z=1z=1, so the power series about z=0z=0 converges for

z<1.|z|<1.

This is the computationally safe disk for direct series evaluation.

3.4 The second local solution at z=0z=0 (and logarithms)

Section titled “3.4 The second local solution at z=0z=0z=0 (and logarithms)”

When γZ\gamma\notin\mathbb{Z}, a second independent local solution near z=0z=0 has the Frobenius form

y2(z)=z1γk=0c~kzk.y_2(z)=z^{1-\gamma}\sum_{k=0}^{\infty}\tilde c_k\,z^k.

You can obtain it by the standard exponent-shift substitution w(z)=z1γv(z)w(z)=z^{1-\gamma}\,v(z), which preserves the CHE form but shifts parameters. So (in the generic case) a local basis near z=0z=0 can be taken as a local basis at z=0z=0 is

y1[0](z)=HeunC(q,α,γ,δ,ϵ;z),y_1^{[0]}(z)=\mathrm{HeunC}(q,\alpha,\gamma,\delta,\epsilon;z), y2[0]=z1γHeunC(q+(1γ)(ϵδ),α+(1γ)ϵ,2γ,δ,ϵ;z).y_2^{[0]}=z^{1-\gamma}\mathrm{HeunC}(q+(1-\gamma)(\epsilon-\delta),\alpha+(1-\gamma)\epsilon,2-\gamma,\delta,\epsilon;z).
HeunC[q, α, γ, δ, ϵ, z]
z^(1 - γ) HeunC[q + (1 - γ) (ϵ - δ), α + (1 - γ) ϵ, 2 - γ, δ, ϵ, z]

4. Behavior near z=1z=1 and the connection problem

Section titled “4. Behavior near z=1z=1z=1 and the connection problem”

A Frobenius basis near z=1z=1 is constructed similarly with exponents 00 and 1δ1-\delta by expanding in powers of (z1)(z-1). A local basis at z=1z=1 is

y1[1](z)=HeunC(qα,α,δ,γ,ϵ;1z),y_1^{[1]}(z)=\mathrm{HeunC}(q-\alpha,-\alpha,\delta,\gamma,-\epsilon;1-z), y2[2](z)=(1z)1δHeunC(qα+(δ1)(γ+ϵ),α+(δ1)ϵ,2δ,γ,ϵ;1z).y_2^{[2]}(z)=(1-z)^{1-\delta}\mathrm{HeunC}(q-\alpha+(\delta-1)(\gamma+\epsilon),-\alpha+(\delta-1)\epsilon,2-\delta,\gamma,-\epsilon;1-z).
HeunC[q - α, -α, δ, γ, -ϵ, 1 - z]
(1 - z)^(1 - δ) HeunC[q - α +- 1) (γ + ϵ), -α +- 1) ϵ, 2 - δ, γ, -ϵ, 1 - z]

Most physics applications require a connection problem:

relate the local basis near z=0z=0 to the local basis near z=1z=1 (or to asymptotic solutions at \infty), and impose a boundary condition at the other end.

This is where the accessory parameter qq typically becomes an eigenvalue.

The local series at z=0z=0 does not converge beyond z=1|z|=1, but the solution does continue analytically along paths that avoid singularities and branch cuts.


5. Asymptotic behavior at infinity (rank-1 irregular singularity)

Section titled “5. Asymptotic behavior at infinity (rank-1 irregular singularity)”

Unlike HeunG (four regular singular points), the CHE has an irregular singularity at z=z=\infty. This means:

  • solutions generally have asymptotic expansions, not convergent power series, as z|z|\to\infty,
  • different sectors in the complex plane can have different dominant behaviors (Stokes phenomenon),
  • boundary conditions “at infinity” (decay/ingoing/outgoing) are subtle and often quantize parameters.

For ϵ0\epsilon\neq 0, there are two qualitatively distinct behaviors at infinity:

  • an algebraic behavior y(z)zα/ϵ(1+O ⁣(1z)),y(z)\sim z^{-\alpha/\epsilon}\left(1+O\!\left(\frac1z\right)\right),
  • and an exponentially modified behavior y(z)eϵzzα/ϵ(γ+δ)(1+O ⁣(1z)),y(z)\sim e^{-\epsilon z}\,z^{\alpha/\epsilon-(\gamma+\delta)} \left(1+O\!\left(\frac1z\right)\right),

valid in appropriate sectors of the complex plane (depending on arg(ϵz)\arg(\epsilon z)). Using 1/z1/z as the local variable, a sectorial asymptotic basis is

y1[](z)=zα/ϵHeunC(q,α,γ,δ,ϵ;1/z),y_1^{[\infty]}(z)=z^{-\alpha/\epsilon}\mathrm{HeunC}_\infty(q,\alpha,\gamma,\delta,\epsilon;1/z), y2[](z)=eϵzzα/ϵγδHeunC(qγϵ,α(γ+δ)ϵ,γ,δ,ϵ;1/z).y_2^{[\infty]}(z)=e^{-\epsilon z}z^{\alpha/\epsilon-\gamma-\delta}\mathrm{HeunC}_\infty(q-\gamma\epsilon,\alpha-(\gamma+\delta)\epsilon,\gamma,\delta,-\epsilon;1/z).
z^(-α/ϵ) HeunCInf[q, α, γ, δ, ϵ, 1/z]
Exp[-ϵ z] z^/ϵ - γ - δ) HeunCInf[q - γ ϵ, α -+ δ) ϵ, γ, δ, -ϵ, 1/z]

This is the analytic backbone behind the “angular vs radial” terminology used in Ronveaux’s Part B: one often chooses the solution that matches a prescribed behavior at infinity.


6.1 The ϵ=0\epsilon=0 specialization: RCHE first, hypergeometric only if α=0\alpha=0

Section titled “6.1 The ϵ=0\epsilon=0ϵ=0 specialization: RCHE first, hypergeometric only if α=0\alpha=0α=0”

Starting from

y+(γz+δz1+ϵ)y+αzqz(z1)y=0,y''+\left(\frac{\gamma}{z}+\frac{\delta}{z-1}+\epsilon\right)y'+\frac{\alpha z-q}{z(z-1)}y=0,

setting ϵ=0\epsilon=0 gives

y+(γz+δz1)y+αzqz(z1)y=0.y''+\left(\frac{\gamma}{z}+\frac{\delta}{z-1}\right)y'+\frac{\alpha z-q}{z(z-1)}y=0.

This is the reduced confluent Heun equation (RCHE), not the Gauss equation in general. The singularity at z=z=\infty remains irregular, although with lower rank than in the generic CHE.

Only in the further subcase α=0\alpha=0 does one obtain

y+(γz+δz1)yqz(z1)y=0,y''+\left(\frac{\gamma}{z}+\frac{\delta}{z-1}\right)y'-\frac{q}{z(z-1)}y=0,

which is exactly the Gauss hypergeometric equation, with the standard identification

c=γ,a+b+1=γ+δ,ab=q.c=\gamma,\qquad a+b+1=\gamma+\delta,\qquad ab=-q.

So the safe rule is:

  • ϵ=0\epsilon=0 with generic α\alpha: RCHE, not hypergeometric;
  • ϵ=0\epsilon=0 and α=0\alpha=0: Gauss hypergeometric;
  • p0p\to0 with αR\alpha_R finite in Ronveaux: this automatically implies (ϵ,α)(0,0)(\epsilon,\alpha)\to(0,0), hence the hypergeometric reduction.

6.2 Mathieu, spheroidal, Coulomb spheroidal

Section titled “6.2 Mathieu, spheroidal, Coulomb spheroidal”

Mathieu functions, spheroidal wave functions, and Coulomb spheroidal functions are special cases of solutions of the CHE (see DLMF §31.12 and Ronveaux Part B, §1.2).

In Ronveaux, the generalized spheroidal equation (GSE) is transformed to the non-symmetrical CHE (their Eq. (1.2.27)) by a simple linear change of variables; the resulting parameter identifications give a direct route from spheroidal problems to HeunC.


7. Polynomial solutions (confluent Heun polynomials)

Section titled “7. Polynomial solutions (confluent Heun polynomials)”

Polynomial truncations are central in quasi-exact solvability and in some boundary value problems.

There are two complementary ways to think about “polynomial solutions”, depending on which parameterization you use.

7.1 Ronveaux (1995): termination via αR=N\alpha_R=-N

Section titled “7.1 Ronveaux (1995): termination via αR=−N\alpha_R=-NαR​=−N”

In Ronveaux’s canonical form, the recurrence coefficient

hk(a)=4p(k+αR1)h_k^{(a)} = 4p\,(k+\alpha_R-1)

vanishes at k=N+1k=N+1 if

αR=N,N{0,1,2,}.\alpha_R=-N,\qquad N\in\{0,1,2,\dots\}.

If, in addition, the recurrence produces

cN+1(a)=0,c_{N+1}^{(a)}=0,

then the series terminates and Hc(a)Hc^{(a)} becomes a polynomial of degree NN.

The condition cN+1(a)=0c_{N+1}^{(a)}=0 is equivalent to a finite tridiagonal determinant (Ronveaux’s ΔN+1(σ)=0\Delta_{N+1}(\sigma)=0), yielding a polynomial equation for the accessory parameter σ\sigma (hence for qq in the DLMF/Wolfram convention).

7.2 Maple/physics convention: the (δN,ΔN+1)(\delta_N,\Delta_{N+1}) conditions

Section titled “7.2 Maple/physics convention: the (δN,ΔN+1)(\delta_N,\Delta_{N+1})(δN​,ΔN+1​) conditions”

In the Maple convention HeunC(α,β,γ,δ,η,z) (see §8.2), polynomial truncation is often stated as the pair of conditions (Fiziev 2009):

δMαM+βM+γM2+N+1=0,\frac{\delta_M}{\alpha_M}+\frac{\beta_M+\gamma_M}{2}+N+1=0,

together with a second condition

ΔN+1(μ)=0,\Delta_{N+1}(\mu)=0,

where ΔN+1\Delta_{N+1} is a finite determinant (or equivalently, the vanishing of a Taylor coefficient in the three-term recurrence).

Intuitively:

  • the first (“δN\delta_N”) condition kills the appropriate recurrence coefficient at step N+1N+1,
  • the second (“Δ\Delta”) condition forces the solution into the terminating branch.

8. Using HeunC in CAS (and not getting burned by conventions)

Section titled “8. Using HeunC in CAS (and not getting burned by conventions)”

Wolfram uses the DLMF-style parameterization:

HeunC[q, α, γ, δ, ϵ, z]

It is the solution of the CHE satisfying HeunC[..., 0] == 1, and it supports symbolic and numerical evaluation.

Useful related functions include HeunCPrime (derivative with respect to z) and series expansion via Series.

Most CAS pick a principal branch by specifying a branch cut. In Wolfram’s convention, HeunC has a branch cut from z=1z=1 to z=z=\infty. If your computation crosses the cut, you must decide whether you want the value “just above” or “just below” the cut (i.e. the analytic continuation along two homotopically distinct paths).

Maple uses a different parameterization:

HeunC(alpha, beta, gamma, delta, eta, z)
HeunCPrime(alpha, beta, gamma, delta, eta, z)

A common explicit form of Maple’s CHE is

U(z)+(αM+βM+1z+γM+1z1)U(z)+(μz+νz1)U(z)=0,U''(z) +\left(\alpha_M+\frac{\beta_M+1}{z}+\frac{\gamma_M+1}{z-1}\right)U'(z) +\left(\frac{\mu}{z}+\frac{\nu}{z-1}\right)U(z)=0,

with

μ=12(αMβMγM+αMβMβMγM)ηM,ν=12(αM+βM+γM+αMγM+βMγM)+δM+ηM.\mu=\frac12(\alpha_M-\beta_M-\gamma_M+\alpha_M\beta_M-\beta_M\gamma_M)-\eta_M, \qquad \nu=\frac12(\alpha_M+\beta_M+\gamma_M+\alpha_M\gamma_M+\beta_M\gamma_M)+\delta_M+\eta_M.

Maple’s HeunC(alpha,beta,gamma,delta,eta,z) is the local Frobenius solution around z=0z=0 normalized by U(0)=1U(0)=1 (when the normalization is non-resonant).

8.3 Converting Maple parameters to Wolfram/DLMF

Section titled “8.3 Converting Maple parameters to Wolfram/DLMF”

Given Maple parameters (αM,βM,γM,δM,ηM)(\alpha_M,\beta_M,\gamma_M,\delta_M,\eta_M), define μ,ν\mu,\nu as above. Then the equivalent DLMF/Wolfram parameters are

ϵ=αM,γ=βM+1,δ=γM+1,\epsilon = \alpha_M,\qquad \gamma = \beta_M+1,\qquad \delta = \gamma_M+1, q=μ,α=μ+ν.q = \mu,\qquad \alpha = \mu+\nu.

8.4 Converting Wolfram/DLMF parameters to Maple

Section titled “8.4 Converting Wolfram/DLMF parameters to Maple”

Conversely, given (q,α,γ,δ,ϵ)(q,\alpha,\gamma,\delta,\epsilon), set

αM=ϵ,βM=γ1,γM=δ1,\alpha_M=\epsilon,\qquad \beta_M=\gamma-1,\qquad \gamma_M=\delta-1,

and then

δM=αϵ(γ+δ)2,ηM=12+γ(ϵδ)2q.\delta_M=\alpha-\frac{\epsilon(\gamma+\delta)}{2},\qquad \eta_M=\frac12+\frac{\gamma(\epsilon-\delta)}{2}-q.