Optimal. Leaf size=88 \[ \frac {b e^{a+b x} \sinh ^2(c+d x)}{b^2-4 d^2}-\frac {2 d e^{a+b x} \sinh (c+d x) \cosh (c+d x)}{b^2-4 d^2}+\frac {2 d^2 e^{a+b x}}{b \left (b^2-4 d^2\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 88, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {5476, 2194} \[ \frac {b e^{a+b x} \sinh ^2(c+d x)}{b^2-4 d^2}-\frac {2 d e^{a+b x} \sinh (c+d x) \cosh (c+d x)}{b^2-4 d^2}+\frac {2 d^2 e^{a+b x}}{b \left (b^2-4 d^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2194
Rule 5476
Rubi steps
\begin {align*} \int e^{a+b x} \sinh ^2(c+d x) \, dx &=-\frac {2 d e^{a+b x} \cosh (c+d x) \sinh (c+d x)}{b^2-4 d^2}+\frac {b e^{a+b x} \sinh ^2(c+d x)}{b^2-4 d^2}+\frac {\left (2 d^2\right ) \int e^{a+b x} \, dx}{b^2-4 d^2}\\ &=\frac {2 d^2 e^{a+b x}}{b \left (b^2-4 d^2\right )}-\frac {2 d e^{a+b x} \cosh (c+d x) \sinh (c+d x)}{b^2-4 d^2}+\frac {b e^{a+b x} \sinh ^2(c+d x)}{b^2-4 d^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.16, size = 58, normalized size = 0.66 \[ \frac {e^{a+b x} \left (b^2 \cosh (2 (c+d x))-b^2-2 b d \sinh (2 (c+d x))+4 d^2\right )}{2 \left (b^3-4 b d^2\right )} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 149, normalized size = 1.69 \[ \frac {b^{2} \cosh \left (b x + a\right ) \cosh \left (d x + c\right )^{2} + {\left (b^{2} \cosh \left (b x + a\right ) + b^{2} \sinh \left (b x + a\right )\right )} \sinh \left (d x + c\right )^{2} - {\left (b^{2} - 4 \, d^{2}\right )} \cosh \left (b x + a\right ) + {\left (b^{2} \cosh \left (d x + c\right )^{2} - b^{2} + 4 \, d^{2}\right )} \sinh \left (b x + a\right ) - 4 \, {\left (b d \cosh \left (b x + a\right ) \cosh \left (d x + c\right ) + b d \cosh \left (d x + c\right ) \sinh \left (b x + a\right )\right )} \sinh \left (d x + c\right )}{2 \, {\left (b^{3} - 4 \, b d^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.12, size = 56, normalized size = 0.64 \[ \frac {e^{\left (b x + 2 \, d x + a + 2 \, c\right )}}{4 \, {\left (b + 2 \, d\right )}} + \frac {e^{\left (b x - 2 \, d x + a - 2 \, c\right )}}{4 \, {\left (b - 2 \, d\right )}} - \frac {e^{\left (b x + a\right )}}{2 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 112, normalized size = 1.27 \[ -\frac {\sinh \left (b x +a \right )}{2 b}+\frac {\sinh \left (a -2 c +\left (b -2 d \right ) x \right )}{4 b -8 d}+\frac {\sinh \left (a +2 c +\left (b +2 d \right ) x \right )}{4 b +8 d}-\frac {\cosh \left (b x +a \right )}{2 b}+\frac {\cosh \left (a -2 c +\left (b -2 d \right ) x \right )}{4 b -8 d}+\frac {\cosh \left (a +2 c +\left (b +2 d \right ) x \right )}{4 b +8 d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.24, size = 105, normalized size = 1.19 \[ -\frac {2\,d^2\,{\mathrm {e}}^{a+b\,x}-b^2\,\left (\frac {{\mathrm {e}}^{a+b\,x}}{2}-{\mathrm {e}}^{a+b\,x}\,\left (\frac {{\mathrm {e}}^{-2\,c-2\,d\,x}}{4}+\frac {{\mathrm {e}}^{2\,c+2\,d\,x}}{4}\right )\right )+b\,d\,{\mathrm {e}}^{a+b\,x}\,\left (\frac {{\mathrm {e}}^{-2\,c-2\,d\,x}}{2}-\frac {{\mathrm {e}}^{2\,c+2\,d\,x}}{2}\right )}{4\,b\,d^2-b^3} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 9.12, size = 428, normalized size = 4.86 \[ \begin {cases} x e^{a} \sinh ^{2}{\relax (c )} & \text {for}\: b = 0 \wedge d = 0 \\\left (\frac {x \sinh ^{2}{\left (c + d x \right )}}{2} - \frac {x \cosh ^{2}{\left (c + d x \right )}}{2} + \frac {\sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{2 d}\right ) e^{a} & \text {for}\: b = 0 \\\frac {x e^{a} e^{- 2 d x} \sinh ^{2}{\left (c + d x \right )}}{4} + \frac {x e^{a} e^{- 2 d x} \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{2} + \frac {x e^{a} e^{- 2 d x} \cosh ^{2}{\left (c + d x \right )}}{4} - \frac {e^{a} e^{- 2 d x} \sinh ^{2}{\left (c + d x \right )}}{2 d} - \frac {e^{a} e^{- 2 d x} \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{4 d} & \text {for}\: b = - 2 d \\\frac {x e^{a} e^{2 d x} \sinh ^{2}{\left (c + d x \right )}}{4} - \frac {x e^{a} e^{2 d x} \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{2} + \frac {x e^{a} e^{2 d x} \cosh ^{2}{\left (c + d x \right )}}{4} + \frac {e^{a} e^{2 d x} \sinh ^{2}{\left (c + d x \right )}}{2 d} - \frac {e^{a} e^{2 d x} \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{4 d} & \text {for}\: b = 2 d \\\frac {b^{2} e^{a} e^{b x} \sinh ^{2}{\left (c + d x \right )}}{b^{3} - 4 b d^{2}} - \frac {2 b d e^{a} e^{b x} \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{b^{3} - 4 b d^{2}} - \frac {2 d^{2} e^{a} e^{b x} \sinh ^{2}{\left (c + d x \right )}}{b^{3} - 4 b d^{2}} + \frac {2 d^{2} e^{a} e^{b x} \cosh ^{2}{\left (c + d x \right )}}{b^{3} - 4 b d^{2}} & \text {otherwise} \end {cases} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________