Optimal. Leaf size=23 \[ (4+x) \left (2-\frac {x}{4 (4-e+x)}\right )+\log (\log (5)) \]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 24, normalized size of antiderivative = 1.04, number of steps used = 5, number of rules used = 4, integrand size = 47, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.085, Rules used = {1984, 27, 12, 683} \begin {gather*} \frac {7 x}{4}+\frac {(4-e) e}{4 (x-e+4)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 27
Rule 683
Rule 1984
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\int \frac {4 \left (28-15 e+2 e^2\right )+14 (4-e) x+7 x^2}{4 (4-e)^2+8 (4-e) x+4 x^2} \, dx\\ &=\int \frac {4 \left (28-15 e+2 e^2\right )+14 (4-e) x+7 x^2}{4 (-4+e-x)^2} \, dx\\ &=\frac {1}{4} \int \frac {4 \left (28-15 e+2 e^2\right )+14 (4-e) x+7 x^2}{(-4+e-x)^2} \, dx\\ &=\frac {1}{4} \int \left (7+\frac {(-4+e) e}{(-4+e-x)^2}\right ) \, dx\\ &=\frac {7 x}{4}+\frac {(4-e) e}{4 (4-e+x)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 26, normalized size = 1.13 \begin {gather*} \frac {1}{4} \left (\frac {(-4+e) e}{-4+e-x}+7 (4-e+x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.50, size = 33, normalized size = 1.43 \begin {gather*} \frac {7 \, x^{2} - {\left (7 \, x - 4\right )} e + 28 \, x - e^{2}}{4 \, {\left (x - e + 4\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.63, size = 28, normalized size = 1.22
method | result | size |
norman | \(\frac {-\frac {7 x^{2}}{4}+2 \,{\mathrm e}^{2}-15 \,{\mathrm e}+28}{{\mathrm e}-x -4}\) | \(28\) |
gosper | \(\frac {-7 x^{2}+112+8 \,{\mathrm e}^{2}-60 \,{\mathrm e}}{4 \,{\mathrm e}-4 x -16}\) | \(29\) |
risch | \(\frac {7 x}{4}+\frac {{\mathrm e}^{2}}{4 \,{\mathrm e}-4 x -16}-\frac {{\mathrm e}}{{\mathrm e}-x -4}\) | \(31\) |
meijerg | \(\frac {28 x}{\left (4-{\mathrm e}\right )^{2} \left (1+\frac {x}{4-{\mathrm e}}\right )}+\frac {\left (-14 \,{\mathrm e}+56\right ) \left (-\frac {x}{\left (1+\frac {x}{4-{\mathrm e}}\right ) \left (4-{\mathrm e}\right )}+\ln \left (1+\frac {x}{4-{\mathrm e}}\right )\right )}{4}+\frac {7 \left (4-{\mathrm e}\right ) \left (\frac {x \left (\frac {3 x}{4-{\mathrm e}}+6\right )}{3 \left (4-{\mathrm e}\right ) \left (1+\frac {x}{4-{\mathrm e}}\right )}-2 \ln \left (1+\frac {x}{4-{\mathrm e}}\right )\right )}{4}+\frac {2 \,{\mathrm e}^{2} x}{\left (4-{\mathrm e}\right )^{2} \left (1+\frac {x}{4-{\mathrm e}}\right )}-\frac {15 \,{\mathrm e} x}{\left (4-{\mathrm e}\right )^{2} \left (1+\frac {x}{4-{\mathrm e}}\right )}\) | \(190\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.36, size = 22, normalized size = 0.96 \begin {gather*} \frac {7}{4} \, x - \frac {e^{2} - 4 \, e}{4 \, {\left (x - e + 4\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.19, size = 21, normalized size = 0.91 \begin {gather*} \frac {7\,x}{4}+\frac {\mathrm {e}-\frac {{\mathrm {e}}^2}{4}}{x-\mathrm {e}+4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.21, size = 22, normalized size = 0.96 \begin {gather*} \frac {7 x}{4} + \frac {- e^{2} + 4 e}{4 x - 4 e + 16} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________