Integrand size = 15, antiderivative size = 28 \[ \int \sinh ^2(a+b x) \tanh (a+b x) \, dx=\frac {\cosh ^2(a+b x)}{2 b}-\frac {\log (\cosh (a+b x))}{b} \]
[Out]
Time = 0.02 (sec) , antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {2670, 14} \[ \int \sinh ^2(a+b x) \tanh (a+b x) \, dx=\frac {\cosh ^2(a+b x)}{2 b}-\frac {\log (\cosh (a+b x))}{b} \]
[In]
[Out]
Rule 14
Rule 2670
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {1-x^2}{x} \, dx,x,\cosh (a+b x)\right )}{b} \\ & = -\frac {\text {Subst}\left (\int \left (\frac {1}{x}-x\right ) \, dx,x,\cosh (a+b x)\right )}{b} \\ & = \frac {\cosh ^2(a+b x)}{2 b}-\frac {\log (\cosh (a+b x))}{b} \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.89 \[ \int \sinh ^2(a+b x) \tanh (a+b x) \, dx=-\frac {-\frac {1}{2} \cosh ^2(a+b x)+\log (\cosh (a+b x))}{b} \]
[In]
[Out]
Time = 0.73 (sec) , antiderivative size = 25, normalized size of antiderivative = 0.89
method | result | size |
derivativedivides | \(\frac {\frac {\sinh \left (b x +a \right )^{2}}{2}-\ln \left (\cosh \left (b x +a \right )\right )}{b}\) | \(25\) |
default | \(\frac {\frac {\sinh \left (b x +a \right )^{2}}{2}-\ln \left (\cosh \left (b x +a \right )\right )}{b}\) | \(25\) |
risch | \(x +\frac {{\mathrm e}^{2 b x +2 a}}{8 b}+\frac {{\mathrm e}^{-2 b x -2 a}}{8 b}+\frac {2 a}{b}-\frac {\ln \left (1+{\mathrm e}^{2 b x +2 a}\right )}{b}\) | \(54\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 197 vs. \(2 (26) = 52\).
Time = 0.26 (sec) , antiderivative size = 197, normalized size of antiderivative = 7.04 \[ \int \sinh ^2(a+b x) \tanh (a+b x) \, dx=\frac {8 \, b x \cosh \left (b x + a\right )^{2} + \cosh \left (b x + a\right )^{4} + 4 \, \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + \sinh \left (b x + a\right )^{4} + 2 \, {\left (4 \, b x + 3 \, \cosh \left (b x + a\right )^{2}\right )} \sinh \left (b x + a\right )^{2} - 8 \, {\left (\cosh \left (b x + a\right )^{2} + 2 \, \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + \sinh \left (b x + a\right )^{2}\right )} \log \left (\frac {2 \, \cosh \left (b x + a\right )}{\cosh \left (b x + a\right ) - \sinh \left (b x + a\right )}\right ) + 4 \, {\left (4 \, b x \cosh \left (b x + a\right ) + \cosh \left (b x + a\right )^{3}\right )} \sinh \left (b x + a\right ) + 1}{8 \, {\left (b \cosh \left (b x + a\right )^{2} + 2 \, b \cosh \left (b x + a\right ) \sinh \left (b x + a\right ) + b \sinh \left (b x + a\right )^{2}\right )}} \]
[In]
[Out]
\[ \int \sinh ^2(a+b x) \tanh (a+b x) \, dx=\int \sinh ^{3}{\left (a + b x \right )} \operatorname {sech}{\left (a + b x \right )}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 56 vs. \(2 (26) = 52\).
Time = 0.31 (sec) , antiderivative size = 56, normalized size of antiderivative = 2.00 \[ \int \sinh ^2(a+b x) \tanh (a+b x) \, dx=-\frac {b x + a}{b} + \frac {e^{\left (2 \, b x + 2 \, a\right )}}{8 \, b} + \frac {e^{\left (-2 \, b x - 2 \, a\right )}}{8 \, b} - \frac {\log \left (e^{\left (-2 \, b x - 2 \, a\right )} + 1\right )}{b} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 60 vs. \(2 (26) = 52\).
Time = 0.27 (sec) , antiderivative size = 60, normalized size of antiderivative = 2.14 \[ \int \sinh ^2(a+b x) \tanh (a+b x) \, dx=\frac {8 \, b x - {\left (4 \, e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-2 \, b x - 2 \, a\right )} + 8 \, a + e^{\left (2 \, b x + 2 \, a\right )} - 8 \, \log \left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right )}{8 \, b} \]
[In]
[Out]
Time = 0.06 (sec) , antiderivative size = 48, normalized size of antiderivative = 1.71 \[ \int \sinh ^2(a+b x) \tanh (a+b x) \, dx=x-\frac {\ln \left ({\mathrm {e}}^{2\,a}\,{\mathrm {e}}^{2\,b\,x}+1\right )}{b}+\frac {{\mathrm {e}}^{-2\,a-2\,b\,x}}{8\,b}+\frac {{\mathrm {e}}^{2\,a+2\,b\,x}}{8\,b} \]
[In]
[Out]