Optimal. Leaf size=11 \[ x \sec ^2(x)-\tan (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0187379, antiderivative size = 11, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 9, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.444, Rules used = {12, 3757, 3767, 8} \[ x \sec ^2(x)-\tan (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 3757
Rule 3767
Rule 8
Rubi steps
\begin{align*} \int 2 x \sec ^2(x) \tan (x) \, dx &=2 \int x \sec ^2(x) \tan (x) \, dx\\ &=x \sec ^2(x)-\int \sec ^2(x) \, dx\\ &=x \sec ^2(x)+\operatorname{Subst}(\int 1 \, dx,x,-\tan (x))\\ &=x \sec ^2(x)-\tan (x)\\ \end{align*}
Mathematica [A] time = 0.011037, size = 18, normalized size = 1.64 \[ 2 \left (\frac{1}{2} x \sec ^2(x)-\frac{\tan (x)}{2}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.01, size = 12, normalized size = 1.1 \begin{align*}{\frac{x}{ \left ( \cos \left ( x \right ) \right ) ^{2}}}-\tan \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.954077, size = 180, normalized size = 16.36 \begin{align*} \frac{2 \,{\left (4 \, x \cos \left (2 \, x\right )^{2} + 4 \, x \sin \left (2 \, x\right )^{2} +{\left (2 \, x \cos \left (2 \, x\right ) + \sin \left (2 \, x\right )\right )} \cos \left (4 \, x\right ) + 2 \, x \cos \left (2 \, x\right ) +{\left (2 \, x \sin \left (2 \, x\right ) - \cos \left (2 \, x\right ) - 1\right )} \sin \left (4 \, x\right ) - \sin \left (2 \, x\right )\right )}}{2 \,{\left (2 \, \cos \left (2 \, x\right ) + 1\right )} \cos \left (4 \, x\right ) + \cos \left (4 \, x\right )^{2} + 4 \, \cos \left (2 \, x\right )^{2} + \sin \left (4 \, x\right )^{2} + 4 \, \sin \left (4 \, x\right ) \sin \left (2 \, x\right ) + 4 \, \sin \left (2 \, x\right )^{2} + 4 \, \cos \left (2 \, x\right ) + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.28016, size = 42, normalized size = 3.82 \begin{align*} -\frac{\cos \left (x\right ) \sin \left (x\right ) - x}{\cos \left (x\right )^{2}} \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*} 2 \int x \tan{\left (x \right )} \sec ^{2}{\left (x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.08604, size = 70, normalized size = 6.36 \begin{align*} \frac{x \tan \left (\frac{1}{2} \, x\right )^{4} + 2 \, x \tan \left (\frac{1}{2} \, x\right )^{2} + 2 \, \tan \left (\frac{1}{2} \, x\right )^{3} + x - 2 \, \tan \left (\frac{1}{2} \, x\right )}{\tan \left (\frac{1}{2} \, x\right )^{4} - 2 \, \tan \left (\frac{1}{2} \, x\right )^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]