Integrand size = 32, antiderivative size = 15 \[ \int \frac {2+x-x^3}{\sqrt {1+x+x^3} \left (1+x-x^2+x^3\right )} \, dx=2 \text {arctanh}\left (\frac {x}{\sqrt {1+x+x^3}}\right ) \]
Time = 0.26 (sec) , antiderivative size = 15, normalized size of antiderivative = 1.00 \[ \int \frac {2+x-x^3}{\sqrt {1+x+x^3} \left (1+x-x^2+x^3\right )} \, dx=2 \text {arctanh}\left (\frac {x}{\sqrt {1+x+x^3}}\right ) \]
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^3+x+2}{\sqrt {x^3+x+1} \left (x^3-x^2+x+1\right )} \, dx\) |
\(\Big \downarrow \) 7293 |
\(\displaystyle \int \left (\frac {-x^2+2 x+3}{\sqrt {x^3+x+1} \left (x^3-x^2+x+1\right )}-\frac {1}{\sqrt {x^3+x+1}}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle 3 \int \frac {1}{\sqrt {x^3+x+1} \left (x^3-x^2+x+1\right )}dx+2 \int \frac {x}{\sqrt {x^3+x+1} \left (x^3-x^2+x+1\right )}dx-\int \frac {x^2}{\sqrt {x^3+x+1} \left (x^3-x^2+x+1\right )}dx-\frac {2 i \sqrt {\frac {6^{2/3} x-\sqrt [3]{2 \left (\sqrt {93}-9\right )}+2 \sqrt [3]{\frac {3}{\sqrt {93}-9}}}{6 \sqrt [3]{\frac {3}{\sqrt {93}-9}}-3 \sqrt [3]{2 \left (\sqrt {93}-9\right )}-i \sqrt [6]{6} \sqrt {12+6 \sqrt [3]{3} \left (\frac {2}{\sqrt {93}-9}\right )^{2/3}+\sqrt [3]{2} \left (3 \left (\sqrt {93}-9\right )\right )^{2/3}}}} \sqrt {18 x^2-6 \sqrt [3]{3} \left (\sqrt [3]{\frac {6}{\sqrt {93}-9}}-\sqrt [3]{\frac {1}{2} \left (\sqrt {93}-9\right )}\right ) x+\sqrt [3]{2} \left (3 \left (\sqrt {93}-9\right )\right )^{2/3}+6 \sqrt [3]{3} \left (\frac {2}{\sqrt {93}-9}\right )^{2/3}+6} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {i \left (\sqrt [3]{6} \left (2 \sqrt [3]{\frac {3}{-9+\sqrt {93}}}-\sqrt [3]{2 \left (-9+\sqrt {93}\right )}-i \sqrt [6]{6} \sqrt {12+6 \sqrt [3]{3} \left (\frac {2}{-9+\sqrt {93}}\right )^{2/3}+\sqrt [3]{2} \left (3 \left (-9+\sqrt {93}\right )\right )^{2/3}}\right )-12 x\right )}}{2^{3/4} \sqrt [4]{3 \left (12+6 \sqrt [3]{3} \left (\frac {2}{-9+\sqrt {93}}\right )^{2/3}+\sqrt [3]{2} \left (3 \left (-9+\sqrt {93}\right )\right )^{2/3}\right )}}\right ),\frac {2 \sqrt [6]{6} \sqrt {12+6 \sqrt [3]{3} \left (\frac {2}{-9+\sqrt {93}}\right )^{2/3}+\sqrt [3]{2} \left (3 \left (-9+\sqrt {93}\right )\right )^{2/3}}}{i \left (6 \sqrt [3]{\frac {3}{-9+\sqrt {93}}}-3 \sqrt [3]{2 \left (-9+\sqrt {93}\right )}\right )+\sqrt [6]{6} \sqrt {12+6 \sqrt [3]{3} \left (\frac {2}{-9+\sqrt {93}}\right )^{2/3}+\sqrt [3]{2} \left (3 \left (-9+\sqrt {93}\right )\right )^{2/3}}}\right )}{3 \sqrt {x^3+x+1}}\) |
3.1.67.3.1 Defintions of rubi rules used
Time = 2.58 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.07
method | result | size |
default | \(2 \,\operatorname {arctanh}\left (\frac {\sqrt {x^{3}+x +1}}{x}\right )\) | \(16\) |
pseudoelliptic | \(2 \,\operatorname {arctanh}\left (\frac {\sqrt {x^{3}+x +1}}{x}\right )\) | \(16\) |
trager | \(-\ln \left (-\frac {-x^{3}+2 \sqrt {x^{3}+x +1}\, x -x^{2}-x -1}{x^{3}-x^{2}+x +1}\right )\) | \(45\) |
elliptic | \(\text {Expression too large to display}\) | \(1905\) |
Leaf count of result is larger than twice the leaf count of optimal. 35 vs. \(2 (13) = 26\).
Time = 0.27 (sec) , antiderivative size = 35, normalized size of antiderivative = 2.33 \[ \int \frac {2+x-x^3}{\sqrt {1+x+x^3} \left (1+x-x^2+x^3\right )} \, dx=\log \left (\frac {x^{3} + x^{2} + 2 \, \sqrt {x^{3} + x + 1} x + x + 1}{x^{3} - x^{2} + x + 1}\right ) \]
\[ \int \frac {2+x-x^3}{\sqrt {1+x+x^3} \left (1+x-x^2+x^3\right )} \, dx=- \int \left (- \frac {x}{x^{3} \sqrt {x^{3} + x + 1} - x^{2} \sqrt {x^{3} + x + 1} + x \sqrt {x^{3} + x + 1} + \sqrt {x^{3} + x + 1}}\right )\, dx - \int \frac {x^{3}}{x^{3} \sqrt {x^{3} + x + 1} - x^{2} \sqrt {x^{3} + x + 1} + x \sqrt {x^{3} + x + 1} + \sqrt {x^{3} + x + 1}}\, dx - \int \left (- \frac {2}{x^{3} \sqrt {x^{3} + x + 1} - x^{2} \sqrt {x^{3} + x + 1} + x \sqrt {x^{3} + x + 1} + \sqrt {x^{3} + x + 1}}\right )\, dx \]
-Integral(-x/(x**3*sqrt(x**3 + x + 1) - x**2*sqrt(x**3 + x + 1) + x*sqrt(x **3 + x + 1) + sqrt(x**3 + x + 1)), x) - Integral(x**3/(x**3*sqrt(x**3 + x + 1) - x**2*sqrt(x**3 + x + 1) + x*sqrt(x**3 + x + 1) + sqrt(x**3 + x + 1 )), x) - Integral(-2/(x**3*sqrt(x**3 + x + 1) - x**2*sqrt(x**3 + x + 1) + x*sqrt(x**3 + x + 1) + sqrt(x**3 + x + 1)), x)
\[ \int \frac {2+x-x^3}{\sqrt {1+x+x^3} \left (1+x-x^2+x^3\right )} \, dx=\int { -\frac {x^{3} - x - 2}{{\left (x^{3} - x^{2} + x + 1\right )} \sqrt {x^{3} + x + 1}} \,d x } \]
\[ \int \frac {2+x-x^3}{\sqrt {1+x+x^3} \left (1+x-x^2+x^3\right )} \, dx=\int { -\frac {x^{3} - x - 2}{{\left (x^{3} - x^{2} + x + 1\right )} \sqrt {x^{3} + x + 1}} \,d x } \]
Time = 6.89 (sec) , antiderivative size = 2490, normalized size of antiderivative = 166.00 \[ \int \frac {2+x-x^3}{\sqrt {1+x+x^3} \left (1+x-x^2+x^3\right )} \, dx=\text {Too large to display} \]
symsum(-(2*(-(x + 1/(3*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) - ((31^(1/2 )*108^(1/2))/108 - 1/2)^(1/3))/((3^(1/2)*(1/(3*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) + ((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3))*1i)/2 - 1/(2*((31^( 1/2)*108^(1/2))/108 - 1/2)^(1/3)) + (3*((31^(1/2)*108^(1/2))/108 - 1/2)^(1 /3))/2))^(1/2)*((x + (3^(1/2)*(1/(3*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3) ) + ((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3))*1i)/2 - 1/(6*((31^(1/2)*108^(1 /2))/108 - 1/2)^(1/3)) + ((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)/2)/((3^(1/ 2)*(1/(3*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) + ((31^(1/2)*108^(1/2))/1 08 - 1/2)^(1/3))*1i)/2 - 1/(2*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) + (3 *((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3))/2))^(1/2)*((3^(1/2)*(1/(3*((31^(1 /2)*108^(1/2))/108 - 1/2)^(1/3)) + ((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) *1i)/2 - 1/(2*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) + (3*((31^(1/2)*108^ (1/2))/108 - 1/2)^(1/3))/2)*ellipticPi(((3^(1/2)*(1/(3*((31^(1/2)*108^(1/2 ))/108 - 1/2)^(1/3)) + ((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3))*1i)/2 - 1/( 2*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) + (3*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3))/2)/(root(z^3 - z^2 + z + 1, z, k) + (3^(1/2)*(1/(3*((31^(1/2) *108^(1/2))/108 - 1/2)^(1/3)) + ((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3))*1i )/2 - 1/(6*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) + ((31^(1/2)*108^(1/2)) /108 - 1/2)^(1/3)/2), asin(((x + (3^(1/2)*(1/(3*((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3)) + ((31^(1/2)*108^(1/2))/108 - 1/2)^(1/3))*1i)/2 - 1/(6*((...