Optimal. Leaf size=26 \[ -7-e^x-x+\frac {\left (\frac {1}{x^2}-x\right ) x}{2 \log (7)} \]
________________________________________________________________________________________
Rubi [A] time = 0.05, antiderivative size = 31, normalized size of antiderivative = 1.19, number of steps used = 6, number of rules used = 3, integrand size = 35, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.086, Rules used = {12, 14, 2194} \begin {gather*} -\frac {x^2}{2 \log (7)}-x-e^x+\frac {1}{2 x \log (7)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rule 2194
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {\int \frac {-1-2 x^3-2 x^2 \log (7)-2 e^x x^2 \log (7)}{x^2} \, dx}{2 \log (7)}\\ &=\frac {\int \left (-2 e^x \log (7)+\frac {-1-2 x^3-2 x^2 \log (7)}{x^2}\right ) \, dx}{2 \log (7)}\\ &=\frac {\int \frac {-1-2 x^3-2 x^2 \log (7)}{x^2} \, dx}{2 \log (7)}-\int e^x \, dx\\ &=-e^x+\frac {\int \left (-\frac {1}{x^2}-2 x-2 \log (7)\right ) \, dx}{2 \log (7)}\\ &=-e^x-x+\frac {1}{2 x \log (7)}-\frac {x^2}{2 \log (7)}\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 25, normalized size = 0.96 \begin {gather*} -\frac {-\frac {1}{x}+x^2+e^x \log (49)+x \log (49)}{\log (49)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.53, size = 28, normalized size = 1.08 \begin {gather*} -\frac {x^{3} + 2 \, x^{2} \log \relax (7) + 2 \, x e^{x} \log \relax (7) - 1}{2 \, x \log \relax (7)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 28, normalized size = 1.08 \begin {gather*} -\frac {x^{3} + 2 \, x^{2} \log \relax (7) + 2 \, x e^{x} \log \relax (7) - 1}{2 \, x \log \relax (7)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 27, normalized size = 1.04
method | result | size |
default | \(\frac {-x^{2}+\frac {1}{x}-2 \ln \relax (7) {\mathrm e}^{x}-2 x \ln \relax (7)}{2 \ln \relax (7)}\) | \(27\) |
risch | \(-\frac {x^{2}}{2 \ln \relax (7)}+\frac {1}{2 \ln \relax (7) x}-{\mathrm e}^{x}-x\) | \(27\) |
norman | \(\frac {-x^{2}+\frac {1}{2 \ln \relax (7)}-{\mathrm e}^{x} x -\frac {x^{3}}{2 \ln \relax (7)}}{x}\) | \(31\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.34, size = 26, normalized size = 1.00 \begin {gather*} -\frac {x^{2} + 2 \, x \log \relax (7) + 2 \, e^{x} \log \relax (7) - \frac {1}{x}}{2 \, \log \relax (7)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.19, size = 28, normalized size = 1.08 \begin {gather*} -\frac {2\,x^2\,\ln \relax (7)+x^3+2\,x\,{\mathrm {e}}^x\,\ln \relax (7)-1}{2\,x\,\ln \relax (7)} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 20, normalized size = 0.77 \begin {gather*} \frac {- x^{2} - 2 x \log {\relax (7 )} + \frac {1}{x}}{2 \log {\relax (7 )}} - e^{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________