3.4.26 \(\int \frac {-1+x^4}{x^2 \sqrt {1+x^2+x^4}} \, dx\) [326]

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

[Out]

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

________________________________________________________________________________________

Rubi [A]
time = 0.01, 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 = {1604} \begin {gather*} \frac {\sqrt {x^4+x^2+1}}{x} \end {gather*}

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 1604

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.28, size = 16, normalized size = 1.00 \begin {gather*} \frac {\sqrt {1+x^2+x^4}}{x} \end {gather*}

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

________________________________________________________________________________________

Maple [A]
time = 0.04, 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 = 1.16, size = 22, normalized size = 1.38 \begin {gather*} \frac {\sqrt {x^{2} + x + 1} \sqrt {x^{2} - x + 1}}{x} \end {gather*}

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

________________________________________________________________________________________

Fricas [A]
time = 1.40, size = 14, normalized size = 0.88 \begin {gather*} \frac {\sqrt {x^{4} + x^{2} + 1}}{x} \end {gather*}

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

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \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 \end {gather*}

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)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

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)

________________________________________________________________________________________

Mupad [B]
time = 0.06, size = 14, normalized size = 0.88 \begin {gather*} \frac {\sqrt {x^4+x^2+1}}{x} \end {gather*}

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

________________________________________________________________________________________