If ∫tan7x dx=f(x)+C then
f(x) is a polynomial of degree 8 intan x
f(x) is a polynomial of degree 5 in tan x
f(x) =16tan6x-14tan4x+12tan2x+log|cosx|+C
f(x) is a polynomial of degree 6 in tan x
Putting tanx=t we have dx=dt1+t2, So
∫tan7x dx=∫t71+t2 dt
=∫t5-t3+t-t1+t2dt
=t66-t44+t22-12log1+t2+C
=16tan6x-14tan4x+12tan2x
-12logsec2x+C
=16tan6x−14tan4x+12tan2x+log|cosx|+C.