Source: Integration at 605cbc581c27.
Bessel and Hankel integration moments#
Enable the supplement manifest to apply six integrations from SymbolicIntegration.jl. The Rubi 4.17.3.0 loader comments out its Bessel section. The file present in the release contains three active definitions for unweighted Bessel J with an affine argument. The supplement handles powers of x multiplying functions of ax. Released source file · Pinned CAS rules
Rule and domain#
Write $F_ν$ for $J_ν$, $Y_ν$ or first-kind Hankel $H^{(1)}_ν=J_ν+iY_ν$. The variable x ranges over a positive real interval, the scale a is positive real and the parameters a, m and ν are independent of x. On this domain the real logarithm of x fixes the value of $x^m$ even for complex m. The scale condition keeps the function argument on the positive real axis. Supply both inequalities in the CAS assumption context before applying a rule. The upstream source tests a for nonzero. OSR deliberately publishes the narrower domain. DLMF definitions and branches · DLMF derivative recurrence
Set $d=m-ν-1$. Differentiating the leading term gives
\frac{d}{dx}\left(\frac{x^m F_{ν+1}(ax)}{a}\right)
= x^m F_ν(ax) + \frac{d}{a} x^{m-1} F_{ν+1}(ax).| Condition | Oriented rewrite of the indefinite integral of $x^m F_ν(ax)$ |
|---|---|
| $d=0$ | Return $x^m F_m(ax)/a$. |
| d is a positive even integer | Return $x^m F_{ν+1}(ax)/a$ minus $d/a$ times the integral of $x^{m-1} F_{ν+1}(ax)$. |
Each reduction changes the exponent and order to m−1 and ν+1, so d decreases by two. Starting from $d=2k$ takes k reductions and one direct application. A host must establish the integer and parity predicates before introducing the residual integral. The primitives are local up to an additive constant.
Vocabulary and coverage#
The rule file retains the six upstream IDs and records the source revision and locator for each. The OpenMath identifiers come from the experimental hypergeo2 dictionary, version 0 revision 3. Arguments are order first, argument second. Interpret integer-order Y by the standard limiting value. Only the reviewed symbol meanings are used here. The dictionary’s formal properties are not imported as rewrite rules. Pinned content dictionary · DLMF second-kind function
| Upstream rule IDs | Decision |
|---|---|
| 8_1_1, 8_1_5 | Include direct and reduction rules for Bessel J. |
| 8_1_2, 8_1_6 | Include both rules for Bessel Y. |
| 8_1_9, 8_1_11 | Include both rules for first-kind Hankel. |
| 8_1_3, 8_1_4, 8_1_7, 8_1_8 | Hold modified Bessel I and K. OSR v0.1 names these functions, but the reviewed OpenMath catalogue supplies no corresponding named symbol. |
| 8_1_10, 8_1_12 | Hold second-kind Hankel. The formal property in its OpenMath entry names first-kind Hankel on the left, contradicting the accompanying text. Recorded vocabulary discrepancy |
Verification#
The nine fixtures exercise one, two and three applications per function at order ½. The test context supplies the assumption x > 0 for all nine. Their step counts measure this supplement. Run just test to evaluate the actual rules, check the decreasing index and compare differentiated reference primitives on the positive real interval. The half-integer numerical oracle uses the elementary sine and cosine forms; both components of the complex Hankel result are checked. The guard tests exercise zero, negative or unknown scales and arguments, variable-dependent parameters, and unsuitable recurrence indices. Elementary half-integer formulas · Pinned upstream examples
A separate numerical check with mpmath 1.3.0 differentiated the serialized right-hand sides at orders 0, −0.7 and 1.25, using 45 decimal digits, (a, x) = (0.7, 0.8) and (2.25, 1.3), and a central difference of step 10⁻¹⁰. The residual integral was evaluated by quadrature from 0.6 to x. All 54 checks passed with absolute error below 10⁻¹⁵. All six rules have formal verification status unproved. Upstream MIT license
Integer-order upstream benchmarks#
The twelve regression vectors reproduce all the cylinder-function integral assertions in the pinned source file. Seven cover J, Y and first-kind Hankel. Five cover I, K and second-kind Hankel. The two polynomial J cases preserve expanded and factored inputs with the same primitive, so a benchmark can measure how a CAS handles those forms separately. The cases carry stable IDs, source line ranges, the integration variable and a reference primitive. Apply the suite-level conditions to every case. The scale a is constant in x and both are positive real. The upstream assertions give no step count. These examples contribute to the benchmark corpus only. Pinned source assertions · Source license
To reproduce the vectors, download the pinned file and run the importer with the repository’s converter environment. It verifies the source SHA-256 before parsing the selected assertions. The JSON preserves operand order, signs and the symbolic scale. The following commands run from the repository root.
suite=supplements/cylinder-regressions
rev=3625e0e4bb1d78c0ce0acc038d75043aa48efdf1
url=https://raw.githubusercontent.com/JuliaSymbolics/SymbolicIntegration.jl
tmp=$(mktemp -d)
curl -fsSL "$url/$rev/test/methods/rule_based/test_special_functions.jl" -o "$tmp/source.jl"
julia --project=converter "$suite/import.jl" "$tmp/source.jl" > "$tmp/examples.json"
cmp "$suite/examples.json" "$tmp/examples.json"
python3 "$suite/check.py"The numerical check differentiates each serialized primitive at three positive x values and two scales. Independent integral representations evaluate the functions at integer orders. The Hankel comparisons use both real and imaginary parts. SymPy 1.14.0 also reduced the derivative of each of the twelve serialized references minus its input to zero under positive-real assumptions. These checks supply numerical and symbolic evidence. A Lean proof would require a separate theorem for the intended domain. Ordinary J integral · Ordinary Y integral · Modified I integral · Modified K integral
For a CAS adapter, HankelH2(n,z) denotes Jₙ(z) − iYₙ(z). To bind the general rules, the formal property in the OpenMath hankel2 entry needs hankel2 on its left-hand side. For I and K, the rule-file semantics map needs distinct qualified symbols with the standard modified Bessel normalizations. On the positive axis the first-kind solution has leading term (z/2)ⁿ/Γ(n+1) at zero for integer n ≥ 0. The second-kind solution has leading term √(π/(2z)) exp(−z) at positive infinity. These conventions distinguish the modified solutions from each other and determine their signs in the moment formulas. The review of the pinned OpenMath collection found no named I or K entry. Rule-file schema · Pinned OpenMath dictionaries · DLMF modified Bessel definitions · DLMF limiting forms · DLMF recurrence relations
As an interoperability check, SymPy 1.14.0 also evaluated all twelve indefinite integrals with integrate(f, x) for positive symbols x and a. For eleven engine outputs, simplify(expand_func(diff(result, x) - f)) returned zero directly. For the cubic second-kind Hankel case, it returned −x²(H⁽²⁾₋₁(ax) + H⁽²⁾₁(ax))/a. The integer-order reflection identity H⁽²⁾₋₁ = −H⁽²⁾₁ makes this residual zero. A benchmark comparing literal primitive trees would miss this valid result. DLMF connection formulas