Optimal. Leaf size=40 \[ x^2 \tanh ^{-1}\left (e^x\right )+x \text {Li}_2\left (-e^x\right )-x \text {Li}_2\left (e^x\right )-\text {Li}_3\left (-e^x\right )+\text {Li}_3\left (e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 40, normalized size of antiderivative = 1.00, number of steps
used = 8, number of rules used = 7, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.389, Rules used = {2281, 212,
2277, 6348, 2611, 2320, 6724} \begin {gather*} x \text {PolyLog}\left (2,-e^x\right )-x \text {PolyLog}\left (2,e^x\right )-\text {PolyLog}\left (3,-e^x\right )+\text {PolyLog}\left (3,e^x\right )+x^2 \tanh ^{-1}\left (e^x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 2277
Rule 2281
Rule 2320
Rule 2611
Rule 6348
Rule 6724
Rubi steps
\begin {align*} \int \frac {e^x x^2}{1-e^{2 x}} \, dx &=x^2 \tanh ^{-1}\left (e^x\right )-2 \int x \tanh ^{-1}\left (e^x\right ) \, dx\\ &=x^2 \tanh ^{-1}\left (e^x\right )+\int x \log \left (1-e^x\right ) \, dx-\int x \log \left (1+e^x\right ) \, dx\\ &=x^2 \tanh ^{-1}\left (e^x\right )+x \text {Li}_2\left (-e^x\right )-x \text {Li}_2\left (e^x\right )-\int \text {Li}_2\left (-e^x\right ) \, dx+\int \text {Li}_2\left (e^x\right ) \, dx\\ &=x^2 \tanh ^{-1}\left (e^x\right )+x \text {Li}_2\left (-e^x\right )-x \text {Li}_2\left (e^x\right )-\text {Subst}\left (\int \frac {\text {Li}_2(-x)}{x} \, dx,x,e^x\right )+\text {Subst}\left (\int \frac {\text {Li}_2(x)}{x} \, dx,x,e^x\right )\\ &=x^2 \tanh ^{-1}\left (e^x\right )+x \text {Li}_2\left (-e^x\right )-x \text {Li}_2\left (e^x\right )-\text {Li}_3\left (-e^x\right )+\text {Li}_3\left (e^x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 60, normalized size = 1.50 \begin {gather*} -\frac {1}{2} x^2 \log \left (1-e^x\right )+\frac {1}{2} x^2 \log \left (1+e^x\right )+x \text {Li}_2\left (-e^x\right )-x \text {Li}_2\left (e^x\right )-\text {Li}_3\left (-e^x\right )+\text {Li}_3\left (e^x\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 51, normalized size = 1.28
method | result | size |
default | \(-\frac {x^{2} \ln \left (1-{\mathrm e}^{x}\right )}{2}-x \polylog \left (2, {\mathrm e}^{x}\right )+\polylog \left (3, {\mathrm e}^{x}\right )+\frac {x^{2} \ln \left (1+{\mathrm e}^{x}\right )}{2}+x \polylog \left (2, -{\mathrm e}^{x}\right )-\polylog \left (3, -{\mathrm e}^{x}\right )\) | \(51\) |
risch | \(-\frac {x^{2} \ln \left (1-{\mathrm e}^{x}\right )}{2}-x \polylog \left (2, {\mathrm e}^{x}\right )+\polylog \left (3, {\mathrm e}^{x}\right )+\frac {x^{2} \ln \left (1+{\mathrm e}^{x}\right )}{2}+x \polylog \left (2, -{\mathrm e}^{x}\right )-\polylog \left (3, -{\mathrm e}^{x}\right )\) | \(51\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 48, normalized size = 1.20 \begin {gather*} \frac {1}{2} \, x^{2} \log \left (e^{x} + 1\right ) - \frac {1}{2} \, x^{2} \log \left (-e^{x} + 1\right ) + x {\rm Li}_2\left (-e^{x}\right ) - x {\rm Li}_2\left (e^{x}\right ) - {\rm Li}_{3}(-e^{x}) + {\rm Li}_{3}(e^{x}) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.39, size = 48, normalized size = 1.20 \begin {gather*} \frac {1}{2} \, x^{2} \log \left (e^{x} + 1\right ) - \frac {1}{2} \, x^{2} \log \left (-e^{x} + 1\right ) + x {\rm Li}_2\left (-e^{x}\right ) - x {\rm Li}_2\left (e^{x}\right ) - {\rm polylog}\left (3, -e^{x}\right ) + {\rm polylog}\left (3, e^{x}\right ) \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 \frac {x^{2} e^{x}}{e^{2 x} - 1}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} -\int \frac {x^2\,{\mathrm {e}}^x}{{\mathrm {e}}^{2\,x}-1} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________