Optimal. Leaf size=5 \[ \text {csch}^{-1}(2 \cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 5, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {4339, 335, 215} \[ \text {csch}^{-1}(2 \cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 215
Rule 335
Rule 4339
Rubi steps
\begin {align*} \int \frac {\sec (x) \tan (x)}{\sqrt {4+\sec ^2(x)}} \, dx &=-\operatorname {Subst}\left (\int \frac {1}{\sqrt {4+\frac {1}{x^2}} x^2} \, dx,x,\cos (x)\right )\\ &=\operatorname {Subst}\left (\int \frac {1}{\sqrt {4+x^2}} \, dx,x,\sec (x)\right )\\ &=\sinh ^{-1}\left (\frac {\sec (x)}{2}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.03, size = 38, normalized size = 7.60 \[ \frac {\sqrt {2 \cos (2 x)+3} \sec (x) \tanh ^{-1}\left (\sqrt {4 \cos ^2(x)+1}\right )}{\sqrt {\sec ^2(x)+4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.95, size = 27, normalized size = 5.40 \[ \log \left (-\frac {\sqrt {\frac {4 \, \cos \relax (x)^{2} + 1}{\cos \relax (x)^{2}}} \cos \relax (x) + 1}{\cos \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 36, normalized size = 7.20 \[ \frac {\log \left (\sqrt {4 \, \cos \relax (x)^{2} + 1} + 1\right ) - \log \left (\sqrt {4 \, \cos \relax (x)^{2} + 1} - 1\right )}{2 \, \mathrm {sgn}\left (\cos \relax (x)\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.10, size = 6, normalized size = 1.20 \[ \arcsinh \left (\frac {\sec \relax (x )}{2}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.31, size = 33, normalized size = 6.60 \[ \frac {1}{2} \, \log \left (\sqrt {\frac {1}{\cos \relax (x)^{2}} + 4} \cos \relax (x) + 1\right ) - \frac {1}{2} \, \log \left (\sqrt {\frac {1}{\cos \relax (x)^{2}} + 4} \cos \relax (x) - 1\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.10, size = 7, normalized size = 1.40 \[ \mathrm {asinh}\left (\frac {1}{2\,\cos \relax (x)}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.73, size = 5, normalized size = 1.00 \[ \operatorname {asinh}{\left (\frac {\sec {\relax (x )}}{2} \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________