Optimal. Leaf size=83 \[ -\frac {e^{-3 a-3 b x}}{48 b}+\frac {e^{-a-b x}}{4 b}+\frac {3 e^{a+b x}}{8 b}-\frac {e^{3 a+3 b x}}{12 b}+\frac {e^{5 a+5 b x}}{80 b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 83, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.188, Rules used = {2320, 12, 276}
\begin {gather*} -\frac {e^{-3 a-3 b x}}{48 b}+\frac {e^{-a-b x}}{4 b}+\frac {3 e^{a+b x}}{8 b}-\frac {e^{3 a+3 b x}}{12 b}+\frac {e^{5 a+5 b x}}{80 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 276
Rule 2320
Rubi steps
\begin {align*} \int e^{a+b x} \sinh ^4(a+b x) \, dx &=\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right )^4}{16 x^4} \, dx,x,e^{a+b x}\right )}{b}\\ &=\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right )^4}{x^4} \, dx,x,e^{a+b x}\right )}{16 b}\\ &=\frac {\text {Subst}\left (\int \left (6+\frac {1}{x^4}-\frac {4}{x^2}-4 x^2+x^4\right ) \, dx,x,e^{a+b x}\right )}{16 b}\\ &=-\frac {e^{-3 a-3 b x}}{48 b}+\frac {e^{-a-b x}}{4 b}+\frac {3 e^{a+b x}}{8 b}-\frac {e^{3 a+3 b x}}{12 b}+\frac {e^{5 a+5 b x}}{80 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 62, normalized size = 0.75 \begin {gather*} \frac {e^{-3 (a+b x)} \left (-5+60 e^{2 (a+b x)}+90 e^{4 (a+b x)}-20 e^{6 (a+b x)}+3 e^{8 (a+b x)}\right )}{240 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.91, size = 80, normalized size = 0.96
method | result | size |
risch | \(-\frac {{\mathrm e}^{-3 b x -3 a}}{48 b}+\frac {{\mathrm e}^{-b x -a}}{4 b}+\frac {3 \,{\mathrm e}^{b x +a}}{8 b}-\frac {{\mathrm e}^{3 b x +3 a}}{12 b}+\frac {{\mathrm e}^{5 b x +5 a}}{80 b}\) | \(69\) |
default | \(\frac {\sinh \left (b x +a \right )}{8 b}-\frac {\sinh \left (3 b x +3 a \right )}{16 b}+\frac {\sinh \left (5 b x +5 a \right )}{80 b}+\frac {5 \cosh \left (b x +a \right )}{8 b}-\frac {5 \cosh \left (3 b x +3 a \right )}{48 b}+\frac {\cosh \left (5 b x +5 a \right )}{80 b}\) | \(80\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 68, normalized size = 0.82 \begin {gather*} \frac {e^{\left (5 \, b x + 5 \, a\right )}}{80 \, b} - \frac {e^{\left (3 \, b x + 3 \, a\right )}}{12 \, b} + \frac {3 \, e^{\left (b x + a\right )}}{8 \, b} + \frac {e^{\left (-b x - a\right )}}{4 \, b} - \frac {e^{\left (-3 \, b x - 3 \, a\right )}}{48 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.46, size = 113, normalized size = 1.36 \begin {gather*} -\frac {\cosh \left (b x + a\right )^{4} - 16 \, \cosh \left (b x + a\right ) \sinh \left (b x + a\right )^{3} + \sinh \left (b x + a\right )^{4} + 2 \, {\left (3 \, \cosh \left (b x + a\right )^{2} - 10\right )} \sinh \left (b x + a\right )^{2} - 20 \, \cosh \left (b x + a\right )^{2} - 16 \, {\left (\cosh \left (b x + a\right )^{3} - 5 \, \cosh \left (b x + a\right )\right )} \sinh \left (b x + a\right ) - 45}{120 \, {\left (b \cosh \left (b x + a\right ) - b \sinh \left (b x + a\right )\right )}} \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. 139 vs.
\(2 (65) = 130\).
time = 3.25, size = 139, normalized size = 1.67 \begin {gather*} \begin {cases} \frac {e^{a} e^{b x} \sinh ^{4}{\left (a + b x \right )}}{5 b} + \frac {4 e^{a} e^{b x} \sinh ^{3}{\left (a + b x \right )} \cosh {\left (a + b x \right )}}{5 b} - \frac {4 e^{a} e^{b x} \sinh ^{2}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{5 b} - \frac {8 e^{a} e^{b x} \sinh {\left (a + b x \right )} \cosh ^{3}{\left (a + b x \right )}}{15 b} + \frac {8 e^{a} e^{b x} \cosh ^{4}{\left (a + b x \right )}}{15 b} & \text {for}\: b \neq 0 \\x e^{a} \sinh ^{4}{\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 60, normalized size = 0.72 \begin {gather*} \frac {5 \, {\left (12 \, e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-3 \, b x - 3 \, a\right )} + 3 \, e^{\left (5 \, b x + 5 \, a\right )} - 20 \, e^{\left (3 \, b x + 3 \, a\right )} + 90 \, e^{\left (b x + a\right )}}{240 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.53, size = 58, normalized size = 0.70 \begin {gather*} \frac {90\,{\mathrm {e}}^{a+b\,x}+60\,{\mathrm {e}}^{-a-b\,x}-5\,{\mathrm {e}}^{-3\,a-3\,b\,x}-20\,{\mathrm {e}}^{3\,a+3\,b\,x}+3\,{\mathrm {e}}^{5\,a+5\,b\,x}}{240\,b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________