Optimal. Leaf size=22 \[ -x+x^2+(i \pi +\log (3)) \log (4-x) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 22, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 1, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.043, Rules used = {698} \begin {gather*} x^2-x+(\log (3)+i \pi ) \log (4-x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 698
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-1+2 x+\frac {i (\pi -i \log (3))}{-4+x}\right ) \, dx\\ &=-x+x^2+(i \pi +\log (3)) \log (4-x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 21, normalized size = 0.95 \begin {gather*} -12-x+x^2+(i \pi +\log (3)) \log (-4+x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.49, size = 18, normalized size = 0.82 \begin {gather*} x^{2} + {\left (i \, \pi + \log \relax (3)\right )} \log \left (x - 4\right ) - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 19, normalized size = 0.86 \begin {gather*} x^{2} + {\left (i \, \pi + \log \relax (3)\right )} \log \left ({\left | x - 4 \right |}\right ) - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.39, size = 20, normalized size = 0.91
method | result | size |
default | \(x^{2}-x +\left (\ln \relax (3)+i \pi \right ) \ln \left (x -4\right )\) | \(20\) |
norman | \(x^{2}-x +\left (\ln \relax (3)+i \pi \right ) \ln \left (x -4\right )\) | \(20\) |
risch | \(x^{2}-x +\ln \relax (3) \ln \left (x -4\right )+i \pi \ln \left (x -4\right )\) | \(23\) |
meijerg | \(\ln \relax (3) \ln \left (-\frac {x}{4}+1\right )+i \pi \ln \left (-\frac {x}{4}+1\right )+\frac {4 x \left (\frac {3 x}{4}+6\right )}{3}-9 x\) | \(32\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.35, size = 18, normalized size = 0.82 \begin {gather*} x^{2} + {\left (i \, \pi + \log \relax (3)\right )} \log \left (x - 4\right ) - x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.09, size = 19, normalized size = 0.86 \begin {gather*} x^2+\ln \left (x-4\right )\,\left (\ln \relax (3)+\Pi \,1{}\mathrm {i}\right )-x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.14, size = 15, normalized size = 0.68 \begin {gather*} x^{2} - x + \left (\log {\relax (3 )} + i \pi \right ) \log {\left (x - 4 \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________