The tan(x/2) substitution, also called the Weierstrass substitution, is one method currently used by computer-algebra systems for the evaluation of trigonometric integrals. The method needs to be improved, because the expressions obtained using it sometimes contain discontinuities, which unnecessarily limit the domains over which the expressions are correct. We show that the discontinuities are spurious in the following sense: Given an integrand and an expression for its antiderivative that was obtained by the Weierstrass substition, a better expression can be found that is continuous on wider intervals than the first expression and yet is still an antiderivative of the integrand. The origin of the discontinuities is identified, and an algorithm is presented for automatically finding the improved type of antiderivative. The new algorithm also enlarges the set of functions that can be used in the substitution. The algorithm works by first evaluating the given integral using the Weierstrass substitution in the usual way and then removing any spurious discontinuities present in the antiderivative.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.