intaf.spad line 708 [edit on github]
This package provides functions for the integration of algebraic integrands over transcendental functions.
algextint(x, y, d, ext, rde, csolve, [g1, ..., gn]) returns [h, [c1, ..., cn]] such that f = dh/dx + sum( and dci/dx = 0, if such ci gi)[h, [c1, ..., cn]] exist, "failed" otherwise.
algextint_base(x, y, d, csolve, [g1, ..., gn]) is like algextint but assumes that y and gi-s are purely algebraic
algint(f, x, y, d) returns the integral of f(x, y)dx where y is an algebraic function of x; d is the derivation to use on k[x].