Optimal. Leaf size=19 \[ x+\log \left (e^3-\frac {1}{20 \log (5-x)}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.45, antiderivative size = 25, normalized size of antiderivative = 1.32, number of steps used = 8, number of rules used = 4, integrand size = 64, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.062, Rules used = {6741, 6742, 2302, 29} \begin {gather*} x-\log (\log (5-x))+\log \left (1-20 e^3 \log (5-x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 2302
Rule 6741
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\operatorname {Subst}\left (\int \frac {1-x \log (-x)+20 e^3 x \log ^2(-x)}{-x \log (-x)+20 e^3 x \log ^2(-x)} \, dx,x,-5+x\right )\\ &=\operatorname {Subst}\left (\int \frac {-1+x \log (-x)-20 e^3 x \log ^2(-x)}{x \log (-x) \left (1-20 e^3 \log (-x)\right )} \, dx,x,-5+x\right )\\ &=\operatorname {Subst}\left (\int \left (1-\frac {1}{x \log (-x)}+\frac {20 e^3}{x \left (-1+20 e^3 \log (-x)\right )}\right ) \, dx,x,-5+x\right )\\ &=x+\left (20 e^3\right ) \operatorname {Subst}\left (\int \frac {1}{x \left (-1+20 e^3 \log (-x)\right )} \, dx,x,-5+x\right )-\operatorname {Subst}\left (\int \frac {1}{x \log (-x)} \, dx,x,-5+x\right )\\ &=x-\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,\log (5-x)\right )+\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,-1+20 e^3 \log (5-x)\right )\\ &=x-\log (\log (5-x))+\log \left (1-20 e^3 \log (5-x)\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.09, size = 25, normalized size = 1.32 \begin {gather*} x-\log (\log (5-x))+\log \left (1-20 e^3 \log (5-x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.81, size = 24, normalized size = 1.26 \begin {gather*} x + \log \left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right ) - \log \left (\log \left (-x + 5\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 24, normalized size = 1.26 \begin {gather*} x + \log \left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right ) - \log \left (\log \left (-x + 5\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 24, normalized size = 1.26
method | result | size |
risch | \(x -\ln \left (\ln \left (5-x \right )\right )+\ln \left (\ln \left (5-x \right )-\frac {{\mathrm e}^{-3}}{20}\right )\) | \(24\) |
norman | \(x -\ln \left (\ln \left (5-x \right )\right )+\ln \left (20 \,{\mathrm e}^{3} \ln \left (5-x \right )-1\right )\) | \(25\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.52, size = 263, normalized size = 13.84 \begin {gather*} -100 \, {\left (\log \left (\frac {1}{20} \, {\left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right )} e^{\left (-3\right )}\right ) - \log \left (\log \left (-x + 5\right )\right )\right )} e^{3} \log \left (-x + 5\right )^{2} - \frac {1}{4} \, {\left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right )} e^{\left (-3\right )} \log \left (\frac {1}{20} \, {\left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right )} e^{\left (-3\right )}\right ) - \frac {1}{4} \, {\left (400 \, {\left (\log \relax (5) + 2 \, \log \relax (2) + 3\right )} e^{6} \log \left (-x + 5\right )^{2} + 400 \, e^{6} \log \left (-x + 5\right )^{2} \log \left (\log \left (-x + 5\right )\right ) - {\left (400 \, e^{6} \log \left (-x + 5\right )^{2} - 1\right )} \log \left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right ) + 20 \, e^{3} \log \left (-x + 5\right )\right )} e^{\left (-3\right )} + \frac {1}{4} \, {\left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right )} e^{\left (-3\right )} + 5 \, {\left (\log \left (\frac {1}{20} \, {\left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right )} e^{\left (-3\right )}\right ) - \log \left (\log \left (-x + 5\right )\right )\right )} \log \left (-x + 5\right ) + 5 \, \log \left (-x + 5\right ) \log \left (\log \left (-x + 5\right )\right ) + x + \log \left (\frac {1}{20} \, {\left (20 \, e^{3} \log \left (-x + 5\right ) - 1\right )} e^{\left (-3\right )}\right ) + 5 \, \log \left (x - 5\right ) - 5 \, \log \left (-x + 5\right ) - \log \left (\log \left (-x + 5\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.36, size = 36, normalized size = 1.89 \begin {gather*} x-\ln \left (\frac {\ln \left (5-x\right )}{x-5}\right )+\ln \left (\frac {20\,{\mathrm {e}}^3\,\ln \left (5-x\right )-1}{x-5}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: PolynomialError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________