Optimal. Leaf size=15 \[ \frac{3 x^2}{2}-4 x+4 \tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0291245, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 22, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.136, Rules used = {1594, 1802, 203} \[ \frac{3 x^2}{2}-4 x+4 \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1594
Rule 1802
Rule 203
Rubi steps
\begin{align*} \int \frac{3 x-4 x^2+3 x^3}{1+x^2} \, dx &=\int \frac{x \left (3-4 x+3 x^2\right )}{1+x^2} \, dx\\ &=\int \left (-4+3 x+\frac{4}{1+x^2}\right ) \, dx\\ &=-4 x+\frac{3 x^2}{2}+4 \int \frac{1}{1+x^2} \, dx\\ &=-4 x+\frac{3 x^2}{2}+4 \tan ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0048286, size = 15, normalized size = 1. \[ \frac{3 x^2}{2}-4 x+4 \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 14, normalized size = 0.9 \begin{align*} -4\,x+{\frac{3\,{x}^{2}}{2}}+4\,\arctan \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.52836, size = 18, normalized size = 1.2 \begin{align*} \frac{3}{2} \, x^{2} - 4 \, x + 4 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.50666, size = 39, normalized size = 2.6 \begin{align*} \frac{3}{2} \, x^{2} - 4 \, x + 4 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.084244, size = 14, normalized size = 0.93 \begin{align*} \frac{3 x^{2}}{2} - 4 x + 4 \operatorname{atan}{\left (x \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.15116, size = 18, normalized size = 1.2 \begin{align*} \frac{3}{2} \, x^{2} - 4 \, x + 4 \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]