Integrand size = 27, antiderivative size = 42 \[ \int \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \left (1-\sin ^2(2 x)\right )^2 \, dx=\csc ^2(2 x)-\frac {1}{8} \csc ^4(2 x)+3 \log (\sin (2 x))-\sin ^2(2 x)+\frac {1}{8} \sin ^4(2 x) \]
[Out]
Time = 0.13 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {3254, 4445, 272, 45} \[ \int \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \left (1-\sin ^2(2 x)\right )^2 \, dx=\frac {1}{8} \sin ^4(2 x)-\sin ^2(2 x)-\frac {1}{8} \csc ^4(2 x)+\csc ^2(2 x)+3 \log (\sin (2 x)) \]
[In]
[Out]
Rule 45
Rule 272
Rule 3254
Rule 4445
Rubi steps \begin{align*} \text {integral}& = \int \cos ^4(2 x) \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \, dx \\ & = \frac {1}{2} \text {Subst}\left (\int \frac {\left (1-x^2\right )^4}{x^5} \, dx,x,\sin (2 x)\right ) \\ & = \frac {1}{4} \text {Subst}\left (\int \frac {(1-x)^4}{x^3} \, dx,x,\sin ^2(2 x)\right ) \\ & = \frac {1}{4} \text {Subst}\left (\int \left (-4+\frac {1}{x^3}-\frac {4}{x^2}+\frac {6}{x}+x\right ) \, dx,x,\sin ^2(2 x)\right ) \\ & = \csc ^2(2 x)-\frac {1}{8} \csc ^4(2 x)+3 \log (\sin (2 x))-\sin ^2(2 x)+\frac {1}{8} \sin ^4(2 x) \\ \end{align*}
Time = 0.04 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.00 \[ \int \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \left (1-\sin ^2(2 x)\right )^2 \, dx=\csc ^2(2 x)-\frac {1}{8} \csc ^4(2 x)+3 \log (\sin (2 x))-\sin ^2(2 x)+\frac {1}{8} \sin ^4(2 x) \]
[In]
[Out]
Time = 14.66 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.88
method | result | size |
derivativedivides | \(\frac {\sin \left (2 x \right )^{4}}{8}+\cos \left (2 x \right )^{2}+3 \ln \left (\sin \left (2 x \right )\right )+\frac {1}{\sin \left (2 x \right )^{2}}-\frac {1}{8 \sin \left (2 x \right )^{4}}\) | \(37\) |
default | \(\frac {\sin \left (2 x \right )^{4}}{8}+\cos \left (2 x \right )^{2}+3 \ln \left (\sin \left (2 x \right )\right )+\frac {1}{\sin \left (2 x \right )^{2}}-\frac {1}{8 \sin \left (2 x \right )^{4}}\) | \(37\) |
risch | \(-6 i x +\frac {{\mathrm e}^{8 i x}}{128}+\frac {7 \,{\mathrm e}^{4 i x}}{32}+\frac {7 \,{\mathrm e}^{-4 i x}}{32}+\frac {{\mathrm e}^{-8 i x}}{128}-\frac {2 \left (2 \,{\mathrm e}^{12 i x}-3 \,{\mathrm e}^{8 i x}+2 \,{\mathrm e}^{4 i x}\right )}{\left ({\mathrm e}^{4 i x}-1\right )^{4}}+3 \ln \left ({\mathrm e}^{4 i x}-1\right )\) | \(77\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 79 vs. \(2 (38) = 76\).
Time = 0.26 (sec) , antiderivative size = 79, normalized size of antiderivative = 1.88 \[ \int \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \left (1-\sin ^2(2 x)\right )^2 \, dx=\frac {8 \, \cos \left (2 \, x\right )^{8} + 32 \, \cos \left (2 \, x\right )^{6} - 115 \, \cos \left (2 \, x\right )^{4} + 38 \, \cos \left (2 \, x\right )^{2} + 192 \, {\left (\cos \left (2 \, x\right )^{4} - 2 \, \cos \left (2 \, x\right )^{2} + 1\right )} \log \left (\frac {1}{2} \, \sin \left (2 \, x\right )\right ) + 29}{64 \, {\left (\cos \left (2 \, x\right )^{4} - 2 \, \cos \left (2 \, x\right )^{2} + 1\right )}} \]
[In]
[Out]
Timed out. \[ \int \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \left (1-\sin ^2(2 x)\right )^2 \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.19 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.05 \[ \int \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \left (1-\sin ^2(2 x)\right )^2 \, dx=\frac {1}{8} \, \sin \left (2 \, x\right )^{4} - \sin \left (2 \, x\right )^{2} + \frac {8 \, \sin \left (2 \, x\right )^{2} - 1}{8 \, \sin \left (2 \, x\right )^{4}} + \frac {3}{2} \, \log \left (\sin \left (2 \, x\right )^{2}\right ) \]
[In]
[Out]
none
Time = 0.27 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.24 \[ \int \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \left (1-\sin ^2(2 x)\right )^2 \, dx=\frac {1}{8} \, \cos \left (2 \, x\right )^{4} + \frac {3}{4} \, \cos \left (2 \, x\right )^{2} - \frac {8 \, \cos \left (2 \, x\right )^{2} - 7}{8 \, {\left (\cos \left (2 \, x\right )^{2} - 1\right )}^{2}} + \frac {3}{2} \, \log \left (-\cos \left (2 \, x\right )^{2} + 1\right ) \]
[In]
[Out]
Time = 26.99 (sec) , antiderivative size = 71, normalized size of antiderivative = 1.69 \[ \int \cot (2 x) \left (-1+\csc ^2(2 x)\right )^2 \left (1-\sin ^2(2 x)\right )^2 \, dx=3\,\ln \left (\mathrm {tan}\left (2\,x\right )\right )-\frac {3\,\ln \left ({\mathrm {tan}\left (2\,x\right )}^2+1\right )}{2}+\frac {3\,{\mathrm {tan}\left (2\,x\right )}^6+\frac {9\,{\mathrm {tan}\left (2\,x\right )}^4}{2}+{\mathrm {tan}\left (2\,x\right )}^2-\frac {1}{4}}{2\,\left ({\mathrm {tan}\left (2\,x\right )}^8+2\,{\mathrm {tan}\left (2\,x\right )}^6+{\mathrm {tan}\left (2\,x\right )}^4\right )} \]
[In]
[Out]