Optimal. Leaf size=72 \[ \frac {\left (a^2-b^2\right )^2 \log (a+b \text {sech}(x))}{a b^4}-\frac {\left (a^2-2 b^2\right ) \text {sech}(x)}{b^3}+\frac {a \text {sech}^2(x)}{2 b^2}+\frac {\log (\cosh (x))}{a}-\frac {\text {sech}^3(x)}{3 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 72, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3885, 894} \[ -\frac {\left (a^2-2 b^2\right ) \text {sech}(x)}{b^3}+\frac {\left (a^2-b^2\right )^2 \log (a+b \text {sech}(x))}{a b^4}+\frac {a \text {sech}^2(x)}{2 b^2}+\frac {\log (\cosh (x))}{a}-\frac {\text {sech}^3(x)}{3 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 894
Rule 3885
Rubi steps
\begin {align*} \int \frac {\tanh ^5(x)}{a+b \text {sech}(x)} \, dx &=-\frac {\operatorname {Subst}\left (\int \frac {\left (b^2-x^2\right )^2}{x (a+x)} \, dx,x,b \text {sech}(x)\right )}{b^4}\\ &=-\frac {\operatorname {Subst}\left (\int \left (a^2 \left (1-\frac {2 b^2}{a^2}\right )+\frac {b^4}{a x}-a x+x^2-\frac {\left (a^2-b^2\right )^2}{a (a+x)}\right ) \, dx,x,b \text {sech}(x)\right )}{b^4}\\ &=\frac {\log (\cosh (x))}{a}+\frac {\left (a^2-b^2\right )^2 \log (a+b \text {sech}(x))}{a b^4}-\frac {\left (a^2-2 b^2\right ) \text {sech}(x)}{b^3}+\frac {a \text {sech}^2(x)}{2 b^2}-\frac {\text {sech}^3(x)}{3 b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.19, size = 85, normalized size = 1.18 \[ \frac {3 a^2 b^2 \text {sech}^2(x)-6 a b \left (a^2-2 b^2\right ) \text {sech}(x)-6 a^2 \left (a^2-2 b^2\right ) \log (\cosh (x))+6 \left (a^2-b^2\right )^2 \log (a \cosh (x)+b)-2 a b^3 \text {sech}^3(x)}{6 a b^4} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.45, size = 1280, normalized size = 17.78 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.14, size = 152, normalized size = 2.11 \[ -\frac {{\left (a^{3} - 2 \, a b^{2}\right )} \log \left (e^{\left (-x\right )} + e^{x}\right )}{b^{4}} + \frac {{\left (a^{4} - 2 \, a^{2} b^{2} + b^{4}\right )} \log \left ({\left | a {\left (e^{\left (-x\right )} + e^{x}\right )} + 2 \, b \right |}\right )}{a b^{4}} + \frac {11 \, a^{3} {\left (e^{\left (-x\right )} + e^{x}\right )}^{3} - 22 \, a b^{2} {\left (e^{\left (-x\right )} + e^{x}\right )}^{3} - 12 \, a^{2} b {\left (e^{\left (-x\right )} + e^{x}\right )}^{2} + 24 \, b^{3} {\left (e^{\left (-x\right )} + e^{x}\right )}^{2} + 12 \, a b^{2} {\left (e^{\left (-x\right )} + e^{x}\right )} - 16 \, b^{3}}{6 \, b^{4} {\left (e^{\left (-x\right )} + e^{x}\right )}^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.15, size = 233, normalized size = 3.24 \[ -\frac {\ln \left (\tanh \left (\frac {x}{2}\right )-1\right )}{a}+\frac {a^{3} \ln \left (a \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-\left (\tanh ^{2}\left (\frac {x}{2}\right )\right ) b +a +b \right )}{b^{4}}-\frac {2 a \ln \left (a \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-\left (\tanh ^{2}\left (\frac {x}{2}\right )\right ) b +a +b \right )}{b^{2}}+\frac {\ln \left (a \left (\tanh ^{2}\left (\frac {x}{2}\right )\right )-\left (\tanh ^{2}\left (\frac {x}{2}\right )\right ) b +a +b \right )}{a}-\frac {\ln \left (\tanh \left (\frac {x}{2}\right )+1\right )}{a}-\frac {2 a^{2}}{b^{3} \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )}-\frac {2 a}{b^{2} \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )}+\frac {2}{b \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )}+\frac {2 a}{b^{2} \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )^{2}}+\frac {4}{b \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )^{2}}-\frac {\ln \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right ) a^{3}}{b^{4}}+\frac {2 \ln \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right ) a}{b^{2}}-\frac {8}{3 b \left (\tanh ^{2}\left (\frac {x}{2}\right )+1\right )^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.49, size = 164, normalized size = 2.28 \[ \frac {2 \, {\left (3 \, a b e^{\left (-2 \, x\right )} + 3 \, a b e^{\left (-4 \, x\right )} - 3 \, {\left (a^{2} - 2 \, b^{2}\right )} e^{\left (-x\right )} - 2 \, {\left (3 \, a^{2} - 4 \, b^{2}\right )} e^{\left (-3 \, x\right )} - 3 \, {\left (a^{2} - 2 \, b^{2}\right )} e^{\left (-5 \, x\right )}\right )}}{3 \, {\left (3 \, b^{3} e^{\left (-2 \, x\right )} + 3 \, b^{3} e^{\left (-4 \, x\right )} + b^{3} e^{\left (-6 \, x\right )} + b^{3}\right )}} + \frac {x}{a} - \frac {{\left (a^{3} - 2 \, a b^{2}\right )} \log \left (e^{\left (-2 \, x\right )} + 1\right )}{b^{4}} + \frac {{\left (a^{4} - 2 \, a^{2} b^{2} + b^{4}\right )} \log \left (2 \, b e^{\left (-x\right )} + a e^{\left (-2 \, x\right )} + a\right )}{a b^{4}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.80, size = 155, normalized size = 2.15 \[ \frac {\frac {2\,a}{b^2}-\frac {2\,{\mathrm {e}}^x\,\left (a^2-2\,b^2\right )}{b^3}}{{\mathrm {e}}^{2\,x}+1}-\frac {x}{a}-\frac {\frac {2\,a}{b^2}+\frac {8\,{\mathrm {e}}^x}{3\,b}}{2\,{\mathrm {e}}^{2\,x}+{\mathrm {e}}^{4\,x}+1}+\frac {\ln \left ({\mathrm {e}}^{2\,x}+1\right )\,\left (2\,a\,b^2-a^3\right )}{b^4}+\frac {8\,{\mathrm {e}}^x}{3\,b\,\left (3\,{\mathrm {e}}^{2\,x}+3\,{\mathrm {e}}^{4\,x}+{\mathrm {e}}^{6\,x}+1\right )}+\frac {\ln \left (a+2\,b\,{\mathrm {e}}^x+a\,{\mathrm {e}}^{2\,x}\right )\,\left (a^4-2\,a^2\,b^2+b^4\right )}{a\,b^4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\tanh ^{5}{\relax (x )}}{a + b \operatorname {sech}{\relax (x )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________