Optimal. Leaf size=28 \[ \frac {x-\log (4)+3 \left (2-\log \left (2 e^x x\right )\right )^2}{2 x} \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 0.11, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps
used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {}
\begin {gather*} \int \frac {-24-12 x+\log (4)+(18+6 x) \log \left (2 e^x x\right )-3 \log ^2\left (2 e^x x\right )}{2 x^2} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{2} \int \frac {-24-12 x+\log (4)+(18+6 x) \log \left (2 e^x x\right )-3 \log ^2\left (2 e^x x\right )}{x^2} \, dx\\ &=\frac {1}{2} \int \left (\frac {-24-12 x+\log (4)}{x^2}+\frac {6 (3+x) \log \left (2 e^x x\right )}{x^2}-\frac {3 \log ^2\left (2 e^x x\right )}{x^2}\right ) \, dx\\ &=\frac {1}{2} \int \frac {-24-12 x+\log (4)}{x^2} \, dx-\frac {3}{2} \int \frac {\log ^2\left (2 e^x x\right )}{x^2} \, dx+3 \int \frac {(3+x) \log \left (2 e^x x\right )}{x^2} \, dx\\ &=\frac {1}{2} \int \left (-\frac {12}{x}+\frac {-24+\log (4)}{x^2}\right ) \, dx-\frac {3}{2} \int \frac {\log ^2\left (2 e^x x\right )}{x^2} \, dx+3 \int \left (\frac {3 \log \left (2 e^x x\right )}{x^2}+\frac {\log \left (2 e^x x\right )}{x}\right ) \, dx\\ &=\frac {24-\log (4)}{2 x}-6 \log (x)-\frac {3}{2} \int \frac {\log ^2\left (2 e^x x\right )}{x^2} \, dx+3 \int \frac {\log \left (2 e^x x\right )}{x} \, dx+9 \int \frac {\log \left (2 e^x x\right )}{x^2} \, dx\\ &=\frac {24-\log (4)}{2 x}-6 \log (x)-\frac {9 \log \left (2 e^x x\right )}{x}-\frac {3}{2} \int \frac {\log ^2\left (2 e^x x\right )}{x^2} \, dx+3 \int \frac {\log \left (2 e^x x\right )}{x} \, dx+9 \int \frac {1+x}{x^2} \, dx\\ &=\frac {24-\log (4)}{2 x}-6 \log (x)-\frac {9 \log \left (2 e^x x\right )}{x}-\frac {3}{2} \int \frac {\log ^2\left (2 e^x x\right )}{x^2} \, dx+3 \int \frac {\log \left (2 e^x x\right )}{x} \, dx+9 \int \left (\frac {1}{x^2}+\frac {1}{x}\right ) \, dx\\ &=-\frac {9}{x}+\frac {24-\log (4)}{2 x}+3 \log (x)-\frac {9 \log \left (2 e^x x\right )}{x}-\frac {3}{2} \int \frac {\log ^2\left (2 e^x x\right )}{x^2} \, dx+3 \int \frac {\log \left (2 e^x x\right )}{x} \, dx\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 49, normalized size = 1.75 \begin {gather*} \frac {12-6 x+6 x^2-\log (4)+6 x \log (x)-6 (2+x) \log \left (2 e^x x\right )+3 \log ^2\left (2 e^x x\right )}{2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(105\) vs.
\(2(25)=50\).
time = 0.46, size = 106, normalized size = 3.79
method | result | size |
norman | \(\frac {6+\frac {3 \ln \left (2 \,{\mathrm e}^{x} x \right )^{2}}{2}-6 \ln \left (2 \,{\mathrm e}^{x} x \right )-\ln \left (2\right )}{x}\) | \(29\) |
default | \(\frac {6-6 x^{2}-3 x^{3}+3 \ln \left (2 \,{\mathrm e}^{x} x \right )^{2}-3 x \ln \left (2 \,{\mathrm e}^{x} x \right )^{2}+6 x^{2} \ln \left (2 \,{\mathrm e}^{x} x \right )+6 \ln \left (2 \,{\mathrm e}^{x} x \right )}{2 x}-\frac {\ln \left (2\right )}{x}+\frac {3}{x}-\frac {9 \ln \left (2 \,{\mathrm e}^{x} x \right )}{x}+3 \ln \left (2 \,{\mathrm e}^{x} x \right ) \ln \left (x \right )-3 x \ln \left (x \right )+3 x -\frac {3 \ln \left (x \right )^{2}}{2}\) | \(106\) |
risch | \(\frac {3 \ln \left ({\mathrm e}^{x}\right )^{2}}{2 x}+\frac {3 \left (i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2}-i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{x}\right )-4+i \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )-i \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{3}+2 \ln \left (2\right )+2 \ln \left (x \right )\right ) \ln \left ({\mathrm e}^{x}\right )}{2 x}+\frac {48+24 \ln \left (2\right ) \ln \left (x \right )-56 \ln \left (2\right )+12 \ln \left (2\right )^{2}-48 \ln \left (x \right )+12 \ln \left (x \right )^{2}-12 i \ln \left (2\right ) \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{x}\right )-12 i \ln \left (x \right ) \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{x}\right )+12 i \ln \left (x \right ) \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )+12 i \ln \left (2\right ) \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2}+12 i \ln \left (2\right ) \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )+24 i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right ) \mathrm {csgn}\left (i {\mathrm e}^{x}\right )+12 i \ln \left (x \right ) \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2}+24 i \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{3}+6 \pi ^{2} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{5}+6 \pi ^{2} \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{5} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )-3 \pi ^{2} \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{4} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )^{2}-3 \pi ^{2} \mathrm {csgn}\left (i x \right )^{2} \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{4}-24 i \pi \,\mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2}-24 i \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )-12 \pi ^{2} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{4} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )-12 i \ln \left (x \right ) \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{3}-12 i \ln \left (2\right ) \pi \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{3}+6 \pi ^{2} \mathrm {csgn}\left (i x \right )^{2} \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{3} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )-3 \pi ^{2} \mathrm {csgn}\left (i x \right )^{2} \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{2} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )^{2}+6 \pi ^{2} \mathrm {csgn}\left (i x \right ) \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{3} \mathrm {csgn}\left (i {\mathrm e}^{x}\right )^{2}-3 \pi ^{2} \mathrm {csgn}\left (i x \,{\mathrm e}^{x}\right )^{6}}{8 x}\) | \(571\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 113 vs.
\(2 (23) = 46\).
time = 0.42, size = 113, normalized size = 4.04 \begin {gather*} 3 \, {\left (\frac {1}{x} - \log \left (x\right )\right )} \log \left (2 \, x e^{x}\right ) - 3 \, {\left (x + \log \left (x\right )\right )} \log \left (x\right ) + 3 \, \log \left (2 \, x e^{x}\right ) \log \left (x\right ) + \frac {3}{2} \, \log \left (x\right )^{2} + 3 \, x + \frac {3 \, \log \left (2 \, x e^{x}\right )^{2}}{2 \, x} + \frac {3 \, {\left (x \log \left (x\right )^{2} - 2 \, x^{2} + 2 \, {\left (x^{2} - x\right )} \log \left (x\right ) + 2\right )}}{2 \, x} - \frac {\log \left (2\right )}{x} - \frac {9 \, \log \left (2 \, x e^{x}\right )}{x} + \frac {3}{x} + 3 \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.37, size = 29, normalized size = 1.04 \begin {gather*} \frac {3 \, \log \left (2 \, x e^{x}\right )^{2} - 2 \, \log \left (2\right ) - 12 \, \log \left (2 \, x e^{x}\right ) + 12}{2 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 32, normalized size = 1.14 \begin {gather*} \frac {3 \log {\left (2 x e^{x} \right )}^{2}}{2 x} - \frac {6 \log {\left (2 x e^{x} \right )}}{x} - \frac {-6 + \log {\left (2 \right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.39, size = 45, normalized size = 1.61 \begin {gather*} \frac {3}{2} \, x + \frac {3 \, {\left (\log \left (2\right ) - 2\right )} \log \left (x\right )}{x} + \frac {3 \, \log \left (x\right )^{2}}{2 \, x} + \frac {3 \, \log \left (2\right )^{2} - 14 \, \log \left (2\right ) + 12}{2 \, x} + 3 \, \log \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.59, size = 27, normalized size = 0.96 \begin {gather*} -\frac {-\frac {3\,{\ln \left (2\,x\,{\mathrm {e}}^x\right )}^2}{2}+6\,\ln \left (2\,x\,{\mathrm {e}}^x\right )+\ln \left (2\right )-6}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________