Optimal. Leaf size=59 \[ -\frac {\text {Li}_2\left (-e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}}+\frac {\text {Li}_2\left (e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}}-\frac {2 x \tanh ^{-1}\left (e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.70, antiderivative size = 59, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {6720, 4182, 2279, 2391} \[ -\frac {\text {sech}(x) \text {PolyLog}\left (2,-e^x\right )}{\sqrt {a \text {sech}^2(x)}}+\frac {\text {sech}(x) \text {PolyLog}\left (2,e^x\right )}{\sqrt {a \text {sech}^2(x)}}-\frac {2 x \tanh ^{-1}\left (e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2279
Rule 2391
Rule 4182
Rule 6720
Rubi steps
\begin {align*} \int \frac {x \text {csch}(x) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}} \, dx &=\frac {\text {sech}(x) \int x \text {csch}(x) \, dx}{\sqrt {a \text {sech}^2(x)}}\\ &=-\frac {2 x \tanh ^{-1}\left (e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}}-\frac {\text {sech}(x) \int \log \left (1-e^x\right ) \, dx}{\sqrt {a \text {sech}^2(x)}}+\frac {\text {sech}(x) \int \log \left (1+e^x\right ) \, dx}{\sqrt {a \text {sech}^2(x)}}\\ &=-\frac {2 x \tanh ^{-1}\left (e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}}-\frac {\text {sech}(x) \operatorname {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^x\right )}{\sqrt {a \text {sech}^2(x)}}+\frac {\text {sech}(x) \operatorname {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^x\right )}{\sqrt {a \text {sech}^2(x)}}\\ &=-\frac {2 x \tanh ^{-1}\left (e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}}-\frac {\text {Li}_2\left (-e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}}+\frac {\text {Li}_2\left (e^x\right ) \text {sech}(x)}{\sqrt {a \text {sech}^2(x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 55, normalized size = 0.93 \[ \frac {\text {sech}(x) \left (\text {Li}_2\left (-e^{-x}\right )-\text {Li}_2\left (e^{-x}\right )+x \left (\log \left (1-e^{-x}\right )-\log \left (e^{-x}+1\right )\right )\right )}{\sqrt {a \text {sech}^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.42, size = 91, normalized size = 1.54 \[ \frac {{\left ({\left (e^{\left (2 \, x\right )} + 1\right )} {\rm Li}_2\left (\cosh \relax (x) + \sinh \relax (x)\right ) - {\left (e^{\left (2 \, x\right )} + 1\right )} {\rm Li}_2\left (-\cosh \relax (x) - \sinh \relax (x)\right ) - {\left (x e^{\left (2 \, x\right )} + x\right )} \log \left (\cosh \relax (x) + \sinh \relax (x) + 1\right ) + {\left (x e^{\left (2 \, x\right )} + x\right )} \log \left (-\cosh \relax (x) - \sinh \relax (x) + 1\right )\right )} \sqrt {\frac {a}{e^{\left (4 \, x\right )} + 2 \, e^{\left (2 \, x\right )} + 1}}}{a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x \operatorname {csch}\relax (x) \operatorname {sech}\relax (x)}{\sqrt {a \operatorname {sech}\relax (x)^{2}}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.34, size = 136, normalized size = 2.31 \[ -\frac {{\mathrm e}^{x} x \ln \left ({\mathrm e}^{x}+1\right )}{\sqrt {\frac {a \,{\mathrm e}^{2 x}}{\left (1+{\mathrm e}^{2 x}\right )^{2}}}\, \left (1+{\mathrm e}^{2 x}\right )}-\frac {{\mathrm e}^{x} \polylog \left (2, -{\mathrm e}^{x}\right )}{\sqrt {\frac {a \,{\mathrm e}^{2 x}}{\left (1+{\mathrm e}^{2 x}\right )^{2}}}\, \left (1+{\mathrm e}^{2 x}\right )}+\frac {{\mathrm e}^{x} x \ln \left (1-{\mathrm e}^{x}\right )}{\sqrt {\frac {a \,{\mathrm e}^{2 x}}{\left (1+{\mathrm e}^{2 x}\right )^{2}}}\, \left (1+{\mathrm e}^{2 x}\right )}+\frac {{\mathrm e}^{x} \polylog \left (2, {\mathrm e}^{x}\right )}{\sqrt {\frac {a \,{\mathrm e}^{2 x}}{\left (1+{\mathrm e}^{2 x}\right )^{2}}}\, \left (1+{\mathrm e}^{2 x}\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.44, size = 36, normalized size = 0.61 \[ -\frac {x \log \left (e^{x} + 1\right ) + {\rm Li}_2\left (-e^{x}\right )}{\sqrt {a}} + \frac {x \log \left (-e^{x} + 1\right ) + {\rm Li}_2\left (e^{x}\right )}{\sqrt {a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int \frac {x}{\mathrm {cosh}\relax (x)\,\mathrm {sinh}\relax (x)\,\sqrt {\frac {a}{{\mathrm {cosh}\relax (x)}^2}}} \,d x \]
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 {x \operatorname {csch}{\relax (x )} \operatorname {sech}{\relax (x )}}{\sqrt {a \operatorname {sech}^{2}{\relax (x )}}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________