3.222 \(\int \frac {1}{\sqrt {x} (-1+2 x)} \, dx\)

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

[Out]

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

________________________________________________________________________________________

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 = 13, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {63, 207} \[ -\sqrt {2} \tanh ^{-1}\left (\sqrt {2} \sqrt {x}\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

-(Sqrt[2]*ArcTanh[Sqrt[2]*Sqrt[x]])

Rule 63

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - (a*d)/b + (d*x^p)/b)^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 207

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.00, size = 19, normalized size = 1.00 \[ -\sqrt {2} \tanh ^{-1}\left (\sqrt {2} \sqrt {x}\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

-(Sqrt[2]*ArcTanh[Sqrt[2]*Sqrt[x]])

________________________________________________________________________________________

fricas [B]  time = 0.42, size = 28, normalized size = 1.47 \[ \frac {1}{2} \, \sqrt {2} \log \left (-\frac {2 \, \sqrt {2} \sqrt {x} - 2 \, x - 1}{2 \, x - 1}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*sqrt(2)*log(-(2*sqrt(2)*sqrt(x) - 2*x - 1)/(2*x - 1))

________________________________________________________________________________________

giac [B]  time = 1.27, size = 32, normalized size = 1.68 \[ -\frac {1}{2} \, \sqrt {2} \log \left (\frac {1}{2} \, \sqrt {2} + \sqrt {x}\right ) + \frac {1}{2} \, \sqrt {2} \log \left ({\left | -\frac {1}{2} \, \sqrt {2} + \sqrt {x} \right |}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*sqrt(2)*log(1/2*sqrt(2) + sqrt(x)) + 1/2*sqrt(2)*log(abs(-1/2*sqrt(2) + sqrt(x)))

________________________________________________________________________________________

maple [A]  time = 0.00, size = 14, normalized size = 0.74 \[ -\sqrt {2}\, \arctanh \left (\sqrt {2}\, \sqrt {x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [B]  time = 0.97, size = 28, normalized size = 1.47 \[ \frac {1}{2} \, \sqrt {2} \log \left (-\frac {\sqrt {2} - 2 \, \sqrt {x}}{\sqrt {2} + 2 \, \sqrt {x}}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.08, size = 13, normalized size = 0.68 \[ -\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2\,x}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

sympy [B]  time = 0.31, size = 39, normalized size = 2.05 \[ \frac {\sqrt {2} \log {\left (\sqrt {x} - \frac {\sqrt {2}}{2} \right )}}{2} - \frac {\sqrt {2} \log {\left (\sqrt {x} + \frac {\sqrt {2}}{2} \right )}}{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sqrt(2)*log(sqrt(x) - sqrt(2)/2)/2 - sqrt(2)*log(sqrt(x) + sqrt(2)/2)/2

________________________________________________________________________________________