Optimal. Leaf size=46 \[ -\frac{\tanh ^5(x)}{5 a}+\frac{3 \tan ^{-1}(\sinh (x))}{8 a}-\frac{\tanh ^3(x) \text{sech}(x)}{4 a}-\frac{3 \tanh (x) \text{sech}(x)}{8 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0928183, antiderivative size = 46, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.385, Rules used = {2706, 2607, 30, 2611, 3770} \[ -\frac{\tanh ^5(x)}{5 a}+\frac{3 \tan ^{-1}(\sinh (x))}{8 a}-\frac{\tanh ^3(x) \text{sech}(x)}{4 a}-\frac{3 \tanh (x) \text{sech}(x)}{8 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2706
Rule 2607
Rule 30
Rule 2611
Rule 3770
Rubi steps
\begin{align*} \int \frac{\tanh ^6(x)}{a+a \cosh (x)} \, dx &=\frac{\int \text{sech}(x) \tanh ^4(x) \, dx}{a}-\frac{\int \text{sech}^2(x) \tanh ^4(x) \, dx}{a}\\ &=-\frac{\text{sech}(x) \tanh ^3(x)}{4 a}+\frac{i \operatorname{Subst}\left (\int x^4 \, dx,x,i \tanh (x)\right )}{a}+\frac{3 \int \text{sech}(x) \tanh ^2(x) \, dx}{4 a}\\ &=-\frac{3 \text{sech}(x) \tanh (x)}{8 a}-\frac{\text{sech}(x) \tanh ^3(x)}{4 a}-\frac{\tanh ^5(x)}{5 a}+\frac{3 \int \text{sech}(x) \, dx}{8 a}\\ &=\frac{3 \tan ^{-1}(\sinh (x))}{8 a}-\frac{3 \text{sech}(x) \tanh (x)}{8 a}-\frac{\text{sech}(x) \tanh ^3(x)}{4 a}-\frac{\tanh ^5(x)}{5 a}\\ \end{align*}
Mathematica [A] time = 0.0845774, size = 58, normalized size = 1.26 \[ \frac{\cosh ^2\left (\frac{x}{2}\right ) \left (30 \tan ^{-1}\left (\tanh \left (\frac{x}{2}\right )\right )+\tanh (x) \left (-8 \text{sech}^4(x)+10 \text{sech}^3(x)+16 \text{sech}^2(x)-25 \text{sech}(x)-8\right )\right )}{20 a (\cosh (x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.06, size = 115, normalized size = 2.5 \begin{align*}{\frac{3}{4\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{9} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-5}}+{\frac{7}{2\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{7} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-5}}-{\frac{32}{5\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{5} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-5}}-{\frac{7}{2\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{3} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-5}}-{\frac{3}{4\,a}\tanh \left ({\frac{x}{2}} \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-5}}+{\frac{3}{4\,a}\arctan \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.55973, size = 120, normalized size = 2.61 \begin{align*} -\frac{25 \, e^{\left (-x\right )} + 10 \, e^{\left (-3 \, x\right )} + 80 \, e^{\left (-4 \, x\right )} - 10 \, e^{\left (-7 \, x\right )} + 40 \, e^{\left (-8 \, x\right )} - 25 \, e^{\left (-9 \, x\right )} + 8}{20 \,{\left (5 \, a e^{\left (-2 \, x\right )} + 10 \, a e^{\left (-4 \, x\right )} + 10 \, a e^{\left (-6 \, x\right )} + 5 \, a e^{\left (-8 \, x\right )} + a e^{\left (-10 \, x\right )} + a\right )}} - \frac{3 \, \arctan \left (e^{\left (-x\right )}\right )}{4 \, a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.88848, size = 2522, normalized size = 54.83 \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 ^{6}{\left (x \right )}}{\cosh{\left (x \right )} + 1}\, dx}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.18083, size = 78, normalized size = 1.7 \begin{align*} \frac{3 \, \arctan \left (e^{x}\right )}{4 \, a} - \frac{25 \, e^{\left (9 \, x\right )} - 40 \, e^{\left (8 \, x\right )} + 10 \, e^{\left (7 \, x\right )} - 80 \, e^{\left (4 \, x\right )} - 10 \, e^{\left (3 \, x\right )} - 25 \, e^{x} - 8}{20 \, a{\left (e^{\left (2 \, x\right )} + 1\right )}^{5}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]