Optimal. Leaf size=63 \[ \frac {1}{2} i x \text {Li}_2\left (-i e^x\right )-\frac {1}{2} i x \text {Li}_2\left (i e^x\right )-\frac {1}{2} i \text {Li}_3\left (-i e^x\right )+\frac {1}{2} i \text {Li}_3\left (i e^x\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.04, antiderivative size = 63, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 4, integrand size = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.667, Rules used = {5143, 2531, 2282, 6589} \[ \frac {1}{2} i x \text {PolyLog}\left (2,-i e^x\right )-\frac {1}{2} i x \text {PolyLog}\left (2,i e^x\right )-\frac {1}{2} i \text {PolyLog}\left (3,-i e^x\right )+\frac {1}{2} i \text {PolyLog}\left (3,i e^x\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2282
Rule 2531
Rule 5143
Rule 6589
Rubi steps
\begin {align*} \int x \tan ^{-1}\left (e^x\right ) \, dx &=\frac {1}{2} i \int x \log \left (1-i e^x\right ) \, dx-\frac {1}{2} i \int x \log \left (1+i e^x\right ) \, dx\\ &=\frac {1}{2} i x \text {Li}_2\left (-i e^x\right )-\frac {1}{2} i x \text {Li}_2\left (i e^x\right )-\frac {1}{2} i \int \text {Li}_2\left (-i e^x\right ) \, dx+\frac {1}{2} i \int \text {Li}_2\left (i e^x\right ) \, dx\\ &=\frac {1}{2} i x \text {Li}_2\left (-i e^x\right )-\frac {1}{2} i x \text {Li}_2\left (i e^x\right )-\frac {1}{2} i \operatorname {Subst}\left (\int \frac {\text {Li}_2(-i x)}{x} \, dx,x,e^x\right )+\frac {1}{2} i \operatorname {Subst}\left (\int \frac {\text {Li}_2(i x)}{x} \, dx,x,e^x\right )\\ &=\frac {1}{2} i x \text {Li}_2\left (-i e^x\right )-\frac {1}{2} i x \text {Li}_2\left (i e^x\right )-\frac {1}{2} i \text {Li}_3\left (-i e^x\right )+\frac {1}{2} i \text {Li}_3\left (i e^x\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 50, normalized size = 0.79 \[ \frac {1}{2} i \left (x \text {Li}_2\left (-i e^x\right )-x \text {Li}_2\left (i e^x\right )-\text {Li}_3\left (-i e^x\right )+\text {Li}_3\left (i e^x\right )\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [C] time = 0.45, size = 65, normalized size = 1.03 \[ \frac {1}{2} \, x^{2} \arctan \left (e^{x}\right ) + \frac {1}{4} i \, x^{2} \log \left (i \, e^{x} + 1\right ) - \frac {1}{4} i \, x^{2} \log \left (-i \, e^{x} + 1\right ) - \frac {1}{2} i \, x {\rm Li}_2\left (i \, e^{x}\right ) + \frac {1}{2} i \, x {\rm Li}_2\left (-i \, e^{x}\right ) + \frac {1}{2} i \, {\rm polylog}\left (3, i \, e^{x}\right ) - \frac {1}{2} i \, {\rm polylog}\left (3, -i \, e^{x}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int x \arctan \left (e^{x}\right )\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.13, size = 44, normalized size = 0.70 \[ \frac {i x \polylog \left (2, -i {\mathrm e}^{x}\right )}{2}-\frac {i x \polylog \left (2, i {\mathrm e}^{x}\right )}{2}-\frac {i \polylog \left (3, -i {\mathrm e}^{x}\right )}{2}+\frac {i \polylog \left (3, i {\mathrm e}^{x}\right )}{2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {1}{2} \, x^{2} \arctan \left (e^{x}\right ) - \int \frac {x^{2} e^{x}}{2 \, {\left (e^{\left (2 \, x\right )} + 1\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.02 \[ \int x\,\mathrm {atan}\left ({\mathrm {e}}^x\right ) \,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 x \operatorname {atan}{\left (e^{x} \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________