Integrand size = 7, antiderivative size = 8 \[ \int (-\cos (x)+\sec (x)) \, dx=\text {arctanh}(\sin (x))-\sin (x) \]
[Out]
Time = 0.01 (sec) , antiderivative size = 8, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {2717, 3855} \[ \int (-\cos (x)+\sec (x)) \, dx=\text {arctanh}(\sin (x))-\sin (x) \]
[In]
[Out]
Rule 2717
Rule 3855
Rubi steps \begin{align*} \text {integral}& = -\int \cos (x) \, dx+\int \sec (x) \, dx \\ & = \text {arctanh}(\sin (x))-\sin (x) \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 8, normalized size of antiderivative = 1.00 \[ \int (-\cos (x)+\sec (x)) \, dx=\text {arctanh}(\sin (x))-\sin (x) \]
[In]
[Out]
Time = 0.22 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.50
method | result | size |
default | \(-\sin \left (x \right )+\ln \left (\sec \left (x \right )+\tan \left (x \right )\right )\) | \(12\) |
parts | \(-\sin \left (x \right )+\ln \left (\sec \left (x \right )+\tan \left (x \right )\right )\) | \(12\) |
parallelrisch | \(-\sin \left (x \right )-\ln \left (-\cot \left (x \right )+\csc \left (x \right )-1\right )+\ln \left (\csc \left (x \right )-\cot \left (x \right )+1\right )\) | \(26\) |
norman | \(-\frac {2 \tan \left (\frac {x}{2}\right )}{1+\tan \left (\frac {x}{2}\right )^{2}}-\ln \left (\tan \left (\frac {x}{2}\right )-1\right )+\ln \left (\tan \left (\frac {x}{2}\right )+1\right )\) | \(34\) |
risch | \(\frac {i {\mathrm e}^{i x}}{2}-\frac {i {\mathrm e}^{-i x}}{2}+\ln \left (i+{\mathrm e}^{i x}\right )-\ln \left ({\mathrm e}^{i x}-i\right )\) | \(38\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 21 vs. \(2 (8) = 16\).
Time = 0.24 (sec) , antiderivative size = 21, normalized size of antiderivative = 2.62 \[ \int (-\cos (x)+\sec (x)) \, dx=\frac {1}{2} \, \log \left (\sin \left (x\right ) + 1\right ) - \frac {1}{2} \, \log \left (-\sin \left (x\right ) + 1\right ) - \sin \left (x\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 19 vs. \(2 (7) = 14\).
Time = 0.05 (sec) , antiderivative size = 19, normalized size of antiderivative = 2.38 \[ \int (-\cos (x)+\sec (x)) \, dx=- \frac {\log {\left (\sin {\left (x \right )} - 1 \right )}}{2} + \frac {\log {\left (\sin {\left (x \right )} + 1 \right )}}{2} - \sin {\left (x \right )} \]
[In]
[Out]
none
Time = 0.22 (sec) , antiderivative size = 11, normalized size of antiderivative = 1.38 \[ \int (-\cos (x)+\sec (x)) \, dx=\log \left (\sec \left (x\right ) + \tan \left (x\right )\right ) - \sin \left (x\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 29 vs. \(2 (8) = 16\).
Time = 0.26 (sec) , antiderivative size = 29, normalized size of antiderivative = 3.62 \[ \int (-\cos (x)+\sec (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 ) - \sin \left (x\right ) \]
[In]
[Out]
Time = 27.76 (sec) , antiderivative size = 14, normalized size of antiderivative = 1.75 \[ \int (-\cos (x)+\sec (x)) \, dx=\ln \left (\mathrm {tan}\left (\frac {x}{2}+\frac {\pi }{4}\right )\right )-\sin \left (x\right ) \]
[In]
[Out]