$g(x)= \tan(x)+ 2\tan 2x + 4\tan 4x + 8\cot 8x$
and $f(x) = (7\tan^{6} x -3\tan^{2} x) \dfrac{1}{g^{2}(x)+1}$;
$x \in \left( 0,\dfrac{\pi}{4} \right)$
Then find $\displaystyle \int_0^\frac{\pi}{4} f(x) dx$ and $\displaystyle \int_0^\frac{\pi}{4} xf(x) dx$
Basically, I don't know how to simplify $f(x)$ or substitute anything.