Optimal. Leaf size=36 \[ -\frac{25 x}{8 \left (x^2+1\right )}-\frac{7 x}{4 \left (x^2+1\right )^2}-\frac{4}{x}-\frac{57}{8} \tan ^{-1}(x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0232351, antiderivative size = 36, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.222, Rules used = {1260, 456, 453, 203} \[ -\frac{25 x}{8 \left (x^2+1\right )}-\frac{7 x}{4 \left (x^2+1\right )^2}-\frac{4}{x}-\frac{57}{8} \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1260
Rule 456
Rule 453
Rule 203
Rubi steps
\begin{align*} \int \frac{4+3 x^4}{x^2 \left (1+x^2\right )^3} \, dx &=-\frac{7 x}{4 \left (1+x^2\right )^2}-\frac{1}{4} \int \frac{-16+9 x^2}{x^2 \left (1+x^2\right )^2} \, dx\\ &=-\frac{7 x}{4 \left (1+x^2\right )^2}-\frac{25 x}{8 \left (1+x^2\right )}+\frac{1}{8} \int \frac{32-25 x^2}{x^2 \left (1+x^2\right )} \, dx\\ &=-\frac{4}{x}-\frac{7 x}{4 \left (1+x^2\right )^2}-\frac{25 x}{8 \left (1+x^2\right )}-\frac{57}{8} \int \frac{1}{1+x^2} \, dx\\ &=-\frac{4}{x}-\frac{7 x}{4 \left (1+x^2\right )^2}-\frac{25 x}{8 \left (1+x^2\right )}-\frac{57}{8} \tan ^{-1}(x)\\ \end{align*}
Mathematica [A] time = 0.0160468, size = 33, normalized size = 0.92 \[ -\frac{57 x^4+103 x^2+32}{8 x \left (x^2+1\right )^2}-\frac{57}{8} \tan ^{-1}(x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.009, size = 29, normalized size = 0.8 \begin{align*} -{\frac{1}{ \left ({x}^{2}+1 \right ) ^{2}} \left ({\frac{25\,{x}^{3}}{8}}+{\frac{39\,x}{8}} \right ) }-{\frac{57\,\arctan \left ( x \right ) }{8}}-4\,{x}^{-1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.44727, size = 42, normalized size = 1.17 \begin{align*} -\frac{57 \, x^{4} + 103 \, x^{2} + 32}{8 \,{\left (x^{5} + 2 \, x^{3} + x\right )}} - \frac{57}{8} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.94532, size = 109, normalized size = 3.03 \begin{align*} -\frac{57 \, x^{4} + 103 \, x^{2} + 57 \,{\left (x^{5} + 2 \, x^{3} + x\right )} \arctan \left (x\right ) + 32}{8 \,{\left (x^{5} + 2 \, x^{3} + x\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.133365, size = 32, normalized size = 0.89 \begin{align*} - \frac{57 x^{4} + 103 x^{2} + 32}{8 x^{5} + 16 x^{3} + 8 x} - \frac{57 \operatorname{atan}{\left (x \right )}}{8} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.05531, size = 38, normalized size = 1.06 \begin{align*} -\frac{25 \, x^{3} + 39 \, x}{8 \,{\left (x^{2} + 1\right )}^{2}} - \frac{4}{x} - \frac{57}{8} \, \arctan \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]