Optimal. Leaf size=92 \[ -\frac {2 (1-i a)^3 x}{b^4}+\frac {i (i+a)^2 x^2}{b^3}+\frac {2 (1-i a) x^3}{3 b^2}+\frac {i x^4}{2 b}-\frac {x^5}{5}+\frac {2 i (i+a)^4 \log (i+a+b x)}{b^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 92, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {5203, 78}
\begin {gather*} \frac {2 i (a+i)^4 \log (a+b x+i)}{b^5}-\frac {2 (1-i a)^3 x}{b^4}+\frac {i (a+i)^2 x^2}{b^3}+\frac {2 (1-i a) x^3}{3 b^2}+\frac {i x^4}{2 b}-\frac {x^5}{5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 78
Rule 5203
Rubi steps
\begin {align*} \int e^{2 i \tan ^{-1}(a+b x)} x^4 \, dx &=\int \frac {x^4 (1+i a+i b x)}{1-i a-i b x} \, dx\\ &=\int \left (\frac {2 (-1+i a)^3}{b^4}+\frac {2 i (i+a)^2 x}{b^3}+\frac {2 (1-i a) x^2}{b^2}+\frac {2 i x^3}{b}-x^4+\frac {2 i (i+a)^4}{b^4 (i+a+b x)}\right ) \, dx\\ &=-\frac {2 (1-i a)^3 x}{b^4}+\frac {i (i+a)^2 x^2}{b^3}+\frac {2 (1-i a) x^3}{3 b^2}+\frac {i x^4}{2 b}-\frac {x^5}{5}+\frac {2 i (i+a)^4 \log (i+a+b x)}{b^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 92, normalized size = 1.00 \begin {gather*} -\frac {2 (1-i a)^3 x}{b^4}+\frac {i (i+a)^2 x^2}{b^3}+\frac {2 (1-i a) x^3}{3 b^2}+\frac {i x^4}{2 b}-\frac {x^5}{5}+\frac {2 i (i+a)^4 \log (i+a+b x)}{b^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 227 vs. \(2 (78 ) = 156\).
time = 0.16, size = 228, normalized size = 2.48
method | result | size |
default | \(-\frac {i \left (-\frac {1}{5} i b^{4} x^{5}-\frac {1}{2} b^{3} x^{4}+\frac {2}{3} i b^{2} x^{3}+\frac {2}{3} a \,b^{2} x^{3}-2 i a b \,x^{2}-a^{2} b \,x^{2}+6 i a^{2} x +2 a^{3} x +x^{2} b -2 i x -6 a x \right )}{b^{4}}+\frac {\frac {\left (2 i a^{4} b -8 a^{3} b -12 i a^{2} b +8 a b +2 i b \right ) \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right )}{2 b^{2}}+\frac {\left (2 i a^{5}-4 i a^{3}-6 a^{4}-6 i a -4 a^{2}+2-\frac {\left (2 i a^{4} b -8 a^{3} b -12 i a^{2} b +8 a b +2 i b \right ) a}{b}\right ) \arctan \left (\frac {2 b^{2} x +2 a b}{2 b}\right )}{b}}{b^{4}}\) | \(228\) |
risch | \(-\frac {x^{5}}{5}-\frac {8 i \arctan \left (b x +a \right ) a}{b^{5}}+\frac {2 x^{3}}{3 b^{2}}-\frac {2 i a^{3} x}{b^{4}}-\frac {2 a \,x^{2}}{b^{3}}+\frac {8 i \arctan \left (b x +a \right ) a^{3}}{b^{5}}+\frac {6 a^{2} x}{b^{4}}+\frac {i \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right ) a^{4}}{b^{5}}+\frac {i \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right )}{b^{5}}-\frac {2 x}{b^{4}}+\frac {6 i a x}{b^{4}}-\frac {4 \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right ) a^{3}}{b^{5}}-\frac {2 i a \,x^{3}}{3 b^{2}}+\frac {4 \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right ) a}{b^{5}}+\frac {i a^{2} x^{2}}{b^{3}}-\frac {i x^{2}}{b^{3}}+\frac {i x^{4}}{2 b}+\frac {2 \arctan \left (b x +a \right ) a^{4}}{b^{5}}-\frac {6 i \ln \left (b^{2} x^{2}+2 a b x +a^{2}+1\right ) a^{2}}{b^{5}}-\frac {12 \arctan \left (b x +a \right ) a^{2}}{b^{5}}+\frac {2 \arctan \left (b x +a \right )}{b^{5}}\) | \(292\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Both result and optimal contain complex but leaf count of result is larger than
twice the leaf count of optimal. 149 vs. \(2 (70) = 140\).
time = 0.47, size = 149, normalized size = 1.62 \begin {gather*} -\frac {6 \, b^{4} x^{5} - 15 i \, b^{3} x^{4} + 20 \, {\left (i \, a - 1\right )} b^{2} x^{3} + 30 \, {\left (-i \, a^{2} + 2 \, a + i\right )} b x^{2} + 60 \, {\left (i \, a^{3} - 3 \, a^{2} - 3 i \, a + 1\right )} x}{30 \, b^{4}} + \frac {2 \, {\left (a^{4} + 4 i \, a^{3} - 6 \, a^{2} - 4 i \, a + 1\right )} \arctan \left (\frac {b^{2} x + a b}{b}\right )}{b^{5}} + \frac {{\left (i \, a^{4} - 4 \, a^{3} - 6 i \, a^{2} + 4 \, a + i\right )} \log \left (b^{2} x^{2} + 2 \, a b x + a^{2} + 1\right )}{b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.57, size = 105, normalized size = 1.14 \begin {gather*} -\frac {6 \, b^{5} x^{5} - 15 i \, b^{4} x^{4} + 20 \, {\left (i \, a - 1\right )} b^{3} x^{3} + 30 \, {\left (-i \, a^{2} + 2 \, a + i\right )} b^{2} x^{2} + 60 \, {\left (i \, a^{3} - 3 \, a^{2} - 3 i \, a + 1\right )} b x + 60 \, {\left (-i \, a^{4} + 4 \, a^{3} + 6 i \, a^{2} - 4 \, a - i\right )} \log \left (\frac {b x + a + i}{b}\right )}{30 \, b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.25, size = 110, normalized size = 1.20 \begin {gather*} - \frac {x^{5}}{5} - x^{3} \cdot \left (\frac {2 i a}{3 b^{2}} - \frac {2}{3 b^{2}}\right ) - x^{2} \left (- \frac {i a^{2}}{b^{3}} + \frac {2 a}{b^{3}} + \frac {i}{b^{3}}\right ) - x \left (\frac {2 i a^{3}}{b^{4}} - \frac {6 a^{2}}{b^{4}} - \frac {6 i a}{b^{4}} + \frac {2}{b^{4}}\right ) + \frac {i x^{4}}{2 b} + \frac {2 i \left (a + i\right )^{4} \log {\left (a + b x + i \right )}}{b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.43, size = 123, normalized size = 1.34 \begin {gather*} -\frac {2 \, {\left (-i \, a^{4} + 4 \, a^{3} + 6 i \, a^{2} - 4 \, a - i\right )} \log \left (b x + a + i\right )}{b^{5}} - \frac {6 \, b^{5} x^{5} - 15 i \, b^{4} x^{4} + 20 i \, a b^{3} x^{3} - 30 i \, a^{2} b^{2} x^{2} - 20 \, b^{3} x^{3} + 60 i \, a^{3} b x + 60 \, a b^{2} x^{2} - 180 \, a^{2} b x + 30 i \, b^{2} x^{2} - 180 i \, a b x + 60 \, b x}{30 \, b^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.58, size = 201, normalized size = 2.18 \begin {gather*} \ln \left (x+\frac {a+1{}\mathrm {i}}{b}\right )\,\left (\frac {8\,a-8\,a^3}{b^5}+\frac {\left (2\,a^4-12\,a^2+2\right )\,1{}\mathrm {i}}{b^5}\right )-x^4\,\left (\frac {\left (-1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{4\,b}-\frac {\left (1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{4\,b}\right )-\frac {x^5}{5}+\frac {x^2\,{\left (-1+a\,1{}\mathrm {i}\right )}^2\,\left (\frac {\left (-1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{b}-\frac {\left (1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{b}\right )}{2\,b^2}-\frac {x^3\,\left (-1+a\,1{}\mathrm {i}\right )\,\left (\frac {\left (-1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{b}-\frac {\left (1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{b}\right )\,1{}\mathrm {i}}{3\,b}+\frac {x\,{\left (-1+a\,1{}\mathrm {i}\right )}^3\,\left (\frac {\left (-1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{b}-\frac {\left (1+a\,1{}\mathrm {i}\right )\,1{}\mathrm {i}}{b}\right )\,1{}\mathrm {i}}{b^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________