intrf.spad line 550 [edit on github]
This package provides functions for the base case of the Risch algorithm.
infieldint(f) returns g such that g' = f or "failed" if the integral of f is not a rational function.
integrate(f) returns g such that g' = f.