Optimal. Leaf size=28 \[ \frac {1}{2} x \left (x+\log \left (\frac {1}{16} \left (-5+\left (e^2-x\right )^2\right )^2 x^2\right )\right ) \]
________________________________________________________________________________________
Rubi [A] time = 0.29, antiderivative size = 41, normalized size of antiderivative = 1.46, number of steps used = 14, number of rules used = 6, integrand size = 137, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.044, Rules used = {6688, 1657, 632, 31, 2523, 12} \begin {gather*} \frac {x^2}{2}+\frac {1}{2} x \log \left (\frac {1}{16} x^2 \left (-x^2+2 e^2 x-e^4+5\right )^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 31
Rule 632
Rule 1657
Rule 2523
Rule 6688
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \left (\frac {-5+e^4-\left (5+4 e^2-e^4\right ) x+\left (3-2 e^2\right ) x^2+x^3}{-5+e^4-2 e^2 x+x^2}+\frac {1}{2} \log \left (\frac {1}{16} x^2 \left (-5+e^4-2 e^2 x+x^2\right )^2\right )\right ) \, dx\\ &=\frac {1}{2} \int \log \left (\frac {1}{16} x^2 \left (-5+e^4-2 e^2 x+x^2\right )^2\right ) \, dx+\int \frac {-5+e^4-\left (5+4 e^2-e^4\right ) x+\left (3-2 e^2\right ) x^2+x^3}{-5+e^4-2 e^2 x+x^2} \, dx\\ &=\frac {1}{2} x \log \left (\frac {1}{16} x^2 \left (5-e^4+2 e^2 x-x^2\right )^2\right )-\frac {1}{2} \int \frac {2 \left (5-e^4+4 e^2 x-3 x^2\right )}{5-e^4+2 e^2 x-x^2} \, dx+\int \left (3+x-\frac {2 \left (-5+e^4-e^2 x\right )}{-5+e^4-2 e^2 x+x^2}\right ) \, dx\\ &=3 x+\frac {x^2}{2}+\frac {1}{2} x \log \left (\frac {1}{16} x^2 \left (5-e^4+2 e^2 x-x^2\right )^2\right )-2 \int \frac {-5+e^4-e^2 x}{-5+e^4-2 e^2 x+x^2} \, dx-\int \frac {5-e^4+4 e^2 x-3 x^2}{5-e^4+2 e^2 x-x^2} \, dx\\ &=3 x+\frac {x^2}{2}+\frac {1}{2} x \log \left (\frac {1}{16} x^2 \left (5-e^4+2 e^2 x-x^2\right )^2\right )-\left (-\sqrt {5}-e^2\right ) \int \frac {1}{-\sqrt {5}-e^2+x} \, dx-\left (\sqrt {5}-e^2\right ) \int \frac {1}{\sqrt {5}-e^2+x} \, dx-\int \left (3+\frac {2 \left (-5+e^4-e^2 x\right )}{5-e^4+2 e^2 x-x^2}\right ) \, dx\\ &=\frac {x^2}{2}+\left (\sqrt {5}+e^2\right ) \log \left (\sqrt {5}+e^2-x\right )-\left (\sqrt {5}-e^2\right ) \log \left (\sqrt {5}-e^2+x\right )+\frac {1}{2} x \log \left (\frac {1}{16} x^2 \left (5-e^4+2 e^2 x-x^2\right )^2\right )-2 \int \frac {-5+e^4-e^2 x}{5-e^4+2 e^2 x-x^2} \, dx\\ &=\frac {x^2}{2}+\left (\sqrt {5}+e^2\right ) \log \left (\sqrt {5}+e^2-x\right )-\left (\sqrt {5}-e^2\right ) \log \left (\sqrt {5}-e^2+x\right )+\frac {1}{2} x \log \left (\frac {1}{16} x^2 \left (5-e^4+2 e^2 x-x^2\right )^2\right )-\left (-\sqrt {5}-e^2\right ) \int \frac {1}{\sqrt {5}+e^2-x} \, dx-\left (\sqrt {5}-e^2\right ) \int \frac {1}{-\sqrt {5}+e^2-x} \, dx\\ &=\frac {x^2}{2}+\frac {1}{2} x \log \left (\frac {1}{16} x^2 \left (5-e^4+2 e^2 x-x^2\right )^2\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.08, size = 31, normalized size = 1.11 \begin {gather*} \frac {1}{2} x \left (x+\log \left (\frac {1}{16} x^2 \left (-5+e^4-2 e^2 x+x^2\right )^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 1.28, size = 68, normalized size = 2.43 \begin {gather*} \frac {1}{2} \, x^{2} + \frac {1}{2} \, x \log \left (\frac {1}{16} \, x^{6} - \frac {5}{8} \, x^{4} - \frac {1}{4} \, x^{3} e^{6} + \frac {1}{16} \, x^{2} e^{8} + \frac {25}{16} \, x^{2} + \frac {1}{8} \, {\left (3 \, x^{4} - 5 \, x^{2}\right )} e^{4} - \frac {1}{4} \, {\left (x^{5} - 5 \, x^{3}\right )} e^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.61, size = 68, normalized size = 2.43 \begin {gather*} \frac {1}{2} \, x^{2} + \frac {1}{2} \, x \log \left (\frac {1}{16} \, x^{6} - \frac {1}{4} \, x^{5} e^{2} + \frac {3}{8} \, x^{4} e^{4} - \frac {5}{8} \, x^{4} - \frac {1}{4} \, x^{3} e^{6} + \frac {5}{4} \, x^{3} e^{2} + \frac {1}{16} \, x^{2} e^{8} - \frac {5}{8} \, x^{2} e^{4} + \frac {25}{16} \, x^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.27, size = 71, normalized size = 2.54
method | result | size |
risch | \(\frac {x^{2}}{2}+\frac {x \ln \left (\frac {x^{2} {\mathrm e}^{8}}{16}-\frac {x^{3} {\mathrm e}^{6}}{4}+\frac {\left (6 x^{4}-10 x^{2}\right ) {\mathrm e}^{4}}{16}+\frac {\left (-4 x^{5}+20 x^{3}\right ) {\mathrm e}^{2}}{16}+\frac {x^{6}}{16}-\frac {5 x^{4}}{8}+\frac {25 x^{2}}{16}\right )}{2}\) | \(71\) |
norman | \(\frac {x^{2}}{2}+\frac {x \ln \left (\frac {x^{2} {\mathrm e}^{8}}{16}-\frac {x^{3} {\mathrm e}^{6}}{4}+\frac {\left (6 x^{4}-10 x^{2}\right ) {\mathrm e}^{4}}{16}+\frac {\left (-4 x^{5}+20 x^{3}\right ) {\mathrm e}^{2}}{16}+\frac {x^{6}}{16}-\frac {5 x^{4}}{8}+\frac {25 x^{2}}{16}\right )}{2}\) | \(77\) |
default | \(\frac {x^{2}}{2}-2 x \ln \relax (2)+\frac {x \ln \left (x^{2} {\mathrm e}^{8}-4 x^{3} {\mathrm e}^{6}+6 x^{4} {\mathrm e}^{4}-10 x^{2} {\mathrm e}^{4}-4 \,{\mathrm e}^{2} x^{5}+20 x^{3} {\mathrm e}^{2}+x^{6}-10 x^{4}+25 x^{2}\right )}{2}\) | \(79\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.55, size = 417, normalized size = 14.89 \begin {gather*} \frac {1}{10} \, \sqrt {5} {\left (e^{6} + 15 \, e^{2}\right )} \log \left (\frac {x - \sqrt {5} - e^{2}}{x + \sqrt {5} - e^{2}}\right ) + \frac {3}{10} \, \sqrt {5} {\left (e^{4} + 5\right )} \log \left (\frac {x - \sqrt {5} - e^{2}}{x + \sqrt {5} - e^{2}}\right ) + \frac {1}{10} \, \sqrt {5} e^{4} \log \left (\frac {x - \sqrt {5} - e^{2}}{x + \sqrt {5} - e^{2}}\right ) - \frac {1}{2} \, \sqrt {5} e^{2} \log \left (\frac {x - \sqrt {5} - e^{2}}{x + \sqrt {5} - e^{2}}\right ) + \frac {1}{2} \, x^{2} - x {\left (2 \, \log \relax (2) + 3\right )} + \frac {1}{10} \, {\left (\sqrt {5} e^{2} \log \left (\frac {x - \sqrt {5} - e^{2}}{x + \sqrt {5} - e^{2}}\right ) + 5 \, \log \left (x^{2} - 2 \, x e^{2} + e^{4} - 5\right )\right )} e^{4} - \frac {1}{5} \, {\left (\sqrt {5} {\left (e^{4} + 5\right )} \log \left (\frac {x - \sqrt {5} - e^{2}}{x + \sqrt {5} - e^{2}}\right ) + 10 \, e^{2} \log \left (x^{2} - 2 \, x e^{2} + e^{4} - 5\right ) + 10 \, x\right )} e^{2} - \frac {2}{5} \, {\left (\sqrt {5} e^{2} \log \left (\frac {x - \sqrt {5} - e^{2}}{x + \sqrt {5} - e^{2}}\right ) + 5 \, \log \left (x^{2} - 2 \, x e^{2} + e^{4} - 5\right )\right )} e^{2} + 2 \, x e^{2} + {\left (x - e^{2}\right )} \log \left (x^{2} - 2 \, x e^{2} + e^{4} - 5\right ) + \frac {1}{2} \, {\left (3 \, e^{4} + 5\right )} \log \left (x^{2} - 2 \, x e^{2} + e^{4} - 5\right ) + 3 \, e^{2} \log \left (x^{2} - 2 \, x e^{2} + e^{4} - 5\right ) + x \log \relax (x) - \frac {3}{2} \, \sqrt {5} \log \left (\frac {x - \sqrt {5} - e^{2}}{x + \sqrt {5} - e^{2}}\right ) + 3 \, x - \frac {5}{2} \, \log \left (x^{2} - 2 \, x e^{2} + e^{4} - 5\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 5.23, size = 66, normalized size = 2.36 \begin {gather*} \frac {x\,\left (x+\ln \left (\frac {{\mathrm {e}}^2\,\left (20\,x^3-4\,x^5\right )}{16}-\frac {{\mathrm {e}}^4\,\left (10\,x^2-6\,x^4\right )}{16}-\frac {x^3\,{\mathrm {e}}^6}{4}+\frac {x^2\,{\mathrm {e}}^8}{16}+\frac {25\,x^2}{16}-\frac {5\,x^4}{8}+\frac {x^6}{16}\right )\right )}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.31, size = 76, normalized size = 2.71 \begin {gather*} \frac {x^{2}}{2} + \frac {x \log {\left (\frac {x^{6}}{16} - \frac {5 x^{4}}{8} - \frac {x^{3} e^{6}}{4} + \frac {25 x^{2}}{16} + \frac {x^{2} e^{8}}{16} + \left (\frac {3 x^{4}}{8} - \frac {5 x^{2}}{8}\right ) e^{4} + \left (- \frac {x^{5}}{4} + \frac {5 x^{3}}{4}\right ) e^{2} \right )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________