Optimal. Leaf size=27 \[ \frac{3}{2} \log \left (1-\sqrt [3]{1-8 \tan ^2(x)}\right )-\log (\tan (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.967354, antiderivative size = 35, normalized size of antiderivative = 1.3, number of steps used = 15, number of rules used = 9, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.29, Rules used = {4366, 6725, 514, 444, 57, 618, 204, 31, 55} \[ \frac{3}{2} \log \left (1-\sqrt [3]{9-8 \sec ^2(x)}\right )-\frac{1}{2} \log \left (1-\sec ^2(x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4366
Rule 6725
Rule 514
Rule 444
Rule 57
Rule 618
Rule 204
Rule 31
Rule 55
Rubi steps
\begin{align*} \int \frac{\csc (x) \sec (x) \left (1+\sqrt [3]{1-8 \tan ^2(x)}\right )}{\left (1-8 \tan ^2(x)\right )^{2/3}} \, dx &=-\operatorname{Subst}\left (\int \frac{1+\sqrt [3]{9-\frac{8}{x^2}}}{\left (9-\frac{8}{x^2}\right )^{2/3} x \left (1-x^2\right )} \, dx,x,\cos (x)\right )\\ &=-\operatorname{Subst}\left (\int \left (-\frac{1}{\left (9-\frac{8}{x^2}\right )^{2/3} x \left (-1+x^2\right )}-\frac{1}{\sqrt [3]{9-\frac{8}{x^2}} x \left (-1+x^2\right )}\right ) \, dx,x,\cos (x)\right )\\ &=\operatorname{Subst}\left (\int \frac{1}{\left (9-\frac{8}{x^2}\right )^{2/3} x \left (-1+x^2\right )} \, dx,x,\cos (x)\right )+\operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{9-\frac{8}{x^2}} x \left (-1+x^2\right )} \, dx,x,\cos (x)\right )\\ &=\operatorname{Subst}\left (\int \frac{1}{\left (9-\frac{8}{x^2}\right )^{2/3} \left (1-\frac{1}{x^2}\right ) x^3} \, dx,x,\cos (x)\right )+\operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{9-\frac{8}{x^2}} \left (1-\frac{1}{x^2}\right ) x^3} \, dx,x,\cos (x)\right )\\ &=-\left (\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{(9-8 x)^{2/3} (1-x)} \, dx,x,\sec ^2(x)\right )\right )-\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{9-8 x} (1-x)} \, dx,x,\sec ^2(x)\right )\\ &=-\log (\tan (x))-2 \left (\frac{3}{4} \operatorname{Subst}\left (\int \frac{1}{1-x} \, dx,x,\sqrt [3]{9-8 \sec ^2(x)}\right )\right )\\ &=\frac{3}{2} \log \left (1-\sqrt [3]{9-8 \sec ^2(x)}\right )-\log (\tan (x))\\ \end{align*}
Mathematica [B] time = 4.10294, size = 58, normalized size = 2.15 \[ \frac{1}{4} \left (5 \log \left (1-\sqrt [3]{1-8 \tan ^2(x)}\right )-\log \left (\left (1-8 \tan ^2(x)\right )^{2/3}+\sqrt [3]{1-8 \tan ^2(x)}+1\right )-2 \log (\tan (x))\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.485, size = 0, normalized size = 0. \begin{align*} \int{\frac{\cot \left ( x \right ) }{ \left ( \cos \left ( x \right ) \right ) ^{2}} \left ( 1+\sqrt [3]{1-8\, \left ( \tan \left ( x \right ) \right ) ^{2}} \right ) \left ( 1-8\, \left ( \tan \left ( x \right ) \right ) ^{2} \right ) ^{-{\frac{2}{3}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left ({\left (-8 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{1}{3}} + 1\right )} \cot \left (x\right )}{{\left (-8 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{2}{3}} \cos \left (x\right )^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 16.9191, size = 281, normalized size = 10.41 \begin{align*} -\frac{1}{2} \, \log \left (\frac{16 \,{\left (145 \, \cos \left (x\right )^{4} - 200 \, \cos \left (x\right )^{2} + 3 \,{\left (11 \, \cos \left (x\right )^{4} - 8 \, \cos \left (x\right )^{2}\right )} \left (\frac{9 \, \cos \left (x\right )^{2} - 8}{\cos \left (x\right )^{2}}\right )^{\frac{2}{3}} + 3 \,{\left (19 \, \cos \left (x\right )^{4} - 16 \, \cos \left (x\right )^{2}\right )} \left (\frac{9 \, \cos \left (x\right )^{2} - 8}{\cos \left (x\right )^{2}}\right )^{\frac{1}{3}} + 64\right )}}{\cos \left (x\right )^{4} - 2 \, \cos \left (x\right )^{2} + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13704, size = 55, normalized size = 2.04 \begin{align*} -\frac{1}{2} \, \log \left ({\left (-8 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{2}{3}} +{\left (-8 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{1}{3}} + 1\right ) + \log \left (-{\left (-8 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{1}{3}} + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]