Integrand size = 5, antiderivative size = 13 \[ \int (\sec (x)+\tan (x)) \, dx=-2 \log \left (\cos \left (\frac {1}{4} (\pi +2 x)\right )\right ) \]
[Out]
Time = 0.01 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.69, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.400, Rules used = {3855, 3556} \[ \int (\sec (x)+\tan (x)) \, dx=\text {arctanh}(\sin (x))-\log (\cos (x)) \]
[In]
[Out]
Rule 3556
Rule 3855
Rubi steps \begin{align*} \text {integral}& = \int \sec (x) \, dx+\int \tan (x) \, dx \\ & = \text {arctanh}(\sin (x))-\log (\cos (x)) \\ \end{align*}
Time = 0.00 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.69 \[ \int (\sec (x)+\tan (x)) \, dx=\text {arctanh}(\sin (x))-\log (\cos (x)) \]
[In]
[Out]
Time = 0.32 (sec) , antiderivative size = 13, normalized size of antiderivative = 1.00
method | result | size |
default | \(\ln \left (\sec \left (x \right )+\tan \left (x \right )\right )-\ln \left (\cos \left (x \right )\right )\) | \(13\) |
parts | \(\ln \left (\sec \left (x \right )+\tan \left (x \right )\right )-\ln \left (\cos \left (x \right )\right )\) | \(13\) |
norman | \(-\ln \left (\tan \left (\frac {x}{2}\right )-1\right )+\frac {\ln \left (1+\tan \left (x \right )^{2}\right )}{2}+\ln \left (\tan \left (\frac {x}{2}\right )+1\right )\) | \(27\) |
parallelrisch | \(-\ln \left (-\cot \left (x \right )+\csc \left (x \right )-1\right )+\ln \left (\sqrt {\sec \left (x \right )^{2}}\right )+\ln \left (\csc \left (x \right )-\cot \left (x \right )+1\right )\) | \(29\) |
risch | \(\ln \left (i+{\mathrm e}^{i x}\right )-\ln \left ({\mathrm e}^{i x}-i\right )+i x -\ln \left ({\mathrm e}^{2 i x}+1\right )\) | \(36\) |
[In]
[Out]
none
Time = 0.24 (sec) , antiderivative size = 9, normalized size of antiderivative = 0.69 \[ \int (\sec (x)+\tan (x)) \, dx=-\log \left (-\sin \left (x\right ) + 1\right ) \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.54 \[ \int (\sec (x)+\tan (x)) \, dx=- \frac {\log {\left (\sin {\left (x \right )} - 1 \right )}}{2} + \frac {\log {\left (\sin {\left (x \right )} + 1 \right )}}{2} - \log {\left (\cos {\left (x \right )} \right )} \]
[In]
[Out]
none
Time = 0.23 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.77 \[ \int (\sec (x)+\tan (x)) \, dx=\log \left (\sec \left (x\right ) + \tan \left (x\right )\right ) + \log \left (\sec \left (x\right )\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 31 vs. \(2 (11) = 22\).
Time = 0.27 (sec) , antiderivative size = 31, normalized size of antiderivative = 2.38 \[ \int (\sec (x)+\tan (x)) \, dx=\frac {1}{4} \, \log \left ({\left | \frac {1}{\sin \left (x\right )} + \sin \left (x\right ) + 2 \right |}\right ) - \frac {1}{4} \, \log \left ({\left | \frac {1}{\sin \left (x\right )} + \sin \left (x\right ) - 2 \right |}\right ) - \log \left ({\left | \cos \left (x\right ) \right |}\right ) \]
[In]
[Out]
Time = 30.08 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.46 \[ \int (\sec (x)+\tan (x)) \, dx=\ln \left ({\mathrm {tan}\left (\frac {x}{2}\right )}^2+1\right )-2\,\ln \left (\mathrm {tan}\left (\frac {x}{2}\right )-1\right ) \]
[In]
[Out]