Integrand size = 9, antiderivative size = 11 \[ \int 2 x \sec ^2(x) \tan (x) \, dx=x \sec ^2(x)-\tan (x) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {12, 3842, 3852, 8} \[ \int 2 x \sec ^2(x) \tan (x) \, dx=x \sec ^2(x)-\tan (x) \]
[In]
[Out]
Rule 8
Rule 12
Rule 3842
Rule 3852
Rubi steps \begin{align*} \text {integral}& = 2 \int x \sec ^2(x) \tan (x) \, dx \\ & = x \sec ^2(x)-\int \sec ^2(x) \, dx \\ & = x \sec ^2(x)+\text {Subst}(\int 1 \, dx,x,-\tan (x)) \\ & = x \sec ^2(x)-\tan (x) \\ \end{align*}
Time = 0.02 (sec) , antiderivative size = 18, normalized size of antiderivative = 1.64 \[ \int 2 x \sec ^2(x) \tan (x) \, dx=2 \left (\frac {1}{2} x \sec ^2(x)-\frac {\tan (x)}{2}\right ) \]
[In]
[Out]
Time = 1.06 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.09
method | result | size |
default | \(\frac {x}{\cos \left (x \right )^{2}}-\tan \left (x \right )\) | \(12\) |
risch | \(\frac {-2 i {\mathrm e}^{2 i x}+4 \,{\mathrm e}^{2 i x} x -2 i}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}\) | \(31\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.36 \[ \int 2 x \sec ^2(x) \tan (x) \, dx=-\frac {\cos \left (x\right ) \sin \left (x\right ) - x}{\cos \left (x\right )^{2}} \]
[In]
[Out]
Time = 0.38 (sec) , antiderivative size = 8, normalized size of antiderivative = 0.73 \[ \int 2 x \sec ^2(x) \tan (x) \, dx=x \sec ^{2}{\left (x \right )} - \tan {\left (x \right )} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 133 vs. \(2 (11) = 22\).
Time = 0.21 (sec) , antiderivative size = 133, normalized size of antiderivative = 12.09 \[ \int 2 x \sec ^2(x) \tan (x) \, dx=\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} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 52 vs. \(2 (11) = 22\).
Time = 0.26 (sec) , antiderivative size = 52, normalized size of antiderivative = 4.73 \[ \int 2 x \sec ^2(x) \tan (x) \, dx=\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} \]
[In]
[Out]
Time = 26.48 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.45 \[ \int 2 x \sec ^2(x) \tan (x) \, dx=\frac {2\,x-\sin \left (2\,x\right )}{2\,{\cos \left (x\right )}^2} \]
[In]
[Out]