The following formulas from the
Table of Elementary Indefinite Integrals
were used: