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

Optimal. Leaf size=16 \[ \frac {1}{2 (x+1)}+\frac {1}{2} \tan ^{-1}(x) \]

[Out]

1/2/(1+x)+1/2*arctan(x)

________________________________________________________________________________________

Rubi [A]  time = 0.01, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {801, 203} \[ \frac {1}{2 (x+1)}+\frac {1}{2} \tan ^{-1}(x) \]

Antiderivative was successfully verified.

[In]

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

[Out]

1/(2*(1 + x)) + ArcTan[x]/2

Rule 203

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

Rule 801

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Int[ExpandIntegrand[(
(d + e*x)^m*(f + g*x))/(a + c*x^2), x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[c*d^2 + a*e^2, 0] && Integer
Q[m]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.01, size = 12, normalized size = 0.75 \[ \frac {1}{2} \left (\frac {1}{x+1}+\tan ^{-1}(x)\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

((1 + x)^(-1) + ArcTan[x])/2

________________________________________________________________________________________

fricas [A]  time = 0.73, size = 15, normalized size = 0.94 \[ \frac {{\left (x + 1\right )} \arctan \relax (x) + 1}{2 \, {\left (x + 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*((x + 1)*arctan(x) + 1)/(x + 1)

________________________________________________________________________________________

giac [B]  time = 0.26, size = 32, normalized size = 2.00 \[ -\frac {1}{8} \, \pi - \frac {1}{2} \, \pi \left \lfloor -\frac {\pi - 4 \, \arctan \relax (x)}{4 \, \pi } + \frac {1}{2} \right \rfloor + \frac {1}{2 \, {\left (x + 1\right )}} + \frac {1}{2} \, \arctan \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/8*pi - 1/2*pi*floor(-1/4*(pi - 4*arctan(x))/pi + 1/2) + 1/2/(x + 1) + 1/2*arctan(x)

________________________________________________________________________________________

maple [A]  time = 0.00, size = 13, normalized size = 0.81 \[ \frac {\arctan \relax (x )}{2}+\frac {1}{2 x +2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2/(x+1)+1/2*arctan(x)

________________________________________________________________________________________

maxima [A]  time = 1.79, size = 12, normalized size = 0.75 \[ \frac {1}{2 \, {\left (x + 1\right )}} + \frac {1}{2} \, \arctan \relax (x) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2/(x + 1) + 1/2*arctan(x)

________________________________________________________________________________________

mupad [B]  time = 2.22, size = 12, normalized size = 0.75 \[ \frac {\mathrm {atan}\relax (x)}{2}+\frac {1}{2\,\left (x+1\right )} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

atan(x)/2 + 1/(2*(x + 1))

________________________________________________________________________________________

sympy [A]  time = 0.11, size = 10, normalized size = 0.62 \[ \frac {\operatorname {atan}{\relax (x )}}{2} + \frac {1}{2 x + 2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

atan(x)/2 + 1/(2*x + 2)

________________________________________________________________________________________