Optimal. Leaf size=26 \[ 5-e^2+x-x^2+\frac {-2+\frac {x^2}{2}}{x} \]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 16, normalized size of antiderivative = 0.62, number of steps used = 3, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {12, 14} \begin {gather*} -x^2+\frac {3 x}{2}-\frac {2}{x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 14
Rubi steps
\begin {gather*} \begin {aligned} \text {integral} &=\frac {1}{2} \int \frac {4+3 x^2-4 x^3}{x^2} \, dx\\ &=\frac {1}{2} \int \left (3+\frac {4}{x^2}-4 x\right ) \, dx\\ &=-\frac {2}{x}+\frac {3 x}{2}-x^2\\ \end {aligned} \end {gather*}
________________________________________________________________________________________
Mathematica [A] time = 0.00, size = 16, normalized size = 0.62 \begin {gather*} -\frac {2}{x}+\frac {3 x}{2}-x^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.09, size = 17, normalized size = 0.65 \begin {gather*} -\frac {2 \, x^{3} - 3 \, x^{2} + 4}{2 \, x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.23, size = 14, normalized size = 0.54 \begin {gather*} -x^{2} + \frac {3}{2} \, x - \frac {2}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 15, normalized size = 0.58
method | result | size |
default | \(\frac {3 x}{2}-x^{2}-\frac {2}{x}\) | \(15\) |
risch | \(\frac {3 x}{2}-x^{2}-\frac {2}{x}\) | \(15\) |
norman | \(\frac {-2+\frac {3}{2} x^{2}-x^{3}}{x}\) | \(17\) |
gosper | \(-\frac {2 x^{3}-3 x^{2}+4}{2 x}\) | \(18\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 14, normalized size = 0.54 \begin {gather*} -x^{2} + \frac {3}{2} \, x - \frac {2}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.03, size = 15, normalized size = 0.58 \begin {gather*} -\frac {x^3-\frac {3\,x^2}{2}+2}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.06, size = 10, normalized size = 0.38 \begin {gather*} - x^{2} + \frac {3 x}{2} - \frac {2}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________