Optimal. Leaf size=27 \[ \frac {x+1}{2 \left (1-(x+1)^2\right )}+\frac {1}{2} \tanh ^{-1}(x+1) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.01, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {247, 199, 206} \[ \frac {x+1}{2 \left (1-(x+1)^2\right )}+\frac {1}{2} \tanh ^{-1}(x+1) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 199
Rule 206
Rule 247
Rubi steps
\begin {align*} \int \frac {1}{\left (1-(1+x)^2\right )^2} \, dx &=\operatorname {Subst}\left (\int \frac {1}{\left (1-x^2\right )^2} \, dx,x,1+x\right )\\ &=\frac {1+x}{2 \left (1-(1+x)^2\right )}+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,1+x\right )\\ &=\frac {1+x}{2 \left (1-(1+x)^2\right )}+\frac {1}{2} \tanh ^{-1}(1+x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 26, normalized size = 0.96 \[ \frac {1}{4} \left (-\frac {2 (x+1)}{x (x+2)}-\log (x)+\log (x+2)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.79, size = 39, normalized size = 1.44 \[ \frac {{\left (x^{2} + 2 \, x\right )} \log \left (x + 2\right ) - {\left (x^{2} + 2 \, x\right )} \log \relax (x) - 2 \, x - 2}{4 \, {\left (x^{2} + 2 \, x\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.33, size = 27, normalized size = 1.00 \[ -\frac {x + 1}{2 \, {\left (x^{2} + 2 \, x\right )}} + \frac {1}{4} \, \log \left ({\left | x + 2 \right |}\right ) - \frac {1}{4} \, \log \left ({\left | x \right |}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 24, normalized size = 0.89 \[ -\frac {\ln \relax (x )}{4}+\frac {\ln \left (x +2\right )}{4}-\frac {1}{4 x}-\frac {1}{4 \left (x +2\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.65, size = 25, normalized size = 0.93 \[ -\frac {x + 1}{2 \, {\left (x^{2} + 2 \, x\right )}} + \frac {1}{4} \, \log \left (x + 2\right ) - \frac {1}{4} \, \log \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.07, size = 23, normalized size = 0.85 \[ \frac {\mathrm {atanh}\left (x+1\right )}{2}-\frac {x+1}{2\,\left ({\left (x+1\right )}^2-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.12, size = 24, normalized size = 0.89 \[ \frac {- x - 1}{2 x^{2} + 4 x} - \frac {\log {\relax (x )}}{4} + \frac {\log {\left (x + 2 \right )}}{4} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________