Optimal. Leaf size=175 \[ \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} \text {ArcTan}\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} \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 1.93, 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 [A]
time = 0.76, size = 156, normalized size = 0.89 \begin {gather*} -\frac {-a \sqrt {q^2+2 p q (-1+x) x^2+p^2 x^6}-2 \sqrt {-b^2+2 a^2 p q} x \text {ArcTan}\left (\frac {\sqrt {-b^2+2 a^2 p q} x}{b x+a \left (q+p x^3+\sqrt {q^2+2 p q (-1+x) x^2+p^2 x^6}\right )}\right )+b x \tanh ^{-1}\left (\frac {\sqrt {q^2+2 p q (-1+x) x^2+p^2 x^6}}{q+p x^3}\right )}{a^2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.01, 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*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
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]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
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*} \text {could not integrate} \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]
________________________________________________________________________________________