3.16.19 \(\int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} (-2-x^4+x^8)} \, dx\) [1519]

Optimal. Leaf size=105 \[ -\frac {5 x}{3 \sqrt [4]{1+x^4}}+\text {ArcTan}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \text {ArcTan}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}} \]

[Out]

-5/3*x/(x^4+1)^(1/4)+arctan(x/(x^4+1)^(1/4))-5/36*arctan(1/2*3^(1/4)*2^(3/4)*x/(x^4+1)^(1/4))*3^(3/4)*2^(1/4)+
arctanh(x/(x^4+1)^(1/4))-5/36*arctanh(1/2*3^(1/4)*2^(3/4)*x/(x^4+1)^(1/4))*3^(3/4)*2^(1/4)

________________________________________________________________________________________

Rubi [A]
time = 0.16, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 12, number of rules used = 8, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {6860, 246, 218, 212, 209, 1417, 390, 385} \begin {gather*} \text {ArcTan}\left (\frac {x}{\sqrt [4]{x^4+1}}\right )-\frac {5 \text {ArcTan}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{x^4+1}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}-\frac {5 x}{3 \sqrt [4]{x^4+1}}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{x^4+1}}\right )-\frac {5 \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{x^4+1}}\right )}{6\ 2^{3/4} \sqrt [4]{3}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(-5*x)/(3*(1 + x^4)^(1/4)) + ArcTan[x/(1 + x^4)^(1/4)] - (5*ArcTan[((3/2)^(1/4)*x)/(1 + x^4)^(1/4)])/(6*2^(3/4
)*3^(1/4)) + ArcTanh[x/(1 + x^4)^(1/4)] - (5*ArcTanh[((3/2)^(1/4)*x)/(1 + x^4)^(1/4)])/(6*2^(3/4)*3^(1/4))

Rule 209

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

Rule 212

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

Rule 218

Int[((a_) + (b_.)*(x_)^4)^(-1), x_Symbol] :> With[{r = Numerator[Rt[-a/b, 2]], s = Denominator[Rt[-a/b, 2]]},
Dist[r/(2*a), Int[1/(r - s*x^2), x], x] + Dist[r/(2*a), Int[1/(r + s*x^2), x], x]] /; FreeQ[{a, b}, x] &&  !Gt
Q[a/b, 0]

Rule 246

Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[a^(p + 1/n), Subst[Int[1/(1 - b*x^n)^(p + 1/n + 1), x], x
, x/(a + b*x^n)^(1/n)], x] /; FreeQ[{a, b}, x] && IGtQ[n, 0] && LtQ[-1, p, 0] && NeQ[p, -2^(-1)] && IntegerQ[p
 + 1/n]

Rule 385

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

Rule 390

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(-b)*x*(a + b*x^n)^(p + 1)*
((c + d*x^n)^(q + 1)/(a*n*(p + 1)*(b*c - a*d))), x] + Dist[(b*c + n*(p + 1)*(b*c - a*d))/(a*n*(p + 1)*(b*c - a
*d)), Int[(a + b*x^n)^(p + 1)*(c + d*x^n)^q, x], x] /; FreeQ[{a, b, c, d, n, q}, x] && NeQ[b*c - a*d, 0] && Eq
Q[n*(p + q + 2) + 1, 0] && (LtQ[p, -1] ||  !LtQ[q, -1]) && NeQ[p, -1]

Rule 1417

Int[((d_) + (e_.)*(x_)^(n_))^(q_.)*((a_) + (b_.)*(x_)^(n_) + (c_.)*(x_)^(n2_))^(p_.), x_Symbol] :> Int[(d + e*
x^n)^(p + q)*(a/d + (c/e)*x^n)^p, x] /; FreeQ[{a, b, c, d, e, n, q}, x] && EqQ[n2, 2*n] && NeQ[b^2 - 4*a*c, 0]
 && EqQ[c*d^2 - b*d*e + a*e^2, 0] && IntegerQ[p]

Rule 6860

Int[(u_)/((a_.) + (b_.)*(x_)^(n_.) + (c_.)*(x_)^(n2_.)), x_Symbol] :> With[{v = RationalFunctionExpand[u/(a +
b*x^n + c*x^(2*n)), x]}, Int[v, x] /; SumQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]

Rubi steps

