Optimal. Leaf size=30 \[ \frac {\left (6 \left (2+e^{x/3}+\frac {5 x}{6}\right )-\log (x)\right )^2}{4 x^2} \]
[Out]
________________________________________________________________________________________
Rubi [B] Leaf count is larger than twice the leaf count of optimal. \(117\) vs. \(2(30)=60\).
time = 0.42, antiderivative size = 117, normalized size of antiderivative = 3.90, number of steps
used = 28, number of rules used = 13, integrand size = 70, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.186, Rules used = {12, 14, 2228,
6874, 37, 2372, 45, 2342, 2341, 2230, 2208, 2209, 2634} \begin {gather*} \frac {13 (5 x+12)^2}{48 x^2}+\frac {36 e^{x/3}}{x^2}+\frac {9 e^{2 x/3}}{x^2}-\frac {3}{x^2}+\frac {\log ^2(x)}{4 x^2}-\frac {(x+5)^2 \log (x)}{4 x^2}-\frac {3 e^{x/3} \log (x)}{x^2}+\frac {\log (x)}{4 x^2}+\frac {15 e^{x/3}}{x}-\frac {5}{2 x}+\frac {\log (x)}{4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 37
Rule 45
Rule 2208
Rule 2209
Rule 2228
Rule 2230
Rule 2341
Rule 2342
Rule 2372
Rule 2634
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{2} \int \frac {-156-65 x+e^{2 x/3} (-36+12 x)+e^{x/3} \left (-150-6 x+10 x^2\right )+\left (25+e^{x/3} (12-2 x)+5 x\right ) \log (x)-\log ^2(x)}{x^3} \, dx\\ &=\frac {1}{2} \int \left (\frac {12 e^{2 x/3} (-3+x)}{x^3}+\frac {(12+5 x-\log (x)) (-13+\log (x))}{x^3}+\frac {2 e^{x/3} \left (-75-3 x+5 x^2+6 \log (x)-x \log (x)\right )}{x^3}\right ) \, dx\\ &=\frac {1}{2} \int \frac {(12+5 x-\log (x)) (-13+\log (x))}{x^3} \, dx+6 \int \frac {e^{2 x/3} (-3+x)}{x^3} \, dx+\int \frac {e^{x/3} \left (-75-3 x+5 x^2+6 \log (x)-x \log (x)\right )}{x^3} \, dx\\ &=\frac {9 e^{2 x/3}}{x^2}+\frac {1}{2} \int \left (-\frac {13 (12+5 x)}{x^3}+\frac {5 (5+x) \log (x)}{x^3}-\frac {\log ^2(x)}{x^3}\right ) \, dx+\int \left (\frac {e^{x/3} \left (-75-3 x+5 x^2\right )}{x^3}-\frac {e^{x/3} (-6+x) \log (x)}{x^3}\right ) \, dx\\ &=\frac {9 e^{2 x/3}}{x^2}-\frac {1}{2} \int \frac {\log ^2(x)}{x^3} \, dx+\frac {5}{2} \int \frac {(5+x) \log (x)}{x^3} \, dx-\frac {13}{2} \int \frac {12+5 x}{x^3} \, dx+\int \frac {e^{x/3} \left (-75-3 x+5 x^2\right )}{x^3} \, dx-\int \frac {e^{x/3} (-6+x) \log (x)}{x^3} \, dx\\ &=\frac {9 e^{2 x/3}}{x^2}+\frac {13 (12+5 x)^2}{48 x^2}-\frac {3 e^{x/3} \log (x)}{x^2}-\frac {(5+x)^2 \log (x)}{4 x^2}+\frac {\log ^2(x)}{4 x^2}-\frac {1}{2} \int \frac {\log (x)}{x^3} \, dx-\frac {5}{2} \int -\frac {(5+x)^2}{10 x^3} \, dx+\int \left (-\frac {75 e^{x/3}}{x^3}-\frac {3 e^{x/3}}{x^2}+\frac {5 e^{x/3}}{x}\right ) \, dx+\int \frac {3 e^{x/3}}{x^3} \, dx\\ &=\frac {1}{8 x^2}+\frac {9 e^{2 x/3}}{x^2}+\frac {13 (12+5 x)^2}{48 x^2}+\frac {\log (x)}{4 x^2}-\frac {3 e^{x/3} \log (x)}{x^2}-\frac {(5+x)^2 \log (x)}{4 x^2}+\frac {\log ^2(x)}{4 x^2}+\frac {1}{4} \int \frac {(5+x)^2}{x^3} \, dx+3 \int \frac {e^{x/3}}{x^3} \, dx-3 \int \frac {e^{x/3}}{x^2} \, dx+5 \int \frac {e^{x/3}}{x} \, dx-75 \int \frac {e^{x/3}}{x^3} \, dx\\ &=\frac {1}{8 x^2}+\frac {36 e^{x/3}}{x^2}+\frac {9 e^{2 x/3}}{x^2}+\frac {3 e^{x/3}}{x}+\frac {13 (12+5 x)^2}{48 x^2}+5 \text {Ei}\left (\frac {x}{3}\right )+\frac {\log (x)}{4 x^2}-\frac {3 e^{x/3} \log (x)}{x^2}-\frac {(5+x)^2 \log (x)}{4 x^2}+\frac {\log ^2(x)}{4 x^2}+\frac {1}{4} \int \left (\frac {25}{x^3}+\frac {10}{x^2}+\frac {1}{x}\right ) \, dx+\frac {1}{2} \int \frac {e^{x/3}}{x^2} \, dx-\frac {25}{2} \int \frac {e^{x/3}}{x^2} \, dx-\int \frac {e^{x/3}}{x} \, dx\\ &=-\frac {3}{x^2}+\frac {36 e^{x/3}}{x^2}+\frac {9 e^{2 x/3}}{x^2}-\frac {5}{2 x}+\frac {15 e^{x/3}}{x}+\frac {13 (12+5 x)^2}{48 x^2}+4 \text {Ei}\left (\frac {x}{3}\right )+\frac {\log (x)}{4}+\frac {\log (x)}{4 x^2}-\frac {3 e^{x/3} \log (x)}{x^2}-\frac {(5+x)^2 \log (x)}{4 x^2}+\frac {\log ^2(x)}{4 x^2}+\frac {1}{6} \int \frac {e^{x/3}}{x} \, dx-\frac {25}{6} \int \frac {e^{x/3}}{x} \, dx\\ &=-\frac {3}{x^2}+\frac {36 e^{x/3}}{x^2}+\frac {9 e^{2 x/3}}{x^2}-\frac {5}{2 x}+\frac {15 e^{x/3}}{x}+\frac {13 (12+5 x)^2}{48 x^2}+\frac {\log (x)}{4}+\frac {\log (x)}{4 x^2}-\frac {3 e^{x/3} \log (x)}{x^2}-\frac {(5+x)^2 \log (x)}{4 x^2}+\frac {\log ^2(x)}{4 x^2}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 41, normalized size = 1.37 \begin {gather*} \frac {\left (6 \left (2+e^{x/3}\right )-\log (x)\right ) \left (12+6 e^{x/3}+10 x-\log (x)\right )}{4 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(72\) vs.
\(2(22)=44\).
time = 0.08, size = 73, normalized size = 2.43
method | result | size |
risch | \(\frac {\ln \left (x \right )^{2}}{4 x^{2}}-\frac {\left (5 x +12+6 \,{\mathrm e}^{\frac {x}{3}}\right ) \ln \left (x \right )}{2 x^{2}}+\frac {15 x \,{\mathrm e}^{\frac {x}{3}}+9 \,{\mathrm e}^{\frac {2 x}{3}}+30 x +36 \,{\mathrm e}^{\frac {x}{3}}+36}{x^{2}}\) | \(58\) |
default | \(\frac {30 x \,{\mathrm e}^{\frac {x}{3}}-6 \ln \left (x \right ) {\mathrm e}^{\frac {x}{3}}+72 \,{\mathrm e}^{\frac {x}{3}}}{2 x^{2}}+\frac {\ln \left (x \right )^{2}}{4 x^{2}}-\frac {6 \ln \left (x \right )}{x^{2}}+\frac {36}{x^{2}}+\frac {30}{x}-\frac {5 \ln \left (x \right )}{2 x}+\frac {9 \,{\mathrm e}^{\frac {2 x}{3}}}{x^{2}}\) | \(73\) |
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. 46 vs.
\(2 (22) = 44\).
time = 0.39, size = 46, normalized size = 1.53 \begin {gather*} \frac {12 \, {\left (5 \, x + 12\right )} e^{\left (\frac {1}{3} \, x\right )} - 2 \, {\left (5 \, x + 6 \, e^{\left (\frac {1}{3} \, x\right )} + 12\right )} \log \left (x\right ) + \log \left (x\right )^{2} + 120 \, x + 36 \, e^{\left (\frac {2}{3} \, x\right )} + 144}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 73 vs.
\(2 (20) = 40\).
time = 0.17, size = 73, normalized size = 2.43 \begin {gather*} - \frac {- 30 x - 36}{x^{2}} + \frac {\left (- 5 x - 12\right ) \log {\left (x \right )}}{2 x^{2}} + \frac {\log {\left (x \right )}^{2}}{4 x^{2}} + \frac {9 x^{2} e^{\frac {2 x}{3}} + \left (15 x^{3} - 3 x^{2} \log {\left (x \right )} + 36 x^{2}\right ) e^{\frac {x}{3}}}{x^{4}} \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. 87 vs.
\(2 (22) = 44\).
time = 0.40, size = 87, normalized size = 2.90 \begin {gather*} \frac {60 \, x e^{\left (\frac {1}{3} \, x\right )} - 10 \, x \log \left (3\right ) - 12 \, e^{\left (\frac {1}{3} \, x\right )} \log \left (3\right ) + \log \left (3\right )^{2} - 10 \, x \log \left (\frac {1}{3} \, x\right ) - 12 \, e^{\left (\frac {1}{3} \, x\right )} \log \left (\frac {1}{3} \, x\right ) + 2 \, \log \left (3\right ) \log \left (\frac {1}{3} \, x\right ) + \log \left (\frac {1}{3} \, x\right )^{2} + 120 \, x + 36 \, e^{\left (\frac {2}{3} \, x\right )} + 144 \, e^{\left (\frac {1}{3} \, x\right )} - 24 \, \log \left (3\right ) - 24 \, \log \left (\frac {1}{3} \, x\right ) + 144}{4 \, x^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.69, size = 32, normalized size = 1.07 \begin {gather*} \frac {\left (6\,{\mathrm {e}}^{x/3}-\ln \left (x\right )+12\right )\,\left (10\,x+6\,{\mathrm {e}}^{x/3}-\ln \left (x\right )+12\right )}{4\,x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________