3.112 \(\int \frac{\log (-1+4 x+4 \sqrt{(-1+x) x})}{x^{5/2}} \, dx\)

Optimal. Leaf size=151 \[ \frac{4 \sqrt{x^2-x}}{3 x^{3/2}}-\frac{2 \log \left (4 \sqrt{x^2-x}+4 x-1\right )}{3 x^{3/2}}+\frac{32 \sqrt{2} \sqrt{x^2-x} \tan ^{-1}\left (\frac{2}{3} \sqrt{2} \sqrt{x-1}\right )}{3 \sqrt{x-1} \sqrt{x}}+\frac{44}{3} \tan ^{-1}\left (\frac{\sqrt{x}}{\sqrt{x^2-x}}\right )-\frac{16}{3 \sqrt{x}}-\frac{32}{3} \sqrt{2} \tan ^{-1}\left (2 \sqrt{2} \sqrt{x}\right ) \]

[Out]

-16/(3*Sqrt[x]) + (4*Sqrt[-x + x^2])/(3*x^(3/2)) + (32*Sqrt[2]*Sqrt[-x + x^2]*ArcTan[(2*Sqrt[2]*Sqrt[-1 + x])/
3])/(3*Sqrt[-1 + x]*Sqrt[x]) - (32*Sqrt[2]*ArcTan[2*Sqrt[2]*Sqrt[x]])/3 + (44*ArcTan[Sqrt[x]/Sqrt[-x + x^2]])/
3 - (2*Log[-1 + 4*x + 4*Sqrt[-x + x^2]])/(3*x^(3/2))

________________________________________________________________________________________

Rubi [A]  time = 0.478361, antiderivative size = 151, normalized size of antiderivative = 1., number of steps used = 18, number of rules used = 13, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.565, Rules used = {2537, 2535, 6733, 6742, 203, 1588, 2020, 2008, 2021, 1146, 444, 50, 63} \[ \frac{4 \sqrt{x^2-x}}{3 x^{3/2}}-\frac{2 \log \left (4 \sqrt{x^2-x}+4 x-1\right )}{3 x^{3/2}}+\frac{32 \sqrt{2} \sqrt{x^2-x} \tan ^{-1}\left (\frac{2}{3} \sqrt{2} \sqrt{x-1}\right )}{3 \sqrt{x-1} \sqrt{x}}+\frac{44}{3} \tan ^{-1}\left (\frac{\sqrt{x}}{\sqrt{x^2-x}}\right )-\frac{16}{3 \sqrt{x}}-\frac{32}{3} \sqrt{2} \tan ^{-1}\left (2 \sqrt{2} \sqrt{x}\right ) \]

Antiderivative was successfully verified.

[In]

Int[Log[-1 + 4*x + 4*Sqrt[(-1 + x)*x]]/x^(5/2),x]

[Out]

-16/(3*Sqrt[x]) + (4*Sqrt[-x + x^2])/(3*x^(3/2)) + (32*Sqrt[2]*Sqrt[-x + x^2]*ArcTan[(2*Sqrt[2]*Sqrt[-1 + x])/
3])/(3*Sqrt[-1 + x]*Sqrt[x]) - (32*Sqrt[2]*ArcTan[2*Sqrt[2]*Sqrt[x]])/3 + (44*ArcTan[Sqrt[x]/Sqrt[-x + x^2]])/
3 - (2*Log[-1 + 4*x + 4*Sqrt[-x + x^2]])/(3*x^(3/2))

Rule 2537

Int[Log[(d_.) + (f_.)*Sqrt[u_] + (e_.)*(x_)]*(v_.), x_Symbol] :> Int[v*Log[d + e*x + f*Sqrt[ExpandToSum[u, x]]
], x] /; FreeQ[{d, e, f}, x] && QuadraticQ[u, x] &&  !QuadraticMatchQ[u, x] && (EqQ[v, 1] || MatchQ[v, ((g_.)*
x)^(m_.) /; FreeQ[{g, m}, x]])

Rule 2535

