Optimal. Leaf size=25 \[ -e^x-\frac {4}{6+e^x+\log (2)}+\log ^2(x)+\log (2 x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 1.65, antiderivative size = 29, normalized size of antiderivative = 1.16, number of steps
used = 14, number of rules used = 10, integrand size = 128, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.078, Rules used = {6, 6873,
6874, 2225, 2320, 36, 29, 31, 46, 2338} \begin {gather*} -e^x+\frac {1}{4} (2 \log (x)+1)^2-\frac {4}{e^x+6+\log (2)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 29
Rule 31
Rule 36
Rule 46
Rule 2225
Rule 2320
Rule 2338
Rule 6873
Rule 6874
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {36-e^{3 x} x+12 \log (2)+\log ^2(2)+e^{2 x} (1-12 x-2 x \log (2))+e^x \left (12-32 x+(2-12 x) \log (2)-x \log ^2(2)\right )+\left (72+2 e^{2 x}+24 \log (2)+2 \log ^2(2)+e^x (24+4 \log (2))\right ) \log (x)}{e^{2 x} x+x \log ^2(2)+x (36+12 \log (2))+e^x (12 x+2 x \log (2))} \, dx\\ &=\int \frac {36-e^{3 x} x+12 \log (2)+\log ^2(2)+e^{2 x} (1-12 x-2 x \log (2))+e^x \left (12-32 x+(2-12 x) \log (2)-x \log ^2(2)\right )+\left (72+2 e^{2 x}+24 \log (2)+2 \log ^2(2)+e^x (24+4 \log (2))\right ) \log (x)}{e^{2 x} x+e^x (12 x+2 x \log (2))+x \left (36+12 \log (2)+\log ^2(2)\right )} \, dx\\ &=\int \frac {-e^{3 x} x+e^{2 x} (1-12 x-2 x \log (2))+e^x \left (12-32 x+(2-12 x) \log (2)-x \log ^2(2)\right )+36 \left (1+\frac {1}{36} \log (2) (12+\log (2))\right )+\left (72+2 e^{2 x}+24 \log (2)+2 \log ^2(2)+e^x (24+4 \log (2))\right ) \log (x)}{x \left (e^x+6 \left (1+\frac {\log (2)}{6}\right )\right )^2} \, dx\\ &=\int \left (-e^x+\frac {4}{e^x+6 \left (1+\frac {\log (2)}{6}\right )}+\frac {4 (-6-\log (2))}{\left (e^x+6 \left (1+\frac {\log (2)}{6}\right )\right )^2}+\frac {1+2 \log (x)}{x}\right ) \, dx\\ &=4 \int \frac {1}{e^x+6 \left (1+\frac {\log (2)}{6}\right )} \, dx-(4 (6+\log (2))) \int \frac {1}{\left (e^x+6 \left (1+\frac {\log (2)}{6}\right )\right )^2} \, dx-\int e^x \, dx+\int \frac {1+2 \log (x)}{x} \, dx\\ &=-e^x+\frac {1}{4} (1+2 \log (x))^2+4 \text {Subst}\left (\int \frac {1}{x (6+x+\log (2))} \, dx,x,e^x\right )-(4 (6+\log (2))) \text {Subst}\left (\int \frac {1}{x (6+x+\log (2))^2} \, dx,x,e^x\right )\\ &=-e^x+\frac {1}{4} (1+2 \log (x))^2+\frac {4 \text {Subst}\left (\int \frac {1}{x} \, dx,x,e^x\right )}{6+\log (2)}-\frac {4 \text {Subst}\left (\int \frac {1}{6+x+\log (2)} \, dx,x,e^x\right )}{6+\log (2)}-(4 (6+\log (2))) \text {Subst}\left (\int \left (\frac {1}{x (6+\log (2))^2}-\frac {1}{(6+\log (2)) (6+x+\log (2))^2}-\frac {1}{(6+\log (2))^2 (6+x+\log (2))}\right ) \, dx,x,e^x\right )\\ &=-e^x-\frac {4}{6+e^x+\log (2)}+\frac {1}{4} (1+2 \log (x))^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [F]
time = 0.86, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {36-e^{3 x} x+12 \log (2)+\log ^2(2)+e^{2 x} (1-12 x-2 x \log (2))+e^x \left (12-32 x+(2-12 x) \log (2)-x \log ^2(2)\right )+\left (72+2 e^{2 x}+24 \log (2)+2 \log ^2(2)+e^x (24+4 \log (2))\right ) \log (x)}{36 x+e^{2 x} x+12 x \log (2)+x \log ^2(2)+e^x (12 x+2 x \log (2))} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.50, size = 47, normalized size = 1.88
method | result | size |
risch | \(\ln \left (x \right )^{2}+\frac {\ln \left (2\right ) \ln \left (x \right )+{\mathrm e}^{x} \ln \left (x \right )-{\mathrm e}^{x} \ln \left (2\right )-{\mathrm e}^{2 x}+6 \ln \left (x \right )-6 \,{\mathrm e}^{x}-4}{6+\ln \left (2\right )+{\mathrm e}^{x}}\) | \(47\) |
norman | \(\frac {\left (\ln \left (2\right )+6\right ) \ln \left (x \right )^{2}+\left (\ln \left (2\right )+6\right ) \ln \left (x \right )+{\mathrm e}^{x} \ln \left (x \right )^{2}+{\mathrm e}^{x} \ln \left (x \right )-{\mathrm e}^{2 x}+\ln \left (2\right )^{2}+12 \ln \left (2\right )+32}{6+\ln \left (2\right )+{\mathrm e}^{x}}\) | \(54\) |
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. 48 vs.
\(2 (23) = 46\).
time = 0.54, size = 48, normalized size = 1.92 \begin {gather*} \frac {{\left (\log \left (2\right ) + 6\right )} \log \left (x\right )^{2} + {\left (\log \left (x\right )^{2} - \log \left (2\right ) + \log \left (x\right ) - 6\right )} e^{x} + {\left (\log \left (2\right ) + 6\right )} \log \left (x\right ) - e^{\left (2 \, x\right )} - 4}{e^{x} + \log \left (2\right ) + 6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 45, normalized size = 1.80 \begin {gather*} \frac {{\left (e^{x} + \log \left (2\right ) + 6\right )} \log \left (x\right )^{2} - {\left (\log \left (2\right ) + 6\right )} e^{x} + {\left (e^{x} + \log \left (2\right ) + 6\right )} \log \left (x\right ) - e^{\left (2 \, x\right )} - 4}{e^{x} + \log \left (2\right ) + 6} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.12, size = 20, normalized size = 0.80 \begin {gather*} - e^{x} + \log {\left (x \right )}^{2} + \log {\left (x \right )} - \frac {4}{e^{x} + \log {\left (2 \right )} + 6} \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. 61 vs.
\(2 (23) = 46\).
time = 0.39, size = 61, normalized size = 2.44 \begin {gather*} \frac {e^{x} \log \left (x\right )^{2} + \log \left (2\right ) \log \left (x\right )^{2} - e^{x} \log \left (2\right ) + e^{x} \log \left (x\right ) + \log \left (2\right ) \log \left (x\right ) + 6 \, \log \left (x\right )^{2} - e^{\left (2 \, x\right )} - 6 \, e^{x} + 6 \, \log \left (x\right ) - 4}{e^{x} + \log \left (2\right ) + 6} \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\,\ln \left (2\right )-x\,{\mathrm {e}}^{3\,x}-{\mathrm {e}}^{2\,x}\,\left (12\,x+2\,x\,\ln \left (2\right )-1\right )-{\mathrm {e}}^x\,\left (32\,x+\ln \left (2\right )\,\left (12\,x-2\right )+x\,{\ln \left (2\right )}^2-12\right )+\ln \left (x\right )\,\left (2\,{\mathrm {e}}^{2\,x}+24\,\ln \left (2\right )+{\mathrm {e}}^x\,\left (4\,\ln \left (2\right )+24\right )+2\,{\ln \left (2\right )}^2+72\right )+{\ln \left (2\right )}^2+36}{36\,x+x\,{\mathrm {e}}^{2\,x}+12\,x\,\ln \left (2\right )+x\,{\ln \left (2\right )}^2+{\mathrm {e}}^x\,\left (12\,x+2\,x\,\ln \left (2\right )\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________