Optimal. Leaf size=21 \[ \frac {\cosh (a+b x)}{b}+\frac {\text {sech}(a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 21, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {2590, 14} \[ \frac {\cosh (a+b x)}{b}+\frac {\text {sech}(a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2590
Rubi steps
\begin {align*} \int \sinh (a+b x) \tanh ^2(a+b x) \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {1-x^2}{x^2} \, dx,x,\cosh (a+b x)\right )}{b}\\ &=-\frac {\operatorname {Subst}\left (\int \left (-1+\frac {1}{x^2}\right ) \, dx,x,\cosh (a+b x)\right )}{b}\\ &=\frac {\cosh (a+b x)}{b}+\frac {\text {sech}(a+b x)}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 21, normalized size = 1.00 \[ \frac {\cosh (a+b x)}{b}+\frac {\text {sech}(a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 31, normalized size = 1.48 \[ \frac {\cosh \left (b x + a\right )^{2} + \sinh \left (b x + a\right )^{2} + 3}{2 \, b \cosh \left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.15, size = 46, normalized size = 2.19 \[ \frac {\frac {{\left (5 \, e^{\left (2 \, b x + 2 \, a\right )} + 1\right )} e^{\left (-a\right )}}{e^{\left (3 \, b x + 2 \, a\right )} + e^{\left (b x\right )}} + e^{\left (b x + a\right )}}{2 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.13, size = 33, normalized size = 1.57 \[ \frac {\frac {\sinh ^{2}\left (b x +a \right )}{\cosh \left (b x +a \right )}+\frac {2}{\cosh \left (b x +a \right )}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.31, size = 54, normalized size = 2.57 \[ \frac {e^{\left (-b x - a\right )}}{2 \, b} + \frac {5 \, e^{\left (-2 \, b x - 2 \, a\right )} + 1}{2 \, b {\left (e^{\left (-b x - a\right )} + e^{\left (-3 \, b x - 3 \, a\right )}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.49, size = 49, normalized size = 2.33 \[ \frac {{\mathrm {e}}^{-a-b\,x}\,\left (6\,{\mathrm {e}}^{2\,a+2\,b\,x}+{\mathrm {e}}^{4\,a+4\,b\,x}+1\right )}{2\,b\,\left ({\mathrm {e}}^{2\,a+2\,b\,x}+1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sinh {\left (a + b x \right )} \tanh ^{2}{\left (a + b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________