Optimal. Leaf size=33 \[ \log \left (\frac {5 \left (4 x^2-\frac {x}{2+x}\right )}{\left (16+e^{4 x}\right ) (1-x)}\right ) \]
________________________________________________________________________________________
Rubi [A] time = 1.21, antiderivative size = 38, normalized size of antiderivative = 1.15, number of steps used = 10, number of rules used = 7, integrand size = 108, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {6741, 6742, 2282, 36, 29, 31, 628} \begin {gather*} \log \left (-4 x^2-8 x+1\right )-\log \left (e^{4 x}+16\right )-\log (1-x)+\log (x)-\log (x+2) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 29
Rule 31
Rule 36
Rule 628
Rule 2282
Rule 6741
Rule 6742
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {32-512 x-240 x^2+128 x^3+64 x^4+e^{4 x} \left (2-40 x+53 x^2+12 x^3-44 x^4-16 x^5\right )}{\left (16+e^{4 x}\right ) x \left (2-17 x-x^2+12 x^3+4 x^4\right )} \, dx\\ &=\int \left (\frac {64}{16+e^{4 x}}+\frac {2-40 x+53 x^2+12 x^3-44 x^4-16 x^5}{x \left (2-17 x-x^2+12 x^3+4 x^4\right )}\right ) \, dx\\ &=64 \int \frac {1}{16+e^{4 x}} \, dx+\int \frac {2-40 x+53 x^2+12 x^3-44 x^4-16 x^5}{x \left (2-17 x-x^2+12 x^3+4 x^4\right )} \, dx\\ &=16 \operatorname {Subst}\left (\int \frac {1}{x (16+x)} \, dx,x,e^{4 x}\right )+\int \left (-4+\frac {1}{-2-x}+\frac {1}{1-x}+\frac {1}{x}+\frac {8 (1+x)}{-1+8 x+4 x^2}\right ) \, dx\\ &=-4 x-\log (1-x)+\log (x)-\log (2+x)+8 \int \frac {1+x}{-1+8 x+4 x^2} \, dx+\operatorname {Subst}\left (\int \frac {1}{x} \, dx,x,e^{4 x}\right )-\operatorname {Subst}\left (\int \frac {1}{16+x} \, dx,x,e^{4 x}\right )\\ &=-\log \left (16+e^{4 x}\right )-\log (1-x)+\log (x)-\log (2+x)+\log \left (1-8 x-4 x^2\right )\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.05, size = 37, normalized size = 1.12 \begin {gather*} -\log \left (16+e^{4 x}\right )+\log (x)+\log \left (1-8 x-4 x^2\right )-\log \left (2-x-x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.59, size = 34, normalized size = 1.03 \begin {gather*} \log \left (4 \, x^{3} + 8 \, x^{2} - x\right ) - \log \left (x^{2} + x - 2\right ) - \log \left (e^{\left (4 \, x\right )} + 16\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.16, size = 32, normalized size = 0.97 \begin {gather*} \log \left (4 \, x^{2} + 8 \, x - 1\right ) - \log \left (x^{2} + x - 2\right ) + \log \relax (x) - \log \left (e^{\left (4 \, x\right )} + 16\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.23, size = 35, normalized size = 1.06
method | result | size |
risch | \(-\ln \left (x^{2}+x -2\right )+\ln \left (4 x^{3}+8 x^{2}-x \right )-\ln \left ({\mathrm e}^{4 x}+16\right )\) | \(35\) |
norman | \(-\ln \left (x -1\right )-\ln \left (2+x \right )-\ln \left ({\mathrm e}^{4 x}+16\right )+\ln \relax (x )+\ln \left (4 x^{2}+8 x -1\right )\) | \(36\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.50, size = 35, normalized size = 1.06 \begin {gather*} \log \left (4 \, x^{2} + 8 \, x - 1\right ) - \log \left (x + 2\right ) - \log \left (x - 1\right ) + \log \relax (x) - \log \left (e^{\left (4 \, x\right )} + 16\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.42, size = 32, normalized size = 0.97 \begin {gather*} \ln \left (x\,\left (4\,x^2+8\,x-1\right )\right )-\ln \left (x^2+x-2\right )-\ln \left ({\mathrm {e}}^{4\,x}+16\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.23, size = 29, normalized size = 0.88 \begin {gather*} - \log {\left (e^{4 x} + 16 \right )} - \log {\left (x^{2} + x - 2 \right )} + \log {\left (4 x^{3} + 8 x^{2} - x \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________