Simplifying tan4x.
tan4x=tan2(2x)
=2tan2x1−tan22x
=22tanx1−tan2x1−(2tanx1−tan2x)2
=4tanx1−tan2x(1−tan2x)2−4tan2x(1−tan2x)2
=4tanx(1−tan2x)1+tan4x−2tan2x−4tan2x
=4tanx(1−tan2x)1+tan4x−6tan2x
The integral of tan4x is: