HeunB (Biconfluent Heun Function)
What this page is (and is not)
Section titled “What this page is (and is not)”This is a researcher-facing guide to the biconfluent Heun function HeunB, i.e. the local solution at the regular singular point of the biconfluent Heun equation (BHE). The BHE is one of the four confluent descendants of the general Heun equation and is characterized by
- one regular singularity (at in standard forms), and
- one irregular singularity of rank 2 (at ), hence Stokes phenomena at infinity.
This page aims to help you
- recognize when your ODE is (or can be reduced to) the BHE,
- navigate competing canonical forms and parameter conventions (Ronveaux/Maroni, Maple, Wolfram, DLMF),
- understand what the function
HeunBactually means (normalization, analytic continuation, branches), - compute
HeunBreliably (series, ODE integration, asymptotics) and validate results, - use truncation / polynomial cases that frequently appear in quantum-mechanical eigenvalue problems.
It does not attempt to reproduce the full theory of the BHE (monodromy/Stokes matrices, global connection problems, etc.). Instead, it emphasizes what you need to use HeunB correctly in actual research work.
1. The canonical biconfluent Heun equation behind HeunB
Section titled “1. The canonical biconfluent Heun equation behind HeunB”1.1 Ronveaux/Maroni canonical form (4 parameters)
Section titled “1.1 Ronveaux/Maroni canonical form (4 parameters)”The canonical BHE used in Ronveaux (1995, Part D) can be written as (Maroni’s Eq. (1.2.5))
Dividing by makes the singularity structure explicit:
- is a regular singular point.
- is an irregular singular point of rank 2 (the term drives the Stokes behavior).
This 4-parameter form is the one most closely aligned with Maple’s HeunB(α,β,γ,δ,z) and with much of the mathematical literature following Ronveaux.
1.2 The normal (Schrödinger-like) form
Section titled “1.2 The normal (Schrödinger-like) form”Removing the first-derivative term by
transforms the BHE into a “normal form” (Maroni’s Eq. (1.3.1)):
This is extremely useful if you meet the BHE via a radial Schrödinger equation: the bracket looks like an effective potential with and terms plus centrifugal/Coulomb-type pieces.
2. Definition of the biconfluent Heun function HeunB
Section titled “2. Definition of the biconfluent Heun function HeunB”2.1 Local exponents at the origin
Section titled “2.1 Local exponents at the origin”A Frobenius ansatz gives the indicial equation
so the characteristic exponents at are
- If , the two local solutions are (generically) a regular one and a singular one .
- If , logarithms can appear in the second solution (see §4.2).
2.2 The HeunB/Ronveaux normalization
Section titled “2.2 The HeunB/Ronveaux normalization”The biconfluent Heun function HeunB is the solution that is analytic at and normalized by
In Ronveaux/Maroni notation this solution is denoted and is an entire function of (no other finite singularities exist).
3. Power-series expansion at (the workhorse)
Section titled “3. Power-series expansion at z=0z=0z=0 (the workhorse)”3.1 Series form used by Ronveaux/Maroni (and Maple)
Section titled “3.1 Series form used by Ronveaux/Maroni (and Maple)”Write the analytic solution as (Maroni’s Eq. (3.1.3))
The first coefficients are (Eqs. (3.1.4)–(3.1.5))
and for ,
This recurrence is stable and easy to implement for moderate , and it is the fastest way to evaluate HeunB when is not too large.
3.2 Initial derivative at the origin
Section titled “3.2 Initial derivative at the origin”From the series one immediately reads
This is the correct initial slope for ODE integration starting at (or at a small ).
3.3 A practical series-evaluation recipe
Section titled “3.3 A practical series-evaluation recipe”For complex parameters, evaluate
with the recurrence above and stop when the last term is below your target tolerance.
Implementation notes:
- Use logarithmic updates for and if you need very high .
- For high precision, compute with arbitrary precision arithmetic (e.g.
mpmath, Mathematica, Maple). - If is large, the power series may need many terms; then ODE integration or asymptotics is usually better (§6).
4. The second local solution and singular parameter cases
Section titled “4. The second local solution and singular parameter cases”4.1 Generic case
Section titled “4.1 Generic case α∉Z\alpha\notin\mathbb{Z}α∈/Z”When is not an integer, a convenient fundamental system at the origin is (Maroni’s Prop. 3.1.1)
The Wronskian of any two solutions of the BHE satisfies
and in particular for the pair above .
4.2 Relative-integer cases and logarithms
Section titled “4.2 Relative-integer cases and logarithms”If , the exponent difference is an integer, and the second solution may contain a term. This is not special to Heun; it is the standard Frobenius phenomenon.
Practical implication: if you need the second solution and your parameters place you in a resonant case, do not “guess” it from without checking whether the logarithmic term is present.
5. Polynomial (terminating) cases: “HeunB polynomials”
Section titled “5. Polynomial (terminating) cases: “HeunB polynomials””A major reason HeunB appears in physics is that bound-state/eigenvalue conditions often force the analytic solution to truncate into a polynomial times a simple gauge factor.
From the recurrence for , the analytic solution becomes a polynomial of degree if and only if (Maroni §3.3)
- The first condition fixes relative to (think “quantization of an exponent at infinity”).
- The second condition is an algebraic constraint on (for fixed ), typically solved as a root condition.
More precisely, for fixed and integer , the coefficient is a polynomial of degree in , so there are at most values that produce truncation.
5.1 Orthogonality (when parameters are real)
Section titled “5.1 Orthogonality (when parameters are real)”When and , the resulting polynomial solutions satisfy an orthogonality relation (Maroni Eq. (3.3.4)):
with the -th degree polynomial solution.
This is one route from HeunB to families of orthogonal polynomials that arise in quasi-exactly solvable models.
6. Behavior at infinity and why Stokes sectors matter
Section titled “6. Behavior at infinity and why Stokes sectors matter”The irregular singularity at is where most “hard” BHE problems live (connection problems, eigenvalues, Stokes multipliers).
Maroni constructs canonical solutions in different half-planes. The key takeaway is that, as in a suitable sector, there is a pair of asymptotic behaviors of the form (see §3.4):
and
So generically, one solution is algebraic and the other carries the dominant exponential .
7. Special cases and reductions (useful checks)
Section titled “7. Special cases and reductions (useful checks)”7.1 Reduction to confluent hypergeometric
Section titled “7.1 Reduction to confluent hypergeometric 1F1{}_1F_11F1”A particularly important specialization is (Maroni Eq. (3.1.12)):
This identity is a powerful validation tool: if you set and compare to a high-quality implementation, your code for HeunB should match.
7.2 Elementary exponential solution
Section titled “7.2 Elementary exponential solution”Another exact identity (Maroni Eq. (3.1.16)) is
Again, this is excellent for sanity checks.
7.3 Laguerre-polynomial specializations
Section titled “7.3 Laguerre-polynomial specializations”When parameters enforce polynomial truncation with , the polynomial solutions reduce to generalized Laguerre polynomials (Maroni Eq. (3.3.5)). If your application predicts a Laguerre limit, verify that your HeunB reduces accordingly.
7.4 Symmetries and functional relations (quick consistency checks)
Section titled “7.4 Symmetries and functional relations (quick consistency checks)”Beyond special-case reductions, the BHE has nontrivial discrete transformations that map solutions to solutions while reshuffling parameters. In Ronveaux/Maroni notation (Prop. 3.1.2), for one has
and a “ rotation” identity
These identities are useful in practice for:
- sanity checks (numerical evaluation must satisfy them),
- moving from a numerically unstable ray to a more stable one (rotate ),
- relating Stokes sectors at infinity.
8. Conventions across references (Ronveaux/Maple vs Wolfram vs DLMF)
Section titled “8. Conventions across references (Ronveaux/Maple vs Wolfram vs DLMF)”8.1 Maple’s HeunB(α,β,γ,δ,z)
Section titled “8.1 Maple’s HeunB(α,β,γ,δ,z)”Maple defines HeunB(α,β,γ,δ,z) as the Frobenius solution about for a 4-parameter canonical BHE, normalized by HeunB(...,0)=1, and computed as a power series (hence convergent for all ).
- Maple help page:
HeunB — The Heun Biconfluent function.
8.2 Wolfram Language’s HeunB[q,α,γ,δ,ϵ,z]
Section titled “8.2 Wolfram Language’s HeunB[q,α,γ,δ,ϵ,z]”Wolfram uses a 5-parameter bi-confluent equation (as displayed in its documentation):
To match Ronveaux/Maple parameters to Wolfram parameters , set
and use the same .
(Here the subscript “W” means “Wolfram parameter”.)
8.3 DLMF’s biconfluent equation
Section titled “8.3 DLMF’s biconfluent equation”DLMF §31.12.3 uses a different “standard form”:
This is equivalent to the Ronveaux/Maple form by a rescaling of and a linear redefinition of parameters. If you are translating a paper that quotes DLMF parameters, do the conversion once and then stay in a single convention throughout your work.
9. Reliable computation workflows
Section titled “9. Reliable computation workflows”9.1 In CAS (Maple / Mathematica)
Section titled “9.1 In CAS (Maple / Mathematica)”Recommended workflow:
- Write down the ODE you believe you have.
- Reduce it to your chosen canonical BHE by explicit substitutions (affine change of , gauge factor , power prefactor , etc.).
- Translate parameters into your CAS convention (Maple vs Wolfram).
- Validate with:
- series at ,
- a special-case reduction (§7),
- numerical residual of the ODE (substitute and check it solves to tolerance).
9.2 In your own code (series + ODE integration)
Section titled “9.2 In your own code (series + ODE integration)”A robust pattern is:
- Use the power series to initialize at a small (not exactly if your ODE solver dislikes singular coefficients).
- Integrate the ODE along a path in the complex plane using an adaptive solver.
- If you need large- behavior, compare to the asymptotic forms (§6) in the correct sector.
Below is a minimal series evaluator following Maroni’s recurrence:
import mpmath as mp
def heunB_series(alpha, beta, gamma, delta, z, nterms=50): # A_n recurrence (Maroni 1995, Eq. 3.1.5) A0 = mp.mpf(1) A1 = mp.mpf('0.5')*(delta + beta*(1+alpha)) A = [A0, A1] for n in range(0, nterms-2): A_np2 = ((n+1)*beta + mp.mpf('0.5')*(delta + beta*(1+alpha)))*A[n+1] \ - (n+1)*(n+1+alpha)*(gamma-2-alpha-2*n)*A[n] A.append(A_np2)
# sum A_n / ((1+alpha)_n n!) z^n s = mp.mpf(0) poch = mp.mpf(1) # (1+alpha)_0 fact = mp.mpf(1) # 0! for n, An in enumerate(A): if n > 0: poch *= (alpha + n) # (1+alpha)_n = ∏_{k=1}^n (alpha + k) fact *= n s += An/(poch*fact) * (z**n) return s10. A Laplace-type integral relation (advanced but useful)
Section titled “10. A Laplace-type integral relation (advanced but useful)”Maroni derives integral transforms that connect the origin-normalized solution to canonical solutions at infinity.
One representative Laplace-type relation (see §4.1) is:
valid (at least) for and , with
You do not need this formula for day-to-day evaluation of HeunB, but it is valuable for:
- proving properties (growth, analytic continuation),
- building alternative numerical schemes (quadrature-based),
- understanding how “origin data” and “infinity data” are related.
References and recommended primary sources
Section titled “References and recommended primary sources”- P. P. Maroni, “The Biconfluent Heun Equation”, in A. Ronveaux (ed.), Heun’s Differential Equations, Oxford University Press (1995), Part D.
- NIST Digital Library of Mathematical Functions (DLMF), Chapter 31 (Heun Functions), especially §31.12 (confluent forms) and §31.18 (computation).
- Maple help:
HeunB — The Heun Biconfluent function. - Wolfram Language documentation:
HeunB.