Optimal. Leaf size=5 \[ \text{csch}^{-1}(2 \cos (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0448581, antiderivative size = 5, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.2, Rules used = {4339, 335, 215} \[ \text{csch}^{-1}(2 \cos (x)) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4339
Rule 335
Rule 215
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.0303004, size = 38, normalized size = 7.6 \[ \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]
________________________________________________________________________________________
Maple [A] time = 0.032, size = 6, normalized size = 1.2 \begin{align*}{\it Arcsinh} \left ({\frac{\sec \left ( x \right ) }{2}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.953622, size = 45, normalized size = 9. \begin{align*} \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 ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.71256, size = 80, normalized size = 16. \begin{align*} \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 ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.950007, size = 5, normalized size = 1. \begin{align*} \operatorname{asinh}{\left (\frac{\sec{\left (x \right )}}{2} \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.12927, size = 55, normalized size = 11. \begin{align*} \frac{\log \left (\sqrt{4 \, \cos \left (x\right )^{2} + 1} + 1\right )}{2 \, \mathrm{sgn}\left (\cos \left (x\right )\right )} - \frac{\log \left (\sqrt{4 \, \cos \left (x\right )^{2} + 1} - 1\right )}{2 \, \mathrm{sgn}\left (\cos \left (x\right )\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]