Optimal. Leaf size=91 \[ \frac {\cosh (a-3 c+(b-3 d) x)}{8 (b-3 d)}+\frac {3 \cosh (a-c+(b-d) x)}{8 (b-d)}+\frac {3 \cosh (a+c+(b+d) x)}{8 (b+d)}+\frac {\cosh (a+3 c+(b+3 d) x)}{8 (b+3 d)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {5737, 2718}
\begin {gather*} \frac {\cosh (a+x (b-3 d)-3 c)}{8 (b-3 d)}+\frac {3 \cosh (a+x (b-d)-c)}{8 (b-d)}+\frac {3 \cosh (a+x (b+d)+c)}{8 (b+d)}+\frac {\cosh (a+x (b+3 d)+3 c)}{8 (b+3 d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 5737
Rubi steps
\begin {align*} \int \cosh ^3(c+d x) \sinh (a+b x) \, dx &=\int \left (\frac {1}{8} \sinh (a-3 c+(b-3 d) x)+\frac {3}{8} \sinh (a-c+(b-d) x)+\frac {3}{8} \sinh (a+c+(b+d) x)+\frac {1}{8} \sinh (a+3 c+(b+3 d) x)\right ) \, dx\\ &=\frac {1}{8} \int \sinh (a-3 c+(b-3 d) x) \, dx+\frac {1}{8} \int \sinh (a+3 c+(b+3 d) x) \, dx+\frac {3}{8} \int \sinh (a-c+(b-d) x) \, dx+\frac {3}{8} \int \sinh (a+c+(b+d) x) \, dx\\ &=\frac {\cosh (a-3 c+(b-3 d) x)}{8 (b-3 d)}+\frac {3 \cosh (a-c+(b-d) x)}{8 (b-d)}+\frac {3 \cosh (a+c+(b+d) x)}{8 (b+d)}+\frac {\cosh (a+3 c+(b+3 d) x)}{8 (b+3 d)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.32, size = 85, normalized size = 0.93 \begin {gather*} \frac {1}{8} \left (\frac {\cosh (a-3 c+b x-3 d x)}{b-3 d}+\frac {3 \cosh (a-c+b x-d x)}{b-d}+\frac {\cosh (a+3 c+b x+3 d x)}{b+3 d}+\frac {3 \cosh (a+c+(b+d) x)}{b+d}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.61, size = 84, normalized size = 0.92
method | result | size |
default | \(\frac {\cosh \left (a -3 c +\left (b -3 d \right ) x \right )}{8 b -24 d}+\frac {3 \cosh \left (a -c +\left (b -d \right ) x \right )}{8 \left (b -d \right )}+\frac {3 \cosh \left (a +c +\left (b +d \right ) x \right )}{8 \left (b +d \right )}+\frac {\cosh \left (a +3 c +\left (b +3 d \right ) x \right )}{8 b +24 d}\) | \(84\) |
risch | \(\frac {\left (b \,{\mathrm e}^{2 b x +2 a}-3 \,{\mathrm e}^{2 b x +2 a} d +b +3 d \right ) {\mathrm e}^{-b x +3 d x -a +3 c}}{16 \left (b +3 d \right ) \left (b -3 d \right )}+\frac {3 \left (b \,{\mathrm e}^{2 b x +2 a}-{\mathrm e}^{2 b x +2 a} d +b +d \right ) {\mathrm e}^{-b x +d x -a +c}}{16 \left (b +d \right ) \left (b -d \right )}+\frac {3 \left (b \,{\mathrm e}^{2 b x +2 a}+{\mathrm e}^{2 b x +2 a} d +b -d \right ) {\mathrm e}^{-b x -d x -a -c}}{16 \left (b +d \right ) \left (b -d \right )}+\frac {\left (b \,{\mathrm e}^{2 b x +2 a}+3 \,{\mathrm e}^{2 b x +2 a} d +b -3 d \right ) {\mathrm e}^{-b x -3 d x -a -3 c}}{16 \left (b +3 d \right ) \left (b -3 d \right )}\) | \(232\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \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. 213 vs.
\(2 (83) = 166\).
time = 0.36, size = 213, normalized size = 2.34 \begin {gather*} \frac {{\left (b^{3} - b d^{2}\right )} \cosh \left (b x + a\right ) \cosh \left (d x + c\right )^{3} + 3 \, {\left (b^{3} - b d^{2}\right )} \cosh \left (b x + a\right ) \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{2} - 3 \, {\left (b^{2} d - d^{3}\right )} \sinh \left (b x + a\right ) \sinh \left (d x + c\right )^{3} + 3 \, {\left (b^{3} - 9 \, b d^{2}\right )} \cosh \left (b x + a\right ) \cosh \left (d x + c\right ) - 3 \, {\left (b^{2} d - 9 \, d^{3} + 3 \, {\left (b^{2} d - d^{3}\right )} \cosh \left (d x + c\right )^{2}\right )} \sinh \left (b x + a\right ) \sinh \left (d x + c\right )}{4 \, {\left ({\left (b^{4} - 10 \, b^{2} d^{2} + 9 \, d^{4}\right )} \cosh \left (b x + a\right )^{2} - {\left (b^{4} - 10 \, b^{2} d^{2} + 9 \, d^{4}\right )} \sinh \left (b x + a\right )^{2}\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. 918 vs.
\(2 (76) = 152\).
time = 2.50, size = 918, normalized size = 10.09 \begin {gather*} \begin {cases} x \sinh {\left (a \right )} \cosh ^{3}{\left (c \right )} & \text {for}\: b = 0 \wedge d = 0 \\\frac {3 x \sinh {\left (a - 3 d x \right )} \sinh ^{2}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8} + \frac {x \sinh {\left (a - 3 d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8} + \frac {x \sinh ^{3}{\left (c + d x \right )} \cosh {\left (a - 3 d x \right )}}{8} + \frac {3 x \sinh {\left (c + d x \right )} \cosh {\left (a - 3 d x \right )} \cosh ^{2}{\left (c + d x \right )}}{8} + \frac {\sinh {\left (a - 3 d x \right )} \sinh ^{3}{\left (c + d x \right )}}{24 d} - \frac {\sinh {\left (a - 3 d x \right )} \sinh {\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4 d} - \frac {3 \cosh {\left (a - 3 d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} & \text {for}\: b = - 3 d \\- \frac {3 x \sinh {\left (a - d x \right )} \sinh ^{2}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8} + \frac {3 x \sinh {\left (a - d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8} - \frac {3 x \sinh ^{3}{\left (c + d x \right )} \cosh {\left (a - d x \right )}}{8} + \frac {3 x \sinh {\left (c + d x \right )} \cosh {\left (a - d x \right )} \cosh ^{2}{\left (c + d x \right )}}{8} - \frac {3 \sinh {\left (a - d x \right )} \sinh ^{3}{\left (c + d x \right )}}{8 d} + \frac {3 \sinh {\left (a - d x \right )} \sinh {\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4 d} + \frac {\cosh {\left (a - d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} & \text {for}\: b = - d \\- \frac {3 x \sinh {\left (a + d x \right )} \sinh ^{2}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8} + \frac {3 x \sinh {\left (a + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8} + \frac {3 x \sinh ^{3}{\left (c + d x \right )} \cosh {\left (a + d x \right )}}{8} - \frac {3 x \sinh {\left (c + d x \right )} \cosh {\left (a + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{8} - \frac {3 \sinh {\left (a + d x \right )} \sinh ^{3}{\left (c + d x \right )}}{8 d} + \frac {3 \sinh {\left (a + d x \right )} \sinh {\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4 d} - \frac {\cosh {\left (a + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} & \text {for}\: b = d \\\frac {3 x \sinh {\left (a + 3 d x \right )} \sinh ^{2}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8} + \frac {x \sinh {\left (a + 3 d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8} - \frac {x \sinh ^{3}{\left (c + d x \right )} \cosh {\left (a + 3 d x \right )}}{8} - \frac {3 x \sinh {\left (c + d x \right )} \cosh {\left (a + 3 d x \right )} \cosh ^{2}{\left (c + d x \right )}}{8} + \frac {\sinh {\left (a + 3 d x \right )} \sinh ^{3}{\left (c + d x \right )}}{24 d} - \frac {\sinh {\left (a + 3 d x \right )} \sinh {\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4 d} + \frac {3 \cosh {\left (a + 3 d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} & \text {for}\: b = 3 d \\\frac {b^{3} \cosh {\left (a + b x \right )} \cosh ^{3}{\left (c + d x \right )}}{b^{4} - 10 b^{2} d^{2} + 9 d^{4}} - \frac {3 b^{2} d \sinh {\left (a + b x \right )} \sinh {\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{b^{4} - 10 b^{2} d^{2} + 9 d^{4}} + \frac {6 b d^{2} \sinh ^{2}{\left (c + d x \right )} \cosh {\left (a + b x \right )} \cosh {\left (c + d x \right )}}{b^{4} - 10 b^{2} d^{2} + 9 d^{4}} - \frac {7 b d^{2} \cosh {\left (a + b x \right )} \cosh ^{3}{\left (c + d x \right )}}{b^{4} - 10 b^{2} d^{2} + 9 d^{4}} - \frac {6 d^{3} \sinh {\left (a + b x \right )} \sinh ^{3}{\left (c + d x \right )}}{b^{4} - 10 b^{2} d^{2} + 9 d^{4}} + \frac {9 d^{3} \sinh {\left (a + b x \right )} \sinh {\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{b^{4} - 10 b^{2} d^{2} + 9 d^{4}} & \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. 179 vs.
\(2 (83) = 166\).
time = 0.41, size = 179, normalized size = 1.97 \begin {gather*} \frac {e^{\left (b x + 3 \, d x + a + 3 \, c\right )}}{16 \, {\left (b + 3 \, d\right )}} + \frac {3 \, e^{\left (b x + d x + a + c\right )}}{16 \, {\left (b + d\right )}} + \frac {3 \, e^{\left (b x - d x + a - c\right )}}{16 \, {\left (b - d\right )}} + \frac {e^{\left (b x - 3 \, d x + a - 3 \, c\right )}}{16 \, {\left (b - 3 \, d\right )}} + \frac {e^{\left (-b x + 3 \, d x - a + 3 \, c\right )}}{16 \, {\left (b - 3 \, d\right )}} + \frac {3 \, e^{\left (-b x + d x - a + c\right )}}{16 \, {\left (b - d\right )}} + \frac {3 \, e^{\left (-b x - d x - a - c\right )}}{16 \, {\left (b + d\right )}} + \frac {e^{\left (-b x - 3 \, d x - a - 3 \, c\right )}}{16 \, {\left (b + 3 \, d\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.87, size = 182, normalized size = 2.00 \begin {gather*} \frac {6\,b\,d^2\,\mathrm {cosh}\left (a+b\,x\right )\,\mathrm {cosh}\left (c+d\,x\right )\,{\mathrm {sinh}\left (c+d\,x\right )}^2}{b^4-10\,b^2\,d^2+9\,d^4}-\frac {6\,d^3\,\mathrm {sinh}\left (a+b\,x\right )\,{\mathrm {sinh}\left (c+d\,x\right )}^3}{b^4-10\,b^2\,d^2+9\,d^4}-\frac {3\,d\,{\mathrm {cosh}\left (c+d\,x\right )}^2\,\mathrm {sinh}\left (a+b\,x\right )\,\mathrm {sinh}\left (c+d\,x\right )\,\left (b^2-3\,d^2\right )}{b^4-10\,b^2\,d^2+9\,d^4}-\frac {\mathrm {cosh}\left (a+b\,x\right )\,{\mathrm {cosh}\left (c+d\,x\right )}^3\,\left (7\,b\,d^2-b^3\right )}{b^4-10\,b^2\,d^2+9\,d^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________