Optimal. Leaf size=30 \[ \frac {\tanh (a+b x)}{2 b^2}-\frac {x \text {sech}^2(a+b x)}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {5418, 3767, 8} \[ \frac {\tanh (a+b x)}{2 b^2}-\frac {x \text {sech}^2(a+b x)}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3767
Rule 5418
Rubi steps
\begin {align*} \int x \text {sech}^2(a+b x) \tanh (a+b x) \, dx &=-\frac {x \text {sech}^2(a+b x)}{2 b}+\frac {\int \text {sech}^2(a+b x) \, dx}{2 b}\\ &=-\frac {x \text {sech}^2(a+b x)}{2 b}+\frac {i \operatorname {Subst}(\int 1 \, dx,x,-i \tanh (a+b x))}{2 b^2}\\ &=-\frac {x \text {sech}^2(a+b x)}{2 b}+\frac {\tanh (a+b x)}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 30, normalized size = 1.00 \[ \frac {\tanh (a+b x)}{2 b^2}-\frac {x \text {sech}^2(a+b x)}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.43, size = 105, normalized size = 3.50 \[ -\frac {2 \, {\left (b x \sinh \left (b x + a\right ) + {\left (b x + 1\right )} \cosh \left (b x + a\right )\right )}}{b^{2} \cosh \left (b x + a\right )^{3} + 3 \, b^{2} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} + b^{2} \sinh \left (b x + a\right )^{3} + 3 \, b^{2} \cosh \left (b x + a\right ) + {\left (3 \, b^{2} \cosh \left (b x + a\right )^{2} + b^{2}\right )} \sinh \left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 184, normalized size = 6.13 \[ -\frac {4 \, b x e^{\left (2 \, b x + 2 \, a\right )} - e^{\left (4 \, b x + 4 \, a\right )} \log \left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right ) - 2 \, e^{\left (2 \, b x + 2 \, a\right )} \log \left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right ) + e^{\left (4 \, b x + 4 \, a\right )} \log \left (-e^{\left (2 \, b x + 2 \, a\right )} - 1\right ) + 2 \, e^{\left (2 \, b x + 2 \, a\right )} \log \left (-e^{\left (2 \, b x + 2 \, a\right )} - 1\right ) + 2 \, e^{\left (2 \, b x + 2 \, a\right )} - \log \left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right ) + \log \left (-e^{\left (2 \, b x + 2 \, a\right )} - 1\right ) + 2}{2 \, {\left (b^{2} e^{\left (4 \, b x + 4 \, a\right )} + 2 \, b^{2} e^{\left (2 \, b x + 2 \, a\right )} + b^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.16, size = 43, normalized size = 1.43 \[ -\frac {2 b x \,{\mathrm e}^{2 b x +2 a}+{\mathrm e}^{2 b x +2 a}+1}{b^{2} \left (1+{\mathrm e}^{2 b x +2 a}\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.35, size = 131, normalized size = 4.37 \[ -\frac {2 \, b x e^{\left (4 \, b x + 4 \, a\right )} + {\left (4 \, b x e^{\left (2 \, a\right )} + e^{\left (2 \, a\right )}\right )} e^{\left (2 \, b x\right )} + 1}{2 \, {\left (b^{2} e^{\left (4 \, b x + 4 \, a\right )} + 2 \, b^{2} e^{\left (2 \, b x + 2 \, a\right )} + b^{2}\right )}} + \frac {2 \, b x e^{\left (4 \, b x + 4 \, a\right )} - e^{\left (2 \, b x + 2 \, a\right )} - 1}{2 \, {\left (b^{2} e^{\left (4 \, b x + 4 \, a\right )} + 2 \, b^{2} e^{\left (2 \, b x + 2 \, a\right )} + b^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.46, size = 36, normalized size = 1.20 \[ -\frac {{\mathrm {e}}^{2\,a+2\,b\,x}\,\left (2\,b\,x+1\right )+1}{b^2\,{\left ({\mathrm {e}}^{2\,a+2\,b\,x}+1\right )}^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \sinh {\left (a + b x \right )} \operatorname {sech}^{3}{\left (a + b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________