A port of SymPy's risch_integrate() (sympy/integrals/risch.py, rde.py
and prde.py) for elementary transcendental functions: exponentials and
logarithms over a tower built by DifferentialExtension(). Returns the
antiderivative; a part proven nonelementary is an unevaluated integral.
Usage
risch_integrate(
f,
x,
extension = NULL,
handle_first = "log",
separate_integral = FALSE,
rewrite_complex = NULL,
conds = "piecewise"
)