Optimal. Leaf size=118 \[ -\frac {3 \log \left (\sqrt [3]{(x-1) \left (-2 q x+q+x^2\right )}-\sqrt [3]{q} (x-1)\right )}{4 \sqrt [3]{q}}+\frac {\sqrt {3} \tan ^{-1}\left (\frac {2 \sqrt [3]{q} (x-1)}{\sqrt {3} \sqrt [3]{(x-1) \left (-2 q x+q+x^2\right )}}+\frac {1}{\sqrt {3}}\right )}{2 \sqrt [3]{q}}+\frac {\log (1-x)}{4 \sqrt [3]{q}}+\frac {\log (x)}{2 \sqrt [3]{q}} \]
[Out]
________________________________________________________________________________________
Rubi [F] time = 21.94, 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 = {} \[ \int \frac {1}{x \sqrt [3]{(-1+x) \left (q-2 q x+x^2\right )}} \, dx \]
Verification is Not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt [3]{(-1+x) \left (q-2 q x+x^2\right )}} \, dx &=\operatorname {Subst}\left (\int \frac {1}{\left (\frac {1}{3} (1+2 q)+x\right ) \sqrt [3]{-\frac {2}{27} (1-q)^2 (1+8 q)-\frac {1}{3} (1-4 q) (1-q) x+x^3}} \, dx,x,\frac {1}{3} (-1-2 q)+x\right )\\ &=\frac {\left (\sqrt [3]{-1-2 q-\frac {1-5 q+4 q^2+\left (1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {-(-1+q)^3 q}\right )^{2/3}}{\sqrt [3]{1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {-(-1+q)^3 q}}}+3 x} \sqrt [3]{-1+5 q-4 q^2+\frac {(1-4 q)^2 (1-q)^2}{\left (1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}\right )^{2/3}}+\left (1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}\right )^{2/3}+9 \left (\frac {1}{3} (-1-2 q)+x\right )^2+\frac {\left (1-5 q+4 q^2+\left (1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}\right )^{2/3}\right ) (-1-2 q+3 x)}{\sqrt [3]{1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}}}}\right ) \operatorname {Subst}\left (\int \frac {1}{\left (\frac {1}{3} (1+2 q)+x\right ) \sqrt [3]{-\frac {1-5 q+4 q^2+\left (1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}\right )^{2/3}}{3 \sqrt [3]{1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}}}+x} \sqrt [3]{\frac {1}{9} \left (-1+5 q-4 q^2+\frac {(1-4 q)^2 (1-q)^2}{\left (1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}\right )^{2/3}}+\left (1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}\right )^{2/3}\right )+\frac {\left (1-5 q+4 q^2+\left (1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}\right )^{2/3}\right ) x}{3 \sqrt [3]{1+6 q-15 q^2+8 q^3+3 \sqrt {3} \sqrt {(1-q)^3 q}}}+x^2}} \, dx,x,\frac {1}{3} (-1-2 q)+x\right )}{3 \sqrt [3]{-q+3 q x-(1+2 q) x^2+x^3}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 0.20, size = 55, normalized size = 0.47 \[ \frac {3 \left ((x-1) \left (-2 q x+q+x^2\right )\right )^{2/3} \, _2F_1\left (\frac {2}{3},1;\frac {5}{3};\frac {x^2-2 q x+q}{q (x-1)^2}\right )}{4 q (x-1)^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 52.74, size = 1496, normalized size = 12.68 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (-{\left (2 \, q x - x^{2} - q\right )} {\left (x - 1\right )}\right )^{\frac {1}{3}} x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.05, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (\left (x -1\right ) \left (-2 q x +x^{2}+q \right )\right )^{\frac {1}{3}} x}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\left (-{\left (2 \, q x - x^{2} - q\right )} {\left (x - 1\right )}\right )^{\frac {1}{3}} x}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{x\,{\left (\left (x-1\right )\,\left (x^2-2\,q\,x+q\right )\right )}^{1/3}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________