Consider the given integral.
I=∫(3tan2x+2)sec2x(tan3x+2tanx+5)2dx
Let t=tan3x+2tanx+5
t=tan3x+2tanx+5
dtdx=3tan2xsec2x+2sec2x+0
dt=(3tan2x+2)sec2xdx
Therefore,
I=∫dtt2
I=−1t+C
On putting the value of t, we get
I=−1(tan3x+2tanx+5)+C
Hence, this is the answer.