Integrand size = 14, antiderivative size = 7 \[ \int \frac {\sec (x) \tan (x)}{\sec (x)+\sec ^2(x)} \, dx=-\log (1+\cos (x)) \]
[Out]
Time = 0.04 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {4424, 31} \[ \int \frac {\sec (x) \tan (x)}{\sec (x)+\sec ^2(x)} \, dx=-\log (\cos (x)+1) \]
[In]
[Out]
Rule 31
Rule 4424
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {1}{1+x} \, dx,x,\cos (x)\right ) \\ & = -\log (1+\cos (x)) \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.29 \[ \int \frac {\sec (x) \tan (x)}{\sec (x)+\sec ^2(x)} \, dx=-2 \log \left (\cos \left (\frac {x}{2}\right )\right ) \]
[In]
[Out]
Time = 0.37 (sec) , antiderivative size = 12, normalized size of antiderivative = 1.71
method | result | size |
derivativedivides | \(\ln \left (\sec \left (x \right )\right )-\ln \left (1+\sec \left (x \right )\right )\) | \(12\) |
default | \(\ln \left (\sec \left (x \right )\right )-\ln \left (1+\sec \left (x \right )\right )\) | \(12\) |
risch | \(i x -2 \ln \left ({\mathrm e}^{i x}+1\right )\) | \(16\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.29 \[ \int \frac {\sec (x) \tan (x)}{\sec (x)+\sec ^2(x)} \, dx=-\log \left (\frac {1}{2} \, \cos \left (x\right ) + \frac {1}{2}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 15 vs. \(2 (7) = 14\).
Time = 0.10 (sec) , antiderivative size = 15, normalized size of antiderivative = 2.14 \[ \int \frac {\sec (x) \tan (x)}{\sec (x)+\sec ^2(x)} \, dx=\frac {\log {\left (\tan ^{2}{\left (x \right )} + 1 \right )}}{2} - \log {\left (\sec {\left (x \right )} + 1 \right )} \]
[In]
[Out]
none
Time = 0.20 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.00 \[ \int \frac {\sec (x) \tan (x)}{\sec (x)+\sec ^2(x)} \, dx=-\log \left (\cos \left (x\right ) + 1\right ) \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.00 \[ \int \frac {\sec (x) \tan (x)}{\sec (x)+\sec ^2(x)} \, dx=-\log \left (\cos \left (x\right ) + 1\right ) \]
[In]
[Out]
Time = 26.60 (sec) , antiderivative size = 9, normalized size of antiderivative = 1.29 \[ \int \frac {\sec (x) \tan (x)}{\sec (x)+\sec ^2(x)} \, dx=\ln \left ({\mathrm {tan}\left (\frac {x}{2}\right )}^2+1\right ) \]
[In]
[Out]