Integrand size = 11, antiderivative size = 47 \[ \int \frac {1}{\left (\cot ^2(x)+\csc ^2(x)\right )^2} \, dx=x-\frac {x}{\sqrt {2}}+\frac {\arctan \left (\frac {\cos (x) \sin (x)}{1+\sqrt {2}+\cos ^2(x)}\right )}{\sqrt {2}}-\frac {\tan (x)}{2+\tan ^2(x)} \]
[Out]
Time = 0.04 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {481, 12, 400, 209} \[ \int \frac {1}{\left (\cot ^2(x)+\csc ^2(x)\right )^2} \, dx=\frac {\arctan \left (\frac {\sin (x) \cos (x)}{\cos ^2(x)+\sqrt {2}+1}\right )}{\sqrt {2}}-\frac {x}{\sqrt {2}}+x-\frac {\tan (x)}{\tan ^2(x)+2} \]
[In]
[Out]
Rule 12
Rule 209
Rule 400
Rule 481
Rubi steps \begin{align*} \text {integral}& = \text {Subst}\left (\int \frac {x^4}{\left (1+x^2\right ) \left (2+x^2\right )^2} \, dx,x,\tan (x)\right ) \\ & = -\frac {\tan (x)}{2+\tan ^2(x)}+\frac {1}{2} \text {Subst}\left (\int \frac {2}{\left (1+x^2\right ) \left (2+x^2\right )} \, dx,x,\tan (x)\right ) \\ & = -\frac {\tan (x)}{2+\tan ^2(x)}+\text {Subst}\left (\int \frac {1}{\left (1+x^2\right ) \left (2+x^2\right )} \, dx,x,\tan (x)\right ) \\ & = -\frac {\tan (x)}{2+\tan ^2(x)}+\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\tan (x)\right )-\text {Subst}\left (\int \frac {1}{2+x^2} \, dx,x,\tan (x)\right ) \\ & = x-\frac {x}{\sqrt {2}}+\frac {\arctan \left (\frac {\cos (x) \sin (x)}{1+\sqrt {2}+\cos ^2(x)}\right )}{\sqrt {2}}-\frac {\tan (x)}{2+\tan ^2(x)} \\ \end{align*}
Time = 0.17 (sec) , antiderivative size = 64, normalized size of antiderivative = 1.36 \[ \int \frac {1}{\left (\cot ^2(x)+\csc ^2(x)\right )^2} \, dx=\frac {(3+\cos (2 x)) \csc ^4(x) \left (6 x+2 x \cos (2 x)-\sqrt {2} \arctan \left (\frac {\tan (x)}{\sqrt {2}}\right ) (3+\cos (2 x))-2 \sin (2 x)\right )}{8 \left (\cot ^2(x)+\csc ^2(x)\right )^2} \]
[In]
[Out]
Time = 0.32 (sec) , antiderivative size = 28, normalized size of antiderivative = 0.60
\[-\frac {\tan \left (x \right )}{2+\tan \left (x \right )^{2}}-\frac {\sqrt {2}\, \arctan \left (\frac {\sqrt {2}\, \tan \left (x \right )}{2}\right )}{2}+x\]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 66, normalized size of antiderivative = 1.40 \[ \int \frac {1}{\left (\cot ^2(x)+\csc ^2(x)\right )^2} \, dx=\frac {4 \, x \cos \left (x\right )^{2} + {\left (\sqrt {2} \cos \left (x\right )^{2} + \sqrt {2}\right )} \arctan \left (\frac {3 \, \sqrt {2} \cos \left (x\right )^{2} - \sqrt {2}}{4 \, \cos \left (x\right ) \sin \left (x\right )}\right ) - 4 \, \cos \left (x\right ) \sin \left (x\right ) + 4 \, x}{4 \, {\left (\cos \left (x\right )^{2} + 1\right )}} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{\left (\cot ^2(x)+\csc ^2(x)\right )^2} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.31 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.57 \[ \int \frac {1}{\left (\cot ^2(x)+\csc ^2(x)\right )^2} \, dx=-\frac {1}{2} \, \sqrt {2} \arctan \left (\frac {1}{2} \, \sqrt {2} \tan \left (x\right )\right ) + x - \frac {\tan \left (x\right )}{\tan \left (x\right )^{2} + 2} \]
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 60, normalized size of antiderivative = 1.28 \[ \int \frac {1}{\left (\cot ^2(x)+\csc ^2(x)\right )^2} \, dx=-\frac {1}{2} \, \sqrt {2} {\left (x + \arctan \left (-\frac {\sqrt {2} \sin \left (2 \, x\right ) - \sin \left (2 \, x\right )}{\sqrt {2} \cos \left (2 \, x\right ) + \sqrt {2} - \cos \left (2 \, x\right ) + 1}\right )\right )} + x - \frac {\tan \left (x\right )}{\tan \left (x\right )^{2} + 2} \]
[In]
[Out]
Time = 27.91 (sec) , antiderivative size = 27, normalized size of antiderivative = 0.57 \[ \int \frac {1}{\left (\cot ^2(x)+\csc ^2(x)\right )^2} \, dx=x-\frac {\mathrm {tan}\left (x\right )}{{\mathrm {tan}\left (x\right )}^2+2}-\frac {\sqrt {2}\,\mathrm {atan}\left (\frac {\sqrt {2}\,\mathrm {tan}\left (x\right )}{2}\right )}{2} \]
[In]
[Out]