Optimal. Leaf size=28 \[ 5+\frac {e^4+\frac {-8-x}{x+\log (-1+x)}}{-4+x}+\log (x) \]
________________________________________________________________________________________
Rubi [F] time = 2.98, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \int \frac {-60 x^2+40 x^3-8 x^4+x^5+e^4 \left (x^3-x^4\right )+\left (-44 x+60 x^2-18 x^3+2 x^4+e^4 \left (2 x^2-2 x^3\right )\right ) \log (-1+x)+\left (-16+24 x-9 x^2+x^3+e^4 \left (x-x^2\right )\right ) \log ^2(-1+x)}{-16 x^3+24 x^4-9 x^5+x^6+\left (-32 x^2+48 x^3-18 x^4+2 x^5\right ) \log (-1+x)+\left (-16 x+24 x^2-9 x^3+x^4\right ) \log ^2(-1+x)} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-x^2 \left (-60+\left (40+e^4\right ) x-\left (8+e^4\right ) x^2+x^3\right )-2 x \left (-22+\left (30+e^4\right ) x-\left (9+e^4\right ) x^2+x^3\right ) \log (-1+x)-\left (-16+\left (24+e^4\right ) x-\left (9+e^4\right ) x^2+x^3\right ) \log ^2(-1+x)}{(1-x) (4-x)^2 x (x+\log (-1+x))^2} \, dx\\ &=\int \left (\frac {16-\left (8+e^4\right ) x+x^2}{(4-x)^2 x}+\frac {x (8+x)}{(-4+x) (-1+x) (x+\log (-1+x))^2}+\frac {12}{(-4+x)^2 (x+\log (-1+x))}\right ) \, dx\\ &=12 \int \frac {1}{(-4+x)^2 (x+\log (-1+x))} \, dx+\int \frac {16-\left (8+e^4\right ) x+x^2}{(4-x)^2 x} \, dx+\int \frac {x (8+x)}{(-4+x) (-1+x) (x+\log (-1+x))^2} \, dx\\ &=12 \int \frac {1}{(-4+x)^2 (x+\log (-1+x))} \, dx+\int \left (-\frac {e^4}{(-4+x)^2}+\frac {1}{x}\right ) \, dx+\int \left (\frac {1}{(x+\log (-1+x))^2}+\frac {16}{(-4+x) (x+\log (-1+x))^2}-\frac {3}{(-1+x) (x+\log (-1+x))^2}\right ) \, dx\\ &=-\frac {e^4}{4-x}+\log (x)-3 \int \frac {1}{(-1+x) (x+\log (-1+x))^2} \, dx+12 \int \frac {1}{(-4+x)^2 (x+\log (-1+x))} \, dx+16 \int \frac {1}{(-4+x) (x+\log (-1+x))^2} \, dx+\int \frac {1}{(x+\log (-1+x))^2} \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 31, normalized size = 1.11 \begin {gather*} \frac {e^4}{-4+x}+\frac {-8-x}{(-4+x) (x+\log (-1+x))}+\log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.72, size = 52, normalized size = 1.86 \begin {gather*} \frac {x e^{4} + e^{4} \log \left (x - 1\right ) + {\left (x^{2} + {\left (x - 4\right )} \log \left (x - 1\right ) - 4 \, x\right )} \log \relax (x) - x - 8}{x^{2} + {\left (x - 4\right )} \log \left (x - 1\right ) - 4 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.19, size = 65, normalized size = 2.32 \begin {gather*} \frac {x^{2} \log \relax (x) + x \log \left (x - 1\right ) \log \relax (x) + x e^{4} + e^{4} \log \left (x - 1\right ) - 4 \, x \log \relax (x) - 4 \, \log \left (x - 1\right ) \log \relax (x) - x - 8}{x^{2} + x \log \left (x - 1\right ) - 4 \, x - 4 \, \log \left (x - 1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.22, size = 37, normalized size = 1.32
method | result | size |
risch | \(\frac {x \ln \relax (x )-4 \ln \relax (x )+{\mathrm e}^{4}}{x -4}-\frac {x +8}{\left (x -4\right ) \left (x +\ln \left (x -1\right )\right )}\) | \(37\) |
norman | \(\frac {-8+{\mathrm e}^{4} \ln \left (x -1\right )+\left ({\mathrm e}^{4}-1\right ) x}{\ln \left (x -1\right ) x +x^{2}-4 \ln \left (x -1\right )-4 x}+\ln \relax (x )\) | \(41\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 36, normalized size = 1.29 \begin {gather*} \frac {x {\left (e^{4} - 1\right )} + e^{4} \log \left (x - 1\right ) - 8}{x^{2} + {\left (x - 4\right )} \log \left (x - 1\right ) - 4 \, x} + \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.72, size = 78, normalized size = 2.79 \begin {gather*} \ln \relax (x)-\frac {\frac {x^2+16\,x-44}{{\left (x-4\right )}^2}+\frac {12\,\ln \left (x-1\right )\,\left (x-1\right )}{x\,{\left (x-4\right )}^2}}{x+\ln \left (x-1\right )}-\frac {-{\mathrm {e}}^4\,x^2+\left (4\,{\mathrm {e}}^4-12\right )\,x+12}{x^3-8\,x^2+16\,x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.27, size = 29, normalized size = 1.04 \begin {gather*} \frac {- x - 8}{x^{2} - 4 x + \left (x - 4\right ) \log {\left (x - 1 \right )}} + \log {\relax (x )} + \frac {e^{4}}{x - 4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________