Optimal. Leaf size=9 \[ \frac {4 x}{\log (-5+x)} \]
________________________________________________________________________________________
Rubi [B] time = 0.18, antiderivative size = 22, normalized size of antiderivative = 2.44, number of steps used = 11, number of rules used = 8, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.308, Rules used = {6742, 2411, 2353, 2297, 2298, 2302, 30, 2389} \begin {gather*} \frac {20}{\log (x-5)}-\frac {4 (5-x)}{\log (x-5)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 30
Rule 2297
Rule 2298
Rule 2302
Rule 2353
Rule 2389
Rule 2411
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (-\frac {4 x}{(-5+x) \log ^2(-5+x)}+\frac {4}{\log (-5+x)}\right ) \, dx\\ &=-\left (4 \int \frac {x}{(-5+x) \log ^2(-5+x)} \, dx\right )+4 \int \frac {1}{\log (-5+x)} \, dx\\ &=-\left (4 \operatorname {Subst}\left (\int \frac {5+x}{x \log ^2(x)} \, dx,x,-5+x\right )\right )+4 \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,-5+x\right )\\ &=4 \text {li}(-5+x)-4 \operatorname {Subst}\left (\int \left (\frac {1}{\log ^2(x)}+\frac {5}{x \log ^2(x)}\right ) \, dx,x,-5+x\right )\\ &=4 \text {li}(-5+x)-4 \operatorname {Subst}\left (\int \frac {1}{\log ^2(x)} \, dx,x,-5+x\right )-20 \operatorname {Subst}\left (\int \frac {1}{x \log ^2(x)} \, dx,x,-5+x\right )\\ &=-\frac {4 (5-x)}{\log (-5+x)}+4 \text {li}(-5+x)-4 \operatorname {Subst}\left (\int \frac {1}{\log (x)} \, dx,x,-5+x\right )-20 \operatorname {Subst}\left (\int \frac {1}{x^2} \, dx,x,\log (-5+x)\right )\\ &=\frac {20}{\log (-5+x)}-\frac {4 (5-x)}{\log (-5+x)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 9, normalized size = 1.00 \begin {gather*} \frac {4 x}{\log (-5+x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.56, size = 9, normalized size = 1.00 \begin {gather*} \frac {4 \, x}{\log \left (x - 5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.13, size = 9, normalized size = 1.00 \begin {gather*} \frac {4 \, x}{\log \left (x - 5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.09, size = 10, normalized size = 1.11
method | result | size |
norman | \(\frac {4 x}{\ln \left (x -5\right )}\) | \(10\) |
risch | \(\frac {4 x}{\ln \left (x -5\right )}\) | \(10\) |
derivativedivides | \(\frac {20}{\ln \left (x -5\right )}+\frac {4 x -20}{\ln \left (x -5\right )}\) | \(21\) |
default | \(\frac {20}{\ln \left (x -5\right )}+\frac {4 x -20}{\ln \left (x -5\right )}\) | \(21\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.41, size = 11, normalized size = 1.22 \begin {gather*} \frac {4 \, x}{\log \left (x - 5\right )} + 20 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.20, size = 9, normalized size = 1.00 \begin {gather*} \frac {4\,x}{\ln \left (x-5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.09, size = 7, normalized size = 0.78 \begin {gather*} \frac {4 x}{\log {\left (x - 5 \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________