Optimal. Leaf size=25 \[ x+(-10+x) x+\frac {2+e^x}{\frac {6}{x}-\log (5)} \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(156\) vs. \(2(25)=50\).
time = 0.36, antiderivative size = 156, normalized size of antiderivative = 6.24, number of steps
used = 15, number of rules used = 8, integrand size = 67, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.119, Rules used = {27, 6874, 45,
78, 2230, 2225, 2208, 2209} \begin {gather*} x^2-\frac {36 (8-\log (125)) \log (6-x \log (5))}{\log ^2(5)}+\frac {108 (2-\log (5)) \log (6-x \log (5))}{\log ^2(5)}+\frac {72 \log (6-x \log (5))}{\log ^2(5)}+\frac {432}{\log ^2(5) (6-x \log (5))}-\frac {108 (4-\log (125))}{\log ^2(5) (6-x \log (5))}+\frac {3 x (8-\log (125))}{\log (5)}-\frac {24 x}{\log (5)}+\frac {6 e^x}{\log (5) (6-x \log (5))}-\frac {312}{\log (5) (6-x \log (5))}-\frac {e^x}{\log (5)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 45
Rule 78
Rule 2208
Rule 2209
Rule 2225
Rule 2230
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-312+72 x+\left (108 x-24 x^2\right ) \log (5)+\left (-9 x^2+2 x^3\right ) \log ^2(5)+e^x \left (6+6 x-x^2 \log (5)\right )}{(-6+x \log (5))^2} \, dx\\ &=\int \left (-\frac {312}{(-6+x \log (5))^2}+\frac {72 x}{(-6+x \log (5))^2}-\frac {12 x (-9+2 x) \log (5)}{(-6+x \log (5))^2}+\frac {x^2 (-9+2 x) \log ^2(5)}{(-6+x \log (5))^2}-\frac {e^x \left (-6-6 x+x^2 \log (5)\right )}{(-6+x \log (5))^2}\right ) \, dx\\ &=-\frac {312}{\log (5) (6-x \log (5))}+72 \int \frac {x}{(-6+x \log (5))^2} \, dx-(12 \log (5)) \int \frac {x (-9+2 x)}{(-6+x \log (5))^2} \, dx+\log ^2(5) \int \frac {x^2 (-9+2 x)}{(-6+x \log (5))^2} \, dx-\int \frac {e^x \left (-6-6 x+x^2 \log (5)\right )}{(-6+x \log (5))^2} \, dx\\ &=-\frac {312}{\log (5) (6-x \log (5))}+72 \int \left (\frac {6}{\log (5) (-6+x \log (5))^2}+\frac {1}{\log (5) (-6+x \log (5))}\right ) \, dx-(12 \log (5)) \int \left (\frac {2}{\log ^2(5)}+\frac {18 (4-\log (125))}{\log ^2(5) (6-x \log (5))^2}+\frac {3 (-8+\log (125))}{\log ^2(5) (6-x \log (5))}\right ) \, dx+\log ^2(5) \int \left (\frac {2 x}{\log ^2(5)}-\frac {108 (-2+\log (5))}{\log ^3(5) (-6+x \log (5))}+\frac {3 (8-\log (125))}{\log ^3(5)}-\frac {108 (-4+\log (125))}{\log ^3(5) (-6+x \log (5))^2}\right ) \, dx-\int \left (\frac {e^x}{\log (5)}-\frac {6 e^x}{(-6+x \log (5))^2}+\frac {6 e^x}{\log (5) (-6+x \log (5))}\right ) \, dx\\ &=x^2-\frac {24 x}{\log (5)}+\frac {432}{\log ^2(5) (6-x \log (5))}-\frac {312}{\log (5) (6-x \log (5))}-\frac {108 (4-\log (125))}{\log ^2(5) (6-x \log (5))}+\frac {3 x (8-\log (125))}{\log (5)}+\frac {72 \log (6-x \log (5))}{\log ^2(5)}+\frac {108 (2-\log (5)) \log (6-x \log (5))}{\log ^2(5)}-\frac {36 (8-\log (125)) \log (6-x \log (5))}{\log ^2(5)}+6 \int \frac {e^x}{(-6+x \log (5))^2} \, dx-\frac {\int e^x \, dx}{\log (5)}-\frac {6 \int \frac {e^x}{-6+x \log (5)} \, dx}{\log (5)}\\ &=x^2-\frac {6 e^{\frac {6}{\log (5)}} \text {Ei}\left (-\frac {6-x \log (5)}{\log (5)}\right )}{\log ^2(5)}-\frac {e^x}{\log (5)}-\frac {24 x}{\log (5)}+\frac {432}{\log ^2(5) (6-x \log (5))}-\frac {312}{\log (5) (6-x \log (5))}+\frac {6 e^x}{\log (5) (6-x \log (5))}-\frac {108 (4-\log (125))}{\log ^2(5) (6-x \log (5))}+\frac {3 x (8-\log (125))}{\log (5)}+\frac {72 \log (6-x \log (5))}{\log ^2(5)}+\frac {108 (2-\log (5)) \log (6-x \log (5))}{\log ^2(5)}-\frac {36 (8-\log (125)) \log (6-x \log (5))}{\log ^2(5)}+\frac {6 \int \frac {e^x}{-6+x \log (5)} \, dx}{\log (5)}\\ &=x^2-\frac {e^x}{\log (5)}-\frac {24 x}{\log (5)}+\frac {432}{\log ^2(5) (6-x \log (5))}-\frac {312}{\log (5) (6-x \log (5))}+\frac {6 e^x}{\log (5) (6-x \log (5))}-\frac {108 (4-\log (125))}{\log ^2(5) (6-x \log (5))}+\frac {3 x (8-\log (125))}{\log (5)}+\frac {72 \log (6-x \log (5))}{\log ^2(5)}+\frac {108 (2-\log (5)) \log (6-x \log (5))}{\log ^2(5)}-\frac {36 (8-\log (125)) \log (6-x \log (5))}{\log ^2(5)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 47, normalized size = 1.88 \begin {gather*} \frac {-12-e^x x \log (5)+x^3 \log ^2(5)+18 x \log (125)-3 x^2 \log (5) (2+\log (125))}{\log (5) (-6+x \log (5))} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.49, size = 48, normalized size = 1.92
method | result | size |
norman | \(\frac {x^{3} \ln \left (5\right )+52 x +\left (-9 \ln \left (5\right )-6\right ) x^{2}-{\mathrm e}^{x} x}{x \ln \left (5\right )-6}\) | \(35\) |
risch | \(x^{2}-9 x -\frac {12}{\ln \left (5\right ) \left (x \ln \left (5\right )-6\right )}-\frac {x \,{\mathrm e}^{x}}{x \ln \left (5\right )-6}\) | \(35\) |
default | \(-\frac {12}{\ln \left (5\right ) \left (x \ln \left (5\right )-6\right )}-\frac {6 \,{\mathrm e}^{x}}{\ln \left (5\right )^{2} \left (x -\frac {6}{\ln \left (5\right )}\right )}-9 x +x^{2}-\frac {{\mathrm e}^{x}}{\ln \left (5\right )}\) | \(48\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 49 vs.
\(2 (24) = 48\).
time = 0.34, size = 49, normalized size = 1.96 \begin {gather*} -\frac {x e^{x} \log \left (5\right ) - {\left (x^{3} - 9 \, x^{2}\right )} \log \left (5\right )^{2} + 6 \, {\left (x^{2} - 9 \, x\right )} \log \left (5\right ) + 12}{x \log \left (5\right )^{2} - 6 \, \log \left (5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 31, normalized size = 1.24 \begin {gather*} x^{2} - 9 x - \frac {x e^{x}}{x \log {\left (5 \right )} - 6} - \frac {12}{x \log {\left (5 \right )}^{2} - 6 \log {\left (5 \right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 52 vs.
\(2 (24) = 48\).
time = 0.43, size = 52, normalized size = 2.08 \begin {gather*} \frac {x^{3} \log \left (5\right )^{2} - 9 \, x^{2} \log \left (5\right )^{2} - 6 \, x^{2} \log \left (5\right ) - x e^{x} \log \left (5\right ) + 54 \, x \log \left (5\right ) - 12}{x \log \left (5\right )^{2} - 6 \, \log \left (5\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.22, size = 30, normalized size = 1.20 \begin {gather*} -\frac {x\,\left (6\,x+{\mathrm {e}}^x+9\,x\,\ln \left (5\right )-x^2\,\ln \left (5\right )-52\right )}{x\,\ln \left (5\right )-6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________