Optimal. Leaf size=143 \[ -\frac {9 x \cosh (2 a+2 b x)}{128 b^3}-\frac {3 x^3 \cosh (2 a+2 b x)}{64 b}+\frac {x \cosh (6 a+6 b x)}{1152 b^3}+\frac {x^3 \cosh (6 a+6 b x)}{192 b}+\frac {9 \sinh (2 a+2 b x)}{256 b^4}+\frac {9 x^2 \sinh (2 a+2 b x)}{128 b^2}-\frac {\sinh (6 a+6 b x)}{6912 b^4}-\frac {x^2 \sinh (6 a+6 b x)}{384 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 143, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {5556, 3377,
2717} \begin {gather*} \frac {9 \sinh (2 a+2 b x)}{256 b^4}-\frac {\sinh (6 a+6 b x)}{6912 b^4}-\frac {9 x \cosh (2 a+2 b x)}{128 b^3}+\frac {x \cosh (6 a+6 b x)}{1152 b^3}+\frac {9 x^2 \sinh (2 a+2 b x)}{128 b^2}-\frac {x^2 \sinh (6 a+6 b x)}{384 b^2}-\frac {3 x^3 \cosh (2 a+2 b x)}{64 b}+\frac {x^3 \cosh (6 a+6 b x)}{192 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2717
Rule 3377
Rule 5556
Rubi steps
\begin {align*} \int x^3 \cosh ^3(a+b x) \sinh ^3(a+b x) \, dx &=\int \left (-\frac {3}{32} x^3 \sinh (2 a+2 b x)+\frac {1}{32} x^3 \sinh (6 a+6 b x)\right ) \, dx\\ &=\frac {1}{32} \int x^3 \sinh (6 a+6 b x) \, dx-\frac {3}{32} \int x^3 \sinh (2 a+2 b x) \, dx\\ &=-\frac {3 x^3 \cosh (2 a+2 b x)}{64 b}+\frac {x^3 \cosh (6 a+6 b x)}{192 b}-\frac {\int x^2 \cosh (6 a+6 b x) \, dx}{64 b}+\frac {9 \int x^2 \cosh (2 a+2 b x) \, dx}{64 b}\\ &=-\frac {3 x^3 \cosh (2 a+2 b x)}{64 b}+\frac {x^3 \cosh (6 a+6 b x)}{192 b}+\frac {9 x^2 \sinh (2 a+2 b x)}{128 b^2}-\frac {x^2 \sinh (6 a+6 b x)}{384 b^2}+\frac {\int x \sinh (6 a+6 b x) \, dx}{192 b^2}-\frac {9 \int x \sinh (2 a+2 b x) \, dx}{64 b^2}\\ &=-\frac {9 x \cosh (2 a+2 b x)}{128 b^3}-\frac {3 x^3 \cosh (2 a+2 b x)}{64 b}+\frac {x \cosh (6 a+6 b x)}{1152 b^3}+\frac {x^3 \cosh (6 a+6 b x)}{192 b}+\frac {9 x^2 \sinh (2 a+2 b x)}{128 b^2}-\frac {x^2 \sinh (6 a+6 b x)}{384 b^2}-\frac {\int \cosh (6 a+6 b x) \, dx}{1152 b^3}+\frac {9 \int \cosh (2 a+2 b x) \, dx}{128 b^3}\\ &=-\frac {9 x \cosh (2 a+2 b x)}{128 b^3}-\frac {3 x^3 \cosh (2 a+2 b x)}{64 b}+\frac {x \cosh (6 a+6 b x)}{1152 b^3}+\frac {x^3 \cosh (6 a+6 b x)}{192 b}+\frac {9 \sinh (2 a+2 b x)}{256 b^4}+\frac {9 x^2 \sinh (2 a+2 b x)}{128 b^2}-\frac {\sinh (6 a+6 b x)}{6912 b^4}-\frac {x^2 \sinh (6 a+6 b x)}{384 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.59, size = 90, normalized size = 0.63 \begin {gather*} -\frac {81 b x \left (3+2 b^2 x^2\right ) \cosh (2 (a+b x))-3 \left (b x+6 b^3 x^3\right ) \cosh (6 (a+b x))+\left (-121-234 b^2 x^2+\left (1+18 b^2 x^2\right ) \cosh (4 (a+b x))\right ) \sinh (2 (a+b x))}{3456 b^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(361\) vs.
\(2(127)=254\).
time = 1.20, size = 362, normalized size = 2.53
method | result | size |
risch | \(\frac {\left (36 b^{3} x^{3}-18 b^{2} x^{2}+6 b x -1\right ) {\mathrm e}^{6 b x +6 a}}{13824 b^{4}}-\frac {3 \left (4 b^{3} x^{3}-6 b^{2} x^{2}+6 b x -3\right ) {\mathrm e}^{2 b x +2 a}}{512 b^{4}}-\frac {3 \left (4 b^{3} x^{3}+6 b^{2} x^{2}+6 b x +3\right ) {\mathrm e}^{-2 b x -2 a}}{512 b^{4}}+\frac {\left (36 b^{3} x^{3}+18 b^{2} x^{2}+6 b x +1\right ) {\mathrm e}^{-6 b x -6 a}}{13824 b^{4}}\) | \(146\) |
default | \(-\frac {3 \left (\left (2 b x +2 a \right )^{3} \cosh \left (2 b x +2 a \right )-3 \left (2 b x +2 a \right )^{2} \sinh \left (2 b x +2 a \right )+6 \left (2 b x +2 a \right ) \cosh \left (2 b x +2 a \right )-6 \sinh \left (2 b x +2 a \right )-6 a \left (\left (2 b x +2 a \right )^{2} \cosh \left (2 b x +2 a \right )-2 \left (2 b x +2 a \right ) \sinh \left (2 b x +2 a \right )+2 \cosh \left (2 b x +2 a \right )\right )+12 a^{2} \left (\left (2 b x +2 a \right ) \cosh \left (2 b x +2 a \right )-\sinh \left (2 b x +2 a \right )\right )-8 a^{3} \cosh \left (2 b x +2 a \right )\right )}{512 b^{4}}+\frac {\left (6 b x +6 a \right )^{3} \cosh \left (6 b x +6 a \right )-3 \left (6 b x +6 a \right )^{2} \sinh \left (6 b x +6 a \right )+6 \left (6 b x +6 a \right ) \cosh \left (6 b x +6 a \right )-6 \sinh \left (6 b x +6 a \right )-18 a \left (\left (6 b x +6 a \right )^{2} \cosh \left (6 b x +6 a \right )-2 \left (6 b x +6 a \right ) \sinh \left (6 b x +6 a \right )+2 \cosh \left (6 b x +6 a \right )\right )+108 a^{2} \left (\left (6 b x +6 a \right ) \cosh \left (6 b x +6 a \right )-\sinh \left (6 b x +6 a \right )\right )-216 a^{3} \cosh \left (6 b x +6 a \right )}{41472 b^{4}}\) | \(362\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 171, normalized size = 1.20 \begin {gather*} \frac {{\left (36 \, b^{3} x^{3} e^{\left (6 \, a\right )} - 18 \, b^{2} x^{2} e^{\left (6 \, a\right )} + 6 \, b x e^{\left (6 \, a\right )} - e^{\left (6 \, a\right )}\right )} e^{\left (6 \, b x\right )}}{13824 \, b^{4}} - \frac {3 \, {\left (4 \, b^{3} x^{3} e^{\left (2 \, a\right )} - 6 \, b^{2} x^{2} e^{\left (2 \, a\right )} + 6 \, b x e^{\left (2 \, a\right )} - 3 \, e^{\left (2 \, a\right )}\right )} e^{\left (2 \, b x\right )}}{512 \, b^{4}} - \frac {3 \, {\left (4 \, b^{3} x^{3} + 6 \, b^{2} x^{2} + 6 \, b x + 3\right )} e^{\left (-2 \, b x - 2 \, a\right )}}{512 \, b^{4}} + \frac {{\left (36 \, b^{3} x^{3} + 18 \, b^{2} x^{2} + 6 \, b x + 1\right )} e^{\left (-6 \, b x - 6 \, a\right )}}{13824 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 248, normalized size = 1.73 \begin {gather*} \frac {3 \, {\left (6 \, b^{3} x^{3} + b x\right )} \cosh \left (b x + a\right )^{6} - 10 \, {\left (18 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right )^{3} \sinh \left (b x + a\right )^{3} + 45 \, {\left (6 \, b^{3} x^{3} + b x\right )} \cosh \left (b x + a\right )^{2} \sinh \left (b x + a\right )^{4} - 3 \, {\left (18 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{5} + 3 \, {\left (6 \, b^{3} x^{3} + b x\right )} \sinh \left (b x + a\right )^{6} - 81 \, {\left (2 \, b^{3} x^{3} + 3 \, b x\right )} \cosh \left (b x + a\right )^{2} - 9 \, {\left (18 \, b^{3} x^{3} - 5 \, {\left (6 \, b^{3} x^{3} + b x\right )} \cosh \left (b x + a\right )^{4} + 27 \, b x\right )} \sinh \left (b x + a\right )^{2} - 3 \, {\left ({\left (18 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right )^{5} - 81 \, {\left (2 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )}{3456 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 314 vs.
\(2 (141) = 282\).
time = 1.40, size = 314, normalized size = 2.20 \begin {gather*} \begin {cases} - \frac {x^{3} \sinh ^{6}{\left (a + b x \right )}}{24 b} + \frac {x^{3} \sinh ^{4}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{8 b} + \frac {x^{3} \sinh ^{2}{\left (a + b x \right )} \cosh ^{4}{\left (a + b x \right )}}{8 b} - \frac {x^{3} \cosh ^{6}{\left (a + b x \right )}}{24 b} + \frac {x^{2} \sinh ^{5}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{8 b^{2}} - \frac {x^{2} \sinh ^{3}{\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{3 b^{2}} + \frac {x^{2} \sinh {\left (a + b x \right )} \cosh ^{5}{\left (a + b x \right )}}{8 b^{2}} - \frac {5 x \sinh ^{6}{\left (a + b x \right )}}{72 b^{3}} + \frac {x \sinh ^{4}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{12 b^{3}} + \frac {x \sinh ^{2}{\left (a + b x \right )} \cosh ^{4}{\left (a + b x \right )}}{12 b^{3}} - \frac {5 x \cosh ^{6}{\left (a + b x \right )}}{72 b^{3}} + \frac {5 \sinh ^{5}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{72 b^{4}} - \frac {31 \sinh ^{3}{\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{216 b^{4}} + \frac {5 \sinh {\left (a + b x \right )} \cosh ^{5}{\left (a + b x \right )}}{72 b^{4}} & \text {for}\: b \neq 0 \\\frac {x^{4} \sinh ^{3}{\left (a \right )} \cosh ^{3}{\left (a \right )}}{4} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.40, size = 145, normalized size = 1.01 \begin {gather*} \frac {{\left (36 \, b^{3} x^{3} - 18 \, b^{2} x^{2} + 6 \, b x - 1\right )} e^{\left (6 \, b x + 6 \, a\right )}}{13824 \, b^{4}} - \frac {3 \, {\left (4 \, b^{3} x^{3} - 6 \, b^{2} x^{2} + 6 \, b x - 3\right )} e^{\left (2 \, b x + 2 \, a\right )}}{512 \, b^{4}} - \frac {3 \, {\left (4 \, b^{3} x^{3} + 6 \, b^{2} x^{2} + 6 \, b x + 3\right )} e^{\left (-2 \, b x - 2 \, a\right )}}{512 \, b^{4}} + \frac {{\left (36 \, b^{3} x^{3} + 18 \, b^{2} x^{2} + 6 \, b x + 1\right )} e^{\left (-6 \, b x - 6 \, a\right )}}{13824 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.72, size = 126, normalized size = 0.88 \begin {gather*} \frac {\frac {9\,x^2\,\mathrm {sinh}\left (2\,a+2\,b\,x\right )}{128}-\frac {x^2\,\mathrm {sinh}\left (6\,a+6\,b\,x\right )}{384}}{b^2}-\frac {\frac {3\,x^3\,\mathrm {cosh}\left (2\,a+2\,b\,x\right )}{64}-\frac {x^3\,\mathrm {cosh}\left (6\,a+6\,b\,x\right )}{192}}{b}-\frac {\frac {9\,x\,\mathrm {cosh}\left (2\,a+2\,b\,x\right )}{128}-\frac {x\,\mathrm {cosh}\left (6\,a+6\,b\,x\right )}{1152}}{b^3}+\frac {9\,\mathrm {sinh}\left (2\,a+2\,b\,x\right )}{256\,b^4}-\frac {\mathrm {sinh}\left (6\,a+6\,b\,x\right )}{6912\,b^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________