Optimal. Leaf size=24 \[ \frac {\left (\frac {e^2}{4}+x\right ) (2-x+\log (x))}{x^2 \log (2)} \]
________________________________________________________________________________________
Rubi [B] time = 0.07, antiderivative size = 90, normalized size of antiderivative = 3.75, number of steps used = 8, number of rules used = 5, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.147, Rules used = {12, 14, 37, 2334, 43} \begin {gather*} \frac {\left (2 x+e^2\right )^2 \log (x)}{4 e^2 x^2 \log (2)}+\frac {\left (\left (4-e^2\right ) x+3 e^2\right )^2}{24 e^2 x^2 \log (2)}+\frac {e^2}{8 x^2 \log (2)}-\frac {\log (x)}{e^2 \log (2)}+\frac {1}{x \log (2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 37
Rule 43
Rule 2334
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {\int \frac {e^2 (-3+x)-4 x+\left (-2 e^2-4 x\right ) \log (x)}{x^3} \, dx}{4 \log (2)}\\ &=\frac {\int \left (\frac {-3 e^2-\left (4-e^2\right ) x}{x^3}-\frac {2 \left (e^2+2 x\right ) \log (x)}{x^3}\right ) \, dx}{4 \log (2)}\\ &=\frac {\int \frac {-3 e^2-\left (4-e^2\right ) x}{x^3} \, dx}{4 \log (2)}-\frac {\int \frac {\left (e^2+2 x\right ) \log (x)}{x^3} \, dx}{2 \log (2)}\\ &=\frac {\left (3 e^2+\left (4-e^2\right ) x\right )^2}{24 e^2 x^2 \log (2)}+\frac {\left (e^2+2 x\right )^2 \log (x)}{4 e^2 x^2 \log (2)}+\frac {\int -\frac {\left (e^2+2 x\right )^2}{2 e^2 x^3} \, dx}{2 \log (2)}\\ &=\frac {\left (3 e^2+\left (4-e^2\right ) x\right )^2}{24 e^2 x^2 \log (2)}+\frac {\left (e^2+2 x\right )^2 \log (x)}{4 e^2 x^2 \log (2)}-\frac {\int \frac {\left (e^2+2 x\right )^2}{x^3} \, dx}{4 e^2 \log (2)}\\ &=\frac {\left (3 e^2+\left (4-e^2\right ) x\right )^2}{24 e^2 x^2 \log (2)}+\frac {\left (e^2+2 x\right )^2 \log (x)}{4 e^2 x^2 \log (2)}-\frac {\int \left (\frac {e^4}{x^3}+\frac {4 e^2}{x^2}+\frac {4}{x}\right ) \, dx}{4 e^2 \log (2)}\\ &=\frac {e^2}{8 x^2 \log (2)}+\frac {1}{x \log (2)}+\frac {\left (3 e^2+\left (4-e^2\right ) x\right )^2}{24 e^2 x^2 \log (2)}-\frac {\log (x)}{e^2 \log (2)}+\frac {\left (e^2+2 x\right )^2 \log (x)}{4 e^2 x^2 \log (2)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 43, normalized size = 1.79 \begin {gather*} \frac {\frac {2 e^2}{x^2}+\frac {8}{x}-\frac {e^2}{x}+\frac {e^2 \log (x)}{x^2}+\frac {4 \log (x)}{x}}{\log (16)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.01, size = 29, normalized size = 1.21 \begin {gather*} -\frac {{\left (x - 2\right )} e^{2} - {\left (4 \, x + e^{2}\right )} \log \relax (x) - 8 \, x}{4 \, x^{2} \log \relax (2)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.15, size = 32, normalized size = 1.33 \begin {gather*} -\frac {x e^{2} - 4 \, x \log \relax (x) - e^{2} \log \relax (x) - 8 \, x - 2 \, e^{2}}{4 \, x^{2} \log \relax (2)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 40, normalized size = 1.67
method | result | size |
risch | \(\frac {\left ({\mathrm e}^{2}+4 x \right ) \ln \relax (x )}{4 \ln \relax (2) x^{2}}-\frac {{\mathrm e}^{2} x -2 \,{\mathrm e}^{2}-8 x}{4 \ln \relax (2) x^{2}}\) | \(40\) |
norman | \(\frac {\frac {x \ln \relax (x )}{\ln \relax (2)}+\frac {{\mathrm e}^{2}}{2 \ln \relax (2)}-\frac {\left (-8+{\mathrm e}^{2}\right ) x}{4 \ln \relax (2)}+\frac {{\mathrm e}^{2} \ln \relax (x )}{4 \ln \relax (2)}}{x^{2}}\) | \(43\) |
default | \(\frac {-2 \,{\mathrm e}^{2} \left (-\frac {\ln \relax (x )}{2 x^{2}}-\frac {1}{4 x^{2}}\right )-\frac {{\mathrm e}^{2}}{x}+\frac {4 \ln \relax (x )}{x}+\frac {8}{x}+\frac {3 \,{\mathrm e}^{2}}{2 x^{2}}}{4 \ln \relax (2)}\) | \(51\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.43, size = 47, normalized size = 1.96 \begin {gather*} \frac {{\left (\frac {2 \, \log \relax (x)}{x^{2}} + \frac {1}{x^{2}}\right )} e^{2} - \frac {2 \, e^{2}}{x} + \frac {8 \, \log \relax (x)}{x} + \frac {16}{x} + \frac {3 \, e^{2}}{x^{2}}}{8 \, \log \relax (2)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 3.57, size = 34, normalized size = 1.42 \begin {gather*} \frac {x^2\,\left (\ln \relax (x)-\frac {{\mathrm {e}}^2}{4}+2\right )+x\,\left (\frac {{\mathrm {e}}^2}{2}+\frac {{\mathrm {e}}^2\,\ln \relax (x)}{4}\right )}{x^3\,\ln \relax (2)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.20, size = 37, normalized size = 1.54 \begin {gather*} \frac {\left (4 x + e^{2}\right ) \log {\relax (x )}}{4 x^{2} \log {\relax (2 )}} - \frac {x \left (-8 + e^{2}\right ) - 2 e^{2}}{4 x^{2} \log {\relax (2 )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________