Optimal. Leaf size=41 \[ -\frac {x^2}{16}-\frac {\cosh (4 a+4 b x)}{128 b^2}+\frac {x \sinh (4 a+4 b x)}{32 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {5556, 3377,
2718} \begin {gather*} -\frac {\cosh (4 a+4 b x)}{128 b^2}+\frac {x \sinh (4 a+4 b x)}{32 b}-\frac {x^2}{16} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3377
Rule 5556
Rubi steps
\begin {align*} \int x \cosh ^2(a+b x) \sinh ^2(a+b x) \, dx &=\int \left (-\frac {x}{8}+\frac {1}{8} x \cosh (4 a+4 b x)\right ) \, dx\\ &=-\frac {x^2}{16}+\frac {1}{8} \int x \cosh (4 a+4 b x) \, dx\\ &=-\frac {x^2}{16}+\frac {x \sinh (4 a+4 b x)}{32 b}-\frac {\int \sinh (4 a+4 b x) \, dx}{32 b}\\ &=-\frac {x^2}{16}-\frac {\cosh (4 a+4 b x)}{128 b^2}+\frac {x \sinh (4 a+4 b x)}{32 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 41, normalized size = 1.00 \begin {gather*} -\frac {-8 a^2+8 b^2 x^2+\cosh (4 (a+b x))-4 b x \sinh (4 (a+b x))}{128 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(115\) vs.
\(2(35)=70\).
time = 0.86, size = 116, normalized size = 2.83
method | result | size |
risch | \(-\frac {x^{2}}{16}+\frac {\left (4 b x -1\right ) {\mathrm e}^{4 b x +4 a}}{256 b^{2}}-\frac {\left (4 b x +1\right ) {\mathrm e}^{-4 b x -4 a}}{256 b^{2}}\) | \(47\) |
derivativedivides | \(\frac {\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}-a \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^{2}}\) | \(116\) |
default | \(\frac {\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}-a \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^{2}}\) | \(116\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 51, normalized size = 1.24 \begin {gather*} -\frac {1}{16} \, x^{2} + \frac {{\left (4 \, b x e^{\left (4 \, a\right )} - e^{\left (4 \, a\right )}\right )} e^{\left (4 \, b x\right )}}{256 \, b^{2}} - \frac {{\left (4 \, b x + 1\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{256 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 88 vs.
\(2 (35) = 70\).
time = 0.37, size = 88, normalized size = 2.15 \begin {gather*} \frac {16 \, b x \cosh \left (b x + a\right )^{3} \sinh \left (b x + a\right ) + 16 \, b x \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} - 8 \, b^{2} x^{2} - \cosh \left (b x + a\right )^{4} - 6 \, \cosh \left (b x + a\right )^{2} \sinh \left (b x + a\right )^{2} - \sinh \left (b x + a\right )^{4}}{128 \, b^{2}} \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. 131 vs.
\(2 (34) = 68\).
time = 0.29, size = 131, normalized size = 3.20 \begin {gather*} \begin {cases} - \frac {x^{2} \sinh ^{4}{\left (a + b x \right )}}{16} + \frac {x^{2} \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{8} - \frac {x^{2} \cosh ^{4}{\left (a + b x \right )}}{16} + \frac {x \sinh ^{3}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{8 b} + \frac {x \sinh {\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{8 b} - \frac {\sinh ^{4}{\left (a + b x \right )}}{32 b^{2}} - \frac {\cosh ^{4}{\left (a + b x \right )}}{32 b^{2}} & \text {for}\: b \neq 0 \\\frac {x^{2} \sinh ^{2}{\left (a \right )} \cosh ^{2}{\left (a \right )}}{2} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, size = 46, normalized size = 1.12 \begin {gather*} -\frac {1}{16} \, x^{2} + \frac {{\left (4 \, b x - 1\right )} e^{\left (4 \, b x + 4 \, a\right )}}{256 \, b^{2}} - \frac {{\left (4 \, b x + 1\right )} e^{\left (-4 \, b x - 4 \, a\right )}}{256 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.76, size = 36, normalized size = 0.88 \begin {gather*} -\frac {\frac {\mathrm {cosh}\left (4\,a+4\,b\,x\right )}{128}-\frac {b\,x\,\mathrm {sinh}\left (4\,a+4\,b\,x\right )}{32}}{b^2}-\frac {x^2}{16} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________