Optimal. Leaf size=60 \[ \frac {\sinh (4 a+4 b x)}{256 b^3}-\frac {x \cosh (4 a+4 b x)}{64 b^2}+\frac {x^2 \sinh (4 a+4 b x)}{32 b}-\frac {x^3}{24} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 60, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {5448, 3296, 2637} \[ \frac {\sinh (4 a+4 b x)}{256 b^3}-\frac {x \cosh (4 a+4 b x)}{64 b^2}+\frac {x^2 \sinh (4 a+4 b x)}{32 b}-\frac {x^3}{24} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2637
Rule 3296
Rule 5448
Rubi steps
\begin {align*} \int x^2 \cosh ^2(a+b x) \sinh ^2(a+b x) \, dx &=\int \left (-\frac {x^2}{8}+\frac {1}{8} x^2 \cosh (4 a+4 b x)\right ) \, dx\\ &=-\frac {x^3}{24}+\frac {1}{8} \int x^2 \cosh (4 a+4 b x) \, dx\\ &=-\frac {x^3}{24}+\frac {x^2 \sinh (4 a+4 b x)}{32 b}-\frac {\int x \sinh (4 a+4 b x) \, dx}{16 b}\\ &=-\frac {x^3}{24}-\frac {x \cosh (4 a+4 b x)}{64 b^2}+\frac {x^2 \sinh (4 a+4 b x)}{32 b}+\frac {\int \cosh (4 a+4 b x) \, dx}{64 b^2}\\ &=-\frac {x^3}{24}-\frac {x \cosh (4 a+4 b x)}{64 b^2}+\frac {\sinh (4 a+4 b x)}{256 b^3}+\frac {x^2 \sinh (4 a+4 b x)}{32 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.17, size = 48, normalized size = 0.80 \[ \frac {3 \left (8 b^2 x^2+1\right ) \sinh (4 (a+b x))-12 b x \cosh (4 (a+b x))-32 b^3 x^3}{768 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.77, size = 110, normalized size = 1.83 \[ -\frac {8 \, b^{3} x^{3} + 3 \, b x \cosh \left (b x + a\right )^{4} + 18 \, b x \cosh \left (b x + a\right )^{2} \sinh \left (b x + a\right )^{2} + 3 \, b x \sinh \left (b x + a\right )^{4} - 3 \, {\left (8 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right )^{3} \sinh \left (b x + a\right ) - 3 \, {\left (8 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3}}{192 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 62, normalized size = 1.03 \[ -\frac {1}{24} \, x^{3} + \frac {{\left (8 \, b^{2} x^{2} - 4 \, b x + 1\right )} e^{\left (4 \, b x + 4 \, a\right )}}{512 \, b^{3}} - \frac {{\left (8 \, b^{2} x^{2} + 4 \, b x + 1\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{512 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.32, size = 241, normalized size = 4.02 \[ \frac {\frac {\left (b x +a \right )^{2} \sinh \left (b x +a \right ) \left (\cosh ^{3}\left (b x +a \right )\right )}{4}-\frac {\left (b x +a \right )^{2} \cosh \left (b x +a \right ) \sinh \left (b x +a \right )}{8}-\frac {\left (b x +a \right )^{3}}{24}-\frac {\left (b x +a \right ) \left (\cosh ^{4}\left (b x +a \right )\right )}{8}+\frac {\left (\cosh ^{3}\left (b x +a \right )\right ) \sinh \left (b x +a \right )}{32}-\frac {\cosh \left (b x +a \right ) \sinh \left (b x +a \right )}{64}-\frac {b x}{64}-\frac {a}{64}+\frac {\left (b x +a \right ) \left (\cosh ^{2}\left (b x +a \right )\right )}{8}-2 a \left (\frac {\left (b x +a \right ) \sinh \left (b x +a \right ) \left (\cosh ^{3}\left (b x +a \right )\right )}{4}-\frac {\left (b x +a \right ) \cosh \left (b x +a \right ) \sinh \left (b x +a \right )}{8}-\frac {\left (b x +a \right )^{2}}{16}-\frac {\left (\cosh ^{4}\left (b x +a \right )\right )}{16}+\frac {\left (\cosh ^{2}\left (b x +a \right )\right )}{16}\right )+a^{2} \left (\frac {\left (\cosh ^{3}\left (b x +a \right )\right ) \sinh \left (b x +a \right )}{4}-\frac {\cosh \left (b x +a \right ) \sinh \left (b x +a \right )}{8}-\frac {b x}{8}-\frac {a}{8}\right )}{b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 69, normalized size = 1.15 \[ -\frac {1}{24} \, x^{3} + \frac {{\left (8 \, b^{2} x^{2} e^{\left (4 \, a\right )} - 4 \, b x e^{\left (4 \, a\right )} + e^{\left (4 \, a\right )}\right )} e^{\left (4 \, b x\right )}}{512 \, b^{3}} - \frac {{\left (8 \, b^{2} x^{2} + 4 \, b x + 1\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{512 \, b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.14, size = 52, normalized size = 0.87 \[ \frac {\frac {\mathrm {sinh}\left (4\,a+4\,b\,x\right )}{256}+\frac {b^2\,x^2\,\mathrm {sinh}\left (4\,a+4\,b\,x\right )}{32}-\frac {b\,x\,\mathrm {cosh}\left (4\,a+4\,b\,x\right )}{64}}{b^3}-\frac {x^3}{24} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 3.05, size = 204, normalized size = 3.40 \[ \begin {cases} - \frac {x^{3} \sinh ^{4}{\left (a + b x \right )}}{24} + \frac {x^{3} \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{12} - \frac {x^{3} \cosh ^{4}{\left (a + b x \right )}}{24} + \frac {x^{2} \sinh ^{3}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{8 b} + \frac {x^{2} \sinh {\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{8 b} - \frac {x \sinh ^{4}{\left (a + b x \right )}}{64 b^{2}} - \frac {3 x \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{32 b^{2}} - \frac {x \cosh ^{4}{\left (a + b x \right )}}{64 b^{2}} + \frac {\sinh ^{3}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{64 b^{3}} + \frac {\sinh {\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{64 b^{3}} & \text {for}\: b \neq 0 \\\frac {x^{3} \sinh ^{2}{\relax (a )} \cosh ^{2}{\relax (a )}}{3} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________