Optimal. Leaf size=26 \[ \frac {\tanh (x)}{a}-\frac {\tan ^{-1}(\sinh (x))}{a}+\frac {\tanh (x)}{a \text {sech}(x)+a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {3790, 3789, 3770, 3794} \[ \frac {\tanh (x)}{a}-\frac {\tan ^{-1}(\sinh (x))}{a}+\frac {\tanh (x)}{a \text {sech}(x)+a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3770
Rule 3789
Rule 3790
Rule 3794
Rubi steps
\begin {align*} \int \frac {\text {sech}^3(x)}{a+a \text {sech}(x)} \, dx &=\frac {\tanh (x)}{a}-\int \frac {\text {sech}^2(x)}{a+a \text {sech}(x)} \, dx\\ &=\frac {\tanh (x)}{a}-\frac {\int \text {sech}(x) \, dx}{a}+\int \frac {\text {sech}(x)}{a+a \text {sech}(x)} \, dx\\ &=-\frac {\tan ^{-1}(\sinh (x))}{a}+\frac {\tanh (x)}{a}+\frac {\tanh (x)}{a+a \text {sech}(x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 45, normalized size = 1.73 \[ \frac {2 \cosh \left (\frac {x}{2}\right ) \text {sech}(x) \left (\sinh \left (\frac {x}{2}\right )+\cosh \left (\frac {x}{2}\right ) \left (\tanh (x)-2 \tan ^{-1}\left (\tanh \left (\frac {x}{2}\right )\right )\right )\right )}{a (\text {sech}(x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.38, size = 127, normalized size = 4.88 \[ -\frac {2 \, {\left ({\left (\cosh \relax (x)^{3} + {\left (3 \, \cosh \relax (x) + 1\right )} \sinh \relax (x)^{2} + \sinh \relax (x)^{3} + \cosh \relax (x)^{2} + {\left (3 \, \cosh \relax (x)^{2} + 2 \, \cosh \relax (x) + 1\right )} \sinh \relax (x) + \cosh \relax (x) + 1\right )} \arctan \left (\cosh \relax (x) + \sinh \relax (x)\right ) + \cosh \relax (x)^{2} + {\left (2 \, \cosh \relax (x) + 1\right )} \sinh \relax (x) + \sinh \relax (x)^{2} + \cosh \relax (x) + 2\right )}}{a \cosh \relax (x)^{3} + a \sinh \relax (x)^{3} + a \cosh \relax (x)^{2} + {\left (3 \, a \cosh \relax (x) + a\right )} \sinh \relax (x)^{2} + a \cosh \relax (x) + {\left (3 \, a \cosh \relax (x)^{2} + 2 \, a \cosh \relax (x) + a\right )} \sinh \relax (x) + a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 36, normalized size = 1.38 \[ -\frac {2 \, \arctan \left (e^{x}\right )}{a} - \frac {2 \, {\left (e^{\left (2 \, x\right )} + e^{x} + 2\right )}}{a {\left (e^{\left (3 \, x\right )} + e^{\left (2 \, x\right )} + e^{x} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 39, normalized size = 1.50 \[ \frac {\tanh \left (\frac {x}{2}\right )}{a}+\frac {2 \tanh \left (\frac {x}{2}\right )}{a \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )}-\frac {2 \arctan \left (\tanh \left (\frac {x}{2}\right )\right )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 45, normalized size = 1.73 \[ \frac {2 \, {\left (e^{\left (-x\right )} + e^{\left (-2 \, x\right )} + 2\right )}}{a e^{\left (-x\right )} + a e^{\left (-2 \, x\right )} + a e^{\left (-3 \, x\right )} + a} + \frac {2 \, \arctan \left (e^{\left (-x\right )}\right )}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.32, size = 58, normalized size = 2.23 \[ -\frac {\frac {2\,{\mathrm {e}}^{2\,x}}{a}+\frac {4}{a}+\frac {2\,{\mathrm {e}}^x}{a}}{{\mathrm {e}}^{2\,x}+{\mathrm {e}}^{3\,x}+{\mathrm {e}}^x+1}-\frac {2\,\mathrm {atan}\left (\frac {{\mathrm {e}}^x\,\sqrt {a^2}}{a}\right )}{\sqrt {a^2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {\operatorname {sech}^{3}{\relax (x )}}{\operatorname {sech}{\relax (x )} + 1}\, dx}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________