Recall that

math expression

So

math expression

Putting u = tanx, then du = sec2x dx

math expression