Optimal. Leaf size=175 \[ \frac {2 \sqrt {2 a^2 p q-b^2} \tan ^{-1}\left (\frac {x \sqrt {2 a^2 p q-b^2}}{a \sqrt {p^2 x^6+2 p q x^3-2 p q x^2+q^2}+a p x^3+a q+b x}\right )}{a^2}-\frac {b \log \left (\sqrt {p^2 x^6+2 p q x^3-2 p q x^2+q^2}+p x^3+q\right )}{a^2}+\frac {b \log (x)}{a^2}+\frac {\sqrt {p^2 x^6+2 p q x^3-2 p q x^2+q^2}}{a x} \]
________________________________________________________________________________________
Rubi [F] time = 2.91, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \begin {gather*} \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}}{x^2 \left (a q+b x+a p x^3\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \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}}{x^2 \left (a q+b x+a p x^3\right )} \, dx &=\int \left (-\frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a x^2}+\frac {b \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a^2 q x}+\frac {\left (-b^2+3 a^2 p q x-a b p x^2\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a^2 q \left (a q+b x+a p x^3\right )}\right ) \, dx\\ &=-\frac {\int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^2} \, dx}{a}+\frac {\int \frac {\left (-b^2+3 a^2 p q x-a b p x^2\right ) \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a q+b x+a p x^3} \, dx}{a^2 q}+\frac {b \int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x} \, dx}{a^2 q}\\ &=-\frac {\int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^2} \, dx}{a}+\frac {\int \left (-\frac {b^2 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a q+b x+a p x^3}+\frac {3 a^2 p q x \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a q+b x+a p x^3}-\frac {a b p x^2 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a q+b x+a p x^3}\right ) \, dx}{a^2 q}+\frac {b \int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x} \, dx}{a^2 q}\\ &=-\frac {\int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x^2} \, dx}{a}+(3 p) \int \frac {x \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a q+b x+a p x^3} \, dx+\frac {b \int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{x} \, dx}{a^2 q}-\frac {b^2 \int \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a q+b x+a p x^3} \, dx}{a^2 q}-\frac {(b p) \int \frac {x^2 \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a q+b x+a p x^3} \, dx}{a q}\\ \end {align*}
________________________________________________________________________________________
Mathematica [F] time = 1.85, size = 0, normalized size = 0.00 \begin {gather*} \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}}{x^2 \left (a q+b x+a p x^3\right )} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 1.00, size = 175, normalized size = 1.00 \begin {gather*} \frac {\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}{a x}+\frac {2 \sqrt {-b^2+2 a^2 p q} \tan ^{-1}\left (\frac {\sqrt {-b^2+2 a^2 p q} x}{a q+b x+a p x^3+a \sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}}\right )}{a^2}+\frac {b \log (x)}{a^2}-\frac {b \log \left (q+p x^3+\sqrt {q^2-2 p q x^2+2 p q x^3+p^2 x^6}\right )}{a^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {p^{2} x^{6} + 2 \, p q x^{3} - 2 \, p q x^{2} + q^{2}} {\left (2 \, p x^{3} - q\right )}}{{\left (a p x^{3} + a q + b x\right )} x^{2}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.02, size = 0, normalized size = 0.00 \[\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}}}{x^{2} \left (a p \,x^{3}+a q +b x \right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {p^{2} x^{6} + 2 \, p q x^{3} - 2 \, p q x^{2} + q^{2}} {\left (2 \, p x^{3} - q\right )}}{{\left (a p x^{3} + a q + b x\right )} x^{2}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int -\frac {\left (q-2\,p\,x^3\right )\,\sqrt {p^2\,x^6+2\,p\,q\,x^3-2\,p\,q\,x^2+q^2}}{x^2\,\left (a\,p\,x^3+b\,x+a\,q\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________