Int[Log[(d_.) + (e_.)*(x_) + (f_.)*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]]*((g_.)*(x_))^(m_.), x_Symbol] :> S
imp[((g*x)^(m + 1)*Log[d + e*x + f*Sqrt[a + b*x + c*x^2]])/(g*(m + 1)), x] + Dist[(f^2*(b^2 - 4*a*c))/(2*g*(m
+ 1)), Int[(g*x)^(m + 1)/((2*d*e - b*f^2)*(a + b*x + c*x^2) - f*(b*d - 2*a*e + (2*c*d - b*e)*x)*Sqrt[a + b*x +
 c*x^2]), x], x] /; FreeQ[{a, b, c, d, e, f, g, m}, x] && EqQ[e^2 - c*f^2, 0] && NeQ[m, -1] && IntegerQ[2*m]

Rule 6733

Int[(u_)*(x_)^(m_), x_Symbol] :> With[{k = Denominator[m]}, Dist[k, Subst[Int[x^(k*(m + 1) - 1)*(u /. x -> x^k
), x], x, x^(1/k)], x]] /; FractionQ[m]

Rule 6742

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

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 1588

Int[(Pp_)*(Qq_)^(m_.), x_Symbol] :> With[{p = Expon[Pp, x], q = Expon[Qq, x]}, Simp[(Coeff[Pp, x, p]*x^(p - q
+ 1)*Qq^(m + 1))/((p + m*q + 1)*Coeff[Qq, x, q]), x] /; NeQ[p + m*q + 1, 0] && EqQ[(p + m*q + 1)*Coeff[Qq, x,
q]*Pp, Coeff[Pp, x, p]*x^(p - q)*((p - q + 1)*Qq + (m + 1)*x*D[Qq, x])]] /; FreeQ[m, x] && PolyQ[Pp, x] && Pol
yQ[Qq, x] && NeQ[m, -1]

Rule 2020

Int[((c_.)*(x_))^(m_)*((a_.)*(x_)^(j_.) + (b_.)*(x_)^(n_.))^(p_), x_Symbol] :> Simp[((c*x)^(m + 1)*(a*x^j + b*
x^n)^p)/(c*(m + j*p + 1)), x] - Dist[(b*p*(n - j))/(c^n*(m + j*p + 1)), Int[(c*x)^(m + n)*(a*x^j + b*x^n)^(p -
 1), x], x] /; FreeQ[{a, b, c}, x] &&  !IntegerQ[p] && LtQ[0, j, n] && (IntegersQ[j, n] || GtQ[c, 0]) && GtQ[p
, 0] && LtQ[m + j*p + 1, 0]

Rule 2008

Int[1/Sqrt[(a_.)*(x_)^2 + (b_.)*(x_)^(n_.)], x_Symbol] :> Dist[2/(2 - n), Subst[Int[1/(1 - a*x^2), x], x, x/Sq
rt[a*x^2 + b*x^n]], x] /; FreeQ[{a, b, n}, x] && NeQ[n, 2]

Rule 2021

Int[((c_.)*(x_))^(m_.)*((a_.)*(x_)^(j_.) + (b_.)*(x_)^(n_.))^(p_), x_Symbol] :> Simp[((c*x)^(m + 1)*(a*x^j + b
*x^n)^p)/(c*(m + n*p + 1)), x] + Dist[(a*(n - j)*p)/(c^j*(m + n*p + 1)), Int[(c*x)^(m + j)*(a*x^j + b*x^n)^(p
- 1), x], x] /; FreeQ[{a, b, c, m}, x] &&  !IntegerQ[p] && LtQ[0, j, n] && (IntegersQ[j, n] || GtQ[c, 0]) && G
tQ[p, 0] && NeQ[m + n*p + 1, 0]

Rule 1146

Int[((d_) + (e_.)*(x_)^2)^(q_.)*((b_.)*(x_)^2 + (c_.)*(x_)^4)^(p_), x_Symbol] :> Dist[(b*x^2 + c*x^4)^FracPart
[p]/(x^(2*FracPart[p])*(b + c*x^2)^FracPart[p]), Int[x^(2*p)*(d + e*x^2)^q*(b + c*x^2)^p, x], x] /; FreeQ[{b,
c, d, e, p, q}, x] &&  !IntegerQ[p]

