Integrand size = 15, antiderivative size = 5 \[ \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx=\text {csch}^{-1}(2 \cos (x)) \]
[Out]
Time = 0.06 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4424, 342, 221} \[ \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx=\text {csch}^{-1}(2 \cos (x)) \]
[In]
[Out]
Rule 221
Rule 342
Rule 4424
Rubi steps \begin{align*} \text {integral}& = -\text {Subst}\left (\int \frac {1}{\sqrt {4+\frac {1}{x^2}} x^2} \, dx,x,\cos (x)\right ) \\ & = \text {Subst}\left (\int \frac {1}{\sqrt {4+x^2}} \, dx,x,\sec (x)\right ) \\ & = \text {arcsinh}\left (\frac {\sec (x)}{2}\right ) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(38\) vs. \(2(5)=10\).
Time = 0.03 (sec) , antiderivative size = 38, normalized size of antiderivative = 7.60 \[ \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx=\frac {\text {arctanh}\left (\sqrt {1+4 \cos ^2(x)}\right ) \sqrt {3+2 \cos (2 x)} \sec (x)}{\sqrt {4+\sec ^2(x)}} \]
[In]
[Out]
Time = 0.59 (sec) , antiderivative size = 6, normalized size of antiderivative = 1.20
method | result | size |
derivativedivides | \(\operatorname {arcsinh}\left (\frac {\sec \left (x \right )}{2}\right )\) | \(6\) |
default | \(\operatorname {arcsinh}\left (\frac {\sec \left (x \right )}{2}\right )\) | \(6\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 27 vs. \(2 (5) = 10\).
Time = 0.26 (sec) , antiderivative size = 27, normalized size of antiderivative = 5.40 \[ \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx=\log \left (-\frac {\sqrt {\frac {4 \, \cos \left (x\right )^{2} + 1}{\cos \left (x\right )^{2}}} \cos \left (x\right ) + 1}{\cos \left (x\right )}\right ) \]
[In]
[Out]
Time = 0.34 (sec) , antiderivative size = 5, normalized size of antiderivative = 1.00 \[ \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx=\operatorname {asinh}{\left (\frac {\sec {\left (x \right )}}{2} \right )} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 33 vs. \(2 (5) = 10\).
Time = 0.21 (sec) , antiderivative size = 33, normalized size of antiderivative = 6.60 \[ \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx=\frac {1}{2} \, \log \left (\sqrt {\frac {1}{\cos \left (x\right )^{2}} + 4} \cos \left (x\right ) + 1\right ) - \frac {1}{2} \, \log \left (\sqrt {\frac {1}{\cos \left (x\right )^{2}} + 4} \cos \left (x\right ) - 1\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 36 vs. \(2 (5) = 10\).
Time = 0.28 (sec) , antiderivative size = 36, normalized size of antiderivative = 7.20 \[ \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx=\frac {\log \left (\sqrt {4 \, \cos \left (x\right )^{2} + 1} + 1\right ) - \log \left (\sqrt {4 \, \cos \left (x\right )^{2} + 1} - 1\right )}{2 \, \mathrm {sgn}\left (\cos \left (x\right )\right )} \]
[In]
[Out]
Time = 27.00 (sec) , antiderivative size = 7, normalized size of antiderivative = 1.40 \[ \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx=\mathrm {asinh}\left (\frac {1}{2\,\cos \left (x\right )}\right ) \]
[In]
[Out]