Optimal. Leaf size=92 \[ \frac {1}{2} a \left (2 a^2-3 b^2\right ) x+\frac {2 b \left (4 a^2-b^2\right ) \cosh (c+d x)}{3 d}+\frac {5 a b^2 \cosh (c+d x) \sinh (c+d x)}{6 d}+\frac {b \cosh (c+d x) (a+b \sinh (c+d x))^2}{3 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2735, 2813}
\begin {gather*} \frac {2 b \left (4 a^2-b^2\right ) \cosh (c+d x)}{3 d}+\frac {1}{2} a x \left (2 a^2-3 b^2\right )+\frac {5 a b^2 \sinh (c+d x) \cosh (c+d x)}{6 d}+\frac {b \cosh (c+d x) (a+b \sinh (c+d x))^2}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2735
Rule 2813
Rubi steps
\begin {align*} \int (a+b \sinh (c+d x))^3 \, dx &=\frac {b \cosh (c+d x) (a+b \sinh (c+d x))^2}{3 d}+\frac {1}{3} \int (a+b \sinh (c+d x)) \left (3 a^2-2 b^2+5 a b \sinh (c+d x)\right ) \, dx\\ &=\frac {1}{2} a \left (2 a^2-3 b^2\right ) x+\frac {2 b \left (4 a^2-b^2\right ) \cosh (c+d x)}{3 d}+\frac {5 a b^2 \cosh (c+d x) \sinh (c+d x)}{6 d}+\frac {b \cosh (c+d x) (a+b \sinh (c+d x))^2}{3 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 71, normalized size = 0.77 \begin {gather*} \frac {6 a \left (2 a^2-3 b^2\right ) (c+d x)-9 b \left (-4 a^2+b^2\right ) \cosh (c+d x)+b^3 \cosh (3 (c+d x))+9 a b^2 \sinh (2 (c+d x))}{12 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.77, size = 71, normalized size = 0.77
method | result | size |
default | \(a^{3} x +\frac {\left (-\frac {3}{4} b^{3}+3 a^{2} b \right ) \cosh \left (d x +c \right )}{d}-\frac {3 a \,b^{2} x}{2}+\frac {b^{3} \cosh \left (3 d x +3 c \right )}{12 d}+\frac {3 a \,b^{2} \sinh \left (2 d x +2 c \right )}{4 d}\) | \(71\) |
risch | \(a^{3} x -\frac {3 a \,b^{2} x}{2}+\frac {b^{3} {\mathrm e}^{3 d x +3 c}}{24 d}+\frac {3 a \,b^{2} {\mathrm e}^{2 d x +2 c}}{8 d}+\frac {3 b \,{\mathrm e}^{d x +c} a^{2}}{2 d}-\frac {3 b^{3} {\mathrm e}^{d x +c}}{8 d}+\frac {3 b \,{\mathrm e}^{-d x -c} a^{2}}{2 d}-\frac {3 b^{3} {\mathrm e}^{-d x -c}}{8 d}-\frac {3 a \,b^{2} {\mathrm e}^{-2 d x -2 c}}{8 d}+\frac {b^{3} {\mathrm e}^{-3 d x -3 c}}{24 d}\) | \(148\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 115, normalized size = 1.25 \begin {gather*} -\frac {3}{8} \, a b^{2} {\left (4 \, x - \frac {e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac {e^{\left (-2 \, d x - 2 \, c\right )}}{d}\right )} + a^{3} x + \frac {1}{24} \, b^{3} {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} + \frac {3 \, a^{2} b \cosh \left (d x + c\right )}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 91, normalized size = 0.99 \begin {gather*} \frac {b^{3} \cosh \left (d x + c\right )^{3} + 3 \, b^{3} \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} + 18 \, a b^{2} \cosh \left (d x + c\right ) \sinh \left (d x + c\right ) + 6 \, {\left (2 \, a^{3} - 3 \, a b^{2}\right )} d x + 9 \, {\left (4 \, a^{2} b - b^{3}\right )} \cosh \left (d x + c\right )}{12 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.13, size = 128, normalized size = 1.39 \begin {gather*} \begin {cases} a^{3} x + \frac {3 a^{2} b \cosh {\left (c + d x \right )}}{d} + \frac {3 a b^{2} x \sinh ^{2}{\left (c + d x \right )}}{2} - \frac {3 a b^{2} x \cosh ^{2}{\left (c + d x \right )}}{2} + \frac {3 a b^{2} \sinh {\left (c + d x \right )} \cosh {\left (c + d x \right )}}{2 d} + \frac {b^{3} \sinh ^{2}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{d} - \frac {2 b^{3} \cosh ^{3}{\left (c + d x \right )}}{3 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh {\left (c \right )}\right )^{3} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 135, normalized size = 1.47 \begin {gather*} \frac {b^{3} e^{\left (3 \, d x + 3 \, c\right )}}{24 \, d} + \frac {3 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )}}{8 \, d} - \frac {3 \, a b^{2} e^{\left (-2 \, d x - 2 \, c\right )}}{8 \, d} + \frac {b^{3} e^{\left (-3 \, d x - 3 \, c\right )}}{24 \, d} + \frac {1}{2} \, {\left (2 \, a^{3} - 3 \, a b^{2}\right )} x + \frac {3 \, {\left (4 \, a^{2} b - b^{3}\right )} e^{\left (d x + c\right )}}{8 \, d} + \frac {3 \, {\left (4 \, a^{2} b - b^{3}\right )} e^{\left (-d x - c\right )}}{8 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.50, size = 75, normalized size = 0.82 \begin {gather*} \frac {6\,d\,x\,a^3+18\,a^2\,b\,\mathrm {cosh}\left (c+d\,x\right )+9\,\mathrm {sinh}\left (c+d\,x\right )\,a\,b^2\,\mathrm {cosh}\left (c+d\,x\right )-9\,d\,x\,a\,b^2+2\,b^3\,{\mathrm {cosh}\left (c+d\,x\right )}^3-6\,b^3\,\mathrm {cosh}\left (c+d\,x\right )}{6\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________