Integrand size = 31, antiderivative size = 127 \[ \int \frac {2+x^4}{\sqrt [4]{x^2+x^4} \left (-1-x^4+2 x^8\right )} \, dx=-\frac {\left (x^2+x^4\right )^{3/4}}{x \left (1+x^2\right )}-\frac {\arctan \left (\frac {\sqrt [4]{2} x}{\sqrt [4]{x^2+x^4}}\right )}{2 \sqrt [4]{2}}-\frac {\text {arctanh}\left (\frac {\sqrt [4]{2} x}{\sqrt [4]{x^2+x^4}}\right )}{2 \sqrt [4]{2}}+\frac {1}{4} \text {RootSum}\left [3-2 \text {$\#$1}^4+\text {$\#$1}^8\&,\frac {-\log (x)+\log \left (\sqrt [4]{x^2+x^4}-x \text {$\#$1}\right )}{\text {$\#$1}}\&\right ] \]
Time = 0.46 (sec) , antiderivative size = 160, normalized size of antiderivative = 1.26 \[ \int \frac {2+x^4}{\sqrt [4]{x^2+x^4} \left (-1-x^4+2 x^8\right )} \, dx=-\frac {\sqrt {x} \left (4 \sqrt {x}+2^{3/4} \sqrt [4]{1+x^2} \arctan \left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{1+x^2}}\right )+2^{3/4} \sqrt [4]{1+x^2} \text {arctanh}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{1+x^2}}\right )-\sqrt [4]{1+x^2} \text {RootSum}\left [3-2 \text {$\#$1}^4+\text {$\#$1}^8\&,\frac {-\log \left (\sqrt {x}\right )+\log \left (\sqrt [4]{1+x^2}-\sqrt {x} \text {$\#$1}\right )}{\text {$\#$1}}\&\right ]\right )}{4 \sqrt [4]{x^2+x^4}} \]
-1/4*(Sqrt[x]*(4*Sqrt[x] + 2^(3/4)*(1 + x^2)^(1/4)*ArcTan[(2^(1/4)*Sqrt[x] )/(1 + x^2)^(1/4)] + 2^(3/4)*(1 + x^2)^(1/4)*ArcTanh[(2^(1/4)*Sqrt[x])/(1 + x^2)^(1/4)] - (1 + x^2)^(1/4)*RootSum[3 - 2*#1^4 + #1^8 & , (-Log[Sqrt[x ]] + Log[(1 + x^2)^(1/4) - Sqrt[x]*#1])/#1 & ]))/(x^2 + x^4)^(1/4)
Result contains complex when optimal does not.
Time = 0.87 (sec) , antiderivative size = 330, normalized size of antiderivative = 2.60, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {2467, 25, 2035, 7279, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {x^4+2}{\sqrt [4]{x^4+x^2} \left (2 x^8-x^4-1\right )} \, dx\) |
\(\Big \downarrow \) 2467 |
\(\displaystyle \frac {\sqrt {x} \sqrt [4]{x^2+1} \int -\frac {x^4+2}{\sqrt {x} \sqrt [4]{x^2+1} \left (-2 x^8+x^4+1\right )}dx}{\sqrt [4]{x^4+x^2}}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\sqrt {x} \sqrt [4]{x^2+1} \int \frac {x^4+2}{\sqrt {x} \sqrt [4]{x^2+1} \left (-2 x^8+x^4+1\right )}dx}{\sqrt [4]{x^4+x^2}}\) |
\(\Big \downarrow \) 2035 |
\(\displaystyle -\frac {2 \sqrt {x} \sqrt [4]{x^2+1} \int \frac {x^4+2}{\sqrt [4]{x^2+1} \left (-2 x^8+x^4+1\right )}d\sqrt {x}}{\sqrt [4]{x^4+x^2}}\) |
\(\Big \downarrow \) 7279 |
\(\displaystyle -\frac {2 \sqrt {x} \sqrt [4]{x^2+1} \int \left (\frac {4}{\sqrt [4]{x^2+1} \left (4-4 x^4\right )}-\frac {2}{\sqrt [4]{x^2+1} \left (-4 x^4-2\right )}\right )d\sqrt {x}}{\sqrt [4]{x^4+x^2}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {2 \sqrt {x} \sqrt [4]{x^2+1} \left (\frac {\arctan \left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{x^2+1}}\right )}{4 \sqrt [4]{2}}+\frac {\arctan \left (\frac {\sqrt [4]{\sqrt {2}-2 i} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{x^2+1}}\right )}{2\ 2^{7/8} \sqrt [4]{\sqrt {2}-2 i}}+\frac {\arctan \left (\frac {\sqrt [4]{\sqrt {2}+2 i} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{x^2+1}}\right )}{2\ 2^{7/8} \sqrt [4]{\sqrt {2}+2 i}}+\frac {\text {arctanh}\left (\frac {\sqrt [4]{2} \sqrt {x}}{\sqrt [4]{x^2+1}}\right )}{4 \sqrt [4]{2}}+\frac {\text {arctanh}\left (\frac {\sqrt [4]{\sqrt {2}-2 i} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{x^2+1}}\right )}{2\ 2^{7/8} \sqrt [4]{\sqrt {2}-2 i}}+\frac {\text {arctanh}\left (\frac {\sqrt [4]{\sqrt {2}+2 i} \sqrt {x}}{\sqrt [8]{2} \sqrt [4]{x^2+1}}\right )}{2\ 2^{7/8} \sqrt [4]{\sqrt {2}+2 i}}+\frac {\sqrt {x}}{2 \sqrt [4]{x^2+1}}\right )}{\sqrt [4]{x^4+x^2}}\) |
(-2*Sqrt[x]*(1 + x^2)^(1/4)*(Sqrt[x]/(2*(1 + x^2)^(1/4)) + ArcTan[(2^(1/4) *Sqrt[x])/(1 + x^2)^(1/4)]/(4*2^(1/4)) + ArcTan[((-2*I + Sqrt[2])^(1/4)*Sq rt[x])/(2^(1/8)*(1 + x^2)^(1/4))]/(2*2^(7/8)*(-2*I + Sqrt[2])^(1/4)) + Arc Tan[((2*I + Sqrt[2])^(1/4)*Sqrt[x])/(2^(1/8)*(1 + x^2)^(1/4))]/(2*2^(7/8)* (2*I + Sqrt[2])^(1/4)) + ArcTanh[(2^(1/4)*Sqrt[x])/(1 + x^2)^(1/4)]/(4*2^( 1/4)) + ArcTanh[((-2*I + Sqrt[2])^(1/4)*Sqrt[x])/(2^(1/8)*(1 + x^2)^(1/4)) ]/(2*2^(7/8)*(-2*I + Sqrt[2])^(1/4)) + ArcTanh[((2*I + Sqrt[2])^(1/4)*Sqrt [x])/(2^(1/8)*(1 + x^2)^(1/4))]/(2*2^(7/8)*(2*I + Sqrt[2])^(1/4))))/(x^2 + x^4)^(1/4)
3.19.51.3.1 Defintions of rubi rules used
Int[(Fx_)*(x_)^(m_), x_Symbol] :> With[{k = Denominator[m]}, Simp[k Subst [Int[x^(k*(m + 1) - 1)*SubstPower[Fx, x, k], x], x, x^(1/k)], x]] /; Fracti onQ[m] && AlgebraicFunctionQ[Fx, x]
Int[(Fx_.)*(Px_)^(p_), x_Symbol] :> With[{r = Expon[Px, x, Min]}, Simp[Px^F racPart[p]/(x^(r*FracPart[p])*ExpandToSum[Px/x^r, x]^FracPart[p]) Int[x^( p*r)*ExpandToSum[Px/x^r, x]^p*Fx, x], x] /; IGtQ[r, 0]] /; FreeQ[p, x] && P olyQ[Px, x] && !IntegerQ[p] && !MonomialQ[Px, x] && !PolyQ[Fx, x]
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] /; Su mQ[v]] /; FreeQ[{a, b, c}, x] && EqQ[n2, 2*n] && IGtQ[n, 0]
Timed out.
\[\int \frac {x^{4}+2}{\left (x^{4}+x^{2}\right )^{\frac {1}{4}} \left (2 x^{8}-x^{4}-1\right )}d x\]
Result contains higher order function than in optimal. Order 3 vs. order 1.
Time = 5.33 (sec) , antiderivative size = 2054, normalized size of antiderivative = 16.17 \[ \int \frac {2+x^4}{\sqrt [4]{x^2+x^4} \left (-1-x^4+2 x^8\right )} \, dx=\text {Too large to display} \]
-1/48*(2*sqrt(3)*(x^3 + x)*sqrt(-sqrt(3)*sqrt(I*sqrt(2) + 1))*log(-(2*sqrt (3)*(2*x^4 - 22*x^2 + sqrt(2)*(22*I*x^4 + I*x^2))*(x^4 + x^2)^(1/4)*sqrt(I *sqrt(2) + 1) + 6*(x^4 + x^2)^(3/4)*(14*x^2 + sqrt(2)*(-8*I*x^2 + 7*I) + 8 ) + (2*sqrt(x^4 + x^2)*(2*x^3 + sqrt(2)*(22*I*x^3 + I*x) - 22*x)*sqrt(I*sq rt(2) + 1) + sqrt(3)*(12*x^5 + 44*x^3 - sqrt(2)*(30*I*x^5 + 2*I*x^3 - 7*I* x) + 8*x))*sqrt(-sqrt(3)*sqrt(I*sqrt(2) + 1)))/(2*x^5 + x)) - 2*sqrt(3)*(x ^3 + x)*sqrt(-sqrt(3)*sqrt(I*sqrt(2) + 1))*log(-(2*sqrt(3)*(2*x^4 - 22*x^2 + sqrt(2)*(22*I*x^4 + I*x^2))*(x^4 + x^2)^(1/4)*sqrt(I*sqrt(2) + 1) + 6*( x^4 + x^2)^(3/4)*(14*x^2 + sqrt(2)*(-8*I*x^2 + 7*I) + 8) - (2*sqrt(x^4 + x ^2)*(2*x^3 - sqrt(2)*(-22*I*x^3 - I*x) - 22*x)*sqrt(I*sqrt(2) + 1) + sqrt( 3)*(12*x^5 + 44*x^3 + sqrt(2)*(-30*I*x^5 - 2*I*x^3 + 7*I*x) + 8*x))*sqrt(- sqrt(3)*sqrt(I*sqrt(2) + 1)))/(2*x^5 + x)) - 2*sqrt(3)*(x^3 + x)*sqrt(sqrt (3)*sqrt(I*sqrt(2) + 1))*log((2*sqrt(3)*(2*x^4 - 22*x^2 - sqrt(2)*(-22*I*x ^4 - I*x^2))*(x^4 + x^2)^(1/4)*sqrt(I*sqrt(2) + 1) - 6*(x^4 + x^2)^(3/4)*( 14*x^2 + sqrt(2)*(-8*I*x^2 + 7*I) + 8) - (2*sqrt(x^4 + x^2)*(2*x^3 + sqrt( 2)*(22*I*x^3 + I*x) - 22*x)*sqrt(I*sqrt(2) + 1) - sqrt(3)*(12*x^5 + 44*x^3 + sqrt(2)*(-30*I*x^5 - 2*I*x^3 + 7*I*x) + 8*x))*sqrt(sqrt(3)*sqrt(I*sqrt( 2) + 1)))/(2*x^5 + x)) + 2*sqrt(3)*(x^3 + x)*sqrt(sqrt(3)*sqrt(I*sqrt(2) + 1))*log((2*sqrt(3)*(2*x^4 - 22*x^2 - sqrt(2)*(-22*I*x^4 - I*x^2))*(x^4 + x^2)^(1/4)*sqrt(I*sqrt(2) + 1) - 6*(x^4 + x^2)^(3/4)*(14*x^2 + sqrt(2)*...
Not integrable
Time = 4.76 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.28 \[ \int \frac {2+x^4}{\sqrt [4]{x^2+x^4} \left (-1-x^4+2 x^8\right )} \, dx=\int \frac {x^{4} + 2}{\sqrt [4]{x^{2} \left (x^{2} + 1\right )} \left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right ) \left (2 x^{4} + 1\right )}\, dx \]
Not integrable
Time = 0.34 (sec) , antiderivative size = 154, normalized size of antiderivative = 1.21 \[ \int \frac {2+x^4}{\sqrt [4]{x^2+x^4} \left (-1-x^4+2 x^8\right )} \, dx=\int { \frac {x^{4} + 2}{{\left (2 \, x^{8} - x^{4} - 1\right )} {\left (x^{4} + x^{2}\right )}^{\frac {1}{4}}} \,d x } \]
2/231*(64*x^9 + 16*x^7 + 11*(4*x^5 + x^3 - 3*x)*x^4 - 28*x^5 - 2*x^3 - 22* x)/((2*x^(17/2) - x^(9/2) - sqrt(x))*(x^2 + 1)^(1/4)) + integrate(4/231*(2 56*x^8 + 64*x^6 + (128*x^8 + 32*x^6 + 164*x^4 + 51*x^2 - 209)*x^4 - 68*x^4 + 3*x^2 - 121)/((4*x^(33/2) - 4*x^(25/2) - 3*x^(17/2) + 2*x^(9/2) + sqrt( x))*(x^2 + 1)^(1/4)), x)
Exception generated. \[ \int \frac {2+x^4}{\sqrt [4]{x^2+x^4} \left (-1-x^4+2 x^8\right )} \, dx=\text {Exception raised: TypeError} \]
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:Invalid _EXT in replace_ext Error: Bad Argument ValueDone
Not integrable
Time = 5.75 (sec) , antiderivative size = 30, normalized size of antiderivative = 0.24 \[ \int \frac {2+x^4}{\sqrt [4]{x^2+x^4} \left (-1-x^4+2 x^8\right )} \, dx=\int -\frac {x^4+2}{{\left (x^4+x^2\right )}^{1/4}\,\left (-2\,x^8+x^4+1\right )} \,d x \]