3.9.100 \(\int \frac {\sqrt {1+\frac {2 x}{1+x^2}}}{1+x^2} \, dx\) [900]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.08, antiderivative size = 28, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {6855, 984, 651} \begin {gather*} -\frac {(1-x) \sqrt {\frac {2 x}{x^2+1}+1}}{x+1} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 651

Int[((d_) + (e_.)*(x_))/((a_) + (c_.)*(x_)^2)^(3/2), x_Symbol] :> Simp[((-a)*e + c*d*x)/(a*c*Sqrt[a + c*x^2]),
 x] /; FreeQ[{a, c, d, e}, x]

Rule 984

Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_)*((d_) + (f_.)*(x_)^2)^(q_.), x_Symbol] :> Dist[(a + b*x + c*x^2)^F
racPart[p]/((4*c)^IntPart[p]*(b + 2*c*x)^(2*FracPart[p])), Int[(b + 2*c*x)^(2*p)*(d + f*x^2)^q, x], x] /; Free
Q[{a, b, c, d, f, p, q}, x] && EqQ[b^2 - 4*a*c, 0] &&  !IntegerQ[p]

Rule 6855

Int[(u_.)*((a_.) + (b_.)*(v_)^(n_)*(x_)^(m_.))^(p_), x_Symbol] :> Dist[(a + b*x^m*v^n)^FracPart[p]/(v^(n*FracP
art[p])*(b*x^m + a/v^n)^FracPart[p]), Int[u*v^(n*p)*(b*x^m + a/v^n)^p, x], x] /; FreeQ[{a, b, m, p}, x] &&  !I
ntegerQ[p] && ILtQ[n, 0] && BinomialQ[v, x]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]
time = 0.09, size = 25, normalized size = 0.89 \begin {gather*} \frac {(-1+x) \sqrt {1+\frac {2 x}{1+x^2}}}{1+x} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

Maple [A]
time = 0.22, size = 28, normalized size = 1.00

method result size
risch \(\frac {\sqrt {\frac {\left (1+x \right )^{2}}{x^{2}+1}}\, \left (-1+x \right )}{1+x}\) \(25\)
gosper \(\frac {\left (-1+x \right ) \sqrt {\frac {x^{2}+2 x +1}{x^{2}+1}}}{1+x}\) \(28\)
default \(\frac {\left (-1+x \right ) \sqrt {\frac {x^{2}+2 x +1}{x^{2}+1}}}{1+x}\) \(28\)
trager \(\frac {\left (-1+x \right ) \sqrt {-\frac {-x^{2}-2 x -1}{x^{2}+1}}}{1+x}\) \(31\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((1+2*x/(x^2+1))^(1/2)/(x^2+1),x,method=_RETURNVERBOSE)

[Out]

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

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 31, normalized size = 1.11 \begin {gather*} \frac {{\left (x - 1\right )} \sqrt {\frac {x^{2} + 2 \, x + 1}{x^{2} + 1}} + x + 1}{x + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

((x - 1)*sqrt((x^2 + 2*x + 1)/(x^2 + 1)) + x + 1)/(x + 1)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {\frac {\left (x + 1\right )^{2}}{x^{2} + 1}}}{x^{2} + 1}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral(sqrt((x + 1)**2/(x**2 + 1))/(x**2 + 1), x)

________________________________________________________________________________________

Giac [A]
time = 5.22, size = 30, normalized size = 1.07 \begin {gather*} \sqrt {2} \mathrm {sgn}\left (x + 1\right ) + \frac {x \mathrm {sgn}\left (x + 1\right ) - \mathrm {sgn}\left (x + 1\right )}{\sqrt {x^{2} + 1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sqrt(2)*sgn(x + 1) + (x*sgn(x + 1) - sgn(x + 1))/sqrt(x^2 + 1)

________________________________________________________________________________________

Mupad [B]
time = 3.52, size = 23, normalized size = 0.82 \begin {gather*} \frac {\sqrt {\frac {2\,x}{x^2+1}+1}\,\left (x-1\right )}{x+1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________