Optimal. Leaf size=124 \[ -\frac {1}{8} b \left (15 a^4-10 a^2 b^2+3 b^4\right ) \tanh ^{-1}(\cosh (x))+\frac {1}{8} a^2 b \left (7 a^2-3 b^2\right ) \cosh (x)-\frac {1}{8} (b+a \cosh (x))^2 \left (2 a \left (2 a^2-b^2\right )+b \left (5 a^2-3 b^2\right ) \cosh (x)\right ) \text {csch}^2(x)-\frac {1}{4} (b+a \cosh (x))^4 (a+b \cosh (x)) \text {csch}^4(x)+a^5 \log (\sinh (x)) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 124, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 8, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.727, Rules used = {4477, 2747,
753, 833, 788, 649, 210, 266} \begin {gather*} a^5 \log (\sinh (x))+\frac {1}{8} a^2 b \left (7 a^2-3 b^2\right ) \cosh (x)-\frac {1}{8} \text {csch}^2(x) (a \cosh (x)+b)^2 \left (b \left (5 a^2-3 b^2\right ) \cosh (x)+2 a \left (2 a^2-b^2\right )\right )-\frac {1}{8} b \left (15 a^4-10 a^2 b^2+3 b^4\right ) \tanh ^{-1}(\cosh (x))-\frac {1}{4} \text {csch}^4(x) (a \cosh (x)+b)^4 (a+b \cosh (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 266
Rule 649
Rule 753
Rule 788
Rule 833
Rule 2747
Rule 4477
Rubi steps
\begin {align*} \int (a \coth (x)+b \text {csch}(x))^5 \, dx &=-\left (i \int (i b+i a \cosh (x))^5 \text {csch}^5(x) \, dx\right )\\ &=-\left (a^5 \text {Subst}\left (\int \frac {(i b+x)^5}{\left (-a^2-x^2\right )^3} \, dx,x,i a \cosh (x)\right )\right )\\ &=-\frac {1}{4} (b+a \cosh (x))^4 (a+b \cosh (x)) \text {csch}^4(x)-\frac {1}{4} a^3 \text {Subst}\left (\int \frac {(i b+x)^3 \left (-4 a^2+3 b^2+i b x\right )}{\left (-a^2-x^2\right )^2} \, dx,x,i a \cosh (x)\right )\\ &=-\frac {1}{8} (b+a \cosh (x))^2 \left (2 a \left (2 a^2-b^2\right )+b \left (5 a^2-3 b^2\right ) \cosh (x)\right ) \text {csch}^2(x)-\frac {1}{4} (b+a \cosh (x))^4 (a+b \cosh (x)) \text {csch}^4(x)-\frac {1}{8} a \text {Subst}\left (\int \frac {(i b+x) \left (8 a^4-7 a^2 b^2+3 b^4-i b \left (7 a^2-3 b^2\right ) x\right )}{-a^2-x^2} \, dx,x,i a \cosh (x)\right )\\ &=\frac {1}{8} a^2 b \left (7 a^2-3 b^2\right ) \cosh (x)-\frac {1}{8} (b+a \cosh (x))^2 \left (2 a \left (2 a^2-b^2\right )+b \left (5 a^2-3 b^2\right ) \cosh (x)\right ) \text {csch}^2(x)-\frac {1}{4} (b+a \cosh (x))^4 (a+b \cosh (x)) \text {csch}^4(x)+\frac {1}{8} a \text {Subst}\left (\int \frac {-i a^2 b \left (7 a^2-3 b^2\right )-i b \left (8 a^4-7 a^2 b^2+3 b^4\right )-\left (8 a^4-7 a^2 b^2+3 b^4+b^2 \left (7 a^2-3 b^2\right )\right ) x}{-a^2-x^2} \, dx,x,i a \cosh (x)\right )\\ &=\frac {1}{8} a^2 b \left (7 a^2-3 b^2\right ) \cosh (x)-\frac {1}{8} (b+a \cosh (x))^2 \left (2 a \left (2 a^2-b^2\right )+b \left (5 a^2-3 b^2\right ) \cosh (x)\right ) \text {csch}^2(x)-\frac {1}{4} (b+a \cosh (x))^4 (a+b \cosh (x)) \text {csch}^4(x)-a^5 \text {Subst}\left (\int \frac {x}{-a^2-x^2} \, dx,x,i a \cosh (x)\right )-\frac {1}{8} \left (i a b \left (15 a^4-10 a^2 b^2+3 b^4\right )\right ) \text {Subst}\left (\int \frac {1}{-a^2-x^2} \, dx,x,i a \cosh (x)\right )\\ &=-\frac {1}{8} b \left (15 a^4-10 a^2 b^2+3 b^4\right ) \tanh ^{-1}(\cosh (x))+\frac {1}{8} a^2 b \left (7 a^2-3 b^2\right ) \cosh (x)-\frac {1}{8} (b+a \cosh (x))^2 \left (2 a \left (2 a^2-b^2\right )+b \left (5 a^2-3 b^2\right ) \cosh (x)\right ) \text {csch}^2(x)-\frac {1}{4} (b+a \cosh (x))^4 (a+b \cosh (x)) \text {csch}^4(x)+a^5 \log (\sinh (x))\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.33, size = 244, normalized size = 1.97 \begin {gather*} -\frac {1}{64} \text {csch}^4(x) \left (-16 a^5+80 a b^4+2 b \left (15 a^4+70 a^2 b^2+11 b^4\right ) \cosh (x)+50 a^4 b \cosh (3 x)+20 a^2 b^3 \cosh (3 x)-6 b^5 \cosh (3 x)-24 a^5 \log (\sinh (x))-8 a^5 \cosh (4 x) \log (\sinh (x))-45 a^4 b \log \left (\tanh \left (\frac {x}{2}\right )\right )+30 a^2 b^3 \log \left (\tanh \left (\frac {x}{2}\right )\right )-9 b^5 \log \left (\tanh \left (\frac {x}{2}\right )\right )-15 a^4 b \cosh (4 x) \log \left (\tanh \left (\frac {x}{2}\right )\right )+10 a^2 b^3 \cosh (4 x) \log \left (\tanh \left (\frac {x}{2}\right )\right )-3 b^5 \cosh (4 x) \log \left (\tanh \left (\frac {x}{2}\right )\right )+4 \cosh (2 x) \left (8 \left (a^5+5 a^3 b^2\right )+8 a^5 \log (\sinh (x))+b \left (15 a^4-10 a^2 b^2+3 b^4\right ) \log \left (\tanh \left (\frac {x}{2}\right )\right )\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(275\) vs.
\(2(116)=232\).
time = 0.86, size = 276, normalized size = 2.23
method | result | size |
risch | \(-a^{5} x -\frac {{\mathrm e}^{x} \left (25 a^{4} b \,{\mathrm e}^{6 x}+10 a^{2} b^{3} {\mathrm e}^{6 x}-3 b^{5} {\mathrm e}^{6 x}+16 a^{5} {\mathrm e}^{5 x}+80 a^{3} b^{2} {\mathrm e}^{5 x}+15 a^{4} b \,{\mathrm e}^{4 x}+70 a^{2} b^{3} {\mathrm e}^{4 x}+11 b^{5} {\mathrm e}^{4 x}-16 a^{5} {\mathrm e}^{3 x}+80 \,{\mathrm e}^{3 x} a \,b^{4}+15 a^{4} b \,{\mathrm e}^{2 x}+70 a^{2} b^{3} {\mathrm e}^{2 x}+11 b^{5} {\mathrm e}^{2 x}+16 a^{5} {\mathrm e}^{x}+80 a^{3} b^{2} {\mathrm e}^{x}+25 a^{4} b +10 a^{2} b^{3}-3 b^{5}\right )}{4 \left ({\mathrm e}^{2 x}-1\right )^{4}}+\ln \left ({\mathrm e}^{x}-1\right ) a^{5}+\frac {15 \ln \left ({\mathrm e}^{x}-1\right ) a^{4} b}{8}-\frac {5 \ln \left ({\mathrm e}^{x}-1\right ) a^{2} b^{3}}{4}+\frac {3 \ln \left ({\mathrm e}^{x}-1\right ) b^{5}}{8}+\ln \left ({\mathrm e}^{x}+1\right ) a^{5}-\frac {15 \ln \left ({\mathrm e}^{x}+1\right ) a^{4} b}{8}+\frac {5 \ln \left ({\mathrm e}^{x}+1\right ) a^{2} b^{3}}{4}-\frac {3 \ln \left ({\mathrm e}^{x}+1\right ) b^{5}}{8}\) | \(276\) |
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. 330 vs.
\(2 (116) = 232\).
time = 0.27, size = 330, normalized size = 2.66 \begin {gather*} -\frac {5}{2} \, a^{3} b^{2} \coth \left (x\right )^{4} + a^{5} {\left (x + \frac {4 \, {\left (e^{\left (-2 \, x\right )} - e^{\left (-4 \, x\right )} + e^{\left (-6 \, x\right )}\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} + \log \left (e^{\left (-x\right )} + 1\right ) + \log \left (e^{\left (-x\right )} - 1\right )\right )} + \frac {5}{8} \, a^{4} b {\left (\frac {2 \, {\left (5 \, e^{\left (-x\right )} + 3 \, e^{\left (-3 \, x\right )} + 3 \, e^{\left (-5 \, x\right )} + 5 \, e^{\left (-7 \, x\right )}\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} - 3 \, \log \left (e^{\left (-x\right )} + 1\right ) + 3 \, \log \left (e^{\left (-x\right )} - 1\right )\right )} - \frac {1}{8} \, b^{5} {\left (\frac {2 \, {\left (3 \, e^{\left (-x\right )} - 11 \, e^{\left (-3 \, x\right )} - 11 \, e^{\left (-5 \, x\right )} + 3 \, e^{\left (-7 \, x\right )}\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} + 3 \, \log \left (e^{\left (-x\right )} + 1\right ) - 3 \, \log \left (e^{\left (-x\right )} - 1\right )\right )} + \frac {5}{4} \, a^{2} b^{3} {\left (\frac {2 \, {\left (e^{\left (-x\right )} + 7 \, e^{\left (-3 \, x\right )} + 7 \, e^{\left (-5 \, x\right )} + e^{\left (-7 \, x\right )}\right )}}{4 \, e^{\left (-2 \, x\right )} - 6 \, e^{\left (-4 \, x\right )} + 4 \, e^{\left (-6 \, x\right )} - e^{\left (-8 \, x\right )} - 1} + \log \left (e^{\left (-x\right )} + 1\right ) - \log \left (e^{\left (-x\right )} - 1\right )\right )} - \frac {20 \, a b^{4}}{{\left (e^{\left (-x\right )} - e^{x}\right )}^{4}} \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. 2716 vs.
\(2 (116) = 232\).
time = 0.43, size = 2716, normalized size = 21.90 \begin {gather*} \text {Too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a \coth {\left (x \right )} + b \operatorname {csch}{\left (x \right )}\right )^{5}\, dx \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. 234 vs.
\(2 (116) = 232\).
time = 0.40, size = 234, normalized size = 1.89 \begin {gather*} \frac {1}{16} \, {\left (8 \, a^{5} - 15 \, a^{4} b + 10 \, a^{2} b^{3} - 3 \, b^{5}\right )} \log \left (e^{\left (-x\right )} + e^{x} + 2\right ) + \frac {1}{16} \, {\left (8 \, a^{5} + 15 \, a^{4} b - 10 \, a^{2} b^{3} + 3 \, b^{5}\right )} \log \left (e^{\left (-x\right )} + e^{x} - 2\right ) - \frac {3 \, a^{5} {\left (e^{\left (-x\right )} + e^{x}\right )}^{4} + 25 \, a^{4} b {\left (e^{\left (-x\right )} + e^{x}\right )}^{3} + 10 \, a^{2} b^{3} {\left (e^{\left (-x\right )} + e^{x}\right )}^{3} - 3 \, b^{5} {\left (e^{\left (-x\right )} + e^{x}\right )}^{3} - 8 \, a^{5} {\left (e^{\left (-x\right )} + e^{x}\right )}^{2} + 80 \, a^{3} b^{2} {\left (e^{\left (-x\right )} + e^{x}\right )}^{2} - 60 \, a^{4} b {\left (e^{\left (-x\right )} + e^{x}\right )} + 40 \, a^{2} b^{3} {\left (e^{\left (-x\right )} + e^{x}\right )} + 20 \, b^{5} {\left (e^{\left (-x\right )} + e^{x}\right )} - 160 \, a^{3} b^{2} + 80 \, a b^{4}}{4 \, {\left ({\left (e^{\left (-x\right )} + e^{x}\right )}^{2} - 4\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.20, size = 392, normalized size = 3.16 \begin {gather*} \ln \left (\frac {15\,a^4\,b}{4}+\frac {3\,b^5}{4}-\frac {5\,a^2\,b^3}{2}-\frac {3\,b^5\,{\mathrm {e}}^x}{4}-\frac {15\,a^4\,b\,{\mathrm {e}}^x}{4}+\frac {5\,a^2\,b^3\,{\mathrm {e}}^x}{2}\right )\,\left (a^5+\frac {15\,a^4\,b}{8}-\frac {5\,a^2\,b^3}{4}+\frac {3\,b^5}{8}\right )-\frac {{\mathrm {e}}^x\,\left (20\,a^4\,b+40\,a^2\,b^3+4\,b^5\right )+20\,a\,b^4+4\,a^5+40\,a^3\,b^2}{6\,{\mathrm {e}}^{4\,x}-4\,{\mathrm {e}}^{2\,x}-4\,{\mathrm {e}}^{6\,x}+{\mathrm {e}}^{8\,x}+1}-\frac {{\mathrm {e}}^x\,\left (30\,a^4\,b+60\,a^2\,b^3+6\,b^5\right )+40\,a\,b^4+8\,a^5+80\,a^3\,b^2}{3\,{\mathrm {e}}^{2\,x}-3\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{6\,x}-1}-a^5\,x-\ln \left (\frac {5\,a^2\,b^3}{2}-\frac {3\,b^5}{4}-\frac {15\,a^4\,b}{4}-\frac {3\,b^5\,{\mathrm {e}}^x}{4}-\frac {15\,a^4\,b\,{\mathrm {e}}^x}{4}+\frac {5\,a^2\,b^3\,{\mathrm {e}}^x}{2}\right )\,\left (-a^5+\frac {15\,a^4\,b}{8}-\frac {5\,a^2\,b^3}{4}+\frac {3\,b^5}{8}\right )-\frac {{\mathrm {e}}^x\,\left (\frac {25\,a^4\,b}{4}+\frac {5\,a^2\,b^3}{2}-\frac {3\,b^5}{4}\right )+4\,a^5+20\,a^3\,b^2}{{\mathrm {e}}^{2\,x}-1}-\frac {{\mathrm {e}}^x\,\left (\frac {45\,a^4\,b}{2}+25\,a^2\,b^3+\frac {b^5}{2}\right )+20\,a\,b^4+8\,a^5+60\,a^3\,b^2}{{\mathrm {e}}^{4\,x}-2\,{\mathrm {e}}^{2\,x}+1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________