Integrate the functions.
Let x = tanƟ
⇒ dx = sec2ƟdƟ
Thus,
Integrating by parts, we get
= 2[ƟtanƟ + log|cosƟ| + C