3.344 \(\int \frac {x^2}{(1-x^2) (1+x^2)^2} \, dx\)

Optimal. Leaf size=19 \[ \frac {1}{4} \tanh ^{-1}(x)-\frac {x}{4 \left (x^2+1\right )} \]

[Out]

-1/4*x/(x^2+1)+1/4*arctanh(x)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 19, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {471, 206} \[ \frac {1}{4} \tanh ^{-1}(x)-\frac {x}{4 \left (x^2+1\right )} \]

Antiderivative was successfully verified.

[In]

Int[x^2/((1 - x^2)*(1 + x^2)^2),x]

[Out]

-x/(4*(1 + x^2)) + ArcTanh[x]/4

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 471

Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(e^(n -
1)*(e*x)^(m - n + 1)*(a + b*x^n)^(p + 1)*(c + d*x^n)^(q + 1))/(n*(b*c - a*d)*(p + 1)), x] - Dist[e^n/(n*(b*c -
 a*d)*(p + 1)), Int[(e*x)^(m - n)*(a + b*x^n)^(p + 1)*(c + d*x^n)^q*Simp[c*(m - n + 1) + d*(m + n*(p + q + 1)
+ 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, q}, x] && NeQ[b*c - a*d, 0] && IGtQ[n, 0] && LtQ[p, -1] && GeQ[n
, m - n + 1] && GtQ[m - n + 1, 0] && IntBinomialQ[a, b, c, d, e, m, n, p, q, x]

Rubi steps

\begin {align*} \int \frac {x^2}{\left (1-x^2\right ) \left (1+x^2\right )^2} \, dx &=-\frac {x}{4 \left (1+x^2\right )}+\frac {1}{4} \int \frac {1}{1-x^2} \, dx\\ &=-\frac {x}{4 \left (1+x^2\right )}+\frac {1}{4} \tanh ^{-1}(x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 27, normalized size = 1.42 \[ \frac {1}{8} \left (-\frac {2 x}{x^2+1}-\log (1-x)+\log (x+1)\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[x^2/((1 - x^2)*(1 + x^2)^2),x]

[Out]

((-2*x)/(1 + x^2) - Log[1 - x] + Log[1 + x])/8

________________________________________________________________________________________

fricas [B]  time = 0.48, size = 34, normalized size = 1.79 \[ \frac {{\left (x^{2} + 1\right )} \log \left (x + 1\right ) - {\left (x^{2} + 1\right )} \log \left (x - 1\right ) - 2 \, x}{8 \, {\left (x^{2} + 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(-x^2+1)/(x^2+1)^2,x, algorithm="fricas")

[Out]

1/8*((x^2 + 1)*log(x + 1) - (x^2 + 1)*log(x - 1) - 2*x)/(x^2 + 1)

________________________________________________________________________________________

giac [A]  time = 0.30, size = 30, normalized size = 1.58 \[ -\frac {1}{4 \, {\left (x + \frac {1}{x}\right )}} + \frac {1}{16} \, \log \left ({\left | x + \frac {1}{x} + 2 \right |}\right ) - \frac {1}{16} \, \log \left ({\left | x + \frac {1}{x} - 2 \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(-x^2+1)/(x^2+1)^2,x, algorithm="giac")

[Out]

-1/4/(x + 1/x) + 1/16*log(abs(x + 1/x + 2)) - 1/16*log(abs(x + 1/x - 2))

________________________________________________________________________________________

maple [A]  time = 0.01, size = 24, normalized size = 1.26 \[ -\frac {x}{4 \left (x^{2}+1\right )}-\frac {\ln \left (x -1\right )}{8}+\frac {\ln \left (x +1\right )}{8} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2/(-x^2+1)/(x^2+1)^2,x)

[Out]

-1/8*ln(x-1)-1/4/(x^2+1)*x+1/8*ln(x+1)

________________________________________________________________________________________

maxima [A]  time = 0.65, size = 23, normalized size = 1.21 \[ -\frac {x}{4 \, {\left (x^{2} + 1\right )}} + \frac {1}{8} \, \log \left (x + 1\right ) - \frac {1}{8} \, \log \left (x - 1\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^2/(-x^2+1)/(x^2+1)^2,x, algorithm="maxima")

[Out]

-1/4*x/(x^2 + 1) + 1/8*log(x + 1) - 1/8*log(x - 1)

________________________________________________________________________________________

mupad [B]  time = 2.14, size = 17, normalized size = 0.89 \[ \frac {\mathrm {atanh}\relax (x)}{4}-\frac {x}{4\,\left (x^2+1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(-x^2/((x^2 - 1)*(x^2 + 1)^2),x)

[Out]

atanh(x)/4 - x/(4*(x^2 + 1))

________________________________________________________________________________________

sympy [A]  time = 0.12, size = 20, normalized size = 1.05 \[ - \frac {x}{4 x^{2} + 4} - \frac {\log {\left (x - 1 \right )}}{8} + \frac {\log {\left (x + 1 \right )}}{8} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2/(-x**2+1)/(x**2+1)**2,x)

[Out]

-x/(4*x**2 + 4) - log(x - 1)/8 + log(x + 1)/8

________________________________________________________________________________________