Optimal. Leaf size=10 \[ \log (\cot (x)+1)-\cot (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0479915, antiderivative size = 15, normalized size of antiderivative = 1.5, number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {4342, 44} \[ -\cot (x)-\log (\tan (x))+\log (\tan (x)+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4342
Rule 44
Rubi steps
\begin{align*} \int \frac{\sec ^2(x)}{\tan ^2(x)+\tan ^3(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1}{x^2 (1+x)} \, dx,x,\tan (x)\right )\\ &=\operatorname{Subst}\left (\int \left (\frac{1}{x^2}-\frac{1}{x}+\frac{1}{1+x}\right ) \, dx,x,\tan (x)\right )\\ &=-\cot (x)-\log (\tan (x))+\log (1+\tan (x))\\ \end{align*}
Mathematica [A] time = 0.0374629, size = 16, normalized size = 1.6 \[ -\cot (x)-\log (\sin (x))+\log (\sin (x)+\cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.055, size = 18, normalized size = 1.8 \begin{align*} - \left ( \tan \left ( x \right ) \right ) ^{-1}-\ln \left ( \tan \left ( x \right ) \right ) +\ln \left ( 1+\tan \left ( x \right ) \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.960251, size = 23, normalized size = 2.3 \begin{align*} -\frac{1}{\tan \left (x\right )} + \log \left (\tan \left (x\right ) + 1\right ) - \log \left (\tan \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.17885, size = 124, normalized size = 12.4 \begin{align*} -\frac{\log \left (-\frac{1}{4} \, \cos \left (x\right )^{2} + \frac{1}{4}\right ) \sin \left (x\right ) - \log \left (2 \, \cos \left (x\right ) \sin \left (x\right ) + 1\right ) \sin \left (x\right ) + 2 \, \cos \left (x\right )}{2 \, \sin \left (x\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 \frac{\sec ^{2}{\left (x \right )}}{\left (\tan{\left (x \right )} + 1\right ) \tan ^{2}{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1344, size = 26, normalized size = 2.6 \begin{align*} -\frac{1}{\tan \left (x\right )} + \log \left ({\left | \tan \left (x\right ) + 1 \right |}\right ) - \log \left ({\left | \tan \left (x\right ) \right |}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]