Skip to main content
Log in

Symbolic-numeric integration of rational functions

  • Original Paper
  • Published:
Numerical Algorithms Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3

Similar content being viewed by others

Notes

  1. 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.

  2. The following review is based in part on the ISSAC 1998 tutorial [3] and the landmark text book [2] of M. Bronstein.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. The data for this section was collected using an internal December 2017 version of the BPAS library.

References

  1. Bini, D.A., Robol, L.: Solving secular and polynomial equations: a multiprecision algorithm. J. Comput. Appl. Math. 272, 276–292 (2014)

    Article  MathSciNet  Google Scholar 

  2. Bronstein, M.: Symbolic Integration, vol. 3. Springer, Berlin (1997)

    Book  Google Scholar 

  3. Bronstein, M.: Symbolic integration tutorial. https://www-sop.inria.fr/cafe/Manuel.Bronstein/publications/issac98.pdf. Accessed: 2019-04-26 (1998)

  4. Buchberger, B., Rüdiger, G.K.L.: Algebraic Simplification, pp 11–43. Springer, Wien–New York (1982)

    Google Scholar 

  5. 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)

  6. Kahan, W.M.: Conserving confluence curbs ill-condition. Technical report, DTIC Document (1972)

  7. Kahan, W.M.: Handheld calculator evaluates integrals. Hewlett-Packard Journal 31(8), 23–32 (1980)

    MathSciNet  Google Scholar 

  8. 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)

  9. Noda, M.-T., Miyahiro, E.: A hybrid approach for the integration of a rational function. J. Comput. Appl. Math. 40(3), 259–268 (1992)

    Article  MathSciNet  Google Scholar 

  10. 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)

  11. Rioboo, R.: Towards faster real algebraic numbers. J. Symb. Comput. 36(3–4), 513–533 (2003)

    Article  MathSciNet  Google Scholar 

  12. Zeng, Z.: Apatools: a software toolbox for approximate polynomial algebra. In: Software for Algebraic Geometry, pp 149–167. Springer (2008)

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Robert H. C. Moir.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11075-019-00726-6

Keywords

Navigation