Optimal. Leaf size=25 \[ \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tanh (x)}{\sqrt{a \text{sech}^2(x)}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0157782, antiderivative size = 25, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.3, Rules used = {4122, 217, 203} \[ \sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tanh (x)}{\sqrt{a \text{sech}^2(x)}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4122
Rule 217
Rule 203
Rubi steps
\begin{align*} \int \sqrt{a \text{sech}^2(x)} \, dx &=a \operatorname{Subst}\left (\int \frac{1}{\sqrt{a-a x^2}} \, dx,x,\tanh (x)\right )\\ &=a \operatorname{Subst}\left (\int \frac{1}{1+a x^2} \, dx,x,\frac{\tanh (x)}{\sqrt{a \text{sech}^2(x)}}\right )\\ &=\sqrt{a} \tan ^{-1}\left (\frac{\sqrt{a} \tanh (x)}{\sqrt{a \text{sech}^2(x)}}\right )\\ \end{align*}
Mathematica [A] time = 0.0059364, size = 21, normalized size = 0.84 \[ 2 \cosh (x) \sqrt{a \text{sech}^2(x)} \tan ^{-1}\left (\tanh \left (\frac{x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.082, size = 72, normalized size = 2.9 \begin{align*} i\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}{{\rm e}^{-x}} \left ({{\rm e}^{2\,x}}+1 \right ) \ln \left ({{\rm e}^{x}}+i \right ) -i\sqrt{{\frac{a{{\rm e}^{2\,x}}}{ \left ({{\rm e}^{2\,x}}+1 \right ) ^{2}}}}{{\rm e}^{-x}} \left ({{\rm e}^{2\,x}}+1 \right ) \ln \left ({{\rm e}^{x}}-i \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.77084, size = 11, normalized size = 0.44 \begin{align*} 2 \, \sqrt{a} \arctan \left (e^{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.23395, size = 444, normalized size = 17.76 \begin{align*} \left [\sqrt{-a} \log \left (\frac{2 \, a \cosh \left (x\right ) e^{x} \sinh \left (x\right ) + a e^{x} \sinh \left (x\right )^{2} + 2 \,{\left (\cosh \left (x\right ) e^{\left (2 \, x\right )} +{\left (e^{\left (2 \, x\right )} + 1\right )} \sinh \left (x\right ) + \cosh \left (x\right )\right )} \sqrt{-a} \sqrt{\frac{a}{e^{\left (4 \, x\right )} + 2 \, e^{\left (2 \, x\right )} + 1}} e^{x} +{\left (a \cosh \left (x\right )^{2} - a\right )} e^{x}}{2 \, \cosh \left (x\right ) e^{x} \sinh \left (x\right ) + e^{x} \sinh \left (x\right )^{2} +{\left (\cosh \left (x\right )^{2} + 1\right )} e^{x}}\right ), 2 \, \sqrt{\frac{a}{e^{\left (4 \, x\right )} + 2 \, e^{\left (2 \, x\right )} + 1}}{\left (e^{\left (2 \, x\right )} + 1\right )} \arctan \left (\cosh \left (x\right ) + \sinh \left (x\right )\right )\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \operatorname{sech}^{2}{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13218, size = 11, normalized size = 0.44 \begin{align*} 2 \, \sqrt{a} \arctan \left (e^{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]