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

Optimal. Leaf size=16 \[ \frac {\sqrt {x^4+x^2+1}}{x} \]

________________________________________________________________________________________

Rubi [A]  time = 0.02, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, Rules used = {1590} \[ \frac {\sqrt {x^4+x^2+1}}{x} \]

Antiderivative was successfully verified.

[In]

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

[Out]

Sqrt[1 + x^2 + x^4]/x

Rule 1590

Int[(Pp_)*(Qq_)^(m_.)*(Rr_)^(n_.), x_Symbol] :> With[{p = Expon[Pp, x], q = Expon[Qq, x], r = Expon[Rr, x]}, S
imp[(Coeff[Pp, x, p]*x^(p - q - r + 1)*Qq^(m + 1)*Rr^(n + 1))/((p + m*q + n*r + 1)*Coeff[Qq, x, q]*Coeff[Rr, x
, r]), x] /; NeQ[p + m*q + n*r + 1, 0] && EqQ[(p + m*q + n*r + 1)*Coeff[Qq, x, q]*Coeff[Rr, x, r]*Pp, Coeff[Pp
, x, p]*x^(p - q - r)*((p - q - r + 1)*Qq*Rr + (m + 1)*x*Rr*D[Qq, x] + (n + 1)*x*Qq*D[Rr, x])]] /; FreeQ[{m, n
}, x] && PolyQ[Pp, x] && PolyQ[Qq, x] && PolyQ[Rr, x] && NeQ[m, -1] && NeQ[n, -1]

Rubi steps

\begin {align*} \int \frac {-1+x^4}{x^2 \sqrt {1+x^2+x^4}} \, dx &=\frac {\sqrt {1+x^2+x^4}}{x}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.03, size = 16, normalized size = 1.00 \[ \frac {\sqrt {x^4+x^2+1}}{x} \]

Antiderivative was successfully verified.

[In]

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

[Out]

Sqrt[1 + x^2 + x^4]/x

________________________________________________________________________________________

IntegrateAlgebraic [A]  time = 0.80, size = 16, normalized size = 1.00 \[ \frac {\sqrt {x^4+x^2+1}}{x} \]

Antiderivative was successfully verified.

[In]

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

[Out]

Sqrt[1 + x^2 + x^4]/x

________________________________________________________________________________________

fricas [A]  time = 0.85, size = 14, normalized size = 0.88 \[ \frac {\sqrt {x^{4} + x^{2} + 1}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

sqrt(x^4 + x^2 + 1)/x

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {x^{4} - 1}{\sqrt {x^{4} + x^{2} + 1} x^{2}}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [A]  time = 0.08, size = 15, normalized size = 0.94




method result size



default \(\frac {\sqrt {x^{4}+x^{2}+1}}{x}\) \(15\)
trager \(\frac {\sqrt {x^{4}+x^{2}+1}}{x}\) \(15\)
risch \(\frac {\sqrt {x^{4}+x^{2}+1}}{x}\) \(15\)
elliptic \(\frac {\sqrt {x^{4}+x^{2}+1}}{x}\) \(15\)
gosper \(\frac {\left (x^{2}+x +1\right ) \left (x^{2}-x +1\right )}{\sqrt {x^{4}+x^{2}+1}\, x}\) \(29\)



Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [A]  time = 0.87, size = 22, normalized size = 1.38 \[ \frac {\sqrt {x^{2} + x + 1} \sqrt {x^{2} - x + 1}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.06, size = 14, normalized size = 0.88 \[ \frac {\sqrt {x^4+x^2+1}}{x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

(x^2 + x^4 + 1)^(1/2)/x

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________