Optimal. Leaf size=18 \[ \frac{1}{x+1}+\log (x+1)+\frac{1}{2} \tan ^{-1}(x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.150804, antiderivative size = 18, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 3, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.115, Rules used = {6725, 43, 4884} \[ \frac{1}{x+1}+\log (x+1)+\frac{1}{2} \tan ^{-1}(x)^2 \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6725
Rule 43
Rule 4884
Rubi steps
\begin{align*} \int \frac{x+x^3+(1+x)^2 \tan ^{-1}(x)}{(1+x)^2 \left (1+x^2\right )} \, dx &=\int \left (\frac{x}{(1+x)^2}+\frac{\tan ^{-1}(x)}{1+x^2}\right ) \, dx\\ &=\int \frac{x}{(1+x)^2} \, dx+\int \frac{\tan ^{-1}(x)}{1+x^2} \, dx\\ &=\frac{1}{2} \tan ^{-1}(x)^2+\int \left (-\frac{1}{(1+x)^2}+\frac{1}{1+x}\right ) \, dx\\ &=\frac{1}{1+x}+\frac{1}{2} \tan ^{-1}(x)^2+\log (1+x)\\ \end{align*}
Mathematica [A] time = 0.030539, size = 18, normalized size = 1. \[ \frac{1}{x+1}+\log (x+1)+\frac{1}{2} \tan ^{-1}(x)^2 \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.045, size = 17, normalized size = 0.9 \begin{align*} \left ( x+1 \right ) ^{-1}+{\frac{ \left ( \arctan \left ( x \right ) \right ) ^{2}}{2}}+\ln \left ( x+1 \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.91213, size = 22, normalized size = 1.22 \begin{align*} \frac{1}{2} \, \arctan \left (x\right )^{2} + \frac{1}{x + 1} + \log \left (x + 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.80419, size = 84, normalized size = 4.67 \begin{align*} \frac{{\left (x + 1\right )} \arctan \left (x\right )^{2} + 2 \,{\left (x + 1\right )} \log \left (x + 1\right ) + 2}{2 \,{\left (x + 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.856435, size = 53, normalized size = 2.94 \begin{align*} \frac{2 x \log{\left (x + 1 \right )}}{2 x + 2} + \frac{x \operatorname{atan}^{2}{\left (x \right )}}{2 x + 2} + \frac{2 \log{\left (x + 1 \right )}}{2 x + 2} + \frac{\operatorname{atan}^{2}{\left (x \right )}}{2 x + 2} + \frac{2}{2 x + 2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.13125, size = 45, normalized size = 2.5 \begin{align*} \frac{1}{2} \, \arctan \left (-{\left (x + 1\right )}{\left (\frac{1}{x + 1} - 1\right )}\right )^{2} + \frac{1}{x + 1} - \log \left (-\frac{1}{x + 1}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]