Integrand size = 70, antiderivative size = 215 \[ \int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx=\frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (3 a q^3+4 b q^2 x+6 c q x^2-3 a p q^2 x^2-8 b p q x^3+9 a p q^2 x^3+8 b p q x^4+6 c p x^5-3 a p^2 q x^5+9 a p^2 q x^6+4 b p^2 x^7+3 a p^3 x^9\right )}{12 x^4}+\frac {1}{2} \left (2 c p q+a p^2 q^2\right ) \log (x)+\frac {1}{2} \left (-2 c p q-a p^2 q^2\right ) \log \left (q+p x^3+\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}\right ) \]
[Out]
\[ \int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx=\int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx \]
[In]
[Out]
Rubi steps \begin{align*} \text {integral}& = \int \left (2 c p \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}-\frac {a q^3 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^5}-\frac {b q^2 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^4}-\frac {c q \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^3}+\frac {b p q \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x}+3 a p^2 q x \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}+2 b p^2 x^2 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}+2 a p^3 x^4 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}\right ) \, dx \\ & = (2 c p) \int \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \, dx+\left (2 b p^2\right ) \int x^2 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \, dx+\left (2 a p^3\right ) \int x^4 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \, dx-(c q) \int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^3} \, dx+(b p q) \int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x} \, dx+\left (3 a p^2 q\right ) \int x \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \, dx-\left (b q^2\right ) \int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^4} \, dx-\left (a q^3\right ) \int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^5} \, dx \\ \end{align*}
Time = 0.54 (sec) , antiderivative size = 176, normalized size of antiderivative = 0.82 \[ \int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx=\frac {\sqrt {q^2+2 p q (-1+x) x^2+p^2 x^6} \left (3 a \left (q^3+p^3 x^9+p q^2 x^2 (-1+3 x)+p^2 q x^5 (-1+3 x)\right )+2 x \left (3 c x \left (q+p x^3\right )+2 b \left (q^2+2 p q (-1+x) x^2+p^2 x^6\right )\right )\right )}{12 x^4}+\frac {1}{2} p q (2 c+a p q) \log (x)-\frac {1}{2} p q (2 c+a p q) \log \left (q+p x^3+\sqrt {q^2+2 p q (-1+x) x^2+p^2 x^6}\right ) \]
[In]
[Out]
Time = 0.28 (sec) , antiderivative size = 177, normalized size of antiderivative = 0.82
method | result | size |
pseudoelliptic | \(\frac {\left (3 a \,q^{3}+\left (9 a p \,x^{3}-3 a p \,x^{2}+4 b x \right ) q^{2}+\left (9 a \,p^{2} x^{6}-3 a \,p^{2} x^{5}+8 b p \,x^{4}-8 b p \,x^{3}+6 c \,x^{2}\right ) q +3 a \,p^{3} x^{9}+4 b \,p^{2} x^{7}+6 c p \,x^{5}\right ) \sqrt {p^{2} x^{6}+2 p q \,x^{2} \left (-1+x \right )+q^{2}}-6 p q \,x^{4} \left (a p q +2 c \right ) \ln \left (\frac {q +p \,x^{3}+\sqrt {p^{2} x^{6}+2 p q \,x^{2} \left (-1+x \right )+q^{2}}}{x}\right )}{12 x^{4}}\) | \(177\) |
[In]
[Out]
Timed out. \[ \int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx=\int \frac {\left (2 p x^{3} - q\right ) \sqrt {p^{2} x^{6} + 2 p q x^{3} - 2 p q x^{2} + q^{2}} \left (a p^{2} x^{6} + 2 a p q x^{3} + a q^{2} + b p x^{4} + b q x + c x^{2}\right )}{x^{5}}\, dx \]
[In]
[Out]
\[ \int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx=\int { \frac {\sqrt {p^{2} x^{6} + 2 \, p q x^{3} - 2 \, p q x^{2} + q^{2}} {\left (b p x^{4} + {\left (p x^{3} + q\right )}^{2} a + b q x + c x^{2}\right )} {\left (2 \, p x^{3} - q\right )}}{x^{5}} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx=\int { \frac {\sqrt {p^{2} x^{6} + 2 \, p q x^{3} - 2 \, p q x^{2} + q^{2}} {\left (b p x^{4} + {\left (p x^{3} + q\right )}^{2} a + b q x + c x^{2}\right )} {\left (2 \, p x^{3} - q\right )}}{x^{5}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (-q+2 p x^3\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6} \left (b q x+c x^2+b p x^4+a \left (q+p x^3\right )^2\right )}{x^5} \, dx=-\int \frac {\left (q-2\,p\,x^3\right )\,\left (a\,{\left (p\,x^3+q\right )}^2+c\,x^2+b\,p\,x^4+b\,q\,x\right )\,\sqrt {p^2\,x^6+2\,p\,q\,x^3-2\,p\,q\,x^2+q^2}}{x^5} \,d x \]
[In]
[Out]