Optimal. Leaf size=39 \[ \frac {\sinh ^{1+n}(a+b x)}{b (1+n)}+\frac {\sinh ^{3+n}(a+b x)}{b (3+n)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {2644, 14}
\begin {gather*} \frac {\sinh ^{n+1}(a+b x)}{b (n+1)}+\frac {\sinh ^{n+3}(a+b x)}{b (n+3)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2644
Rubi steps
\begin {align*} \int \cosh ^3(a+b x) \sinh ^n(a+b x) \, dx &=\frac {\text {Subst}\left (\int x^n \left (1+x^2\right ) \, dx,x,\sinh (a+b x)\right )}{b}\\ &=\frac {\text {Subst}\left (\int \left (x^n+x^{2+n}\right ) \, dx,x,\sinh (a+b x)\right )}{b}\\ &=\frac {\sinh ^{1+n}(a+b x)}{b (1+n)}+\frac {\sinh ^{3+n}(a+b x)}{b (3+n)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 39, normalized size = 1.00 \begin {gather*} \frac {\sinh ^{1+n}(a+b x)}{b (1+n)}+\frac {\sinh ^{3+n}(a+b x)}{b (3+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 2.62, size = 0, normalized size = 0.00 \[\int \left (\cosh ^{3}\left (b x +a \right )\right ) \left (\sinh ^{n}\left (b x +a \right )\right )\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 373 vs.
\(2 (39) = 78\).
time = 0.52, size = 373, normalized size = 9.56 \begin {gather*} \frac {n e^{\left ({\left (b x + a\right )} n + 3 \, b x + n \log \left (e^{\left (-b x - a\right )} + 1\right ) + n \log \left (-e^{\left (-b x - a\right )} + 1\right ) + 3 \, a\right )}}{8 \, {\left (2^{n} n^{2} + 2^{n + 2} n + 3 \cdot 2^{n}\right )} b} + \frac {{\left (n + 9\right )} e^{\left ({\left (b x + a\right )} n + b x + n \log \left (e^{\left (-b x - a\right )} + 1\right ) + n \log \left (-e^{\left (-b x - a\right )} + 1\right ) + a\right )}}{8 \, {\left (2^{n} n^{2} + 2^{n + 2} n + 3 \cdot 2^{n}\right )} b} - \frac {{\left (n + 9\right )} e^{\left ({\left (b x + a\right )} n - b x + n \log \left (e^{\left (-b x - a\right )} + 1\right ) + n \log \left (-e^{\left (-b x - a\right )} + 1\right ) - a\right )}}{8 \, {\left (2^{n} n^{2} + 2^{n + 2} n + 3 \cdot 2^{n}\right )} b} - \frac {{\left (n + 1\right )} e^{\left ({\left (b x + a\right )} n - 3 \, b x + n \log \left (e^{\left (-b x - a\right )} + 1\right ) + n \log \left (-e^{\left (-b x - a\right )} + 1\right ) - 3 \, a\right )}}{8 \, {\left (2^{n} n^{2} + 2^{n + 2} n + 3 \cdot 2^{n}\right )} b} + \frac {e^{\left ({\left (b x + a\right )} n + 3 \, b x + n \log \left (e^{\left (-b x - a\right )} + 1\right ) + n \log \left (-e^{\left (-b x - a\right )} + 1\right ) + 3 \, a\right )}}{8 \, {\left (2^{n} n^{2} + 2^{n + 2} n + 3 \cdot 2^{n}\right )} b} \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. 175 vs.
\(2 (39) = 78\).
time = 0.46, size = 175, normalized size = 4.49 \begin {gather*} \frac {{\left ({\left (n + 1\right )} \sinh \left (b x + a\right )^{3} + {\left (3 \, {\left (n + 1\right )} \cosh \left (b x + a\right )^{2} + n + 9\right )} \sinh \left (b x + a\right )\right )} \cosh \left (n \log \left (\sinh \left (b x + a\right )\right )\right ) + {\left ({\left (n + 1\right )} \sinh \left (b x + a\right )^{3} + {\left (3 \, {\left (n + 1\right )} \cosh \left (b x + a\right )^{2} + n + 9\right )} \sinh \left (b x + a\right )\right )} \sinh \left (n \log \left (\sinh \left (b x + a\right )\right )\right )}{4 \, {\left ({\left (b n^{2} + 4 \, b n + 3 \, b\right )} \cosh \left (b x + a\right )^{4} - 2 \, {\left (b n^{2} + 4 \, b n + 3 \, b\right )} \cosh \left (b x + a\right )^{2} \sinh \left (b x + a\right )^{2} + {\left (b n^{2} + 4 \, b n + 3 \, b\right )} \sinh \left (b x + a\right )^{4}\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. 638 vs.
\(2 (29) = 58\).
time = 1.57, size = 638, normalized size = 16.36 \begin {gather*} \begin {cases} x \sinh ^{n}{\left (a \right )} \cosh ^{3}{\left (a \right )} & \text {for}\: b = 0 \\\frac {\log {\left (\sinh {\left (a + b x \right )} \right )}}{b} - \frac {\cosh ^{2}{\left (a + b x \right )}}{2 b \sinh ^{2}{\left (a + b x \right )}} & \text {for}\: n = -3 \\\frac {b x \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} - \frac {2 b x \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} + \frac {b x}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} - \frac {2 \log {\left (\tanh {\left (\frac {a}{2} + \frac {b x}{2} \right )} + 1 \right )} \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} + \frac {4 \log {\left (\tanh {\left (\frac {a}{2} + \frac {b x}{2} \right )} + 1 \right )} \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} - \frac {2 \log {\left (\tanh {\left (\frac {a}{2} + \frac {b x}{2} \right )} + 1 \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} + \frac {\log {\left (\tanh {\left (\frac {a}{2} + \frac {b x}{2} \right )} \right )} \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} - \frac {2 \log {\left (\tanh {\left (\frac {a}{2} + \frac {b x}{2} \right )} \right )} \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} + \frac {\log {\left (\tanh {\left (\frac {a}{2} + \frac {b x}{2} \right )} \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} + \frac {2 \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )}}{b \tanh ^{4}{\left (\frac {a}{2} + \frac {b x}{2} \right )} - 2 b \tanh ^{2}{\left (\frac {a}{2} + \frac {b x}{2} \right )} + b} & \text {for}\: n = -1 \\\frac {n \sinh {\left (a + b x \right )} \sinh ^{n}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{b n^{2} + 4 b n + 3 b} - \frac {2 \sinh ^{3}{\left (a + b x \right )} \sinh ^{n}{\left (a + b x \right )}}{b n^{2} + 4 b n + 3 b} + \frac {3 \sinh {\left (a + b x \right )} \sinh ^{n}{\left (a + b x \right )} \cosh ^{2}{\left (a + b x \right )}}{b n^{2} + 4 b n + 3 b} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 327 vs.
\(2 (39) = 78\).
time = 0.44, size = 327, normalized size = 8.38 \begin {gather*} \frac {n e^{\left (7 \, b x + n \log \left (\frac {1}{2} \, {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-b x - a\right )}\right ) + 7 \, a\right )} + n e^{\left (5 \, b x + n \log \left (\frac {1}{2} \, {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-b x - a\right )}\right ) + 5 \, a\right )} - n e^{\left (3 \, b x + n \log \left (\frac {1}{2} \, {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-b x - a\right )}\right ) + 3 \, a\right )} - n e^{\left (b x + n \log \left (\frac {1}{2} \, {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-b x - a\right )}\right ) + a\right )} + e^{\left (7 \, b x + n \log \left (\frac {1}{2} \, {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-b x - a\right )}\right ) + 7 \, a\right )} + 9 \, e^{\left (5 \, b x + n \log \left (\frac {1}{2} \, {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-b x - a\right )}\right ) + 5 \, a\right )} - 9 \, e^{\left (3 \, b x + n \log \left (\frac {1}{2} \, {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-b x - a\right )}\right ) + 3 \, a\right )} - e^{\left (b x + n \log \left (\frac {1}{2} \, {\left (e^{\left (2 \, b x + 2 \, a\right )} - 1\right )} e^{\left (-b x - a\right )}\right ) + a\right )}}{8 \, {\left (b n^{2} e^{\left (4 \, b x + 4 \, a\right )} + 4 \, b n e^{\left (4 \, b x + 4 \, a\right )} + 3 \, b e^{\left (4 \, b x + 4 \, a\right )}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.64, size = 135, normalized size = 3.46 \begin {gather*} -{\left (\frac {1}{2}\right )}^n\,{\mathrm {e}}^{-3\,a-3\,b\,x}\,{\left ({\mathrm {e}}^{a+b\,x}-{\mathrm {e}}^{-a-b\,x}\right )}^n\,\left (\frac {\frac {n}{8}+\frac {1}{8}}{b\,\left (n^2+4\,n+3\right )}+\frac {{\mathrm {e}}^{2\,a+2\,b\,x}\,\left (n+9\right )}{8\,b\,\left (n^2+4\,n+3\right )}-\frac {{\mathrm {e}}^{6\,a+6\,b\,x}\,\left (n+1\right )}{8\,b\,\left (n^2+4\,n+3\right )}-\frac {{\mathrm {e}}^{4\,a+4\,b\,x}\,\left (n+9\right )}{8\,b\,\left (n^2+4\,n+3\right )}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________