Optimal. Leaf size=133 \[ \frac{\sqrt{3} \tan ^{-1}\left (\frac{\frac{2 \sqrt [3]{a^3+b^3 \tan ^2(x)}}{\sqrt [3]{a^3-b^3}}+1}{\sqrt{3}}\right )}{2 \sqrt [3]{a^3-b^3}}+\frac{3 \log \left (\sqrt [3]{a^3-b^3}-\sqrt [3]{a^3+b^3 \tan ^2(x)}\right )}{4 \sqrt [3]{a^3-b^3}}+\frac{\log (\cos (x))}{2 \sqrt [3]{a^3-b^3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.155863, antiderivative size = 133, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.316, Rules used = {3670, 444, 55, 617, 204, 31} \[ \frac{\sqrt{3} \tan ^{-1}\left (\frac{\frac{2 \sqrt [3]{a^3+b^3 \tan ^2(x)}}{\sqrt [3]{a^3-b^3}}+1}{\sqrt{3}}\right )}{2 \sqrt [3]{a^3-b^3}}+\frac{3 \log \left (\sqrt [3]{a^3-b^3}-\sqrt [3]{a^3+b^3 \tan ^2(x)}\right )}{4 \sqrt [3]{a^3-b^3}}+\frac{\log (\cos (x))}{2 \sqrt [3]{a^3-b^3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3670
Rule 444
Rule 55
Rule 617
Rule 204
Rule 31
Rubi steps
\begin{align*} \int \frac{\tan (x)}{\sqrt [3]{a^3+b^3 \tan ^2(x)}} \, dx &=\operatorname{Subst}\left (\int \frac{x}{\left (1+x^2\right ) \sqrt [3]{a^3+b^3 x^2}} \, dx,x,\tan (x)\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1}{(1+x) \sqrt [3]{a^3+b^3 x}} \, dx,x,\tan ^2(x)\right )\\ &=\frac{\log (\cos (x))}{2 \sqrt [3]{a^3-b^3}}+\frac{3}{4} \operatorname{Subst}\left (\int \frac{1}{\left (a^3-b^3\right )^{2/3}+\sqrt [3]{a^3-b^3} x+x^2} \, dx,x,\sqrt [3]{a^3+b^3 \tan ^2(x)}\right )-\frac{3 \operatorname{Subst}\left (\int \frac{1}{\sqrt [3]{a^3-b^3}-x} \, dx,x,\sqrt [3]{a^3+b^3 \tan ^2(x)}\right )}{4 \sqrt [3]{a^3-b^3}}\\ &=\frac{\log (\cos (x))}{2 \sqrt [3]{a^3-b^3}}+\frac{3 \log \left (\sqrt [3]{a^3-b^3}-\sqrt [3]{a^3+b^3 \tan ^2(x)}\right )}{4 \sqrt [3]{a^3-b^3}}-\frac{3 \operatorname{Subst}\left (\int \frac{1}{-3-x^2} \, dx,x,1+\frac{2 \sqrt [3]{a^3+b^3 \tan ^2(x)}}{\sqrt [3]{a^3-b^3}}\right )}{2 \sqrt [3]{a^3-b^3}}\\ &=\frac{\sqrt{3} \tan ^{-1}\left (\frac{1+\frac{2 \sqrt [3]{a^3+b^3 \tan ^2(x)}}{\sqrt [3]{a^3-b^3}}}{\sqrt{3}}\right )}{2 \sqrt [3]{a^3-b^3}}+\frac{\log (\cos (x))}{2 \sqrt [3]{a^3-b^3}}+\frac{3 \log \left (\sqrt [3]{a^3-b^3}-\sqrt [3]{a^3+b^3 \tan ^2(x)}\right )}{4 \sqrt [3]{a^3-b^3}}\\ \end{align*}
Mathematica [A] time = 0.220266, size = 105, normalized size = 0.79 \[ \frac{2 \sqrt{3} \tan ^{-1}\left (\frac{\frac{2 \sqrt [3]{a^3+b^3 \tan ^2(x)}}{\sqrt [3]{a^3-b^3}}+1}{\sqrt{3}}\right )+3 \log \left (\sqrt [3]{a^3-b^3}-\sqrt [3]{a^3+b^3 \tan ^2(x)}\right )+2 \log (\cos (x))}{4 \sqrt [3]{a^3-b^3}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.106, size = 0, normalized size = 0. \begin{align*} \int{\tan \left ( x \right ){\frac{1}{\sqrt [3]{{a}^{3}+{b}^{3} \left ( \tan \left ( x \right ) \right ) ^{2}}}}}\, 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{\tan \left (x\right )}{{\left (b^{3} \tan \left (x\right )^{2} + a^{3}\right )}^{\frac{1}{3}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [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]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\tan{\left (x \right )}}{\sqrt [3]{a^{3} + b^{3} \tan ^{2}{\left (x \right )}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.2334, size = 251, normalized size = 1.89 \begin{align*} \frac{3 \,{\left (a^{3} - b^{3}\right )}^{\frac{2}{3}} \arctan \left (\frac{\sqrt{3}{\left (2 \,{\left (b^{3} \tan \left (x\right )^{2} + a^{3}\right )}^{\frac{1}{3}} +{\left (a^{3} - b^{3}\right )}^{\frac{1}{3}}\right )}}{3 \,{\left (a^{3} - b^{3}\right )}^{\frac{1}{3}}}\right )}{2 \,{\left (\sqrt{3} a^{3} - \sqrt{3} b^{3}\right )}} - \frac{\log \left ({\left (b^{3} \tan \left (x\right )^{2} + a^{3}\right )}^{\frac{2}{3}} +{\left (b^{3} \tan \left (x\right )^{2} + a^{3}\right )}^{\frac{1}{3}}{\left (a^{3} - b^{3}\right )}^{\frac{1}{3}} +{\left (a^{3} - b^{3}\right )}^{\frac{2}{3}}\right )}{4 \,{\left (a^{3} - b^{3}\right )}^{\frac{1}{3}}} + \frac{\log \left ({\left |{\left (b^{3} \tan \left (x\right )^{2} + a^{3}\right )}^{\frac{1}{3}} -{\left (a^{3} - b^{3}\right )}^{\frac{1}{3}} \right |}\right )}{2 \,{\left (a^{3} - b^{3}\right )}^{\frac{1}{3}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]