Optimal. Leaf size=40 \[ 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 ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.100404, antiderivative size = 40, normalized size of antiderivative = 1., 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 = {2249, 206, 2245, 6213, 2531, 2282, 6589} \[ 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 ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2249
Rule 206
Rule 2245
Rule 6213
Rule 2531
Rule 2282
Rule 6589
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 )-\operatorname{Subst}\left (\int \frac{\text{Li}_2(-x)}{x} \, dx,x,e^x\right )+\operatorname{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.0327251, size = 60, normalized size = 1.5 \[ 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 )-\frac{1}{2} x^2 \log \left (1-e^x\right )+\frac{1}{2} x^2 \log \left (e^x+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.006, size = 51, normalized size = 1.3 \begin{align*}{\frac{{x}^{2}\ln \left ( 1+{{\rm e}^{x}} \right ) }{2}}+x{\it polylog} \left ( 2,-{{\rm e}^{x}} \right ) -{\it polylog} \left ( 3,-{{\rm e}^{x}} \right ) -{\frac{{x}^{2}\ln \left ( 1-{{\rm e}^{x}} \right ) }{2}}-x{\it polylog} \left ( 2,{{\rm e}^{x}} \right ) +{\it polylog} \left ( 3,{{\rm e}^{x}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.1383, size = 65, normalized size = 1.62 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 1.45584, size = 154, normalized size = 3.85 \begin{align*} \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{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} - \int \frac{x^{2} e^{x}}{e^{2 x} - 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int -\frac{x^{2} e^{x}}{e^{\left (2 \, x\right )} - 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]