Optimal. Leaf size=69 \[ 2 \sqrt{3} \tan ^{-1}\left (\frac{\sqrt [3]{1-7 \tan ^2(x)}+1}{\sqrt{3}}\right )+\frac{3}{4} \left (1-7 \tan ^2(x)\right )^{2/3}+3 \log \left (2-\sqrt [3]{1-7 \tan ^2(x)}\right )+2 \log (\cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0871591, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.467, Rules used = {3670, 444, 50, 55, 618, 204, 31} \[ 2 \sqrt{3} \tan ^{-1}\left (\frac{\sqrt [3]{1-7 \tan ^2(x)}+1}{\sqrt{3}}\right )+\frac{3}{4} \left (1-7 \tan ^2(x)\right )^{2/3}+3 \log \left (2-\sqrt [3]{1-7 \tan ^2(x)}\right )+2 \log (\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3670
Rule 444
Rule 50
Rule 55
Rule 618
Rule 204
Rule 31
Rubi steps
\begin{align*} \int \tan (x) \left (1-7 \tan ^2(x)\right )^{2/3} \, dx &=\operatorname{Subst}\left (\int \frac{x \left (1-7 x^2\right )^{2/3}}{1+x^2} \, dx,x,\tan (x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{(1-7 x)^{2/3}}{1+x} \, dx,x,\tan ^2(x)\right )\\ &=\frac{3}{4} \left (1-7 \tan ^2(x)\right )^{2/3}+4 \operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{1-7 x} (1+x)} \, dx,x,\tan ^2(x)\right )\\ &=2 \log (\cos (x))+\frac{3}{4} \left (1-7 \tan ^2(x)\right )^{2/3}-3 \operatorname{Subst}\left (\int \frac{1}{2-x} \, dx,x,\sqrt [3]{1-7 \tan ^2(x)}\right )+6 \operatorname{Subst}\left (\int \frac{1}{4+2 x+x^2} \, dx,x,\sqrt [3]{1-7 \tan ^2(x)}\right )\\ &=2 \log (\cos (x))+3 \log \left (2-\sqrt [3]{1-7 \tan ^2(x)}\right )+\frac{3}{4} \left (1-7 \tan ^2(x)\right )^{2/3}-12 \operatorname{Subst}\left (\int \frac{1}{-12-x^2} \, dx,x,2+2 \sqrt [3]{1-7 \tan ^2(x)}\right )\\ &=2 \sqrt{3} \tan ^{-1}\left (\frac{1+\sqrt [3]{1-7 \tan ^2(x)}}{\sqrt{3}}\right )+2 \log (\cos (x))+3 \log \left (2-\sqrt [3]{1-7 \tan ^2(x)}\right )+\frac{3}{4} \left (1-7 \tan ^2(x)\right )^{2/3}\\ \end{align*}
Mathematica [C] time = 0.138839, size = 42, normalized size = 0.61 \[ -\frac{3}{4} \left (1-7 \tan ^2(x)\right )^{2/3} \left (\, _2F_1\left (\frac{2}{3},1;\frac{5}{3};\frac{1}{8} (4 \cos (2 x)-3) \sec ^2(x)\right )-1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.05, size = 0, normalized size = 0. \begin{align*} \int \tan \left ( x \right ) \left ( 1-7\, \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{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{2}{3}} \tan \left (x\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 11.5915, size = 360, normalized size = 5.22 \begin{align*} 2 \, \sqrt{3} \arctan \left (\frac{7 \, \sqrt{3} \tan \left (x\right )^{2} + 4 \, \sqrt{3}{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{2}{3}} - 16 \, \sqrt{3}{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{1}{3}} - \sqrt{3}}{7 \, \tan \left (x\right )^{2} - 65}\right ) + \frac{3}{4} \,{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{2}{3}} + \log \left (\frac{7 \, \tan \left (x\right )^{2} + 6 \,{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{2}{3}} - 12 \,{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{1}{3}} + 7}{\tan \left (x\right )^{2} + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (1 - 7 \tan ^{2}{\left (x \right )}\right )^{\frac{2}{3}} \tan{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.10444, size = 107, normalized size = 1.55 \begin{align*} 2 \, \sqrt{3} \arctan \left (\frac{1}{3} \, \sqrt{3}{\left ({\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{1}{3}} + 1\right )}\right ) + \frac{3}{4} \,{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{2}{3}} - \log \left ({\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{2}{3}} + 2 \,{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{1}{3}} + 4\right ) + 2 \, \log \left ({\left |{\left (-7 \, \tan \left (x\right )^{2} + 1\right )}^{\frac{1}{3}} - 2 \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]