Optimal. Leaf size=36 \[ -\frac{\text{sech}^3(x)}{3 a}+\frac{\text{sech}^2(x)}{2 a}+\frac{\text{sech}(x)}{a}+\frac{\log (\cosh (x))}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0591837, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {3879, 75} \[ -\frac{\text{sech}^3(x)}{3 a}+\frac{\text{sech}^2(x)}{2 a}+\frac{\text{sech}(x)}{a}+\frac{\log (\cosh (x))}{a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3879
Rule 75
Rubi steps
\begin{align*} \int \frac{\tanh ^5(x)}{a+a \text{sech}(x)} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{(a-a x)^2 (a+a x)}{x^4} \, dx,x,\cosh (x)\right )}{a^4}\\ &=\frac{\operatorname{Subst}\left (\int \left (\frac{a^3}{x^4}-\frac{a^3}{x^3}-\frac{a^3}{x^2}+\frac{a^3}{x}\right ) \, dx,x,\cosh (x)\right )}{a^4}\\ &=\frac{\log (\cosh (x))}{a}+\frac{\text{sech}(x)}{a}+\frac{\text{sech}^2(x)}{2 a}-\frac{\text{sech}^3(x)}{3 a}\\ \end{align*}
Mathematica [A] time = 0.0714647, size = 38, normalized size = 1.06 \[ \frac{\text{sech}^3(x) (6 \cosh (2 x)+3 \cosh (3 x) \log (\cosh (x))+\cosh (x) (9 \log (\cosh (x))+6)+2)}{12 a} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.037, size = 34, normalized size = 0.9 \begin{align*} -{\frac{ \left ({\rm sech} \left (x\right ) \right ) ^{3}}{3\,a}}+{\frac{ \left ({\rm sech} \left (x\right ) \right ) ^{2}}{2\,a}}+{\frac{{\rm sech} \left (x\right )}{a}}-{\frac{\ln \left ({\rm sech} \left (x\right ) \right ) }{a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.50146, size = 100, normalized size = 2.78 \begin{align*} \frac{x}{a} + \frac{2 \,{\left (3 \, e^{\left (-x\right )} + 3 \, e^{\left (-2 \, x\right )} + 2 \, e^{\left (-3 \, x\right )} + 3 \, e^{\left (-4 \, x\right )} + 3 \, e^{\left (-5 \, x\right )}\right )}}{3 \,{\left (3 \, a e^{\left (-2 \, x\right )} + 3 \, a e^{\left (-4 \, x\right )} + a e^{\left (-6 \, x\right )} + a\right )}} + \frac{\log \left (e^{\left (-2 \, x\right )} + 1\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.56271, size = 1403, normalized size = 38.97 \begin{align*} \text{result too large to display} \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*} \frac{\int \frac{\tanh ^{5}{\left (x \right )}}{\operatorname{sech}{\left (x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15256, size = 82, normalized size = 2.28 \begin{align*} \frac{\log \left (e^{\left (-x\right )} + e^{x}\right )}{a} - \frac{11 \,{\left (e^{\left (-x\right )} + e^{x}\right )}^{3} - 12 \,{\left (e^{\left (-x\right )} + e^{x}\right )}^{2} - 12 \, e^{\left (-x\right )} - 12 \, e^{x} + 16}{6 \, a{\left (e^{\left (-x\right )} + e^{x}\right )}^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]