Rule 444

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

Rule 50

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((a + b*x)^(m + 1)*(c + d*x)^n)/(b*
(m + n + 1)), x] + Dist[(n*(b*c - a*d))/(b*(m + n + 1)), Int[(a + b*x)^m*(c + d*x)^(n - 1), x], x] /; FreeQ[{a
, b, c, d}, x] && NeQ[b*c - a*d, 0] && GtQ[n, 0] && NeQ[m + n + 1, 0] &&  !(IGtQ[m, 0] && ( !IntegerQ[n] || (G
tQ[m, 0] && LtQ[m - n, 0]))) &&  !ILtQ[m + n + 2, 0] && IntLinearQ[a, b, c, d, m, n, 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]

Rubi steps

\begin{align*} \int \frac{\log \left (-1+4 x+4 \sqrt{(-1+x) x}\right )}{x^{5/2}} \, dx &=\int \frac{\log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{x^{5/2}} \, dx\\ &=-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}-\frac{16}{3} \int \frac{1}{x^{3/2} \left (-4 (1+2 x) \sqrt{-x+x^2}+8 \left (-x+x^2\right )\right )} \, dx\\ &=-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}-\frac{32}{3} \operatorname{Subst}\left (\int \frac{1}{x^2 \left (-4 \left (1+2 x^2\right ) \sqrt{-x^2+x^4}+8 \left (-x^2+x^4\right )\right )} \, dx,x,\sqrt{x}\right )\\ &=-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}-\frac{32}{3} \operatorname{Subst}\left (\int \left (-\frac{1}{2 x^2}+\frac{4}{1+8 x^2}-\frac{x^2}{12 \sqrt{-x^2+x^4}}+\frac{\sqrt{-x^2+x^4}}{4 x^4}-\frac{5 \sqrt{-x^2+x^4}}{4 x^2}+\frac{32 \sqrt{-x^2+x^4}}{3 \left (1+8 x^2\right )}\right ) \, dx,x,\sqrt{x}\right )\\ &=-\frac{16}{3 \sqrt{x}}-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}+\frac{8}{9} \operatorname{Subst}\left (\int \frac{x^2}{\sqrt{-x^2+x^4}} \, dx,x,\sqrt{x}\right )-\frac{8}{3} \operatorname{Subst}\left (\int \frac{\sqrt{-x^2+x^4}}{x^4} \, dx,x,\sqrt{x}\right )+\frac{40}{3} \operatorname{Subst}\left (\int \frac{\sqrt{-x^2+x^4}}{x^2} \, dx,x,\sqrt{x}\right )-\frac{128}{3} \operatorname{Subst}\left (\int \frac{1}{1+8 x^2} \, dx,x,\sqrt{x}\right )-\frac{1024}{9} \operatorname{Subst}\left (\int \frac{\sqrt{-x^2+x^4}}{1+8 x^2} \, dx,x,\sqrt{x}\right )\\ &=-\frac{16}{3 \sqrt{x}}+\frac{4 \sqrt{-x+x^2}}{3 x^{3/2}}+\frac{128 \sqrt{-x+x^2}}{9 \sqrt{x}}-\frac{32}{3} \sqrt{2} \tan ^{-1}\left (2 \sqrt{2} \sqrt{x}\right )-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}-\frac{4}{3} \operatorname{Subst}\left (\int \frac{1}{\sqrt{-x^2+x^4}} \, dx,x,\sqrt{x}\right )-\frac{40}{3} \operatorname{Subst}\left (\int \frac{1}{\sqrt{-x^2+x^4}} \, dx,x,\sqrt{x}\right )-\frac{\left (1024 \sqrt{-x+x^2}\right ) \operatorname{Subst}\left (\int \frac{x \sqrt{-1+x^2}}{1+8 x^2} \, dx,x,\sqrt{x}\right )}{9 \sqrt{-1+x} \sqrt{x}}\\ &=-\frac{16}{3 \sqrt{x}}+\frac{4 \sqrt{-x+x^2}}{3 x^{3/2}}+\frac{128 \sqrt{-x+x^2}}{9 \sqrt{x}}-\frac{32}{3} \sqrt{2} \tan ^{-1}\left (2 \sqrt{2} \sqrt{x}\right )-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}+\frac{4}{3} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\frac{\sqrt{x}}{\sqrt{-x+x^2}}\right )+\frac{40}{3} \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\frac{\sqrt{x}}{\sqrt{-x+x^2}}\right )-\frac{\left (512 \sqrt{-x+x^2}\right ) \operatorname{Subst}\left (\int \frac{\sqrt{-1+x}}{1+8 x} \, dx,x,x\right )}{9 \sqrt{-1+x} \sqrt{x}}\\ &=-\frac{16}{3 \sqrt{x}}+\frac{4 \sqrt{-x+x^2}}{3 x^{3/2}}-\frac{32}{3} \sqrt{2} \tan ^{-1}\left (2 \sqrt{2} \sqrt{x}\right )+\frac{44}{3} \tan ^{-1}\left (\frac{\sqrt{x}}{\sqrt{-x+x^2}}\right )-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}+\frac{\left (64 \sqrt{-x+x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{\sqrt{-1+x} (1+8 x)} \, dx,x,x\right )}{\sqrt{-1+x} \sqrt{x}}\\ &=-\frac{16}{3 \sqrt{x}}+\frac{4 \sqrt{-x+x^2}}{3 x^{3/2}}-\frac{32}{3} \sqrt{2} \tan ^{-1}\left (2 \sqrt{2} \sqrt{x}\right )+\frac{44}{3} \tan ^{-1}\left (\frac{\sqrt{x}}{\sqrt{-x+x^2}}\right )-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}+\frac{\left (128 \sqrt{-x+x^2}\right ) \operatorname{Subst}\left (\int \frac{1}{9+8 x^2} \, dx,x,\sqrt{-1+x}\right )}{\sqrt{-1+x} \sqrt{x}}\\ &=-\frac{16}{3 \sqrt{x}}+\frac{4 \sqrt{-x+x^2}}{3 x^{3/2}}+\frac{32 \sqrt{2} \sqrt{-x+x^2} \tan ^{-1}\left (\frac{2}{3} \sqrt{2} \sqrt{-1+x}\right )}{3 \sqrt{-1+x} \sqrt{x}}-\frac{32}{3} \sqrt{2} \tan ^{-1}\left (2 \sqrt{2} \sqrt{x}\right )+\frac{44}{3} \tan ^{-1}\left (\frac{\sqrt{x}}{\sqrt{-x+x^2}}\right )-\frac{2 \log \left (-1+4 x+4 \sqrt{-x+x^2}\right )}{3 x^{3/2}}\\ \end{align*}

