Optimal. Leaf size=23 \[ \left (-x+\log \left (-1+x+\frac {\left (2+e^4\right )^2 \log (5)}{x^2}\right )\right )^2 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.37, antiderivative size = 32, normalized size of antiderivative = 1.39, number of steps
used = 3, number of rules used = 3, integrand size = 144, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.021, Rules used = {6820, 12,
6818} \begin {gather*} \left (x-\log \left (-\frac {-x^3+x^2-\left (2+e^4\right )^2 \log (5)}{x^2}\right )\right )^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 6818
Rule 6820
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {2 \left (2 x^3-x^4-2 \left (2+e^4\right )^2 \log (5)-\left (2+e^4\right )^2 x \log (5)\right ) \left (x-\log \left (\frac {-x^2+x^3+\left (2+e^4\right )^2 \log (5)}{x^2}\right )\right )}{x \left (x^2-x^3-\left (2+e^4\right )^2 \log (5)\right )} \, dx\\ &=2 \int \frac {\left (2 x^3-x^4-2 \left (2+e^4\right )^2 \log (5)-\left (2+e^4\right )^2 x \log (5)\right ) \left (x-\log \left (\frac {-x^2+x^3+\left (2+e^4\right )^2 \log (5)}{x^2}\right )\right )}{x \left (x^2-x^3-\left (2+e^4\right )^2 \log (5)\right )} \, dx\\ &=\left (x-\log \left (-\frac {x^2-x^3-\left (2+e^4\right )^2 \log (5)}{x^2}\right )\right )^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 30, normalized size = 1.30 \begin {gather*} \left (x-\log \left (\frac {-x^2+x^3+\left (2+e^4\right )^2 \log (5)}{x^2}\right )\right )^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(63\) vs.
\(2(22)=44\).
time = 2.09, size = 64, normalized size = 2.78
method | result | size |
norman | \(x^{2}+\ln \left (\frac {\left ({\mathrm e}^{8}+4 \,{\mathrm e}^{4}+4\right ) \ln \left (5\right )+x^{3}-x^{2}}{x^{2}}\right )^{2}-2 x \ln \left (\frac {\left ({\mathrm e}^{8}+4 \,{\mathrm e}^{4}+4\right ) \ln \left (5\right )+x^{3}-x^{2}}{x^{2}}\right )\) | \(64\) |
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. 67 vs.
\(2 (22) = 44\).
time = 0.47, size = 67, normalized size = 2.91 \begin {gather*} x^{2} - 2 \, {\left (x + 2 \, \log \left (x\right )\right )} \log \left (x^{3} - x^{2} + {\left (e^{8} + 4 \, e^{4} + 4\right )} \log \left (5\right )\right ) + \log \left (x^{3} - x^{2} + {\left (e^{8} + 4 \, e^{4} + 4\right )} \log \left (5\right )\right )^{2} + 4 \, x \log \left (x\right ) + 4 \, \log \left (x\right )^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 59 vs.
\(2 (22) = 44\).
time = 0.37, size = 59, normalized size = 2.57 \begin {gather*} x^{2} - 2 \, x \log \left (\frac {x^{3} - x^{2} + {\left (e^{8} + 4 \, e^{4} + 4\right )} \log \left (5\right )}{x^{2}}\right ) + \log \left (\frac {x^{3} - x^{2} + {\left (e^{8} + 4 \, e^{4} + 4\right )} \log \left (5\right )}{x^{2}}\right )^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 58 vs.
\(2 (20) = 40\).
time = 0.14, size = 58, normalized size = 2.52 \begin {gather*} x^{2} - 2 x \log {\left (\frac {x^{3} - x^{2} + \left (4 + 4 e^{4} + e^{8}\right ) \log {\left (5 \right )}}{x^{2}} \right )} + \log {\left (\frac {x^{3} - x^{2} + \left (4 + 4 e^{4} + e^{8}\right ) \log {\left (5 \right )}}{x^{2}} \right )}^{2} \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. 72 vs.
\(2 (22) = 44\).
time = 0.53, size = 72, normalized size = 3.13 \begin {gather*} x^{2} - 2 \, x \log \left (x^{3} - x^{2} + e^{8} \log \left (5\right ) + 4 \, e^{4} \log \left (5\right ) + 4 \, \log \left (5\right )\right ) + 4 \, x \log \left (x\right ) - 4 \, \log \left (x^{3} - x^{2} + e^{8} \log \left (5\right ) + 4 \, e^{4} \log \left (5\right ) + 4 \, \log \left (5\right )\right ) \log \left (x\right ) + 4 \, \log \left (x\right )^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 10.41, size = 31, normalized size = 1.35 \begin {gather*} {\left (x-\ln \left (\frac {x^3-x^2+\ln \left (5\right )\,\left (4\,{\mathrm {e}}^4+{\mathrm {e}}^8+4\right )}{x^2}\right )\right )}^2 \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________