Optimal. Leaf size=10 \[ x+\log \left ((x-1)^2+1\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0112678, antiderivative size = 10, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 3, integrand size = 13, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.231, Rules used = {371, 702, 260} \[ x+\log \left ((x-1)^2+1\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 371
Rule 702
Rule 260
Rubi steps
\begin{align*} \int \frac{x^2}{1+(-1+x)^2} \, dx &=\operatorname{Subst}\left (\int \frac{(1+x)^2}{1+x^2} \, dx,x,-1+x\right )\\ &=\operatorname{Subst}\left (\int \left (1+\frac{2 x}{1+x^2}\right ) \, dx,x,-1+x\right )\\ &=x+2 \operatorname{Subst}\left (\int \frac{x}{1+x^2} \, dx,x,-1+x\right )\\ &=x+\log \left (1+(-1+x)^2\right )\\ \end{align*}
Mathematica [A] time = 0.0062418, size = 11, normalized size = 1.1 \[ \log \left (x^2-2 x+2\right )+x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.002, size = 12, normalized size = 1.2 \begin{align*} x+\ln \left ({x}^{2}-2\,x+2 \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.1136, size = 15, normalized size = 1.5 \begin{align*} x + \log \left (x^{2} - 2 \, x + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.64335, size = 32, normalized size = 3.2 \begin{align*} x + \log \left (x^{2} - 2 \, x + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.081725, size = 10, normalized size = 1. \begin{align*} x + \log{\left (x^{2} - 2 x + 2 \right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13048, size = 15, normalized size = 1.5 \begin{align*} x + \log \left (x^{2} - 2 \, x + 2\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]