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.02, antiderivative size = 25, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, 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 203
Rule 217
Rule 4122
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.01, 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]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 145, normalized size = 5.80 \[ \left [\sqrt {-a} \log \left (\frac {2 \, a \cosh \relax (x) e^{x} \sinh \relax (x) + a e^{x} \sinh \relax (x)^{2} + 2 \, {\left (\cosh \relax (x) e^{\left (2 \, x\right )} + {\left (e^{\left (2 \, x\right )} + 1\right )} \sinh \relax (x) + \cosh \relax (x)\right )} \sqrt {-a} \sqrt {\frac {a}{e^{\left (4 \, x\right )} + 2 \, e^{\left (2 \, x\right )} + 1}} e^{x} + {\left (a \cosh \relax (x)^{2} - a\right )} e^{x}}{2 \, \cosh \relax (x) e^{x} \sinh \relax (x) + e^{x} \sinh \relax (x)^{2} + {\left (\cosh \relax (x)^{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 \relax (x) + \sinh \relax (x)\right )\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 8, normalized size = 0.32 \[ 2 \, \sqrt {a} \arctan \left (e^{x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [C] time = 0.22, size = 72, normalized size = 2.88 \[ i \sqrt {\frac {a \,{\mathrm e}^{2 x}}{\left (1+{\mathrm e}^{2 x}\right )^{2}}}\, {\mathrm e}^{-x} \left (1+{\mathrm e}^{2 x}\right ) \ln \left ({\mathrm e}^{x}+i\right )-i \sqrt {\frac {a \,{\mathrm e}^{2 x}}{\left (1+{\mathrm e}^{2 x}\right )^{2}}}\, {\mathrm e}^{-x} \left (1+{\mathrm e}^{2 x}\right ) \ln \left ({\mathrm e}^{x}-i\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.48, size = 8, normalized size = 0.32 \[ 2 \, \sqrt {a} \arctan \left (e^{x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.04 \[ \int \sqrt {\frac {a}{{\mathrm {cosh}\relax (x)}^2}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \operatorname {sech}^{2}{\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________