\begin {align*} \int \frac {1-2 x^4+2 x^8}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx &=\int \left (\frac {2}{\sqrt [4]{1+x^4}}+\frac {5}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )}\right ) \, dx\\ &=2 \int \frac {1}{\sqrt [4]{1+x^4}} \, dx+5 \int \frac {1}{\sqrt [4]{1+x^4} \left (-2-x^4+x^8\right )} \, dx\\ &=2 \text {Subst}\left (\int \frac {1}{1-x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+5 \int \frac {1}{\left (-2+x^4\right ) \left (1+x^4\right )^{5/4}} \, dx\\ &=-\frac {5 x}{3 \sqrt [4]{1+x^4}}+\frac {5}{3} \int \frac {1}{\left (-2+x^4\right ) \sqrt [4]{1+x^4}} \, dx+\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )+\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )\\ &=-\frac {5 x}{3 \sqrt [4]{1+x^4}}+\tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\frac {5}{3} \text {Subst}\left (\int \frac {1}{-2+3 x^4} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )\\ &=-\frac {5 x}{3 \sqrt [4]{1+x^4}}+\tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \text {Subst}\left (\int \frac {1}{\sqrt {2}-\sqrt {3} x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )}{6 \sqrt {2}}-\frac {5 \text {Subst}\left (\int \frac {1}{\sqrt {2}+\sqrt {3} x^2} \, dx,x,\frac {x}{\sqrt [4]{1+x^4}}\right )}{6 \sqrt {2}}\\ &=-\frac {5 x}{3 \sqrt [4]{1+x^4}}+\tan ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \tan ^{-1}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.38, size = 105, normalized size = 1.00 \begin {gather*} -\frac {5 x}{3 \sqrt [4]{1+x^4}}+\text {ArcTan}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \text {ArcTan}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}}+\tanh ^{-1}\left (\frac {x}{\sqrt [4]{1+x^4}}\right )-\frac {5 \tanh ^{-1}\left (\frac {\sqrt [4]{\frac {3}{2}} x}{\sqrt [4]{1+x^4}}\right )}{6\ 2^{3/4} \sqrt [4]{3}} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(-5*x)/(3*(1 + x^4)^(1/4)) + ArcTan[x/(1 + x^4)^(1/4)] - (5*ArcTan[((3/2)^(1/4)*x)/(1 + x^4)^(1/4)])/(6*2^(3/4
)*3^(1/4)) + ArcTanh[x/(1 + x^4)^(1/4)] - (5*ArcTanh[((3/2)^(1/4)*x)/(1 + x^4)^(1/4)])/(6*2^(3/4)*3^(1/4))

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 205 vs. \(2 (81) = 162\).
time = 0.36, size = 205, normalized size = 1.95 \begin {gather*} -\frac {20 \cdot 24^{\frac {3}{4}} {\left (x^{4} + 1\right )} \arctan \left (\frac {24^{\frac {3}{4}} \sqrt {2} x \sqrt {\frac {\sqrt {6} x^{2} + 2 \, \sqrt {x^{4} + 1}}{x^{2}}} - 2 \cdot 24^{\frac {3}{4}} {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{24 \, x}\right ) + 5 \cdot 24^{\frac {3}{4}} {\left (x^{4} + 1\right )} \log \left (\frac {24^{\frac {1}{4}} x + 2 \, {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) - 5 \cdot 24^{\frac {3}{4}} {\left (x^{4} + 1\right )} \log \left (-\frac {24^{\frac {1}{4}} x - 2 \, {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 288 \, {\left (x^{4} + 1\right )} \arctan \left (\frac {{\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) - 144 \, {\left (x^{4} + 1\right )} \log \left (\frac {x + {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 144 \, {\left (x^{4} + 1\right )} \log \left (-\frac {x - {\left (x^{4} + 1\right )}^{\frac {1}{4}}}{x}\right ) + 480 \, {\left (x^{4} + 1\right )}^{\frac {3}{4}} x}{288 \, {\left (x^{4} + 1\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/288*(20*24^(3/4)*(x^4 + 1)*arctan(1/24*(24^(3/4)*sqrt(2)*x*sqrt((sqrt(6)*x^2 + 2*sqrt(x^4 + 1))/x^2) - 2*24
^(3/4)*(x^4 + 1)^(1/4))/x) + 5*24^(3/4)*(x^4 + 1)*log((24^(1/4)*x + 2*(x^4 + 1)^(1/4))/x) - 5*24^(3/4)*(x^4 +
1)*log(-(24^(1/4)*x - 2*(x^4 + 1)^(1/4))/x) + 288*(x^4 + 1)*arctan((x^4 + 1)^(1/4)/x) - 144*(x^4 + 1)*log((x +
 (x^4 + 1)^(1/4))/x) + 144*(x^4 + 1)*log(-(x - (x^4 + 1)^(1/4))/x) + 480*(x^4 + 1)^(3/4)*x)/(x^4 + 1)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

Integral((2*x**8 - 2*x**4 + 1)/((x**4 - 2)*(x**4 + 1)**(5/4)), 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((2*x^8-2*x^4+1)/(x^4+1)^(1/4)/(x^8-x^4-2),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int -\frac {2\,x^8-2\,x^4+1}{{\left (x^4+1\right )}^{1/4}\,\left (-x^8+x^4+2\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________