Abstract
We consider the problem of symbolic-numeric integration of symbolic functions, focusing on rational functions. Using a hybrid method allows the reliable yet efficient computation of symbolic antiderivatives while avoiding issues of ill-conditioning to which numerical methods are susceptible. We propose two alternative methods for exact input that compute the rational part of the integral using Hermite reduction and then compute the transcendental part two different ways using a combination of exact integration and efficient numerical computation of roots. The symbolic computation is done within bpas, or Basic Polynomial Algebra Subprograms, which is a highly optimized environment for polynomial computation on parallel architectures, while the numerical computation is done using the highly optimized multiprecision rootfinding package MPSolve. We provide for both algorithms computable expressions for the first-order term of a structured forward and backward error and show how, away from singularities, tolerance proportionality is achieved by adjusting the precision of the rootfinding tasks.
Similar content being viewed by others
Notes
Note that strict preservation of the form of the integrand is not quite achieved for the PFD method described below, since the derivative cannot be simplified into this form without using approximate gcd. Thus, with exact computation, the degree of the numerator and denominator of the nearby integrand is larger in general than the exact integrand.
Note that throughout this section we assume that the error for the numerical rootfinding for a polynomial P(x) satisfies the relation |Δr|≤ ε|r|, where r is the value of the computed root and Δr is the distance in the complex plane to the exact root. This can be accomplished using MPSolve by specifying an error tolerance of ε. Given the way that MPSolve isolates and then approximates roots, the bound is generally satisfied by several orders of magnitude.
Note that we assume that ε is sufficiently small to avoid spurious identification of residues in this analysis. Even with spurious identification, however, the backward error analysis would only change slightly, viz., to use the maximum error among the nearby residues, rather than the error of the selected representative residue. A different but related issue occurs when several distinct residues are clustered within an interval of width of some small multiple of ε. This presents a more challenging situation that we reserve for future work, but discuss briefly in Section 7 below.
This means that when several computed residues are coalesced, the chosen representative root \(\hat {\gamma }_{\tilde {k}}\) must be used to evaluate \(\hat {a}_{k}\) and \(\hat {b}_{k}\), and \(c^{\prime }(\hat {\gamma }_{k})\) must be used to evaluate all of the error terms corresponding to the roots \(\hat {\gamma }_{k}\) that have the same residue.
Note that this may account for the differences in stability between the LRT-based and PFD-based methods observed in Section 6 below. Because roots are isolated using multiprecision arithmetic, however, both methods nonetheless produce stable results.
The data for this section was collected using an internal December 2017 version of the BPAS library.
References
Bini, D.A., Robol, L.: Solving secular and polynomial equations: a multiprecision algorithm. J. Comput. Appl. Math. 272, 276–292 (2014)
Bronstein, M.: Symbolic Integration, vol. 3. Springer, Berlin (1997)
Bronstein, M.: Symbolic integration tutorial. https://www-sop.inria.fr/cafe/Manuel.Bronstein/publications/issac98.pdf. Accessed: 2019-04-26 (1998)
Buchberger, B., Rüdiger, G.K.L.: Algebraic Simplification, pp 11–43. Springer, Wien–New York (1982)
Fateman, R.: Revisiting numeric/symbolic indefinite integration of rational functions, and extensions. https://people.eecs.berkeley.edu/fateman/papers/integ.pdf. Accessed: 2019-04-26 (2008)
Kahan, W.M.: Conserving confluence curbs ill-condition. Technical report, DTIC Document (1972)
Kahan, W.M.: Handheld calculator evaluates integrals. Hewlett-Packard Journal 31(8), 23–32 (1980)
Noda, M.-T., Miyahiro, E.: On the symbolic/numeric hybrid integration. In: Proceedings of the International Symposium on Symbolic and Algebraic Computation, p 304. ACM (1990)
Noda, M.-T., Miyahiro, E.: A hybrid approach for the integration of a rational function. J. Comput. Appl. Math. 40(3), 259–268 (1992)
Rioboo, R.: Proceedings of the 1992 International Symposium on Symbolic and Algebraic Computation, ISSAC ’92, Berkeley, CA, USA, July 27–29, 1992. In: Wang, P.S. (ed.) , pp 206–215. ACM (1992)
Rioboo, R.: Towards faster real algebraic numbers. J. Symb. Comput. 36(3–4), 513–533 (2003)
Zeng, Z.: Apatools: a software toolbox for approximate polynomial algebra. In: Software for Algebraic Geometry, pp 149–167. Springer (2008)
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Moir, R.H.C., Corless, R.M., Maza, M.M. et al. Symbolic-numeric integration of rational functions. Numer Algor 83, 1295–1320 (2020). https://doi.org/10.1007/s11075-019-00726-6
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11075-019-00726-6