Optimal. Leaf size=176 \[ \frac{x}{3\ 2^{2/3} \sqrt [6]{3}}+\frac{\log \left (2 \sqrt [3]{2} \tan ^2(x)+2^{2/3} \sqrt [3]{3} \tan (x)+3^{2/3}\right )}{6\ 6^{2/3}}-\frac{\log \left (\sqrt [3]{3}-2^{2/3} \tan (x)\right )}{3\ 6^{2/3}}-\frac{\tan ^{-1}\left (\frac{-2\ 6^{2/3} \cos ^2(x)+2 \left (3-2 \sqrt [3]{6}\right ) \sin (x) \cos (x)+6^{2/3}}{\left (6-4 \sqrt [3]{6}\right ) \cos ^2(x)+2\ 6^{2/3} \sin (x) \cos (x)+4 \sqrt [3]{6}+3\ 2^{2/3} \sqrt [6]{3}}\right )}{3\ 2^{2/3} \sqrt [6]{3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13967, antiderivative size = 176, 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 = {3675, 200, 31, 634, 617, 204, 628} \[ \frac{x}{3\ 2^{2/3} \sqrt [6]{3}}+\frac{\log \left (2 \sqrt [3]{2} \tan ^2(x)+2^{2/3} \sqrt [3]{3} \tan (x)+3^{2/3}\right )}{6\ 6^{2/3}}-\frac{\log \left (\sqrt [3]{3}-2^{2/3} \tan (x)\right )}{3\ 6^{2/3}}-\frac{\tan ^{-1}\left (\frac{-2\ 6^{2/3} \cos ^2(x)+2 \left (3-2 \sqrt [3]{6}\right ) \sin (x) \cos (x)+6^{2/3}}{\left (6-4 \sqrt [3]{6}\right ) \cos ^2(x)+2\ 6^{2/3} \sin (x) \cos (x)+4 \sqrt [3]{6}+3\ 2^{2/3} \sqrt [6]{3}}\right )}{3\ 2^{2/3} \sqrt [6]{3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3675
Rule 200
Rule 31
Rule 634
Rule 617
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{\sec ^2(x)}{3-4 \tan ^3(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1}{3-4 x^3} \, dx,x,\tan (x)\right )\\ &=\frac{\operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{3}-2^{2/3} x} \, dx,x,\tan (x)\right )}{3\ 3^{2/3}}+\frac{\operatorname{Subst}\left (\int \frac{2 \sqrt [3]{3}+2^{2/3} x}{3^{2/3}+2^{2/3} \sqrt [3]{3} x+2 \sqrt [3]{2} x^2} \, dx,x,\tan (x)\right )}{3\ 3^{2/3}}\\ &=-\frac{\log \left (\sqrt [3]{3}-2^{2/3} \tan (x)\right )}{3\ 6^{2/3}}+\frac{\operatorname{Subst}\left (\int \frac{1}{3^{2/3}+2^{2/3} \sqrt [3]{3} x+2 \sqrt [3]{2} x^2} \, dx,x,\tan (x)\right )}{2 \sqrt [3]{3}}+\frac{\operatorname{Subst}\left (\int \frac{2^{2/3} \sqrt [3]{3}+4 \sqrt [3]{2} x}{3^{2/3}+2^{2/3} \sqrt [3]{3} x+2 \sqrt [3]{2} x^2} \, dx,x,\tan (x)\right )}{6\ 6^{2/3}}\\ &=-\frac{\log \left (\sqrt [3]{3}-2^{2/3} \tan (x)\right )}{3\ 6^{2/3}}+\frac{\log \left (3^{2/3}+2^{2/3} \sqrt [3]{3} \tan (x)+2 \sqrt [3]{2} \tan ^2(x)\right )}{6\ 6^{2/3}}-\frac{\operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+\frac{2\ 2^{2/3} \tan (x)}{\sqrt [3]{3}}\right )}{6^{2/3}}\\ &=\frac{x}{3\ 2^{2/3} \sqrt [6]{3}}-\frac{\tan ^{-1}\left (\frac{6^{2/3}-2\ 6^{2/3} \cos ^2(x)+2 \left (3-2 \sqrt [3]{6}\right ) \cos (x) \sin (x)}{3\ 2^{2/3} \sqrt [6]{3}+4 \sqrt [3]{6}+2 \left (3-2 \sqrt [3]{6}\right ) \cos ^2(x)+2\ 6^{2/3} \cos (x) \sin (x)}\right )}{3\ 2^{2/3} \sqrt [6]{3}}-\frac{\log \left (\sqrt [3]{3}-2^{2/3} \tan (x)\right )}{3\ 6^{2/3}}+\frac{\log \left (3^{2/3}+2^{2/3} \sqrt [3]{3} \tan (x)+2 \sqrt [3]{2} \tan ^2(x)\right )}{6\ 6^{2/3}}\\ \end{align*}
Mathematica [A] time = 0.121195, size = 74, normalized size = 0.42 \[ \frac{2 \sqrt{3} \tan ^{-1}\left (\frac{2\ 6^{2/3} \tan (x)+3}{3 \sqrt{3}}\right )+\log \left (2 \sqrt [3]{6} \tan ^2(x)+6^{2/3} \tan (x)+3\right )-2 \log \left (3-6^{2/3} \tan (x)\right )}{6\ 6^{2/3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.054, size = 80, normalized size = 0.5 \begin{align*} -{\frac{\sqrt [3]{3}{4}^{{\frac{2}{3}}}}{36}\ln \left ( \tan \left ( x \right ) -{\frac{\sqrt [3]{3}{4}^{{\frac{2}{3}}}}{4}} \right ) }+{\frac{\sqrt [3]{3}{4}^{{\frac{2}{3}}}}{72}\ln \left ( \left ( \tan \left ( x \right ) \right ) ^{2}+{\frac{\sqrt [3]{3}{4}^{{\frac{2}{3}}}\tan \left ( x \right ) }{4}}+{\frac{{3}^{{\frac{2}{3}}}\sqrt [3]{4}}{4}} \right ) }+{\frac{{3}^{{\frac{5}{6}}}{4}^{{\frac{2}{3}}}}{36}\arctan \left ({\frac{\sqrt{3}}{3} \left ({\frac{2\,{3}^{2/3}\sqrt [3]{4}\tan \left ( x \right ) }{3}}+1 \right ) } \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.45544, size = 120, normalized size = 0.68 \begin{align*} \frac{1}{36} \cdot 4^{\frac{2}{3}} 3^{\frac{5}{6}} \arctan \left (\frac{1}{12} \cdot 4^{\frac{2}{3}} 3^{\frac{1}{6}}{\left (2 \cdot 4^{\frac{2}{3}} \tan \left (x\right ) + 4^{\frac{1}{3}} 3^{\frac{1}{3}}\right )}\right ) + \frac{1}{72} \cdot 4^{\frac{2}{3}} 3^{\frac{1}{3}} \log \left (4^{\frac{2}{3}} \tan \left (x\right )^{2} + 4^{\frac{1}{3}} 3^{\frac{1}{3}} \tan \left (x\right ) + 3^{\frac{2}{3}}\right ) - \frac{1}{36} \cdot 4^{\frac{2}{3}} 3^{\frac{1}{3}} \log \left (\frac{1}{4} \cdot 4^{\frac{2}{3}}{\left (4^{\frac{1}{3}} \tan \left (x\right ) - 3^{\frac{1}{3}}\right )}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.06919, size = 1635, normalized size = 9.29 \begin{align*} \text{result too large to display} \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 \frac{\sec ^{2}{\left (x \right )}}{4 \tan ^{3}{\left (x \right )} - 3}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: NotImplementedError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]