Optimal. Leaf size=133 \[ -\frac{i x \text{PolyLog}\left (3,-i e^{a+b x}\right )}{b^2}+\frac{i x \text{PolyLog}\left (3,i e^{a+b x}\right )}{b^2}+\frac{i \text{PolyLog}\left (4,-i e^{a+b x}\right )}{b^3}-\frac{i \text{PolyLog}\left (4,i e^{a+b x}\right )}{b^3}+\frac{i x^2 \text{PolyLog}\left (2,-i e^{a+b x}\right )}{2 b}-\frac{i x^2 \text{PolyLog}\left (2,i e^{a+b x}\right )}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0899561, antiderivative size = 133, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.417, Rules used = {5143, 2531, 6609, 2282, 6589} \[ -\frac{i x \text{PolyLog}\left (3,-i e^{a+b x}\right )}{b^2}+\frac{i x \text{PolyLog}\left (3,i e^{a+b x}\right )}{b^2}+\frac{i \text{PolyLog}\left (4,-i e^{a+b x}\right )}{b^3}-\frac{i \text{PolyLog}\left (4,i e^{a+b x}\right )}{b^3}+\frac{i x^2 \text{PolyLog}\left (2,-i e^{a+b x}\right )}{2 b}-\frac{i x^2 \text{PolyLog}\left (2,i e^{a+b x}\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5143
Rule 2531
Rule 6609
Rule 2282
Rule 6589
Rubi steps
\begin{align*} \int x^2 \tan ^{-1}\left (e^{a+b x}\right ) \, dx &=\frac{1}{2} i \int x^2 \log \left (1-i e^{a+b x}\right ) \, dx-\frac{1}{2} i \int x^2 \log \left (1+i e^{a+b x}\right ) \, dx\\ &=\frac{i x^2 \text{Li}_2\left (-i e^{a+b x}\right )}{2 b}-\frac{i x^2 \text{Li}_2\left (i e^{a+b x}\right )}{2 b}-\frac{i \int x \text{Li}_2\left (-i e^{a+b x}\right ) \, dx}{b}+\frac{i \int x \text{Li}_2\left (i e^{a+b x}\right ) \, dx}{b}\\ &=\frac{i x^2 \text{Li}_2\left (-i e^{a+b x}\right )}{2 b}-\frac{i x^2 \text{Li}_2\left (i e^{a+b x}\right )}{2 b}-\frac{i x \text{Li}_3\left (-i e^{a+b x}\right )}{b^2}+\frac{i x \text{Li}_3\left (i e^{a+b x}\right )}{b^2}+\frac{i \int \text{Li}_3\left (-i e^{a+b x}\right ) \, dx}{b^2}-\frac{i \int \text{Li}_3\left (i e^{a+b x}\right ) \, dx}{b^2}\\ &=\frac{i x^2 \text{Li}_2\left (-i e^{a+b x}\right )}{2 b}-\frac{i x^2 \text{Li}_2\left (i e^{a+b x}\right )}{2 b}-\frac{i x \text{Li}_3\left (-i e^{a+b x}\right )}{b^2}+\frac{i x \text{Li}_3\left (i e^{a+b x}\right )}{b^2}+\frac{i \operatorname{Subst}\left (\int \frac{\text{Li}_3(-i x)}{x} \, dx,x,e^{a+b x}\right )}{b^3}-\frac{i \operatorname{Subst}\left (\int \frac{\text{Li}_3(i x)}{x} \, dx,x,e^{a+b x}\right )}{b^3}\\ &=\frac{i x^2 \text{Li}_2\left (-i e^{a+b x}\right )}{2 b}-\frac{i x^2 \text{Li}_2\left (i e^{a+b x}\right )}{2 b}-\frac{i x \text{Li}_3\left (-i e^{a+b x}\right )}{b^2}+\frac{i x \text{Li}_3\left (i e^{a+b x}\right )}{b^2}+\frac{i \text{Li}_4\left (-i e^{a+b x}\right )}{b^3}-\frac{i \text{Li}_4\left (i e^{a+b x}\right )}{b^3}\\ \end{align*}
Mathematica [A] time = 0.0103102, size = 133, normalized size = 1. \[ -\frac{i x \text{PolyLog}\left (3,-i e^{a+b x}\right )}{b^2}+\frac{i x \text{PolyLog}\left (3,i e^{a+b x}\right )}{b^2}+\frac{i \text{PolyLog}\left (4,-i e^{a+b x}\right )}{b^3}-\frac{i \text{PolyLog}\left (4,i e^{a+b x}\right )}{b^3}+\frac{i x^2 \text{PolyLog}\left (2,-i e^{a+b x}\right )}{2 b}-\frac{i x^2 \text{PolyLog}\left (2,i e^{a+b x}\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.182, size = 407, normalized size = 3.1 \begin{align*}{\frac{-{\frac{i}{2}}{x}^{2}{\it polylog} \left ( 2,i{{\rm e}^{bx+a}} \right ) }{b}}-{\frac{i{\it polylog} \left ( 3,-i{{\rm e}^{bx+a}} \right ) x}{{b}^{2}}}-{\frac{{\frac{i}{2}}\ln \left ( -i \left ({{\rm e}^{bx+a}}+i \right ) \right ){a}^{3}}{{b}^{3}}}-{\frac{{\frac{i}{2}}{\it polylog} \left ( 2,-i{{\rm e}^{bx+a}} \right ){a}^{2}}{{b}^{3}}}+{\frac{i{\it polylog} \left ( 4,-i{{\rm e}^{bx+a}} \right ) }{{b}^{3}}}+{\frac{ix{\it polylog} \left ( 3,i{{\rm e}^{bx+a}} \right ) }{{b}^{2}}}-{\frac{{\frac{i}{2}}{a}^{3}\ln \left ( 1+i{{\rm e}^{bx+a}} \right ) }{{b}^{3}}}+{\frac{{\frac{i}{2}}{x}^{2}{\it polylog} \left ( 2,-i{{\rm e}^{bx+a}} \right ) }{b}}-{\frac{i{\it polylog} \left ( 4,i{{\rm e}^{bx+a}} \right ) }{{b}^{3}}}+{\frac{{\frac{i}{2}}{\it polylog} \left ( 2,i{{\rm e}^{bx+a}} \right ){a}^{2}}{{b}^{3}}}+{\frac{{\frac{i}{2}}\ln \left ( -i \left ( -{{\rm e}^{bx+a}}+i \right ) \right ){a}^{3}}{{b}^{3}}}+{\frac{{\frac{i}{2}}{a}^{3}\ln \left ( 1-i{{\rm e}^{bx+a}} \right ) }{{b}^{3}}}-{\frac{{\frac{i}{2}}{\it dilog} \left ( -i{{\rm e}^{bx+a}} \right ){a}^{2}}{{b}^{3}}}-{\frac{{\frac{i}{2}}\ln \left ( -i{{\rm e}^{bx+a}} \right ) \ln \left ( -i \left ( -{{\rm e}^{bx+a}}+i \right ) \right ){a}^{2}}{{b}^{3}}}-{\frac{{\frac{i}{2}}\ln \left ( 1+i{{\rm e}^{bx+a}} \right ) x{a}^{2}}{{b}^{2}}}-{\frac{{\frac{i}{2}}{\it dilog} \left ( -i \left ({{\rm e}^{bx+a}}+i \right ) \right ){a}^{2}}{{b}^{3}}}+{\frac{{\frac{i}{2}}\ln \left ( 1-i{{\rm e}^{bx+a}} \right ) x{a}^{2}}{{b}^{2}}}-{\frac{{\frac{i}{2}}\ln \left ( -i \left ({{\rm e}^{bx+a}}+i \right ) \right ) x{a}^{2}}{{b}^{2}}}+{\frac{{\frac{i}{2}}\ln \left ( -i \left ( -{{\rm e}^{bx+a}}+i \right ) \right ) x{a}^{2}}{{b}^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{1}{3} \, x^{3} \arctan \left (e^{\left (b x + a\right )}\right ) - b \int \frac{x^{3} e^{\left (b x + a\right )}}{3 \,{\left (e^{\left (2 \, b x + 2 \, a\right )} + 1\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 2.35137, size = 540, normalized size = 4.06 \begin{align*} \frac{2 \, b^{3} x^{3} \arctan \left (e^{\left (b x + a\right )}\right ) - 3 i \, b^{2} x^{2}{\rm Li}_2\left (i \, e^{\left (b x + a\right )}\right ) + 3 i \, b^{2} x^{2}{\rm Li}_2\left (-i \, e^{\left (b x + a\right )}\right ) + i \, a^{3} \log \left (e^{\left (b x + a\right )} + i\right ) - i \, a^{3} \log \left (e^{\left (b x + a\right )} - i\right ) + 6 i \, b x{\rm polylog}\left (3, i \, e^{\left (b x + a\right )}\right ) - 6 i \, b x{\rm polylog}\left (3, -i \, e^{\left (b x + a\right )}\right ) +{\left (i \, b^{3} x^{3} + i \, a^{3}\right )} \log \left (i \, e^{\left (b x + a\right )} + 1\right ) +{\left (-i \, b^{3} x^{3} - i \, a^{3}\right )} \log \left (-i \, e^{\left (b x + a\right )} + 1\right ) - 6 i \,{\rm polylog}\left (4, i \, e^{\left (b x + a\right )}\right ) + 6 i \,{\rm polylog}\left (4, -i \, e^{\left (b x + a\right )}\right )}{6 \, b^{3}} \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 x^{2} \operatorname{atan}{\left (e^{a} e^{b x} \right )}\, 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 x^{2} \arctan \left (e^{\left (b x + a\right )}\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]