Optimal. Leaf size=83 \[ \frac{2 \sinh ^3(a+b x)}{27 b^3}-\frac{4 \sinh (a+b x)}{9 b^3}+\frac{4 x \cosh (a+b x)}{9 b^2}-\frac{2 x \sinh ^2(a+b x) \cosh (a+b x)}{9 b^2}+\frac{x^2 \sinh ^3(a+b x)}{3 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.07921, antiderivative size = 83, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {5372, 3310, 3296, 2637} \[ \frac{2 \sinh ^3(a+b x)}{27 b^3}-\frac{4 \sinh (a+b x)}{9 b^3}+\frac{4 x \cosh (a+b x)}{9 b^2}-\frac{2 x \sinh ^2(a+b x) \cosh (a+b x)}{9 b^2}+\frac{x^2 \sinh ^3(a+b x)}{3 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5372
Rule 3310
Rule 3296
Rule 2637
Rubi steps
\begin{align*} \int x^2 \cosh (a+b x) \sinh ^2(a+b x) \, dx &=\frac{x^2 \sinh ^3(a+b x)}{3 b}-\frac{2 \int x \sinh ^3(a+b x) \, dx}{3 b}\\ &=-\frac{2 x \cosh (a+b x) \sinh ^2(a+b x)}{9 b^2}+\frac{2 \sinh ^3(a+b x)}{27 b^3}+\frac{x^2 \sinh ^3(a+b x)}{3 b}+\frac{4 \int x \sinh (a+b x) \, dx}{9 b}\\ &=\frac{4 x \cosh (a+b x)}{9 b^2}-\frac{2 x \cosh (a+b x) \sinh ^2(a+b x)}{9 b^2}+\frac{2 \sinh ^3(a+b x)}{27 b^3}+\frac{x^2 \sinh ^3(a+b x)}{3 b}-\frac{4 \int \cosh (a+b x) \, dx}{9 b^2}\\ &=\frac{4 x \cosh (a+b x)}{9 b^2}-\frac{4 \sinh (a+b x)}{9 b^3}-\frac{2 x \cosh (a+b x) \sinh ^2(a+b x)}{9 b^2}+\frac{2 \sinh ^3(a+b x)}{27 b^3}+\frac{x^2 \sinh ^3(a+b x)}{3 b}\\ \end{align*}
Mathematica [A] time = 0.425285, size = 66, normalized size = 0.8 \[ \frac{\sinh (a+b x) \left (\left (9 b^2 x^2+2\right ) \cosh (2 (a+b x))-9 b^2 x^2-26\right )+27 b x \cosh (a+b x)-3 b x \cosh (3 (a+b x))}{54 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.005, size = 193, normalized size = 2.3 \begin{align*}{\frac{1}{{b}^{3}} \left ({\frac{ \left ( bx+a \right ) ^{2}\sinh \left ( bx+a \right ) \left ( \cosh \left ( bx+a \right ) \right ) ^{2}}{3}}-{\frac{ \left ( bx+a \right ) ^{2}\sinh \left ( bx+a \right ) }{3}}-{\frac{ \left ( 2\,bx+2\,a \right ) \left ( \sinh \left ( bx+a \right ) \right ) ^{2}\cosh \left ( bx+a \right ) }{9}}+{\frac{ \left ( 4\,bx+4\,a \right ) \cosh \left ( bx+a \right ) }{9}}+{\frac{2\,\sinh \left ( bx+a \right ) \left ( \cosh \left ( bx+a \right ) \right ) ^{2}}{27}}-{\frac{14\,\sinh \left ( bx+a \right ) }{27}}-2\,a \left ( 1/3\, \left ( bx+a \right ) \sinh \left ( bx+a \right ) \left ( \cosh \left ( bx+a \right ) \right ) ^{2}-1/3\, \left ( bx+a \right ) \sinh \left ( bx+a \right ) -1/9\,\cosh \left ( bx+a \right ) \left ( \sinh \left ( bx+a \right ) \right ) ^{2}+2/9\,\cosh \left ( bx+a \right ) \right ) +{a}^{2} \left ({\frac{\sinh \left ( bx+a \right ) \left ( \cosh \left ( bx+a \right ) \right ) ^{2}}{3}}-{\frac{\sinh \left ( bx+a \right ) }{3}} \right ) \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.15764, size = 165, normalized size = 1.99 \begin{align*} \frac{{\left (9 \, b^{2} x^{2} e^{\left (3 \, a\right )} - 6 \, b x e^{\left (3 \, a\right )} + 2 \, e^{\left (3 \, a\right )}\right )} e^{\left (3 \, b x\right )}}{216 \, b^{3}} - \frac{{\left (b^{2} x^{2} e^{a} - 2 \, b x e^{a} + 2 \, e^{a}\right )} e^{\left (b x\right )}}{8 \, b^{3}} + \frac{{\left (b^{2} x^{2} + 2 \, b x + 2\right )} e^{\left (-b x - a\right )}}{8 \, b^{3}} - \frac{{\left (9 \, b^{2} x^{2} + 6 \, b x + 2\right )} e^{\left (-3 \, b x - 3 \, a\right )}}{216 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.82602, size = 271, normalized size = 3.27 \begin{align*} -\frac{6 \, b x \cosh \left (b x + a\right )^{3} + 18 \, b x \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{2} -{\left (9 \, b^{2} x^{2} + 2\right )} \sinh \left (b x + a\right )^{3} - 54 \, b x \cosh \left (b x + a\right ) + 3 \,{\left (9 \, b^{2} x^{2} -{\left (9 \, b^{2} x^{2} + 2\right )} \cosh \left (b x + a\right )^{2} + 18\right )} \sinh \left (b x + a\right )}{108 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 2.21602, size = 105, normalized size = 1.27 \begin{align*} \begin{cases} \frac{x^{2} \sinh ^{3}{\left (a + b x \right )}}{3 b} - \frac{2 x \sinh ^{2}{\left (a + b x \right )} \cosh{\left (a + b x \right )}}{3 b^{2}} + \frac{4 x \cosh ^{3}{\left (a + b x \right )}}{9 b^{2}} + \frac{14 \sinh ^{3}{\left (a + b x \right )}}{27 b^{3}} - \frac{4 \sinh{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{9 b^{3}} & \text{for}\: b \neq 0 \\\frac{x^{3} \sinh ^{2}{\left (a \right )} \cosh{\left (a \right )}}{3} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.20118, size = 146, normalized size = 1.76 \begin{align*} \frac{{\left (9 \, b^{2} x^{2} - 6 \, b x + 2\right )} e^{\left (3 \, b x + 3 \, a\right )}}{216 \, b^{3}} - \frac{{\left (b^{2} x^{2} - 2 \, b x + 2\right )} e^{\left (b x + a\right )}}{8 \, b^{3}} + \frac{{\left (b^{2} x^{2} + 2 \, b x + 2\right )} e^{\left (-b x - a\right )}}{8 \, b^{3}} - \frac{{\left (9 \, b^{2} x^{2} + 6 \, b x + 2\right )} e^{\left (-3 \, b x - 3 \, a\right )}}{216 \, b^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]