Optimal. Leaf size=10 \[ \frac{1}{x^2+1}+\log (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0166967, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 16, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.125, Rules used = {1252, 894} \[ \frac{1}{x^2+1}+\log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1252
Rule 894
Rubi steps
\begin{align*} \int \frac{1+x^4}{x \left (1+x^2\right )^2} \, dx &=\frac{1}{2} \operatorname{Subst}\left (\int \frac{1+x^2}{x (1+x)^2} \, dx,x,x^2\right )\\ &=\frac{1}{2} \operatorname{Subst}\left (\int \left (\frac{1}{x}-\frac{2}{(1+x)^2}\right ) \, dx,x,x^2\right )\\ &=\frac{1}{1+x^2}+\log (x)\\ \end{align*}
Mathematica [A] time = 0.0064212, size = 10, normalized size = 1. \[ \frac{1}{x^2+1}+\log (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.005, size = 11, normalized size = 1.1 \begin{align*} \left ({x}^{2}+1 \right ) ^{-1}+\ln \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.925533, size = 19, normalized size = 1.9 \begin{align*} \frac{1}{x^{2} + 1} + \frac{1}{2} \, \log \left (x^{2}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.91779, size = 46, normalized size = 4.6 \begin{align*} \frac{{\left (x^{2} + 1\right )} \log \left (x\right ) + 1}{x^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.09167, size = 8, normalized size = 0.8 \begin{align*} \log{\left (x \right )} + \frac{1}{x^{2} + 1} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.06447, size = 19, normalized size = 1.9 \begin{align*} \frac{1}{x^{2} + 1} + \frac{1}{2} \, \log \left (x^{2}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]