Integrand size = 18, antiderivative size = 23 \[ \int \frac {1+x}{(-2+x) \sqrt {1+x^3}} \, dx=-\frac {2}{3} \text {arctanh}\left (\frac {(1+x)^2}{3 \sqrt {1+x^3}}\right ) \]
[Out]
Time = 0.04 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {2163, 212} \[ \int \frac {1+x}{(-2+x) \sqrt {1+x^3}} \, dx=-\frac {2}{3} \text {arctanh}\left (\frac {(x+1)^2}{3 \sqrt {x^3+1}}\right ) \]
[In]
[Out]
Rule 212
Rule 2163
Rubi steps \begin{align*} \text {integral}& = -\left (2 \text {Subst}\left (\int \frac {1}{9-x^2} \, dx,x,\frac {(1+x)^2}{\sqrt {1+x^3}}\right )\right ) \\ & = -\frac {2}{3} \text {arctanh}\left (\frac {(1+x)^2}{3 \sqrt {1+x^3}}\right ) \\ \end{align*}
Time = 0.88 (sec) , antiderivative size = 31, normalized size of antiderivative = 1.35 \[ \int \frac {1+x}{(-2+x) \sqrt {1+x^3}} \, dx=-\frac {2}{3} \text {arctanh}\left (\frac {\frac {1}{3}+\frac {2 x}{3}+\frac {x^2}{3}}{\sqrt {1+x^3}}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(41\) vs. \(2(17)=34\).
Time = 0.82 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.83
method | result | size |
trager | \(-\frac {\ln \left (\frac {x^{3}+6 \sqrt {x^{3}+1}\, x +12 x^{2}+6 \sqrt {x^{3}+1}-6 x +10}{\left (-2+x \right )^{3}}\right )}{3}\) | \(42\) |
default | \(\frac {2 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, F\left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}-\frac {2 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \Pi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \frac {1}{2}-\frac {i \sqrt {3}}{6}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}\) | \(240\) |
elliptic | \(\frac {2 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, F\left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}-\frac {2 \left (\frac {3}{2}-\frac {i \sqrt {3}}{2}\right ) \sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}-\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\, \sqrt {\frac {x -\frac {1}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}+\frac {i \sqrt {3}}{2}}}\, \Pi \left (\sqrt {\frac {1+x}{\frac {3}{2}-\frac {i \sqrt {3}}{2}}}, \frac {1}{2}-\frac {i \sqrt {3}}{6}, \sqrt {\frac {-\frac {3}{2}+\frac {i \sqrt {3}}{2}}{-\frac {3}{2}-\frac {i \sqrt {3}}{2}}}\right )}{\sqrt {x^{3}+1}}\) | \(240\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 44 vs. \(2 (17) = 34\).
Time = 0.27 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.91 \[ \int \frac {1+x}{(-2+x) \sqrt {1+x^3}} \, dx=\frac {1}{3} \, \log \left (\frac {x^{3} + 12 \, x^{2} - 6 \, \sqrt {x^{3} + 1} {\left (x + 1\right )} - 6 \, x + 10}{x^{3} - 6 \, x^{2} + 12 \, x - 8}\right ) \]
[In]
[Out]
\[ \int \frac {1+x}{(-2+x) \sqrt {1+x^3}} \, dx=\int \frac {x + 1}{\sqrt {\left (x + 1\right ) \left (x^{2} - x + 1\right )} \left (x - 2\right )}\, dx \]
[In]
[Out]
\[ \int \frac {1+x}{(-2+x) \sqrt {1+x^3}} \, dx=\int { \frac {x + 1}{\sqrt {x^{3} + 1} {\left (x - 2\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {1+x}{(-2+x) \sqrt {1+x^3}} \, dx=\int { \frac {x + 1}{\sqrt {x^{3} + 1} {\left (x - 2\right )}} \,d x } \]
[In]
[Out]
Time = 0.57 (sec) , antiderivative size = 204, normalized size of antiderivative = 8.87 \[ \int \frac {1+x}{(-2+x) \sqrt {1+x^3}} \, dx=\frac {\left (3+\sqrt {3}\,1{}\mathrm {i}\right )\,\sqrt {\frac {x-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\left (\mathrm {F}\left (\mathrm {asin}\left (\sqrt {\frac {x+1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )-\Pi \left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{6};\mathrm {asin}\left (\sqrt {\frac {x+1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\right )\middle |-\frac {\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{-\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}\right )\right )\,\sqrt {\frac {x+1}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}\,\sqrt {\frac {\frac {1}{2}-x+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}{\frac {3}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}}}}{\sqrt {x^3+\left (-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )-1\right )\,x-\left (-\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )\,\left (\frac {1}{2}+\frac {\sqrt {3}\,1{}\mathrm {i}}{2}\right )}} \]
[In]
[Out]