Optimal. Leaf size=26 \[ \frac {12 \left (1+e^2-e^x+e^{-3+2 x}\right ) \log (x)}{2+x} \]
________________________________________________________________________________________
Rubi [B] time = 2.22, antiderivative size = 81, normalized size of antiderivative = 3.12, number of steps used = 33, number of rules used = 11, integrand size = 94, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.117, Rules used = {1594, 27, 6742, 44, 36, 29, 31, 2314, 2178, 2197, 2554} \begin {gather*} -\frac {12 e^x \log (x)}{x+2}+\frac {12 e^{2 x-3} \log (x)}{x+2}-\frac {6 \left (1+e^2\right ) x \log (x)}{x+2}+6 e^2 \log (x)+6 \log (x)+6 \left (1+e^2\right ) \log (x+2)-6 e^2 \log (x+2)-6 \log (x+2) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 29
Rule 31
Rule 36
Rule 44
Rule 1594
Rule 2178
Rule 2197
Rule 2314
Rule 2554
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {24+e^x (-24-12 x)+12 x+e^2 (24+12 x)+e^{-3+2 x} (24+12 x)+\left (-12 x-12 e^2 x+e^x \left (-12 x-12 x^2\right )+e^{-3+2 x} \left (36 x+24 x^2\right )\right ) \log (x)}{x \left (4+4 x+x^2\right )} \, dx\\ &=\int \frac {24+e^x (-24-12 x)+12 x+e^2 (24+12 x)+e^{-3+2 x} (24+12 x)+\left (-12 x-12 e^2 x+e^x \left (-12 x-12 x^2\right )+e^{-3+2 x} \left (36 x+24 x^2\right )\right ) \log (x)}{x (2+x)^2} \, dx\\ &=\int \left (\frac {12}{(2+x)^2}+\frac {24}{x (2+x)^2}+\frac {12 e^2}{x (2+x)}-\frac {12 \left (1+e^2\right ) \log (x)}{(2+x)^2}-\frac {12 e^x \left (2+x+x \log (x)+x^2 \log (x)\right )}{x (2+x)^2}+\frac {12 e^{-3+2 x} \left (2+x+3 x \log (x)+2 x^2 \log (x)\right )}{x (2+x)^2}\right ) \, dx\\ &=-\frac {12}{2+x}-12 \int \frac {e^x \left (2+x+x \log (x)+x^2 \log (x)\right )}{x (2+x)^2} \, dx+12 \int \frac {e^{-3+2 x} \left (2+x+3 x \log (x)+2 x^2 \log (x)\right )}{x (2+x)^2} \, dx+24 \int \frac {1}{x (2+x)^2} \, dx+\left (12 e^2\right ) \int \frac {1}{x (2+x)} \, dx-\left (12 \left (1+e^2\right )\right ) \int \frac {\log (x)}{(2+x)^2} \, dx\\ &=-\frac {12}{2+x}-\frac {6 \left (1+e^2\right ) x \log (x)}{2+x}-12 \int \left (\frac {e^x}{x (2+x)}+\frac {e^x (1+x) \log (x)}{(2+x)^2}\right ) \, dx+12 \int \left (\frac {e^{-3+2 x}}{x (2+x)}+\frac {e^{-3+2 x} (3+2 x) \log (x)}{(2+x)^2}\right ) \, dx+24 \int \left (\frac {1}{4 x}-\frac {1}{2 (2+x)^2}-\frac {1}{4 (2+x)}\right ) \, dx+\left (6 e^2\right ) \int \frac {1}{x} \, dx-\left (6 e^2\right ) \int \frac {1}{2+x} \, dx+\left (6 \left (1+e^2\right )\right ) \int \frac {1}{2+x} \, dx\\ &=6 \log (x)+6 e^2 \log (x)-\frac {6 \left (1+e^2\right ) x \log (x)}{2+x}-6 \log (2+x)-6 e^2 \log (2+x)+6 \left (1+e^2\right ) \log (2+x)-12 \int \frac {e^x}{x (2+x)} \, dx+12 \int \frac {e^{-3+2 x}}{x (2+x)} \, dx-12 \int \frac {e^x (1+x) \log (x)}{(2+x)^2} \, dx+12 \int \frac {e^{-3+2 x} (3+2 x) \log (x)}{(2+x)^2} \, dx\\ &=6 \log (x)+6 e^2 \log (x)-\frac {12 e^x \log (x)}{2+x}+\frac {12 e^{-3+2 x} \log (x)}{2+x}-\frac {6 \left (1+e^2\right ) x \log (x)}{2+x}-6 \log (2+x)-6 e^2 \log (2+x)+6 \left (1+e^2\right ) \log (2+x)+12 \int \frac {e^x}{x (2+x)} \, dx-12 \int \frac {e^{-3+2 x}}{x (2+x)} \, dx-12 \int \left (\frac {e^x}{2 x}-\frac {e^x}{2 (2+x)}\right ) \, dx+12 \int \left (\frac {e^{-3+2 x}}{2 x}-\frac {e^{-3+2 x}}{2 (2+x)}\right ) \, dx\\ &=6 \log (x)+6 e^2 \log (x)-\frac {12 e^x \log (x)}{2+x}+\frac {12 e^{-3+2 x} \log (x)}{2+x}-\frac {6 \left (1+e^2\right ) x \log (x)}{2+x}-6 \log (2+x)-6 e^2 \log (2+x)+6 \left (1+e^2\right ) \log (2+x)-6 \int \frac {e^x}{x} \, dx+6 \int \frac {e^{-3+2 x}}{x} \, dx+6 \int \frac {e^x}{2+x} \, dx-6 \int \frac {e^{-3+2 x}}{2+x} \, dx+12 \int \left (\frac {e^x}{2 x}-\frac {e^x}{2 (2+x)}\right ) \, dx-12 \int \left (\frac {e^{-3+2 x}}{2 x}-\frac {e^{-3+2 x}}{2 (2+x)}\right ) \, dx\\ &=-6 \text {Ei}(x)+\frac {6 \text {Ei}(2 x)}{e^3}+\frac {6 \text {Ei}(2+x)}{e^2}-\frac {6 \text {Ei}(2 (2+x))}{e^7}+6 \log (x)+6 e^2 \log (x)-\frac {12 e^x \log (x)}{2+x}+\frac {12 e^{-3+2 x} \log (x)}{2+x}-\frac {6 \left (1+e^2\right ) x \log (x)}{2+x}-6 \log (2+x)-6 e^2 \log (2+x)+6 \left (1+e^2\right ) \log (2+x)+6 \int \frac {e^x}{x} \, dx-6 \int \frac {e^{-3+2 x}}{x} \, dx-6 \int \frac {e^x}{2+x} \, dx+6 \int \frac {e^{-3+2 x}}{2+x} \, dx\\ &=6 \log (x)+6 e^2 \log (x)-\frac {12 e^x \log (x)}{2+x}+\frac {12 e^{-3+2 x} \log (x)}{2+x}-\frac {6 \left (1+e^2\right ) x \log (x)}{2+x}-6 \log (2+x)-6 e^2 \log (2+x)+6 \left (1+e^2\right ) \log (2+x)\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.45, size = 31, normalized size = 1.19 \begin {gather*} \frac {12 \left (e^3+e^5+e^{2 x}-e^{3+x}\right ) \log (x)}{e^3 (2+x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.95, size = 26, normalized size = 1.00 \begin {gather*} \frac {12 \, {\left (e^{5} + e^{3} + e^{\left (2 \, x\right )} - e^{\left (x + 3\right )}\right )} e^{\left (-3\right )} \log \relax (x)}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.18, size = 39, normalized size = 1.50 \begin {gather*} \frac {12 \, {\left (e^{5} \log \relax (x) + e^{3} \log \relax (x) + e^{\left (2 \, x\right )} \log \relax (x) - e^{\left (x + 3\right )} \log \relax (x)\right )}}{x e^{3} + 2 \, e^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.12, size = 28, normalized size = 1.08
method | result | size |
risch | \(\frac {12 \left ({\mathrm e}^{2 x -5}-{\mathrm e}^{x -2}+{\mathrm e}^{-2}+1\right ) {\mathrm e}^{2} \ln \relax (x )}{2+x}\) | \(28\) |
default | \(\frac {-24 \,{\mathrm e}^{x} \ln \relax (x )-12 x \,{\mathrm e}^{x} \ln \relax (x )}{\left (2+x \right )^{2}}+\frac {24 \ln \relax (x ) {\mathrm e}^{2 x -3}+12 \ln \relax (x ) {\mathrm e}^{2 x -3} x}{\left (2+x \right )^{2}}+6 \,{\mathrm e}^{2} \ln \relax (x )+6 \ln \relax (x )-\frac {6 \ln \relax (x ) x}{2+x}-\frac {6 \,{\mathrm e}^{2} \ln \relax (x ) x}{2+x}\) | \(82\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.46, size = 95, normalized size = 3.65 \begin {gather*} 6 \, {\left (\frac {2}{x + 2} - \log \left (x + 2\right ) + \log \relax (x)\right )} e^{2} + 6 \, {\left (e^{2} + 1\right )} \log \left (x + 2\right ) - 6 \, {\left (e^{2} + 1\right )} \log \relax (x) + \frac {12 \, {\left ({\left (e^{5} + e^{3}\right )} \log \relax (x) + e^{\left (2 \, x\right )} \log \relax (x) - e^{\left (x + 3\right )} \log \relax (x)\right )}}{x e^{3} + 2 \, e^{3}} - \frac {12 \, e^{2}}{x + 2} - 6 \, \log \left (x + 2\right ) + 6 \, \log \relax (x) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.04 \begin {gather*} \int \frac {12\,x+{\mathrm {e}}^{2\,x-3}\,\left (12\,x+24\right )-{\mathrm {e}}^x\,\left (12\,x+24\right )-\ln \relax (x)\,\left (12\,x+12\,x\,{\mathrm {e}}^2-{\mathrm {e}}^{2\,x-3}\,\left (24\,x^2+36\,x\right )+{\mathrm {e}}^x\,\left (12\,x^2+12\,x\right )\right )+{\mathrm {e}}^2\,\left (12\,x+24\right )+24}{x^3+4\,x^2+4\,x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.49, size = 71, normalized size = 2.73 \begin {gather*} \frac {\left (12 x \log {\relax (x )} + 24 \log {\relax (x )}\right ) e^{2 x} + \left (- 12 x e^{3} \log {\relax (x )} - 24 e^{3} \log {\relax (x )}\right ) e^{x}}{x^{2} e^{3} + 4 x e^{3} + 4 e^{3}} + \frac {\left (12 + 12 e^{2}\right ) \log {\relax (x )}}{x + 2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________