Optimal. Leaf size=26 \[ -\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} \coth (x)}{\sqrt{a \text{csch}^2(x)}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.018236, antiderivative size = 26, 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, 206} \[ -\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} \coth (x)}{\sqrt{a \text{csch}^2(x)}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4122
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \sqrt{a \text{csch}^2(x)} \, dx &=-\left (a \operatorname{Subst}\left (\int \frac{1}{\sqrt{-a+a x^2}} \, dx,x,\coth (x)\right )\right )\\ &=-\left (a \operatorname{Subst}\left (\int \frac{1}{1-a x^2} \, dx,x,\frac{\coth (x)}{\sqrt{a \text{csch}^2(x)}}\right )\right )\\ &=-\sqrt{a} \tanh ^{-1}\left (\frac{\sqrt{a} \coth (x)}{\sqrt{a \text{csch}^2(x)}}\right )\\ \end{align*}
Mathematica [A] time = 0.0051363, size = 20, normalized size = 0.77 \[ \sinh (x) \sqrt{a \text{csch}^2(x)} \log \left (\tanh \left (\frac{x}{2}\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.072, size = 67, normalized size = 2.6 \begin{align*} \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}}-1 \right ) -\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}}+1 \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.58171, size = 32, normalized size = 1.23 \begin{align*} \sqrt{a} \log \left (e^{\left (-x\right )} + 1\right ) - \sqrt{a} \log \left (e^{\left (-x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.90139, size = 296, normalized size = 11.38 \begin{align*} \left [\sqrt{\frac{a}{e^{\left (4 \, x\right )} - 2 \, e^{\left (2 \, x\right )} + 1}}{\left (e^{\left (2 \, x\right )} - 1\right )} \log \left (\frac{\cosh \left (x\right ) + \sinh \left (x\right ) - 1}{\cosh \left (x\right ) + \sinh \left (x\right ) + 1}\right ), 2 \, \sqrt{-a} \arctan \left (\frac{\sqrt{-a} \sqrt{\frac{a}{e^{\left (4 \, x\right )} - 2 \, e^{\left (2 \, x\right )} + 1}}{\left (e^{\left (2 \, x\right )} - 1\right )} e^{x}}{a \cosh \left (x\right ) e^{x} + a e^{x} \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{csch}^{2}{\left (x \right )}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.17051, size = 39, normalized size = 1.5 \begin{align*} -\sqrt{a}{\left (\log \left (e^{x} + 1\right ) - \log \left ({\left | e^{x} - 1 \right |}\right )\right )} \mathrm{sgn}\left (e^{\left (3 \, x\right )} - e^{x}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]