Optimal. Leaf size=48 \[ \frac{x}{a}-\frac{3 \tan ^{-1}(\sinh (x))}{8 a}-\frac{\tanh ^3(x) (4-3 \text{sech}(x))}{12 a}-\frac{\tanh (x) (8-3 \text{sech}(x))}{8 a} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0967035, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {3888, 3881, 3770} \[ \frac{x}{a}-\frac{3 \tan ^{-1}(\sinh (x))}{8 a}-\frac{\tanh ^3(x) (4-3 \text{sech}(x))}{12 a}-\frac{\tanh (x) (8-3 \text{sech}(x))}{8 a} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3888
Rule 3881
Rule 3770
Rubi steps
\begin{align*} \int \frac{\tanh ^6(x)}{a+a \text{sech}(x)} \, dx &=-\frac{\int (-a+a \text{sech}(x)) \tanh ^4(x) \, dx}{a^2}\\ &=-\frac{(4-3 \text{sech}(x)) \tanh ^3(x)}{12 a}-\frac{\int (-4 a+3 a \text{sech}(x)) \tanh ^2(x) \, dx}{4 a^2}\\ &=-\frac{(8-3 \text{sech}(x)) \tanh (x)}{8 a}-\frac{(4-3 \text{sech}(x)) \tanh ^3(x)}{12 a}-\frac{\int (-8 a+3 a \text{sech}(x)) \, dx}{8 a^2}\\ &=\frac{x}{a}-\frac{(8-3 \text{sech}(x)) \tanh (x)}{8 a}-\frac{(4-3 \text{sech}(x)) \tanh ^3(x)}{12 a}-\frac{3 \int \text{sech}(x) \, dx}{8 a}\\ &=\frac{x}{a}-\frac{3 \tan ^{-1}(\sinh (x))}{8 a}-\frac{(8-3 \text{sech}(x)) \tanh (x)}{8 a}-\frac{(4-3 \text{sech}(x)) \tanh ^3(x)}{12 a}\\ \end{align*}
Mathematica [A] time = 0.117712, size = 60, normalized size = 1.25 \[ \frac{\cosh ^2\left (\frac{x}{2}\right ) \text{sech}(x) \left (6 \left (4 x-3 \tan ^{-1}\left (\tanh \left (\frac{x}{2}\right )\right )\right )+\tanh (x) \left (-6 \text{sech}^3(x)+8 \text{sech}^2(x)+15 \text{sech}(x)-32\right )\right )}{12 a (\text{sech}(x)+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.059, size = 117, normalized size = 2.4 \begin{align*}{\frac{1}{a}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }-{\frac{1}{a}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) }-{\frac{11}{4\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{7} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-4}}-{\frac{137}{12\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{5} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-4}}-{\frac{71}{12\,a} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{3} \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-4}}-{\frac{5}{4\,a}\tanh \left ({\frac{x}{2}} \right ) \left ( \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+1 \right ) ^{-4}}-{\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.70188, size = 126, normalized size = 2.62 \begin{align*} \frac{x}{a} + \frac{15 \, e^{\left (-x\right )} - 80 \, e^{\left (-2 \, x\right )} - 9 \, e^{\left (-3 \, x\right )} - 96 \, e^{\left (-4 \, x\right )} + 9 \, e^{\left (-5 \, x\right )} - 48 \, e^{\left (-6 \, x\right )} - 15 \, e^{\left (-7 \, x\right )} - 32}{12 \,{\left (4 \, a e^{\left (-2 \, x\right )} + 6 \, a e^{\left (-4 \, x\right )} + 4 \, a e^{\left (-6 \, x\right )} + a e^{\left (-8 \, 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 = 2.60885, size = 2288, normalized size = 47.67 \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 )}}{\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.15037, size = 93, normalized size = 1.94 \begin{align*} \frac{x}{a} - \frac{3 \, \arctan \left (e^{x}\right )}{4 \, a} + \frac{15 \, e^{\left (7 \, x\right )} + 48 \, e^{\left (6 \, x\right )} - 9 \, e^{\left (5 \, x\right )} + 96 \, e^{\left (4 \, x\right )} + 9 \, e^{\left (3 \, x\right )} + 80 \, e^{\left (2 \, x\right )} - 15 \, e^{x} + 32}{12 \, a{\left (e^{\left (2 \, x\right )} + 1\right )}^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]