Optimal. Leaf size=24 \[ \log \left (2-\frac {x \left (x+\log \left (-4+\left (2+e^2\right )^2 x\right )\right )}{\log (5)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.19, antiderivative size = 23, normalized size of antiderivative = 0.96, number of steps
used = 4, number of rules used = 3, integrand size = 158, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.019, Rules used = {6, 6820, 6816}
\begin {gather*} \log \left (x^2+x \log \left (\left (2+e^2\right )^2 x-4\right )-2 \log (5)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 6816
Rule 6820
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {-4 x+8 x^2+e^4 \left (x+2 x^2\right )+e^2 \left (4 x+8 x^2\right )+\left (-4+4 x+4 e^2 x+e^4 x\right ) \log \left (-4+4 x+4 e^2 x+e^4 x\right )}{-4 x^2+e^4 x^3+\left (4+4 e^2\right ) x^3+\left (8-8 x-8 e^2 x-2 e^4 x\right ) \log (5)+\left (-4 x+4 x^2+4 e^2 x^2+e^4 x^2\right ) \log \left (-4+4 x+4 e^2 x+e^4 x\right )} \, dx\\ &=\int \frac {-4 x+8 x^2+e^4 \left (x+2 x^2\right )+e^2 \left (4 x+8 x^2\right )+\left (-4+4 x+4 e^2 x+e^4 x\right ) \log \left (-4+4 x+4 e^2 x+e^4 x\right )}{-4 x^2+\left (4+4 e^2+e^4\right ) x^3+\left (8-8 x-8 e^2 x-2 e^4 x\right ) \log (5)+\left (-4 x+4 x^2+4 e^2 x^2+e^4 x^2\right ) \log \left (-4+4 x+4 e^2 x+e^4 x\right )} \, dx\\ &=\int \frac {-x \left (-4+8 x+e^4 (1+2 x)+e^2 (4+8 x)\right )-\left (-4+\left (2+e^2\right )^2 x\right ) \log \left (-4+\left (2+e^2\right )^2 x\right )}{\left (4-\left (2+e^2\right )^2 x\right ) \left (x^2-2 \log (5)+x \log \left (-4+\left (2+e^2\right )^2 x\right )\right )} \, dx\\ &=\log \left (x^2-2 \log (5)+x \log \left (-4+\left (2+e^2\right )^2 x\right )\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.04, size = 23, normalized size = 0.96 \begin {gather*} \log \left (x^2-2 \log (5)+x \log \left (-4+\left (2+e^2\right )^2 x\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(243\) vs.
\(2(23)=46\).
time = 2.00, size = 244, normalized size = 10.17
method | result | size |
norman | \(\ln \left (-\ln \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right ) x -x^{2}+2 \ln \left (5\right )\right )\) | \(32\) |
risch | \(\ln \left (x \right )+\ln \left (\ln \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right )-\frac {-x^{2}+2 \ln \left (5\right )}{x}\right )\) | \(36\) |
default | \(\ln \left (-2 \ln \left (5\right ) {\mathrm e}^{8}+\left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right ) {\mathrm e}^{4} \ln \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right )-16 \,{\mathrm e}^{6} \ln \left (5\right )+4 \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right ) {\mathrm e}^{2} \ln \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right )-48 \,{\mathrm e}^{4} \ln \left (5\right )+4 \,{\mathrm e}^{4} \ln \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right )+\left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right )^{2}+4 \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right ) \ln \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right )-64 \,{\mathrm e}^{2} \ln \left (5\right )+16 \,{\mathrm e}^{2} \ln \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right )+8 x \,{\mathrm e}^{4}+32 \,{\mathrm e}^{2} x +32 x -16-32 \ln \left (5\right )+16 \ln \left (x \,{\mathrm e}^{4}+4 \,{\mathrm e}^{2} x +4 x -4\right )\right )\) | \(244\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 31, normalized size = 1.29 \begin {gather*} \log \left (x\right ) + \log \left (\frac {x^{2} + x \log \left (x {\left (e^{4} + 4 \, e^{2} + 4\right )} - 4\right ) - 2 \, \log \left (5\right )}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 33, normalized size = 1.38 \begin {gather*} \log \left (x\right ) + \log \left (\frac {x^{2} + x \log \left (x e^{4} + 4 \, x e^{2} + 4 \, x - 4\right ) - 2 \, \log \left (5\right )}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.36, size = 32, normalized size = 1.33 \begin {gather*} \log {\left (x \right )} + \log {\left (\log {\left (4 x + 4 x e^{2} + x e^{4} - 4 \right )} + \frac {x^{2} - 2 \log {\left (5 \right )}}{x} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 29, normalized size = 1.21 \begin {gather*} \log \left (-x^{2} - x \log \left (x e^{4} + 4 \, x e^{2} + 4 \, x - 4\right ) + 2 \, \log \left (5\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.31, size = 33, normalized size = 1.38 \begin {gather*} \ln \left (\frac {x^2-\ln \left (25\right )+x\,\ln \left (4\,x+4\,x\,{\mathrm {e}}^2+x\,{\mathrm {e}}^4-4\right )}{x}\right )+\ln \left (x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________