Mathematica [C]  time = 0.604722, size = 204, normalized size = 1.35 \[ \frac{2}{3} \left (\frac{2 \sqrt{(x-1) x}}{x^{3/2}}-\frac{\log \left (4 x+4 \sqrt{(x-1) x}-1\right )}{x^{3/2}}-\frac{8}{\sqrt{x}}+8 i \sqrt{2} \log \left (4 (8 x+1)^2\right )-4 i \sqrt{2} \log \left ((8 x+1) \left (-10 x-6 \sqrt{(x-1) x}+1\right )\right )-4 i \sqrt{2} \log \left ((8 x+1) \left (-10 x+6 \sqrt{(x-1) x}+1\right )\right )-16 \sqrt{2} \tan ^{-1}\left (2 \sqrt{2} \sqrt{x}\right )-22 \tan ^{-1}\left (\frac{\sqrt{(x-1) x}}{\sqrt{x}}\right )+16 \sqrt{2} \tan ^{-1}\left (\frac{2 \sqrt{2} \sqrt{(x-1) x}}{3 \sqrt{x}}\right )\right ) \]

Antiderivative was successfully verified.

[In]

Integrate[Log[-1 + 4*x + 4*Sqrt[(-1 + x)*x]]/x^(5/2),x]

[Out]

