Optimal. Leaf size=110 \[ -\frac {\sqrt {3} \tan ^{-1}\left (\frac {1}{\sqrt {3}}+\frac {\sqrt [3]{2} (2-x)}{\sqrt {3} \sqrt [3]{2-3 x+x^2}}\right )}{2 \sqrt [3]{2}}-\frac {\log (2-x)}{4 \sqrt [3]{2}}-\frac {\log (x)}{2 \sqrt [3]{2}}+\frac {3 \log \left (2-x-2^{2/3} \sqrt [3]{2-3 x+x^2}\right )}{4 \sqrt [3]{2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 176, normalized size of antiderivative = 1.60, number of steps
used = 2, number of rules used = 2, integrand size = 16, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {769, 124}
\begin {gather*} -\frac {\sqrt {3} \sqrt [3]{x-2} \sqrt [3]{x-1} \text {ArcTan}\left (\frac {1}{\sqrt {3}}-\frac {\sqrt [3]{2} (x-2)^{2/3}}{\sqrt {3} \sqrt [3]{x-1}}\right )}{2 \sqrt [3]{2} \sqrt [3]{x^2-3 x+2}}+\frac {3 \sqrt [3]{x-2} \sqrt [3]{x-1} \log \left (-\frac {(x-2)^{2/3}}{\sqrt [3]{2}}-\sqrt [3]{2} \sqrt [3]{x-1}\right )}{4 \sqrt [3]{2} \sqrt [3]{x^2-3 x+2}}-\frac {\sqrt [3]{x-2} \sqrt [3]{x-1} \log (x)}{2 \sqrt [3]{2} \sqrt [3]{x^2-3 x+2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 124
Rule 769
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt [3]{2-3 x+x^2}} \, dx &=\frac {\left (\sqrt [3]{-4+2 x} \sqrt [3]{-2+2 x}\right ) \int \frac {1}{x \sqrt [3]{-4+2 x} \sqrt [3]{-2+2 x}} \, dx}{\sqrt [3]{2-3 x+x^2}}\\ &=-\frac {\sqrt {3} \sqrt [3]{-2+x} \sqrt [3]{-1+x} \tan ^{-1}\left (\frac {1}{\sqrt {3}}-\frac {\sqrt [3]{2} (-2+x)^{2/3}}{\sqrt {3} \sqrt [3]{-1+x}}\right )}{2 \sqrt [3]{2} \sqrt [3]{2-3 x+x^2}}+\frac {3 \sqrt [3]{-2+x} \sqrt [3]{-1+x} \log \left (-\frac {(-2+x)^{2/3}}{\sqrt [3]{2}}-\sqrt [3]{2} \sqrt [3]{-1+x}\right )}{4 \sqrt [3]{2} \sqrt [3]{2-3 x+x^2}}-\frac {\sqrt [3]{-2+x} \sqrt [3]{-1+x} \log (x)}{2 \sqrt [3]{2} \sqrt [3]{2-3 x+x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.19, size = 162, normalized size = 1.47 \begin {gather*} \frac {2 \sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \sqrt [3]{2-3 x+x^2}}{2 \sqrt [3]{2}-\sqrt [3]{2} x+\sqrt [3]{2-3 x+x^2}}\right )+2 \log \left (-2 \sqrt [3]{2}+\sqrt [3]{2} x+2 \sqrt [3]{2-3 x+x^2}\right )-\log \left (4\ 2^{2/3}-4\ 2^{2/3} x+2^{2/3} x^2-2 \sqrt [3]{2} (-2+x) \sqrt [3]{2-3 x+x^2}+4 \left (2-3 x+x^2\right )^{2/3}\right )}{4 \sqrt [3]{2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
3.
time = 5.38, size = 1069, normalized size = 9.72
method | result | size |
trager | \(\text {Expression too large to display}\) | \(1069\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 277 vs.
\(2 (81) = 162\).
time = 2.30, size = 277, normalized size = 2.52 \begin {gather*} -\frac {1}{12} \, \sqrt {3} 2^{\frac {2}{3}} \arctan \left (\frac {\sqrt {3} 2^{\frac {1}{6}} {\left (2^{\frac {5}{6}} {\left (x^{6} + 36 \, x^{5} - 612 \, x^{4} + 2880 \, x^{3} - 5760 \, x^{2} + 5184 \, x - 1728\right )} + 12 \, \sqrt {2} {\left (x^{5} - 38 \, x^{4} + 252 \, x^{3} - 648 \, x^{2} + 720 \, x - 288\right )} {\left (x^{2} - 3 \, x + 2\right )}^{\frac {1}{3}} + 48 \cdot 2^{\frac {1}{6}} {\left (x^{4} - 6 \, x^{3} + 6 \, x^{2}\right )} {\left (x^{2} - 3 \, x + 2\right )}^{\frac {2}{3}}\right )}}{6 \, {\left (x^{6} - 108 \, x^{5} + 972 \, x^{4} - 3456 \, x^{3} + 6048 \, x^{2} - 5184 \, x + 1728\right )}}\right ) + \frac {1}{12} \cdot 2^{\frac {2}{3}} \log \left (\frac {2^{\frac {2}{3}} x^{2} + 6 \cdot 2^{\frac {1}{3}} {\left (x^{2} - 3 \, x + 2\right )}^{\frac {1}{3}} {\left (x - 2\right )} + 12 \, {\left (x^{2} - 3 \, x + 2\right )}^{\frac {2}{3}}}{x^{2}}\right ) - \frac {1}{24} \cdot 2^{\frac {2}{3}} \log \left (\frac {12 \cdot 2^{\frac {2}{3}} {\left (x^{2} - 3 \, x + 2\right )}^{\frac {2}{3}} {\left (x^{2} - 6 \, x + 6\right )} + 2^{\frac {1}{3}} {\left (x^{4} - 36 \, x^{3} + 180 \, x^{2} - 288 \, x + 144\right )} - 6 \, {\left (x^{3} - 14 \, x^{2} + 36 \, x - 24\right )} {\left (x^{2} - 3 \, x + 2\right )}^{\frac {1}{3}}}{x^{4}}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x \sqrt [3]{\left (x - 2\right ) \left (x - 1\right )}}\, dx \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 {1}{x\,{\left (x^2-3\,x+2\right )}^{1/3}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________