Integrand size = 90, antiderivative size = 195 \[ \int \frac {\left (x^2 c_3-c_4\right ) \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \left (-x^2+x^4 c_3{}^2+2 x^2 c_3 c_4+c_4{}^2\right )} \, dx=6 \text {arctanh}\left (\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}}\right )-\frac {2 \arctan \left (\frac {\sqrt {1-c_0} \sqrt {-1+c_1} \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}}}{-1+c_0}\right ) \sqrt {-1+c_1}}{\sqrt {1-c_0}}-\frac {4 \arctan \left (\frac {\sqrt {-1-c_0} \sqrt {1+c_1} \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}}}{1+c_0}\right ) \sqrt {1+c_1}}{\sqrt {-1-c_0}} \]
[Out]
\[ \int \frac {\left (x^2 c_3-c_4\right ) \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \left (-x^2+x^4 c_3{}^2+2 x^2 c_3 c_4+c_4{}^2\right )} \, dx=\int \frac {\left (x^2 c_3-c_4\right ) \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \left (-x^2+x^4 c_3{}^2+2 x^2 c_3 c_4+c_4{}^2\right )} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \frac {\left (x^2 c_3-c_4\right ) \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \left (x^4 c_3{}^2+c_4{}^2+x^2 (-1+2 c_3 c_4)\right )} \, dx \\ & = \frac {\sqrt {x c_0+x^2 c_3+c_4} \int \frac {\left (x^2 c_3-c_4\right ) \sqrt {x c_1+x^2 c_3+c_4} \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {x c_0+x^2 c_3+c_4} \left (x^4 c_3{}^2+c_4{}^2+x^2 (-1+2 c_3 c_4)\right )} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}} \\ & = \frac {\sqrt {x c_0+x^2 c_3+c_4} \int \left (-\frac {3 \sqrt {x c_1+x^2 c_3+c_4}}{x \sqrt {x c_0+x^2 c_3+c_4}}+\frac {2 (-1+2 x c_3) \sqrt {x c_1+x^2 c_3+c_4}}{\left (-x+x^2 c_3+c_4\right ) \sqrt {x c_0+x^2 c_3+c_4}}+\frac {(1+2 x c_3) \sqrt {x c_1+x^2 c_3+c_4}}{\left (x+x^2 c_3+c_4\right ) \sqrt {x c_0+x^2 c_3+c_4}}\right ) \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}} \\ & = \frac {\sqrt {x c_0+x^2 c_3+c_4} \int \frac {(1+2 x c_3) \sqrt {x c_1+x^2 c_3+c_4}}{\left (x+x^2 c_3+c_4\right ) \sqrt {x c_0+x^2 c_3+c_4}} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}}+\frac {\left (2 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \frac {(-1+2 x c_3) \sqrt {x c_1+x^2 c_3+c_4}}{\left (-x+x^2 c_3+c_4\right ) \sqrt {x c_0+x^2 c_3+c_4}} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}}-\frac {\left (3 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \frac {\sqrt {x c_1+x^2 c_3+c_4}}{x \sqrt {x c_0+x^2 c_3+c_4}} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}} \\ & = \frac {\sqrt {x c_0+x^2 c_3+c_4} \int \left (\frac {2 c_3 \sqrt {x c_1+x^2 c_3+c_4}}{\sqrt {x c_0+x^2 c_3+c_4} \left (1+2 x c_3-\sqrt {1-4 c_3 c_4}\right )}+\frac {2 c_3 \sqrt {x c_1+x^2 c_3+c_4}}{\sqrt {x c_0+x^2 c_3+c_4} \left (1+2 x c_3+\sqrt {1-4 c_3 c_4}\right )}\right ) \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}}+\frac {\left (2 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \left (\frac {2 c_3 \sqrt {x c_1+x^2 c_3+c_4}}{\sqrt {x c_0+x^2 c_3+c_4} \left (-1+2 x c_3-\sqrt {1-4 c_3 c_4}\right )}+\frac {2 c_3 \sqrt {x c_1+x^2 c_3+c_4}}{\sqrt {x c_0+x^2 c_3+c_4} \left (-1+2 x c_3+\sqrt {1-4 c_3 c_4}\right )}\right ) \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}}-\frac {\left (3 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \frac {\sqrt {x c_1+x^2 c_3+c_4}}{x \sqrt {x c_0+x^2 c_3+c_4}} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}} \\ & = -\frac {\left (3 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \frac {\sqrt {x c_1+x^2 c_3+c_4}}{x \sqrt {x c_0+x^2 c_3+c_4}} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}}+\frac {\left (2 c_3 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \frac {\sqrt {x c_1+x^2 c_3+c_4}}{\sqrt {x c_0+x^2 c_3+c_4} \left (1+2 x c_3-\sqrt {1-4 c_3 c_4}\right )} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}}+\frac {\left (2 c_3 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \frac {\sqrt {x c_1+x^2 c_3+c_4}}{\sqrt {x c_0+x^2 c_3+c_4} \left (1+2 x c_3+\sqrt {1-4 c_3 c_4}\right )} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}}+\frac {\left (4 c_3 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \frac {\sqrt {x c_1+x^2 c_3+c_4}}{\sqrt {x c_0+x^2 c_3+c_4} \left (-1+2 x c_3-\sqrt {1-4 c_3 c_4}\right )} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}}+\frac {\left (4 c_3 \sqrt {x c_0+x^2 c_3+c_4}\right ) \int \frac {\sqrt {x c_1+x^2 c_3+c_4}}{\sqrt {x c_0+x^2 c_3+c_4} \left (-1+2 x c_3+\sqrt {1-4 c_3 c_4}\right )} \, dx}{\sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \sqrt {x c_1+x^2 c_3+c_4}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(43491\) vs. \(2(195)=390\).
Time = 6.51 (sec) , antiderivative size = 43491, normalized size of antiderivative = 223.03 \[ \int \frac {\left (x^2 c_3-c_4\right ) \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \left (-x^2+x^4 c_3{}^2+2 x^2 c_3 c_4+c_4{}^2\right )} \, dx=\text {Result too large to show} \]
[In]
[Out]
result has leaf size over 500,000. Avoiding possible recursion issues.
Time = 14.98 (sec) , antiderivative size = 35837869, normalized size of antiderivative = 183783.94
[In]
[Out]
Timed out. \[ \int \frac {\left (x^2 c_3-c_4\right ) \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \left (-x^2+x^4 c_3{}^2+2 x^2 c_3 c_4+c_4{}^2\right )} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\left (x^2 c_3-c_4\right ) \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \left (-x^2+x^4 c_3{}^2+2 x^2 c_3 c_4+c_4{}^2\right )} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \text {Failed to integrate} \]
[In]
[Out]
\[ \text {Failed to integrate} \]
[In]
[Out]
Timed out. \[ \int \frac {\left (x^2 c_3-c_4\right ) \left (x+3 x^2 c_3+3 c_4\right )}{x \sqrt {\frac {x c_0+x^2 c_3+c_4}{x c_1+x^2 c_3+c_4}} \left (-x^2+x^4 c_3{}^2+2 x^2 c_3 c_4+c_4{}^2\right )} \, dx=\int -\frac {\left (_{\mathrm {C4}}-_{\mathrm {C3}}\,x^2\right )\,\left (3\,_{\mathrm {C3}}\,x^2+x+3\,_{\mathrm {C4}}\right )}{x\,\sqrt {\frac {_{\mathrm {C3}}\,x^2+_{\mathrm {C0}}\,x+_{\mathrm {C4}}}{_{\mathrm {C3}}\,x^2+_{\mathrm {C1}}\,x+_{\mathrm {C4}}}}\,\left ({_{\mathrm {C3}}}^2\,x^4+2\,_{\mathrm {C3}}\,_{\mathrm {C4}}\,x^2+{_{\mathrm {C4}}}^2-x^2\right )} \,d x \]
[In]
[Out]