(2*(-8/Sqrt[x] + (2*Sqrt[(-1 + x)*x])/x^(3/2) - 16*Sqrt[2]*ArcTan[2*Sqrt[2]*Sqrt[x]] - 22*ArcTan[Sqrt[(-1 + x)
*x]/Sqrt[x]] + 16*Sqrt[2]*ArcTan[(2*Sqrt[2]*Sqrt[(-1 + x)*x])/(3*Sqrt[x])] + (8*I)*Sqrt[2]*Log[4*(1 + 8*x)^2]
- (4*I)*Sqrt[2]*Log[(1 + 8*x)*(1 - 10*x - 6*Sqrt[(-1 + x)*x])] - Log[-1 + 4*x + 4*Sqrt[(-1 + x)*x]]/x^(3/2) -
(4*I)*Sqrt[2]*Log[(1 + 8*x)*(1 - 10*x + 6*Sqrt[(-1 + x)*x])]))/3

________________________________________________________________________________________

Maple [F]  time = 0.006, size = 0, normalized size = 0. \begin{align*} \int{\ln \left ( -1+4\,x+4\,\sqrt{ \left ( -1+x \right ) x} \right ){x}^{-{\frac{5}{2}}}}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \frac{2}{3 \, \sqrt{x}} - \frac{2 \, \log \left (4 \, \sqrt{x - 1} \sqrt{x} + 4 \, x - 1\right )}{3 \, x^{\frac{3}{2}}} - \frac{2}{9 \, x^{\frac{3}{2}}} - \int \frac{2 \, x^{2} + x}{3 \,{\left (4 \, x^{\frac{11}{2}} - 5 \, x^{\frac{9}{2}} + x^{\frac{7}{2}} + 4 \,{\left (x^{5} - x^{4}\right )} \sqrt{x - 1}\right )}}\,{d x} - \frac{1}{3} \, \log \left (\sqrt{x} + 1\right ) + \frac{1}{3} \, \log \left (\sqrt{x} - 1\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

2/3/sqrt(x) - 2/3*log(4*sqrt(x - 1)*sqrt(x) + 4*x - 1)/x^(3/2) - 2/9/x^(3/2) - integrate(1/3*(2*x^2 + x)/(4*x^
(11/2) - 5*x^(9/2) + x^(7/2) + 4*(x^5 - x^4)*sqrt(x - 1)), x) - 1/3*log(sqrt(x) + 1) + 1/3*log(sqrt(x) - 1)

________________________________________________________________________________________

Fricas [A]  time = 2.19043, size = 311, normalized size = 2.06 \begin{align*} -\frac{2 \,{\left (16 \, \sqrt{2} x^{2} \arctan \left (2 \, \sqrt{2} \sqrt{x}\right ) + 16 \, \sqrt{2} x^{2} \arctan \left (\frac{3 \, \sqrt{2} \sqrt{x}}{4 \, \sqrt{x^{2} - x}}\right ) - 22 \, x^{2} \arctan \left (\frac{\sqrt{x}}{\sqrt{x^{2} - x}}\right ) + 8 \, x^{\frac{3}{2}} + \sqrt{x} \log \left (4 \, x + 4 \, \sqrt{x^{2} - x} - 1\right ) - 2 \, \sqrt{x^{2} - x} \sqrt{x}\right )}}{3 \, x^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-2/3*(16*sqrt(2)*x^2*arctan(2*sqrt(2)*sqrt(x)) + 16*sqrt(2)*x^2*arctan(3/4*sqrt(2)*sqrt(x)/sqrt(x^2 - x)) - 22
*x^2*arctan(sqrt(x)/sqrt(x^2 - x)) + 8*x^(3/2) + sqrt(x)*log(4*x + 4*sqrt(x^2 - x) - 1) - 2*sqrt(x^2 - x)*sqrt
(x))/x^2

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(ln(-1+4*x+4*((-1+x)*x)**(1/2))/x**(5/2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \mathit{undef} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

undef