Optimal. Leaf size=28 \[ \log \left (\frac {3}{x}\right )-\frac {20 \left (-2+\frac {(1-x)^2}{\log (4 x)}\right )}{x} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.25, antiderivative size = 38, normalized size of antiderivative = 1.36, number of steps
used = 18, number of rules used = 10, integrand size = 44, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.227, Rules used = {6874, 45,
2395, 2334, 2335, 2343, 2346, 2209, 2339, 30} \begin {gather*} \frac {40}{x}-\frac {20 x}{\log (4 x)}-\log (x)+\frac {40}{\log (4 x)}-\frac {20}{x \log (4 x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 45
Rule 2209
Rule 2334
Rule 2335
Rule 2339
Rule 2343
Rule 2346
Rule 2395
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {-40-x}{x^2}+\frac {20 (-1+x)^2}{x^2 \log ^2(4 x)}-\frac {20 \left (-1+x^2\right )}{x^2 \log (4 x)}\right ) \, dx\\ &=20 \int \frac {(-1+x)^2}{x^2 \log ^2(4 x)} \, dx-20 \int \frac {-1+x^2}{x^2 \log (4 x)} \, dx+\int \frac {-40-x}{x^2} \, dx\\ &=20 \int \left (\frac {1}{\log ^2(4 x)}+\frac {1}{x^2 \log ^2(4 x)}-\frac {2}{x \log ^2(4 x)}\right ) \, dx-20 \int \left (\frac {1}{\log (4 x)}-\frac {1}{x^2 \log (4 x)}\right ) \, dx+\int \left (-\frac {40}{x^2}-\frac {1}{x}\right ) \, dx\\ &=\frac {40}{x}-\log (x)+20 \int \frac {1}{\log ^2(4 x)} \, dx+20 \int \frac {1}{x^2 \log ^2(4 x)} \, dx-20 \int \frac {1}{\log (4 x)} \, dx+20 \int \frac {1}{x^2 \log (4 x)} \, dx-40 \int \frac {1}{x \log ^2(4 x)} \, dx\\ &=\frac {40}{x}-\log (x)-\frac {20}{x \log (4 x)}-\frac {20 x}{\log (4 x)}-5 \text {li}(4 x)+20 \int \frac {1}{\log (4 x)} \, dx-20 \int \frac {1}{x^2 \log (4 x)} \, dx-40 \text {Subst}\left (\int \frac {1}{x^2} \, dx,x,\log (4 x)\right )+80 \text {Subst}\left (\int \frac {e^{-x}}{x} \, dx,x,\log (4 x)\right )\\ &=\frac {40}{x}+80 \text {Ei}(-\log (4 x))-\log (x)+\frac {40}{\log (4 x)}-\frac {20}{x \log (4 x)}-\frac {20 x}{\log (4 x)}-80 \text {Subst}\left (\int \frac {e^{-x}}{x} \, dx,x,\log (4 x)\right )\\ &=\frac {40}{x}-\log (x)+\frac {40}{\log (4 x)}-\frac {20}{x \log (4 x)}-\frac {20 x}{\log (4 x)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 38, normalized size = 1.36 \begin {gather*} \frac {40}{x}-\log (x)+\frac {40}{\log (4 x)}-\frac {20}{x \log (4 x)}-\frac {20 x}{\log (4 x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 41, normalized size = 1.46
method | result | size |
risch | \(-\frac {x \ln \left (x \right )-40}{x}-\frac {20 \left (x^{2}-2 x +1\right )}{x \ln \left (4 x \right )}\) | \(32\) |
norman | \(\frac {-20-x \ln \left (4 x \right )^{2}+40 x -20 x^{2}+40 \ln \left (4 x \right )}{x \ln \left (4 x \right )}\) | \(36\) |
derivativedivides | \(-\ln \left (4 x \right )+\frac {40}{x}-\frac {20 x}{\ln \left (4 x \right )}+\frac {40}{\ln \left (4 x \right )}-\frac {20}{x \ln \left (4 x \right )}\) | \(41\) |
default | \(-\ln \left (4 x \right )+\frac {40}{x}-\frac {20 x}{\ln \left (4 x \right )}+\frac {40}{\ln \left (4 x \right )}-\frac {20}{x \ln \left (4 x \right )}\) | \(41\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [C] Result contains higher order function than in optimal. Order 4 vs. order
3.
time = 0.30, size = 52, normalized size = 1.86 \begin {gather*} \frac {40}{x} + \frac {40}{\log \left (4 \, x\right )} + 80 \, {\rm Ei}\left (-\log \left (4 \, x\right )\right ) - 5 \, {\rm Ei}\left (\log \left (4 \, x\right )\right ) + 5 \, \Gamma \left (-1, -\log \left (4 \, x\right )\right ) - 80 \, \Gamma \left (-1, \log \left (4 \, x\right )\right ) - \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 35, normalized size = 1.25 \begin {gather*} -\frac {x \log \left (4 \, x\right )^{2} + 20 \, x^{2} - 40 \, x - 40 \, \log \left (4 \, x\right ) + 20}{x \log \left (4 \, x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.06, size = 22, normalized size = 0.79 \begin {gather*} - \log {\left (x \right )} + \frac {- 20 x^{2} + 40 x - 20}{x \log {\left (4 x \right )}} + \frac {40}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.38, size = 29, normalized size = 1.04 \begin {gather*} \frac {40}{x} - \frac {20 \, {\left (x^{2} - 2 \, x + 1\right )}}{x \log \left (4 \, x\right )} - \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.21, size = 31, normalized size = 1.11 \begin {gather*} \frac {40}{x}-\ln \left (x\right )-\frac {20\,x^2-40\,x+20}{x\,\ln \left (4\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________