Optimal. Leaf size=43 \[ -\frac {\tanh ^5(a+b x)}{5 b}-\frac {\tanh ^3(a+b x)}{3 b}-\frac {\tanh (a+b x)}{b}+x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3473, 8} \[ -\frac {\tanh ^5(a+b x)}{5 b}-\frac {\tanh ^3(a+b x)}{3 b}-\frac {\tanh (a+b x)}{b}+x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3473
Rubi steps
\begin {align*} \int \tanh ^6(a+b x) \, dx &=-\frac {\tanh ^5(a+b x)}{5 b}+\int \tanh ^4(a+b x) \, dx\\ &=-\frac {\tanh ^3(a+b x)}{3 b}-\frac {\tanh ^5(a+b x)}{5 b}+\int \tanh ^2(a+b x) \, dx\\ &=-\frac {\tanh (a+b x)}{b}-\frac {\tanh ^3(a+b x)}{3 b}-\frac {\tanh ^5(a+b x)}{5 b}+\int 1 \, dx\\ &=x-\frac {\tanh (a+b x)}{b}-\frac {\tanh ^3(a+b x)}{3 b}-\frac {\tanh ^5(a+b x)}{5 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 53, normalized size = 1.23 \[ \frac {\tanh ^{-1}(\tanh (a+b x))}{b}-\frac {\tanh ^5(a+b x)}{5 b}-\frac {\tanh ^3(a+b x)}{3 b}-\frac {\tanh (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.65, size = 254, normalized size = 5.91 \[ \frac {{\left (15 \, b x + 23\right )} \cosh \left (b x + a\right )^{5} + 5 \, {\left (15 \, b x + 23\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{4} - 23 \, \sinh \left (b x + a\right )^{5} + 5 \, {\left (15 \, b x + 23\right )} \cosh \left (b x + a\right )^{3} - 5 \, {\left (46 \, \cosh \left (b x + a\right )^{2} + 5\right )} \sinh \left (b x + a\right )^{3} + 5 \, {\left (2 \, {\left (15 \, b x + 23\right )} \cosh \left (b x + a\right )^{3} + 3 \, {\left (15 \, b x + 23\right )} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )^{2} + 10 \, {\left (15 \, b x + 23\right )} \cosh \left (b x + a\right ) - 5 \, {\left (23 \, \cosh \left (b x + a\right )^{4} + 15 \, \cosh \left (b x + a\right )^{2} + 10\right )} \sinh \left (b x + a\right )}{15 \, {\left (b \cosh \left (b x + a\right )^{5} + 5 \, b \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{4} + 5 \, b \cosh \left (b x + a\right )^{3} + 5 \, {\left (2 \, b \cosh \left (b x + a\right )^{3} + 3 \, b \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )^{2} + 10 \, b \cosh \left (b x + a\right )\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 74, normalized size = 1.72 \[ \frac {15 \, b x + 15 \, a + \frac {2 \, {\left (45 \, e^{\left (8 \, b x + 8 \, a\right )} + 90 \, e^{\left (6 \, b x + 6 \, a\right )} + 140 \, e^{\left (4 \, b x + 4 \, a\right )} + 70 \, e^{\left (2 \, b x + 2 \, a\right )} + 23\right )}}{{\left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right )}^{5}}}{15 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 67, normalized size = 1.56 \[ -\frac {\tanh ^{5}\left (b x +a \right )}{5 b}-\frac {\tanh ^{3}\left (b x +a \right )}{3 b}-\frac {\tanh \left (b x +a \right )}{b}-\frac {\ln \left (-1+\tanh \left (b x +a \right )\right )}{2 b}+\frac {\ln \left (1+\tanh \left (b x +a \right )\right )}{2 b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.40, size = 115, normalized size = 2.67 \[ x + \frac {a}{b} - \frac {2 \, {\left (70 \, e^{\left (-2 \, b x - 2 \, a\right )} + 140 \, e^{\left (-4 \, b x - 4 \, a\right )} + 90 \, e^{\left (-6 \, b x - 6 \, a\right )} + 45 \, e^{\left (-8 \, b x - 8 \, a\right )} + 23\right )}}{15 \, b {\left (5 \, e^{\left (-2 \, b x - 2 \, a\right )} + 10 \, e^{\left (-4 \, b x - 4 \, a\right )} + 10 \, e^{\left (-6 \, b x - 6 \, a\right )} + 5 \, e^{\left (-8 \, b x - 8 \, a\right )} + e^{\left (-10 \, b x - 10 \, a\right )} + 1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.11, size = 34, normalized size = 0.79 \[ x-\frac {\frac {{\mathrm {tanh}\left (a+b\,x\right )}^5}{5}+\frac {{\mathrm {tanh}\left (a+b\,x\right )}^3}{3}+\mathrm {tanh}\left (a+b\,x\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.50, size = 39, normalized size = 0.91 \[ \begin {cases} x - \frac {\tanh ^{5}{\left (a + b x \right )}}{5 b} - \frac {\tanh ^{3}{\left (a + b x \right )}}{3 b} - \frac {\tanh {\left (a + b x \right )}}{b} & \text {for}\: b \neq 0 \\x \tanh ^{6}{\relax (a )} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________