<s>[INST] Integrate $\int_0^{2 \pi} \frac{2}{\cos^{6}(x) + \sin^{6}(x)} dx$ Integrate $$\int_0^{2 \pi} \frac{2}{\cos^{6}(x) + \sin^{6}(x)} dx$$
I have tried to do Tangent substitution, but there is huge power.
What method is better to use here?
 [/INST] I suspect the OP did not intend for this, but let's go with the residue theorem.  Even if we make no simplification to the denominator, things end up pretty simple.  Note that, when $z=e^{i x}$,
$$\cos^6{x}+\sin^6{x} = \left (\frac{z+z^{-1}}{2} \right )^6 - \left (\frac{z-z^{-1}}{2} \right )^6 = \frac1{16} \left (3 z^4+10+3 z^{-4} \right )$$
As usual, sub $z=e^{i x}$ in the integral; then the integral is equal to
$$-i 16 \oint_{|z|=1} \frac{dz}{z} \frac2{3 z^4+10+3 z^{-4}} = -i 32 \oint_{|z|=1} dz \frac{z^3}{3 z^8+10 z^4+3}$$
The poles of the denominator occur inside the unit circle where $z_k^4=-1/3$.  By the residue theorem, the integral is equal to $i 2 \pi$ times the sum of the residues at these poles inside the unit circle, or
$$64 \pi \sum_{k=1}^4 \frac{z_k^3}{24 z_k^7+40 z_k^3} = 8 \pi \sum_{k=1}^4 \frac1{3 z_k^4+5} = 8 \pi (4) \left (\frac14 \right ) $$
Thus,

$$\int_0^{2 \pi} dx \frac{2}{\cos^6{x}+\sin^6{x}} = 8 \pi$$

</s>