Optimal. Leaf size=47 \[ \frac{1}{45} \tan ^5(9 x)+\frac{4}{27} \tan ^3(9 x)+\frac{2}{3} \tan (9 x)-\frac{1}{27} \cot ^3(9 x)-\frac{4}{9} \cot (9 x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.102327, antiderivative size = 47, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 21, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.143, Rules used = {3657, 2620, 270} \[ \frac{1}{45} \tan ^5(9 x)+\frac{4}{27} \tan ^3(9 x)+\frac{2}{3} \tan (9 x)-\frac{1}{27} \cot ^3(9 x)-\frac{4}{9} \cot (9 x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3657
Rule 2620
Rule 270
Rubi steps
\begin{align*} \int \left (1+\cot ^2(9 x)\right )^2 \left (1+\tan ^2(9 x)\right )^3 \, dx &=\int \left (1+\cot ^2(9 x)\right )^2 \sec ^6(9 x) \, dx\\ &=\int \csc ^4(9 x) \sec ^6(9 x) \, dx\\ &=\frac{1}{9} \operatorname{Subst}\left (\int \frac{\left (1+x^2\right )^4}{x^4} \, dx,x,\tan (9 x)\right )\\ &=\frac{1}{9} \operatorname{Subst}\left (\int \left (6+\frac{1}{x^4}+\frac{4}{x^2}+4 x^2+x^4\right ) \, dx,x,\tan (9 x)\right )\\ &=-\frac{4}{9} \cot (9 x)-\frac{1}{27} \cot ^3(9 x)+\frac{2}{3} \tan (9 x)+\frac{4}{27} \tan ^3(9 x)+\frac{1}{45} \tan ^5(9 x)\\ \end{align*}
Mathematica [A] time = 0.0500226, size = 59, normalized size = 1.26 \[ \frac{73}{135} \tan (9 x)-\frac{11}{27} \cot (9 x)-\frac{1}{27} \cot (9 x) \csc ^2(9 x)+\frac{1}{45} \tan (9 x) \sec ^4(9 x)+\frac{14}{135} \tan (9 x) \sec ^2(9 x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.044, size = 38, normalized size = 0.8 \begin{align*} -{\frac{4\,\cot \left ( 9\,x \right ) }{9}}-{\frac{ \left ( \cot \left ( 9\,x \right ) \right ) ^{3}}{27}}+{\frac{2\,\tan \left ( 9\,x \right ) }{3}}+{\frac{4\, \left ( \tan \left ( 9\,x \right ) \right ) ^{3}}{27}}+{\frac{ \left ( \tan \left ( 9\,x \right ) \right ) ^{5}}{45}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.949618, size = 55, normalized size = 1.17 \begin{align*} \frac{1}{45} \, \tan \left (9 \, x\right )^{5} + \frac{4}{27} \, \tan \left (9 \, x\right )^{3} - \frac{12 \, \tan \left (9 \, x\right )^{2} + 1}{27 \, \tan \left (9 \, x\right )^{3}} + \frac{2}{3} \, \tan \left (9 \, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.06821, size = 115, normalized size = 2.45 \begin{align*} \frac{3 \, \tan \left (9 \, x\right )^{8} + 20 \, \tan \left (9 \, x\right )^{6} + 90 \, \tan \left (9 \, x\right )^{4} - 60 \, \tan \left (9 \, x\right )^{2} - 5}{135 \, \tan \left (9 \, x\right )^{3}} \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 [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]