Optimal. Leaf size=20 \[ \log (x) \left (x^4+\log \left (2+\frac {1}{4+\frac {x}{3}}+x\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.57, antiderivative size = 25, normalized size of antiderivative = 1.25, number of steps used = 28, number of rules used = 7, integrand size = 103, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.068, Rules used = {6688, 2357, 2304, 2317, 2391, 14, 2524} \begin {gather*} x^4 \log (x)+\log (x) \log \left (\frac {x^2+14 x+27}{x+12}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2304
Rule 2317
Rule 2357
Rule 2391
Rule 2524
Rule 6688
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {\left (141+24 x+x^2+1296 x^3+780 x^4+104 x^5+4 x^6\right ) \log (x)}{324+195 x+26 x^2+x^3}+\frac {x^4+\log \left (\frac {27+14 x+x^2}{12+x}\right )}{x}\right ) \, dx\\ &=\int \frac {\left (141+24 x+x^2+1296 x^3+780 x^4+104 x^5+4 x^6\right ) \log (x)}{324+195 x+26 x^2+x^3} \, dx+\int \frac {x^4+\log \left (\frac {27+14 x+x^2}{12+x}\right )}{x} \, dx\\ &=\int \left (4 x^3 \log (x)+\frac {\left (141+24 x+x^2\right ) \log (x)}{324+195 x+26 x^2+x^3}\right ) \, dx+\int \left (x^3+\frac {\log \left (\frac {27+14 x+x^2}{12+x}\right )}{x}\right ) \, dx\\ &=\frac {x^4}{4}+4 \int x^3 \log (x) \, dx+\int \frac {\left (141+24 x+x^2\right ) \log (x)}{324+195 x+26 x^2+x^3} \, dx+\int \frac {\log \left (\frac {27+14 x+x^2}{12+x}\right )}{x} \, dx\\ &=x^4 \log (x)+\log (x) \log \left (\frac {27+14 x+x^2}{12+x}\right )-\int \frac {(12+x) \left (\frac {14+2 x}{12+x}-\frac {27+14 x+x^2}{(12+x)^2}\right ) \log (x)}{27+14 x+x^2} \, dx+\int \left (\frac {\log (x)}{-12-x}+\frac {2 (7+x) \log (x)}{27+14 x+x^2}\right ) \, dx\\ &=x^4 \log (x)+\log (x) \log \left (\frac {27+14 x+x^2}{12+x}\right )+2 \int \frac {(7+x) \log (x)}{27+14 x+x^2} \, dx+\int \frac {\log (x)}{-12-x} \, dx-\int \left (\frac {\log (x)}{-12-x}+\frac {2 (7+x) \log (x)}{27+14 x+x^2}\right ) \, dx\\ &=x^4 \log (x)-\log \left (1+\frac {x}{12}\right ) \log (x)+\log (x) \log \left (\frac {27+14 x+x^2}{12+x}\right )-2 \int \frac {(7+x) \log (x)}{27+14 x+x^2} \, dx+2 \int \left (\frac {\log (x)}{14-2 \sqrt {22}+2 x}+\frac {\log (x)}{14+2 \sqrt {22}+2 x}\right ) \, dx+\int \frac {\log \left (1+\frac {x}{12}\right )}{x} \, dx-\int \frac {\log (x)}{-12-x} \, dx\\ &=x^4 \log (x)+\log (x) \log \left (\frac {27+14 x+x^2}{12+x}\right )-\text {Li}_2\left (-\frac {x}{12}\right )+2 \int \frac {\log (x)}{14-2 \sqrt {22}+2 x} \, dx+2 \int \frac {\log (x)}{14+2 \sqrt {22}+2 x} \, dx-2 \int \left (\frac {\log (x)}{14-2 \sqrt {22}+2 x}+\frac {\log (x)}{14+2 \sqrt {22}+2 x}\right ) \, dx-\int \frac {\log \left (1+\frac {x}{12}\right )}{x} \, dx\\ &=x^4 \log (x)+\log (x) \log \left (1+\frac {x}{7-\sqrt {22}}\right )+\log (x) \log \left (1+\frac {x}{7+\sqrt {22}}\right )+\log (x) \log \left (\frac {27+14 x+x^2}{12+x}\right )-2 \int \frac {\log (x)}{14-2 \sqrt {22}+2 x} \, dx-2 \int \frac {\log (x)}{14+2 \sqrt {22}+2 x} \, dx-\int \frac {\log \left (1+\frac {2 x}{14-2 \sqrt {22}}\right )}{x} \, dx-\int \frac {\log \left (1+\frac {2 x}{14+2 \sqrt {22}}\right )}{x} \, dx\\ &=x^4 \log (x)+\log (x) \log \left (\frac {27+14 x+x^2}{12+x}\right )+\text {Li}_2\left (-\frac {x}{7-\sqrt {22}}\right )+\text {Li}_2\left (-\frac {x}{7+\sqrt {22}}\right )+\int \frac {\log \left (1+\frac {2 x}{14-2 \sqrt {22}}\right )}{x} \, dx+\int \frac {\log \left (1+\frac {2 x}{14+2 \sqrt {22}}\right )}{x} \, dx\\ &=x^4 \log (x)+\log (x) \log \left (\frac {27+14 x+x^2}{12+x}\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.12, size = 25, normalized size = 1.25 \begin {gather*} x^4 \log (x)+\log (x) \log \left (\frac {27+14 x+x^2}{12+x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.73, size = 25, normalized size = 1.25 \begin {gather*} x^{4} \log \relax (x) + \log \relax (x) \log \left (\frac {x^{2} + 14 \, x + 27}{x + 12}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 27, normalized size = 1.35 \begin {gather*} x^{4} \log \relax (x) + \log \left (x^{2} + 14 \, x + 27\right ) \log \relax (x) - \log \left (x + 12\right ) \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.14, size = 26, normalized size = 1.30
method | result | size |
default | \(\ln \relax (x ) \ln \left (\frac {x^{2}+14 x +27}{x +12}\right )+x^{4} \ln \relax (x )\) | \(26\) |
risch | \(\ln \relax (x ) \ln \left (x^{2}+14 x +27\right )-\ln \relax (x ) \ln \left (x +12\right )+x^{4} \ln \relax (x )-\frac {i \pi \ln \relax (x ) \mathrm {csgn}\left (\frac {i}{x +12}\right ) \mathrm {csgn}\left (i \left (x^{2}+14 x +27\right )\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+14 x +27\right )}{x +12}\right )}{2}+\frac {i \pi \ln \relax (x ) \mathrm {csgn}\left (\frac {i}{x +12}\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+14 x +27\right )}{x +12}\right )^{2}}{2}+\frac {i \pi \ln \relax (x ) \mathrm {csgn}\left (i \left (x^{2}+14 x +27\right )\right ) \mathrm {csgn}\left (\frac {i \left (x^{2}+14 x +27\right )}{x +12}\right )^{2}}{2}-\frac {i \pi \ln \relax (x ) \mathrm {csgn}\left (\frac {i \left (x^{2}+14 x +27\right )}{x +12}\right )^{3}}{2}\) | \(168\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.48, size = 27, normalized size = 1.35 \begin {gather*} x^{4} \log \relax (x) + \log \left (x^{2} + 14 \, x + 27\right ) \log \relax (x) - \log \left (x + 12\right ) \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.37, size = 22, normalized size = 1.10 \begin {gather*} \ln \relax (x)\,\left (\ln \left (\frac {x^2+14\,x+27}{x+12}\right )+x^4\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.39, size = 22, normalized size = 1.10 \begin {gather*} x^{4} \log {\relax (x )} + \log {\relax (x )} \log {\left (\frac {x^{2} + 14 x + 27}{x + 12} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________