3.10.9 \(\int \frac {x \sqrt {-x^2+x^4}}{-3+2 x^2} \, dx\)

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

________________________________________________________________________________________

Rubi [A]  time = 0.18, antiderivative size = 79, normalized size of antiderivative = 1.14, number of steps used = 7, number of rules used = 6, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {2034, 734, 843, 620, 206, 724} \begin {gather*} \frac {1}{4} \sqrt {x^4-x^2}+\frac {1}{2} \tanh ^{-1}\left (\frac {x^2}{\sqrt {x^4-x^2}}\right )+\frac {1}{8} \sqrt {3} \tanh ^{-1}\left (\frac {3-4 x^2}{2 \sqrt {3} \sqrt {x^4-x^2}}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(x*Sqrt[-x^2 + x^4])/(-3 + 2*x^2),x]

[Out]

Sqrt[-x^2 + x^4]/4 + ArcTanh[x^2/Sqrt[-x^2 + x^4]]/2 + (Sqrt[3]*ArcTanh[(3 - 4*x^2)/(2*Sqrt[3]*Sqrt[-x^2 + x^4
])])/8

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 620

Int[1/Sqrt[(b_.)*(x_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2, Subst[Int[1/(1 - c*x^2), x], x, x/Sqrt[b*x + c*x^2
]], x] /; FreeQ[{b, c}, x]

Rule 724

Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(a_.) + (b_.)*(x_) + (c_.)*(x_)^2]), x_Symbol] :> Dist[-2, Subst[Int[1/(4*c*d
^2 - 4*b*d*e + 4*a*e^2 - x^2), x], x, (2*a*e - b*d - (2*c*d - b*e)*x)/Sqrt[a + b*x + c*x^2]], x] /; FreeQ[{a,
b, c, d, e}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[2*c*d - b*e, 0]

Rule 734

Int[((d_.) + (e_.)*(x_))^(m_)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[((d + e*x)^(m + 1)*(
a + b*x + c*x^2)^p)/(e*(m + 2*p + 1)), x] - Dist[p/(e*(m + 2*p + 1)), Int[(d + e*x)^m*Simp[b*d - 2*a*e + (2*c*
d - b*e)*x, x]*(a + b*x + c*x^2)^(p - 1), x], x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ
[c*d^2 - b*d*e + a*e^2, 0] && NeQ[2*c*d - b*e, 0] && GtQ[p, 0] && NeQ[m + 2*p + 1, 0] && ( !RationalQ[m] || Lt
Q[m, 1]) &&  !ILtQ[m + 2*p, 0] && IntQuadraticQ[a, b, c, d, e, m, p, x]

Rule 843

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Dis
t[g/e, Int[(d + e*x)^(m + 1)*(a + b*x + c*x^2)^p, x], x] + Dist[(e*f - d*g)/e, Int[(d + e*x)^m*(a + b*x + c*x^
2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, p}, x] && NeQ[b^2 - 4*a*c, 0] && NeQ[c*d^2 - b*d*e + a*e^2, 0]
&&  !IGtQ[m, 0]

Rule 2034

Int[(x_)^(m_.)*((b_.)*(x_)^(k_.) + (a_.)*(x_)^(j_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_.), x_Symbol] :> Dist[1/n
, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a*x^Simplify[j/n] + b*x^Simplify[k/n])^p*(c + d*x)^q, x], x, x^n], x]
 /; FreeQ[{a, b, c, d, j, k, m, n, p, q}, x] &&  !IntegerQ[p] && NeQ[k, j] && IntegerQ[Simplify[j/n]] && Integ
erQ[Simplify[k/n]] && IntegerQ[Simplify[(m + 1)/n]] && NeQ[n^2, 1]

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.04, size = 77, normalized size = 1.12 \begin {gather*} \frac {x \sqrt {x^2-1} \left (\sqrt {x^2-1} x+2 \log \left (\sqrt {x^2-1}+x\right )-\sqrt {3} \tanh ^{-1}\left (\frac {x}{\sqrt {3} \sqrt {x^2-1}}\right )\right )}{4 \sqrt {x^2 \left (x^2-1\right )}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(x*Sqrt[-x^2 + x^4])/(-3 + 2*x^2),x]

[Out]

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

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.31, size = 80, normalized size = 1.16 \begin {gather*} \frac {1}{4} \sqrt {-x^2+x^4}+\frac {1}{2} \tanh ^{-1}\left (\frac {\sqrt {-x^2+x^4}}{-1+x^2}\right )-\frac {1}{4} \sqrt {3} \tanh ^{-1}\left (\frac {\sqrt {-x^2+x^4}}{\sqrt {3} \left (-1+x^2\right )}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

IntegrateAlgebraic[(x*Sqrt[-x^2 + x^4])/(-3 + 2*x^2),x]

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.44, size = 94, normalized size = 1.36 \begin {gather*} \frac {1}{8} \, \sqrt {3} \log \left (\frac {8 \, x^{2} - \sqrt {3} {\left (4 \, x^{2} - 3\right )} - 2 \, \sqrt {x^{4} - x^{2}} {\left (2 \, \sqrt {3} - 3\right )} - 6}{2 \, x^{2} - 3}\right ) + \frac {1}{4} \, \sqrt {x^{4} - x^{2}} - \frac {1}{2} \, \log \left (-\frac {x^{2} - \sqrt {x^{4} - x^{2}}}{x}\right ) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [C]  time = 0.49, size = 119, normalized size = 1.72 \begin {gather*} -\frac {1}{24} \, \sqrt {3} {\left (-2 i \, \sqrt {3} \pi - 3 \, \log \left (-\frac {\sqrt {3} + 3}{\sqrt {3} - 3}\right )\right )} \mathrm {sgn}\relax (x) + \frac {1}{4} \, \sqrt {x^{2} - 1} x \mathrm {sgn}\relax (x) - \frac {1}{8} \, \sqrt {3} \log \left (\frac {{\left | 2 \, {\left (x - \sqrt {x^{2} - 1}\right )}^{2} - 2 \, \sqrt {3} - 4 \right |}}{{\left | 2 \, {\left (x - \sqrt {x^{2} - 1}\right )}^{2} + 2 \, \sqrt {3} - 4 \right |}}\right ) \mathrm {sgn}\relax (x) - \frac {1}{4} \, \log \left ({\left (x - \sqrt {x^{2} - 1}\right )}^{2}\right ) \mathrm {sgn}\relax (x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/24*sqrt(3)*(-2*I*sqrt(3)*pi - 3*log(-(sqrt(3) + 3)/(sqrt(3) - 3)))*sgn(x) + 1/4*sqrt(x^2 - 1)*x*sgn(x) - 1/
8*sqrt(3)*log(abs(2*(x - sqrt(x^2 - 1))^2 - 2*sqrt(3) - 4)/abs(2*(x - sqrt(x^2 - 1))^2 + 2*sqrt(3) - 4))*sgn(x
) - 1/4*log((x - sqrt(x^2 - 1))^2)*sgn(x)

________________________________________________________________________________________

maple [C]  time = 0.38, size = 90, normalized size = 1.30

method result size
trager \(\frac {\sqrt {x^{4}-x^{2}}}{4}+\frac {\ln \left (\frac {x^{2}+\sqrt {x^{4}-x^{2}}}{x}\right )}{2}+\frac {\RootOf \left (\textit {\_Z}^{2}-3\right ) \ln \left (-\frac {4 \RootOf \left (\textit {\_Z}^{2}-3\right ) x^{2}-3 \RootOf \left (\textit {\_Z}^{2}-3\right )-6 \sqrt {x^{4}-x^{2}}}{2 x^{2}-3}\right )}{8}\) \(90\)
default \(-\frac {\sqrt {x^{4}-x^{2}}\, \left (\sqrt {6}\, \sqrt {2}\, \arctanh \left (\frac {\left (\sqrt {6}\, x +2\right ) \sqrt {2}}{2 \sqrt {x^{2}-1}}\right )+\sqrt {6}\, \sqrt {2}\, \arctanh \left (\frac {\left (\sqrt {6}\, x -2\right ) \sqrt {2}}{2 \sqrt {x^{2}-1}}\right )-8 \ln \left (x +\sqrt {x^{2}-1}\right )-4 x \sqrt {x^{2}-1}\right )}{16 x \sqrt {x^{2}-1}}\) \(101\)
risch \(\frac {\sqrt {x^{2} \left (x^{2}-1\right )}}{4}+\frac {\left (\frac {\ln \left (x +\sqrt {x^{2}-1}\right )}{2}-\frac {\sqrt {6}\, \sqrt {2}\, \arctanh \left (\frac {\left (1+\sqrt {6}\, \left (x -\frac {\sqrt {6}}{2}\right )\right ) \sqrt {2}}{\sqrt {4 \left (x -\frac {\sqrt {6}}{2}\right )^{2}+4 \sqrt {6}\, \left (x -\frac {\sqrt {6}}{2}\right )+2}}\right )}{16}+\frac {\sqrt {6}\, \sqrt {2}\, \arctanh \left (\frac {\left (1-\sqrt {6}\, \left (x +\frac {\sqrt {6}}{2}\right )\right ) \sqrt {2}}{\sqrt {4 \left (x +\frac {\sqrt {6}}{2}\right )^{2}-4 \sqrt {6}\, \left (x +\frac {\sqrt {6}}{2}\right )+2}}\right )}{16}\right ) \sqrt {x^{2} \left (x^{2}-1\right )}}{x \sqrt {x^{2}-1}}\) \(157\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x*(x^4-x^2)^(1/2)/(2*x^2-3),x,method=_RETURNVERBOSE)

[Out]

1/4*(x^4-x^2)^(1/2)+1/2*ln((x^2+(x^4-x^2)^(1/2))/x)+1/8*RootOf(_Z^2-3)*ln(-(4*RootOf(_Z^2-3)*x^2-3*RootOf(_Z^2
-3)-6*(x^4-x^2)^(1/2))/(2*x^2-3))

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x^{4} - x^{2}} x}{2 \, x^{2} - 3}\,{d x} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integrate(sqrt(x^4 - x^2)*x/(2*x^2 - 3), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x\,\sqrt {x^4-x^2}}{2\,x^2-3} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x*(x**4-x**2)**(1/2)/(2*x**2-3),x)

[Out]

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

________________________________________________________________________________________