Optimal. Leaf size=19 \[ 4+\log ^2\left (\frac {x}{5-x}\right )-\log (\log (x)) \]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 18, normalized size of antiderivative = 0.95, number of steps used = 6, number of rules used = 5, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.156, Rules used = {1593, 6742, 2302, 29, 2505} \begin {gather*} \log ^2\left (\frac {x}{5-x}\right )-\log (\log (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 1593
Rule 2302
Rule 2505
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {5-x-10 \log (x) \log \left (-\frac {x}{-5+x}\right )}{(-5+x) x \log (x)} \, dx\\ &=\int \left (-\frac {1}{x \log (x)}-\frac {10 \log \left (-\frac {x}{-5+x}\right )}{(-5+x) x}\right ) \, dx\\ &=-\left (10 \int \frac {\log \left (-\frac {x}{-5+x}\right )}{(-5+x) x} \, dx\right )-\int \frac {1}{x \log (x)} \, dx\\ &=\log ^2\left (\frac {x}{5-x}\right )-\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,\log (x)\right )\\ &=\log ^2\left (\frac {x}{5-x}\right )-\log (\log (x))\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.07, size = 17, normalized size = 0.89 \begin {gather*} \log ^2\left (-\frac {x}{-5+x}\right )-\log (\log (x)) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.91, size = 17, normalized size = 0.89 \begin {gather*} \log \left (-\frac {x}{x - 5}\right )^{2} - \log \left (\log \relax (x)\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [C] time = 0.19, size = 45, normalized size = 2.37 \begin {gather*} -2 i \, \pi \log \left (x - 5\right ) + 2 \, {\left (\log \left (x - 5\right ) - \log \relax (x)\right )} \log \left (x - 5\right ) - \log \left (x - 5\right )^{2} + 2 i \, \pi \log \relax (x) + \log \relax (x)^{2} - \log \left (\log \relax (x)\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.44, size = 18, normalized size = 0.95
method | result | size |
norman | \(\ln \left (-\frac {x}{x -5}\right )^{2}-\ln \left (\ln \relax (x )\right )\) | \(18\) |
default | \(-\ln \left (\ln \relax (x )\right )+\ln \left (-1-\frac {5}{x -5}\right )^{2}\) | \(19\) |
risch | \(\ln \left (x -5\right )^{2}-2 \ln \relax (x ) \ln \left (x -5\right )+i \pi \ln \relax (x ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )^{2}+2 i \pi \ln \relax (x )-i \pi \ln \left (x -5\right ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )^{3}-i \pi \ln \left (x -5\right ) \mathrm {csgn}\left (\frac {i}{x -5}\right ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )^{2}-i \pi \ln \left (x -5\right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )^{2}+i \pi \ln \relax (x ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )^{3}-i \pi \ln \relax (x ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i}{x -5}\right ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )-2 i \pi \ln \left (x -5\right )+2 i \pi \ln \left (x -5\right ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )^{2}+i \pi \ln \relax (x ) \mathrm {csgn}\left (\frac {i}{x -5}\right ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )^{2}+i \pi \ln \left (x -5\right ) \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (\frac {i}{x -5}\right ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )-2 i \pi \ln \relax (x ) \mathrm {csgn}\left (\frac {i x}{x -5}\right )^{2}+\ln \relax (x )^{2}-\ln \left (\ln \relax (x )\right )\) | \(281\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.38, size = 28, normalized size = 1.47 \begin {gather*} \log \relax (x)^{2} - 2 \, \log \relax (x) \log \left (-x + 5\right ) + \log \left (-x + 5\right )^{2} - \log \left (\log \relax (x)\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.86, size = 17, normalized size = 0.89 \begin {gather*} {\ln \left (-\frac {x}{x-5}\right )}^2-\ln \left (\ln \relax (x)\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.30, size = 14, normalized size = 0.74 \begin {gather*} \log {\left (- \frac {x}{x - 5} \right )}^{2} - \log {\left (\log {\relax (x )} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________