Optimal. Leaf size=13 \[ x-\frac{\tanh (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0093024, antiderivative size = 13, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3473, 8} \[ x-\frac{\tanh (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 8
Rubi steps
\begin{align*} \int \tanh ^2(a+b x) \, dx &=-\frac{\tanh (a+b x)}{b}+\int 1 \, dx\\ &=x-\frac{\tanh (a+b x)}{b}\\ \end{align*}
Mathematica [A] time = 0.0068711, size = 23, normalized size = 1.77 \[ \frac{\tanh ^{-1}(\tanh (a+b x))}{b}-\frac{\tanh (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.013, size = 18, normalized size = 1.4 \begin{align*}{\frac{bx+a-\tanh \left ( bx+a \right ) }{b}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.04342, size = 34, normalized size = 2.62 \begin{align*} x + \frac{a}{b} - \frac{2}{b{\left (e^{\left (-2 \, b x - 2 \, a\right )} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.97179, size = 82, normalized size = 6.31 \begin{align*} \frac{{\left (b x + 1\right )} \cosh \left (b x + a\right ) - \sinh \left (b x + a\right )}{b \cosh \left (b x + a\right )} \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*} \int \sinh ^{2}{\left (a + b x \right )} \operatorname{sech}^{2}{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.20453, size = 38, normalized size = 2.92 \begin{align*} \frac{b x + a}{b} + \frac{2}{b{\left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]