Integrand size = 30, antiderivative size = 89 \[ \int \frac {1-x^2+x^4}{\sqrt {x+x^2+x^3} \left (-1+x^4\right )} \, dx=-\frac {1}{4} \arctan \left (\frac {\sqrt {x+x^2+x^3}}{1+x+x^2}\right )-\frac {3}{2} \text {arctanh}\left (\frac {\sqrt {x+x^2+x^3}}{1+x+x^2}\right )-\frac {\text {arctanh}\left (\frac {\sqrt {3} \sqrt {x+x^2+x^3}}{1+x+x^2}\right )}{4 \sqrt {3}} \] Output:
-1/4*arctan((x^3+x^2+x)^(1/2)/(x^2+x+1))-3/2*arctanh((x^3+x^2+x)^(1/2)/(x^ 2+x+1))-1/12*arctanh(3^(1/2)*(x^3+x^2+x)^(1/2)/(x^2+x+1))*3^(1/2)
Time = 0.44 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.10 \[ \int \frac {1-x^2+x^4}{\sqrt {x+x^2+x^3} \left (-1+x^4\right )} \, dx=-\frac {\sqrt {x} \sqrt {1+x+x^2} \left (3 \arctan \left (\frac {\sqrt {x}}{\sqrt {1+x+x^2}}\right )+18 \text {arctanh}\left (\frac {\sqrt {x}}{\sqrt {1+x+x^2}}\right )+\sqrt {3} \text {arctanh}\left (\frac {\sqrt {3} \sqrt {x}}{\sqrt {1+x+x^2}}\right )\right )}{12 \sqrt {x \left (1+x+x^2\right )}} \] Input:
Integrate[(1 - x^2 + x^4)/(Sqrt[x + x^2 + x^3]*(-1 + x^4)),x]
Output:
-1/12*(Sqrt[x]*Sqrt[1 + x + x^2]*(3*ArcTan[Sqrt[x]/Sqrt[1 + x + x^2]] + 18 *ArcTanh[Sqrt[x]/Sqrt[1 + x + x^2]] + Sqrt[3]*ArcTanh[(Sqrt[3]*Sqrt[x])/Sq rt[1 + x + x^2]]))/Sqrt[x*(1 + x + x^2)]
Time = 1.01 (sec) , antiderivative size = 103, normalized size of antiderivative = 1.16, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2467, 25, 2035, 7276, 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-x^2+1}{\sqrt {x^3+x^2+x} \left (x^4-1\right )} \, dx\) |
\(\Big \downarrow \) 2467 |
\(\displaystyle \frac {\sqrt {x} \sqrt {x^2+x+1} \int -\frac {x^4-x^2+1}{\sqrt {x} \sqrt {x^2+x+1} \left (1-x^4\right )}dx}{\sqrt {x^3+x^2+x}}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\sqrt {x} \sqrt {x^2+x+1} \int \frac {x^4-x^2+1}{\sqrt {x} \sqrt {x^2+x+1} \left (1-x^4\right )}dx}{\sqrt {x^3+x^2+x}}\) |
\(\Big \downarrow \) 2035 |
\(\displaystyle -\frac {2 \sqrt {x} \sqrt {x^2+x+1} \int \frac {x^4-x^2+1}{\sqrt {x^2+x+1} \left (1-x^4\right )}d\sqrt {x}}{\sqrt {x^3+x^2+x}}\) |
\(\Big \downarrow \) 7276 |
\(\displaystyle -\frac {2 \sqrt {x} \sqrt {x^2+x+1} \int \left (\frac {2-x^2}{\sqrt {x^2+x+1} \left (1-x^4\right )}-\frac {1}{\sqrt {x^2+x+1}}\right )d\sqrt {x}}{\sqrt {x^3+x^2+x}}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {2 \sqrt {x} \sqrt {x^2+x+1} \left (\frac {1}{8} \arctan \left (\frac {\sqrt {x}}{\sqrt {x^2+x+1}}\right )+\frac {3}{4} \text {arctanh}\left (\frac {\sqrt {x}}{\sqrt {x^2+x+1}}\right )+\frac {\text {arctanh}\left (\frac {\sqrt {3} \sqrt {x}}{\sqrt {x^2+x+1}}\right )}{8 \sqrt {3}}\right )}{\sqrt {x^3+x^2+x}}\) |
Input:
Int[(1 - x^2 + x^4)/(Sqrt[x + x^2 + x^3]*(-1 + x^4)),x]
Output:
(-2*Sqrt[x]*Sqrt[1 + x + x^2]*(ArcTan[Sqrt[x]/Sqrt[1 + x + x^2]]/8 + (3*Ar cTanh[Sqrt[x]/Sqrt[1 + x + x^2]])/4 + ArcTanh[(Sqrt[3]*Sqrt[x])/Sqrt[1 + x + x^2]]/(8*Sqrt[3])))/Sqrt[x + x^2 + x^3]
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_)), x_Symbol] :> With[{v = RationalFunctionE xpand[u/(a + b*x^n), x]}, Int[v, x] /; SumQ[v]] /; FreeQ[{a, b}, x] && IGtQ [n, 0]
Time = 1.08 (sec) , antiderivative size = 83, normalized size of antiderivative = 0.93
method | result | size |
default | \(-\frac {\sqrt {3}\, \operatorname {arctanh}\left (\frac {\sqrt {x \left (x^{2}+x +1\right )}\, \sqrt {3}}{3 x}\right )}{12}+\frac {3 \ln \left (\frac {\sqrt {x \left (x^{2}+x +1\right )}-x}{x}\right )}{4}-\frac {3 \ln \left (\frac {\sqrt {x \left (x^{2}+x +1\right )}+x}{x}\right )}{4}+\frac {\arctan \left (\frac {\sqrt {x \left (x^{2}+x +1\right )}}{x}\right )}{4}\) | \(83\) |
pseudoelliptic | \(-\frac {\sqrt {3}\, \operatorname {arctanh}\left (\frac {\sqrt {x \left (x^{2}+x +1\right )}\, \sqrt {3}}{3 x}\right )}{12}+\frac {3 \ln \left (\frac {\sqrt {x \left (x^{2}+x +1\right )}-x}{x}\right )}{4}-\frac {3 \ln \left (\frac {\sqrt {x \left (x^{2}+x +1\right )}+x}{x}\right )}{4}+\frac {\arctan \left (\frac {\sqrt {x \left (x^{2}+x +1\right )}}{x}\right )}{4}\) | \(83\) |
trager | \(-\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-3\right ) \ln \left (\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}-3\right ) x^{2}+4 \operatorname {RootOf}\left (\textit {\_Z}^{2}-3\right ) x +\operatorname {RootOf}\left (\textit {\_Z}^{2}-3\right )+6 \sqrt {x^{3}+x^{2}+x}}{\left (-1+x \right )^{2}}\right )}{24}+\frac {\operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right ) \ln \left (\frac {-\operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right ) x^{2}+2 \sqrt {x^{3}+x^{2}+x}-\operatorname {RootOf}\left (\textit {\_Z}^{2}+1\right )}{\left (1+x \right )^{2}}\right )}{8}-\frac {3 \ln \left (\frac {x^{2}+2 \sqrt {x^{3}+x^{2}+x}+2 x +1}{x^{2}+1}\right )}{4}\) | \(133\) |
elliptic | \(\text {Expression too large to display}\) | \(1764\) |
Input:
int((x^4-x^2+1)/(x^3+x^2+x)^(1/2)/(x^4-1),x,method=_RETURNVERBOSE)
Output:
-1/12*3^(1/2)*arctanh(1/3*(x*(x^2+x+1))^(1/2)/x*3^(1/2))+3/4*ln(((x*(x^2+x +1))^(1/2)-x)/x)-3/4*ln(((x*(x^2+x+1))^(1/2)+x)/x)+1/4*arctan((x*(x^2+x+1) )^(1/2)/x)
Time = 0.13 (sec) , antiderivative size = 122, normalized size of antiderivative = 1.37 \[ \int \frac {1-x^2+x^4}{\sqrt {x+x^2+x^3} \left (-1+x^4\right )} \, dx=\frac {1}{48} \, \sqrt {3} \log \left (\frac {x^{4} + 20 \, x^{3} - 4 \, \sqrt {3} \sqrt {x^{3} + x^{2} + x} {\left (x^{2} + 4 \, x + 1\right )} + 30 \, x^{2} + 20 \, x + 1}{x^{4} - 4 \, x^{3} + 6 \, x^{2} - 4 \, x + 1}\right ) - \frac {1}{8} \, \arctan \left (\frac {2 \, \sqrt {x^{3} + x^{2} + x}}{x^{2} + 1}\right ) + \frac {3}{4} \, \log \left (\frac {x^{2} + 2 \, x - 2 \, \sqrt {x^{3} + x^{2} + x} + 1}{x^{2} + 1}\right ) \] Input:
integrate((x^4-x^2+1)/(x^3+x^2+x)^(1/2)/(x^4-1),x, algorithm="fricas")
Output:
1/48*sqrt(3)*log((x^4 + 20*x^3 - 4*sqrt(3)*sqrt(x^3 + x^2 + x)*(x^2 + 4*x + 1) + 30*x^2 + 20*x + 1)/(x^4 - 4*x^3 + 6*x^2 - 4*x + 1)) - 1/8*arctan(2* sqrt(x^3 + x^2 + x)/(x^2 + 1)) + 3/4*log((x^2 + 2*x - 2*sqrt(x^3 + x^2 + x ) + 1)/(x^2 + 1))
\[ \int \frac {1-x^2+x^4}{\sqrt {x+x^2+x^3} \left (-1+x^4\right )} \, dx=\int \frac {x^{4} - x^{2} + 1}{\sqrt {x \left (x^{2} + x + 1\right )} \left (x - 1\right ) \left (x + 1\right ) \left (x^{2} + 1\right )}\, dx \] Input:
integrate((x**4-x**2+1)/(x**3+x**2+x)**(1/2)/(x**4-1),x)
Output:
Integral((x**4 - x**2 + 1)/(sqrt(x*(x**2 + x + 1))*(x - 1)*(x + 1)*(x**2 + 1)), x)
\[ \int \frac {1-x^2+x^4}{\sqrt {x+x^2+x^3} \left (-1+x^4\right )} \, dx=\int { \frac {x^{4} - x^{2} + 1}{{\left (x^{4} - 1\right )} \sqrt {x^{3} + x^{2} + x}} \,d x } \] Input:
integrate((x^4-x^2+1)/(x^3+x^2+x)^(1/2)/(x^4-1),x, algorithm="maxima")
Output:
integrate((x^4 - x^2 + 1)/((x^4 - 1)*sqrt(x^3 + x^2 + x)), x)
\[ \int \frac {1-x^2+x^4}{\sqrt {x+x^2+x^3} \left (-1+x^4\right )} \, dx=\int { \frac {x^{4} - x^{2} + 1}{{\left (x^{4} - 1\right )} \sqrt {x^{3} + x^{2} + x}} \,d x } \] Input:
integrate((x^4-x^2+1)/(x^3+x^2+x)^(1/2)/(x^4-1),x, algorithm="giac")
Output:
integrate((x^4 - x^2 + 1)/((x^4 - 1)*sqrt(x^3 + x^2 + x)), x)
Time = 0.04 (sec) , antiderivative size = 698, normalized size of antiderivative = 7.84 \[ \int \frac {1-x^2+x^4}{\sqrt {x+x^2+x^3} \left (-1+x^4\right )} \, dx=\text {Too large to display} \] Input:
int((x^4 - x^2 + 1)/((x^4 - 1)*(x + x^2 + x^3)^(1/2)),x)
Output:
(2*((3^(1/2)*1i)/2 - 1/2)*(x/((3^(1/2)*1i)/2 - 1/2))^(1/2)*(-(x - (3^(1/2) *1i)/2 + 1/2)/((3^(1/2)*1i)/2 - 1/2))^(1/2)*((x + (3^(1/2)*1i)/2 + 1/2)/(( 3^(1/2)*1i)/2 + 1/2))^(1/2)*ellipticF(asin((x/((3^(1/2)*1i)/2 - 1/2))^(1/2 )), -((3^(1/2)*1i)/2 - 1/2)/((3^(1/2)*1i)/2 + 1/2)))/(x^2 + x^3 - x*((3^(1 /2)*1i)/2 - 1/2)*((3^(1/2)*1i)/2 + 1/2))^(1/2) - (3*((3^(1/2)*1i)/2 - 1/2) *(x/((3^(1/2)*1i)/2 - 1/2))^(1/2)*(-(x - (3^(1/2)*1i)/2 + 1/2)/((3^(1/2)*1 i)/2 - 1/2))^(1/2)*((x + (3^(1/2)*1i)/2 + 1/2)/((3^(1/2)*1i)/2 + 1/2))^(1/ 2)*ellipticPi(- 3^(1/2)/2 - 1i/2, asin((x/((3^(1/2)*1i)/2 - 1/2))^(1/2)), -((3^(1/2)*1i)/2 - 1/2)/((3^(1/2)*1i)/2 + 1/2)))/(2*(x^2 + x^3 - x*((3^(1/ 2)*1i)/2 - 1/2)*((3^(1/2)*1i)/2 + 1/2))^(1/2)) - (3*((3^(1/2)*1i)/2 - 1/2) *(x/((3^(1/2)*1i)/2 - 1/2))^(1/2)*(-(x - (3^(1/2)*1i)/2 + 1/2)/((3^(1/2)*1 i)/2 - 1/2))^(1/2)*((x + (3^(1/2)*1i)/2 + 1/2)/((3^(1/2)*1i)/2 + 1/2))^(1/ 2)*ellipticPi(3^(1/2)/2 + 1i/2, asin((x/((3^(1/2)*1i)/2 - 1/2))^(1/2)), -( (3^(1/2)*1i)/2 - 1/2)/((3^(1/2)*1i)/2 + 1/2)))/(2*(x^2 + x^3 - x*((3^(1/2) *1i)/2 - 1/2)*((3^(1/2)*1i)/2 + 1/2))^(1/2)) - (((3^(1/2)*1i)/2 - 1/2)*(x/ ((3^(1/2)*1i)/2 - 1/2))^(1/2)*(-(x - (3^(1/2)*1i)/2 + 1/2)/((3^(1/2)*1i)/2 - 1/2))^(1/2)*((x + (3^(1/2)*1i)/2 + 1/2)/((3^(1/2)*1i)/2 + 1/2))^(1/2)*e llipticPi(1/2 - (3^(1/2)*1i)/2, asin((x/((3^(1/2)*1i)/2 - 1/2))^(1/2)), -( (3^(1/2)*1i)/2 - 1/2)/((3^(1/2)*1i)/2 + 1/2)))/(2*(x^2 + x^3 - x*((3^(1/2) *1i)/2 - 1/2)*((3^(1/2)*1i)/2 + 1/2))^(1/2)) - (((3^(1/2)*1i)/2 - 1/2)*...
\[ \int \frac {1-x^2+x^4}{\sqrt {x+x^2+x^3} \left (-1+x^4\right )} \, dx=\int \frac {\sqrt {x}\, \sqrt {x^{2}+x +1}\, x^{3}}{x^{6}+x^{5}+x^{4}-x^{2}-x -1}d x -\left (\int \frac {\sqrt {x}\, \sqrt {x^{2}+x +1}\, x}{x^{6}+x^{5}+x^{4}-x^{2}-x -1}d x \right )+\int \frac {\sqrt {x}\, \sqrt {x^{2}+x +1}}{x^{7}+x^{6}+x^{5}-x^{3}-x^{2}-x}d x \] Input:
int((x^4-x^2+1)/(x^3+x^2+x)^(1/2)/(x^4-1),x)
Output:
int((sqrt(x)*sqrt(x**2 + x + 1)*x**3)/(x**6 + x**5 + x**4 - x**2 - x - 1), x) - int((sqrt(x)*sqrt(x**2 + x + 1)*x)/(x**6 + x**5 + x**4 - x**2 - x - 1 ),x) + int((sqrt(x)*sqrt(x**2 + x + 1))/(x**7 + x**6 + x**5 - x**3 - x**2 - x),x)