Is this right? This isn't what my TI-89 is giving me.
It's probably giving you some weird and wonderful answer that is equivalent to tan(x) + 2ln(cos(x)) + C. You can easily check your by-hand answer ...... differentiate it!! You should get the integrand back .....