Optimal. Leaf size=155 \[ -\frac {45 x}{256 b^3}-\frac {3 x^3}{32 b}+\frac {9 x \cosh ^2(a+b x)}{32 b^3}+\frac {3 x \cosh ^4(a+b x)}{32 b^3}+\frac {x^3 \cosh ^4(a+b x)}{4 b}-\frac {45 \cosh (a+b x) \sinh (a+b x)}{256 b^4}-\frac {9 x^2 \cosh (a+b x) \sinh (a+b x)}{32 b^2}-\frac {3 \cosh ^3(a+b x) \sinh (a+b x)}{128 b^4}-\frac {3 x^2 \cosh ^3(a+b x) \sinh (a+b x)}{16 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 155, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 5, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.278, Rules used = {5481, 3392, 30,
2715, 8} \begin {gather*} -\frac {3 \sinh (a+b x) \cosh ^3(a+b x)}{128 b^4}-\frac {45 \sinh (a+b x) \cosh (a+b x)}{256 b^4}+\frac {3 x \cosh ^4(a+b x)}{32 b^3}+\frac {9 x \cosh ^2(a+b x)}{32 b^3}-\frac {3 x^2 \sinh (a+b x) \cosh ^3(a+b x)}{16 b^2}-\frac {9 x^2 \sinh (a+b x) \cosh (a+b x)}{32 b^2}+\frac {x^3 \cosh ^4(a+b x)}{4 b}-\frac {45 x}{256 b^3}-\frac {3 x^3}{32 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 30
Rule 2715
Rule 3392
Rule 5481
Rubi steps
\begin {align*} \int x^3 \cosh ^3(a+b x) \sinh (a+b x) \, dx &=\frac {x^3 \cosh ^4(a+b x)}{4 b}-\frac {3 \int x^2 \cosh ^4(a+b x) \, dx}{4 b}\\ &=\frac {3 x \cosh ^4(a+b x)}{32 b^3}+\frac {x^3 \cosh ^4(a+b x)}{4 b}-\frac {3 x^2 \cosh ^3(a+b x) \sinh (a+b x)}{16 b^2}-\frac {3 \int \cosh ^4(a+b x) \, dx}{32 b^3}-\frac {9 \int x^2 \cosh ^2(a+b x) \, dx}{16 b}\\ &=\frac {9 x \cosh ^2(a+b x)}{32 b^3}+\frac {3 x \cosh ^4(a+b x)}{32 b^3}+\frac {x^3 \cosh ^4(a+b x)}{4 b}-\frac {9 x^2 \cosh (a+b x) \sinh (a+b x)}{32 b^2}-\frac {3 \cosh ^3(a+b x) \sinh (a+b x)}{128 b^4}-\frac {3 x^2 \cosh ^3(a+b x) \sinh (a+b x)}{16 b^2}-\frac {9 \int \cosh ^2(a+b x) \, dx}{128 b^3}-\frac {9 \int \cosh ^2(a+b x) \, dx}{32 b^3}-\frac {9 \int x^2 \, dx}{32 b}\\ &=-\frac {3 x^3}{32 b}+\frac {9 x \cosh ^2(a+b x)}{32 b^3}+\frac {3 x \cosh ^4(a+b x)}{32 b^3}+\frac {x^3 \cosh ^4(a+b x)}{4 b}-\frac {45 \cosh (a+b x) \sinh (a+b x)}{256 b^4}-\frac {9 x^2 \cosh (a+b x) \sinh (a+b x)}{32 b^2}-\frac {3 \cosh ^3(a+b x) \sinh (a+b x)}{128 b^4}-\frac {3 x^2 \cosh ^3(a+b x) \sinh (a+b x)}{16 b^2}-\frac {9 \int 1 \, dx}{256 b^3}-\frac {9 \int 1 \, dx}{64 b^3}\\ &=-\frac {45 x}{256 b^3}-\frac {3 x^3}{32 b}+\frac {9 x \cosh ^2(a+b x)}{32 b^3}+\frac {3 x \cosh ^4(a+b x)}{32 b^3}+\frac {x^3 \cosh ^4(a+b x)}{4 b}-\frac {45 \cosh (a+b x) \sinh (a+b x)}{256 b^4}-\frac {9 x^2 \cosh (a+b x) \sinh (a+b x)}{32 b^2}-\frac {3 \cosh ^3(a+b x) \sinh (a+b x)}{128 b^4}-\frac {3 x^2 \cosh ^3(a+b x) \sinh (a+b x)}{16 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.48, size = 91, normalized size = 0.59 \begin {gather*} \frac {32 b x \left (3+2 b^2 x^2\right ) \cosh (2 (a+b x))+2 b x \left (3+8 b^2 x^2\right ) \cosh (4 (a+b x))-3 \left (16+32 b^2 x^2+\left (1+8 b^2 x^2\right ) \cosh (2 (a+b x))\right ) \sinh (2 (a+b x))}{512 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(137)=274\).
time = 1.02, size = 362, normalized size = 2.34
method | result | size |
risch | \(\frac {\left (32 b^{3} x^{3}-24 b^{2} x^{2}+12 b x -3\right ) {\mathrm e}^{4 b x +4 a}}{2048 b^{4}}+\frac {\left (4 b^{3} x^{3}-6 b^{2} x^{2}+6 b x -3\right ) {\mathrm e}^{2 b x +2 a}}{64 b^{4}}+\frac {\left (4 b^{3} x^{3}+6 b^{2} x^{2}+6 b x +3\right ) {\mathrm e}^{-2 b x -2 a}}{64 b^{4}}+\frac {\left (32 b^{3} x^{3}+24 b^{2} x^{2}+12 b x +3\right ) {\mathrm e}^{-4 b x -4 a}}{2048 b^{4}}\) | \(146\) |
default | \(\frac {\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 )}{64 b^{4}}+\frac {\left (4 b x +4 a \right )^{3} \cosh \left (4 b x +4 a \right )-3 \left (4 b x +4 a \right )^{2} \sinh \left (4 b x +4 a \right )+6 \left (4 b x +4 a \right ) \cosh \left (4 b x +4 a \right )-6 \sinh \left (4 b x +4 a \right )-12 a \left (\left (4 b x +4 a \right )^{2} \cosh \left (4 b x +4 a \right )-2 \left (4 b x +4 a \right ) \sinh \left (4 b x +4 a \right )+2 \cosh \left (4 b x +4 a \right )\right )+48 a^{2} \left (\left (4 b x +4 a \right ) \cosh \left (4 b x +4 a \right )-\sinh \left (4 b x +4 a \right )\right )-64 a^{3} \cosh \left (4 b x +4 a \right )}{2048 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.10 \begin {gather*} \frac {{\left (32 \, b^{3} x^{3} e^{\left (4 \, a\right )} - 24 \, b^{2} x^{2} e^{\left (4 \, a\right )} + 12 \, b x e^{\left (4 \, a\right )} - 3 \, e^{\left (4 \, a\right )}\right )} e^{\left (4 \, b x\right )}}{2048 \, b^{4}} + \frac {{\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 )}}{64 \, b^{4}} + \frac {{\left (4 \, b^{3} x^{3} + 6 \, b^{2} x^{2} + 6 \, b x + 3\right )} e^{\left (-2 \, b x - 2 \, a\right )}}{64 \, b^{4}} + \frac {{\left (32 \, b^{3} x^{3} + 24 \, b^{2} x^{2} + 12 \, b x + 3\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{2048 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 191, normalized size = 1.23 \begin {gather*} \frac {{\left (8 \, b^{3} x^{3} + 3 \, b x\right )} \cosh \left (b x + a\right )^{4} - 3 \, {\left (8 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + {\left (8 \, b^{3} x^{3} + 3 \, b x\right )} \sinh \left (b x + a\right )^{4} + 16 \, {\left (2 \, b^{3} x^{3} + 3 \, b x\right )} \cosh \left (b x + a\right )^{2} + 2 \, {\left (16 \, b^{3} x^{3} + 3 \, {\left (8 \, b^{3} x^{3} + 3 \, b x\right )} \cosh \left (b x + a\right )^{2} + 24 \, b x\right )} \sinh \left (b x + a\right )^{2} - 3 \, {\left ({\left (8 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right )^{3} + 16 \, {\left (2 \, b^{2} x^{2} + 1\right )} \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right )}{256 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.64, size = 226, normalized size = 1.46 \begin {gather*} \begin {cases} - \frac {3 x^{3} \sinh ^{4}{\left (a + b x \right )}}{32 b} + \frac {3 x^{3} \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{16 b} + \frac {5 x^{3} \cosh ^{4}{\left (a + b x \right )}}{32 b} + \frac {9 x^{2} \sinh ^{3}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{32 b^{2}} - \frac {15 x^{2} \sinh {\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{32 b^{2}} - \frac {45 x \sinh ^{4}{\left (a + b x \right )}}{256 b^{3}} + \frac {9 x \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{128 b^{3}} + \frac {51 x \cosh ^{4}{\left (a + b x \right )}}{256 b^{3}} + \frac {45 \sinh ^{3}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{256 b^{4}} - \frac {51 \sinh {\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{256 b^{4}} & \text {for}\: b \neq 0 \\\frac {x^{4} \sinh {\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.38, size = 145, normalized size = 0.94 \begin {gather*} \frac {{\left (32 \, b^{3} x^{3} - 24 \, b^{2} x^{2} + 12 \, b x - 3\right )} e^{\left (4 \, b x + 4 \, a\right )}}{2048 \, b^{4}} + \frac {{\left (4 \, b^{3} x^{3} - 6 \, b^{2} x^{2} + 6 \, b x - 3\right )} e^{\left (2 \, b x + 2 \, a\right )}}{64 \, b^{4}} + \frac {{\left (4 \, b^{3} x^{3} + 6 \, b^{2} x^{2} + 6 \, b x + 3\right )} e^{\left (-2 \, b x - 2 \, a\right )}}{64 \, b^{4}} + \frac {{\left (32 \, b^{3} x^{3} + 24 \, b^{2} x^{2} + 12 \, b x + 3\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{2048 \, b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.69, size = 125, normalized size = 0.81 \begin {gather*} \frac {\frac {x^3\,\mathrm {cosh}\left (2\,a+2\,b\,x\right )}{8}+\frac {x^3\,\mathrm {cosh}\left (4\,a+4\,b\,x\right )}{32}}{b}-\frac {\frac {3\,x^2\,\mathrm {sinh}\left (2\,a+2\,b\,x\right )}{16}+\frac {3\,x^2\,\mathrm {sinh}\left (4\,a+4\,b\,x\right )}{128}}{b^2}+\frac {\frac {3\,x\,\mathrm {cosh}\left (2\,a+2\,b\,x\right )}{16}+\frac {3\,x\,\mathrm {cosh}\left (4\,a+4\,b\,x\right )}{256}}{b^3}-\frac {3\,\mathrm {sinh}\left (2\,a+2\,b\,x\right )}{32\,b^4}-\frac {3\,\mathrm {sinh}\left (4\,a+4\,b\,x\right )}{1024\,b^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________