Optimal. Leaf size=385 \[ \frac {a x \sqrt [3]{-x+x^3}}{2 c}+\frac {(a c+3 b c-3 a d) \text {ArcTan}\left (\frac {\sqrt {3} x}{x+2 \sqrt [3]{-x+x^3}}\right )}{2 \sqrt {3} c^2}+\frac {\sqrt {3} \sqrt [3]{c-d} (b c-a d) \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{c-d} x}{\sqrt [3]{c-d} x-2 \sqrt [3]{d} \sqrt [3]{-x+x^3}}\right )}{2 c^2 \sqrt [3]{d}}+\frac {(a c+3 b c-3 a d) \log \left (-x+\sqrt [3]{-x+x^3}\right )}{6 c^2}+\frac {\sqrt [3]{c-d} (b c-a d) \log \left (\sqrt [3]{c-d} x+\sqrt [3]{d} \sqrt [3]{-x+x^3}\right )}{2 c^2 \sqrt [3]{d}}+\frac {(-a c-3 b c+3 a d) \log \left (x^2+x \sqrt [3]{-x+x^3}+\left (-x+x^3\right )^{2/3}\right )}{12 c^2}-\frac {\sqrt [3]{c-d} (b c-a d) \log \left ((c-d)^{2/3} x^2-\sqrt [3]{c-d} \sqrt [3]{d} x \sqrt [3]{-x+x^3}+d^{2/3} \left (-x+x^3\right )^{2/3}\right )}{4 c^2 \sqrt [3]{d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.47, antiderivative size = 404, normalized size of antiderivative = 1.05, number of steps
used = 10, number of rules used = 9, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.281, Rules used = {2081, 595,
598, 335, 281, 337, 477, 476, 503} \begin {gather*} \frac {\sqrt [3]{x^3-x} \text {ArcTan}\left (\frac {\frac {2 x^{2/3}}{\sqrt [3]{x^2-1}}+1}{\sqrt {3}}\right ) (a (c-3 d)+3 b c)}{2 \sqrt {3} c^2 \sqrt [3]{x^2-1} \sqrt [3]{x}}+\frac {\sqrt {3} \sqrt [3]{x^3-x} \sqrt [3]{c-d} (b c-a d) \text {ArcTan}\left (\frac {1-\frac {2 x^{2/3} \sqrt [3]{c-d}}{\sqrt [3]{d} \sqrt [3]{x^2-1}}}{\sqrt {3}}\right )}{2 c^2 \sqrt [3]{d} \sqrt [3]{x^2-1} \sqrt [3]{x}}-\frac {\sqrt [3]{x^3-x} \sqrt [3]{c-d} (b c-a d) \log \left (d-c x^2\right )}{4 c^2 \sqrt [3]{d} \sqrt [3]{x^2-1} \sqrt [3]{x}}+\frac {\sqrt [3]{x^3-x} \log \left (x^{2/3}-\sqrt [3]{x^2-1}\right ) (a (c-3 d)+3 b c)}{4 c^2 \sqrt [3]{x^2-1} \sqrt [3]{x}}+\frac {3 \sqrt [3]{x^3-x} \sqrt [3]{c-d} (b c-a d) \log \left (x^{2/3} \sqrt [3]{c-d}+\sqrt [3]{d} \sqrt [3]{x^2-1}\right )}{4 c^2 \sqrt [3]{d} \sqrt [3]{x^2-1} \sqrt [3]{x}}+\frac {a \sqrt [3]{x^3-x} x}{2 c} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 281
Rule 335
Rule 337
Rule 476
Rule 477
Rule 503
Rule 595
Rule 598
Rule 2081
Rubi steps
\begin {align*} \int \frac {\left (-b+a x^2\right ) \sqrt [3]{-x+x^3}}{-d+c x^2} \, dx &=\frac {\sqrt [3]{-x+x^3} \int \frac {\sqrt [3]{x} \sqrt [3]{-1+x^2} \left (-b+a x^2\right )}{-d+c x^2} \, dx}{\sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}+\frac {\sqrt [3]{-x+x^3} \int \frac {\sqrt [3]{x} \left (\frac {2}{3} (3 b c-2 a d)-\frac {2}{3} (3 b c+a (c-3 d)) x^2\right )}{\left (-1+x^2\right )^{2/3} \left (-d+c x^2\right )} \, dx}{2 c \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}+\frac {\sqrt [3]{-x+x^3} \int \left (-\frac {2 (3 b c+a (c-3 d)) \sqrt [3]{x}}{3 c \left (-1+x^2\right )^{2/3}}+\frac {\left (-\frac {2}{3} (3 b c+a (c-3 d)) d+\frac {2}{3} c (3 b c-2 a d)\right ) \sqrt [3]{x}}{c \left (-1+x^2\right )^{2/3} \left (-d+c x^2\right )}\right ) \, dx}{2 c \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}-\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \int \frac {\sqrt [3]{x}}{\left (-1+x^2\right )^{2/3}} \, dx}{3 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\left ((c-d) (b c-a d) \sqrt [3]{-x+x^3}\right ) \int \frac {\sqrt [3]{x}}{\left (-1+x^2\right )^{2/3} \left (-d+c x^2\right )} \, dx}{c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}-\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {x^3}{\left (-1+x^6\right )^{2/3}} \, dx,x,\sqrt [3]{x}\right )}{c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\left (3 (c-d) (b c-a d) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {x^3}{\left (-1+x^6\right )^{2/3} \left (-d+c x^6\right )} \, dx,x,\sqrt [3]{x}\right )}{c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}-\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {x}{\left (-1+x^3\right )^{2/3}} \, dx,x,x^{2/3}\right )}{2 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\left (3 (c-d) (b c-a d) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {x}{\left (-1+x^3\right )^{2/3} \left (-d+c x^3\right )} \, dx,x,x^{2/3}\right )}{2 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}-\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {x}{1-x^3} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\left (3 (c-d) (b c-a d) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {x}{-d-(c-d) x^3} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}-\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {1}{1-x} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{6 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {1-x}{1+x+x^2} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{6 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {\left ((c-d)^{2/3} (b c-a d) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {1}{-\sqrt [3]{d}-\sqrt [3]{c-d} x} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\left ((c-d)^{2/3} (b c-a d) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {-\sqrt [3]{d}-\sqrt [3]{c-d} x}{d^{2/3}-\sqrt [3]{c-d} \sqrt [3]{d} x+(c-d)^{2/3} x^2} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}+\frac {(3 b c+a (c-3 d)) \sqrt [3]{-x+x^3} \log \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{6 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\sqrt [3]{c-d} (b c-a d) \sqrt [3]{-x+x^3} \log \left (\sqrt [3]{d}+\frac {\sqrt [3]{c-d} x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {1+2 x}{1+x+x^2} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{12 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {1}{1+x+x^2} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{4 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {\left (3 (c-d)^{2/3} (b c-a d) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {1}{d^{2/3}-\sqrt [3]{c-d} \sqrt [3]{d} x+(c-d)^{2/3} x^2} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{4 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {\left (\sqrt [3]{c-d} (b c-a d) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {-\sqrt [3]{c-d} \sqrt [3]{d}+2 (c-d)^{2/3} x}{d^{2/3}-\sqrt [3]{c-d} \sqrt [3]{d} x+(c-d)^{2/3} x^2} \, dx,x,\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{4 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}+\frac {(3 b c+a (c-3 d)) \sqrt [3]{-x+x^3} \log \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{6 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {(3 b c+a (c-3 d)) \sqrt [3]{-x+x^3} \log \left (1+\frac {x^{4/3}}{\left (-1+x^2\right )^{2/3}}+\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{12 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\sqrt [3]{c-d} (b c-a d) \sqrt [3]{-x+x^3} \log \left (\sqrt [3]{d}+\frac {\sqrt [3]{c-d} x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {\sqrt [3]{c-d} (b c-a d) \sqrt [3]{-x+x^3} \log \left (d^{2/3}+\frac {(c-d)^{2/3} x^{4/3}}{\left (-1+x^2\right )^{2/3}}-\frac {\sqrt [3]{c-d} \sqrt [3]{d} x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{4 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {\left ((3 b c+a (c-3 d)) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1+\frac {2 x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {\left (3 \sqrt [3]{c-d} (b c-a d) \sqrt [3]{-x+x^3}\right ) \text {Subst}\left (\int \frac {1}{-3-x^2} \, dx,x,1-\frac {2 \sqrt [3]{c-d} x^{2/3}}{\sqrt [3]{d} \sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ &=\frac {a x \sqrt [3]{-x+x^3}}{2 c}+\frac {(3 b c+a (c-3 d)) \sqrt [3]{-x+x^3} \tan ^{-1}\left (\frac {1+\frac {2 x^{2/3}}{\sqrt [3]{-1+x^2}}}{\sqrt {3}}\right )}{2 \sqrt {3} c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\sqrt {3} \sqrt [3]{c-d} (b c-a d) \sqrt [3]{-x+x^3} \tan ^{-1}\left (\frac {1-\frac {2 \sqrt [3]{c-d} x^{2/3}}{\sqrt [3]{d} \sqrt [3]{-1+x^2}}}{\sqrt {3}}\right )}{2 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {(3 b c+a (c-3 d)) \sqrt [3]{-x+x^3} \log \left (1-\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{6 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {(3 b c+a (c-3 d)) \sqrt [3]{-x+x^3} \log \left (1+\frac {x^{4/3}}{\left (-1+x^2\right )^{2/3}}+\frac {x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{12 c^2 \sqrt [3]{x} \sqrt [3]{-1+x^2}}+\frac {\sqrt [3]{c-d} (b c-a d) \sqrt [3]{-x+x^3} \log \left (\sqrt [3]{d}+\frac {\sqrt [3]{c-d} x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{2 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}-\frac {\sqrt [3]{c-d} (b c-a d) \sqrt [3]{-x+x^3} \log \left (d^{2/3}+\frac {(c-d)^{2/3} x^{4/3}}{\left (-1+x^2\right )^{2/3}}-\frac {\sqrt [3]{c-d} \sqrt [3]{d} x^{2/3}}{\sqrt [3]{-1+x^2}}\right )}{4 c^2 \sqrt [3]{d} \sqrt [3]{x} \sqrt [3]{-1+x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 8.80, size = 414, normalized size = 1.08 \begin {gather*} \frac {x^{2/3} \left (-1+x^2\right )^{2/3} \left (6 a c \sqrt [3]{d} x^{4/3} \sqrt [3]{-1+x^2}+2 \sqrt {3} (3 b c+a (c-3 d)) \sqrt [3]{d} \text {ArcTan}\left (\frac {\sqrt {3} x^{2/3}}{x^{2/3}+2 \sqrt [3]{-1+x^2}}\right )+6 \sqrt {3} \sqrt [3]{c-d} (b c-a d) \text {ArcTan}\left (\frac {\sqrt {3} \sqrt [3]{c-d} x^{2/3}}{\sqrt [3]{c-d} x^{2/3}-2 \sqrt [3]{d} \sqrt [3]{-1+x^2}}\right )+2 (3 b c+a (c-3 d)) \sqrt [3]{d} \log \left (-x^{2/3}+\sqrt [3]{-1+x^2}\right )+6 \sqrt [3]{c-d} (b c-a d) \log \left (\sqrt [3]{c-d} x^{2/3}+\sqrt [3]{d} \sqrt [3]{-1+x^2}\right )+\sqrt [3]{d} (-a c-3 b c+3 a d) \log \left (x^{4/3}+x^{2/3} \sqrt [3]{-1+x^2}+\left (-1+x^2\right )^{2/3}\right )-3 \sqrt [3]{c-d} (b c-a d) \log \left ((c-d)^{2/3} x^{4/3}-\sqrt [3]{c-d} \sqrt [3]{d} x^{2/3} \sqrt [3]{-1+x^2}+d^{2/3} \left (-1+x^2\right )^{2/3}\right )\right )}{12 c^2 \sqrt [3]{d} \left (x \left (-1+x^2\right )\right )^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.00, size = 0, normalized size = 0.00 \[\int \frac {\left (a \,x^{2}-b \right ) \left (x^{3}-x \right )^{\frac {1}{3}}}{c \,x^{2}-d}\, 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]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt [3]{x \left (x - 1\right ) \left (x + 1\right )} \left (a x^{2} - b\right )}{c x^{2} - d}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.45, size = 372, normalized size = 0.97 \begin {gather*} \frac {a x^{2} {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}}}{2 \, c} - \frac {{\left (b c^{2} - a c d - b c d + a d^{2}\right )} \left (-\frac {c - d}{d}\right )^{\frac {1}{3}} \log \left ({\left | -\left (-\frac {c - d}{d}\right )^{\frac {1}{3}} + {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}} \right |}\right )}{2 \, {\left (c^{3} - c^{2} d\right )}} - \frac {\sqrt {3} {\left (a c + 3 \, b c - 3 \, a d\right )} \arctan \left (\frac {1}{3} \, \sqrt {3} {\left (2 \, {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}} + 1\right )}\right )}{6 \, c^{2}} - \frac {{\left (a c + 3 \, b c - 3 \, a d\right )} \log \left ({\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {2}{3}} + {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}} + 1\right )}{12 \, c^{2}} + \frac {{\left (a c + 3 \, b c - 3 \, a d\right )} \log \left ({\left | {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}} - 1 \right |}\right )}{6 \, c^{2}} + \frac {{\left (\sqrt {3} {\left (-c d^{2} + d^{3}\right )}^{\frac {1}{3}} b c - \sqrt {3} {\left (-c d^{2} + d^{3}\right )}^{\frac {1}{3}} a d\right )} \arctan \left (\frac {\sqrt {3} {\left (\left (-\frac {c - d}{d}\right )^{\frac {1}{3}} + 2 \, {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}}\right )}}{3 \, \left (-\frac {c - d}{d}\right )^{\frac {1}{3}}}\right )}{2 \, c^{2} d} + \frac {{\left ({\left (-c d^{2} + d^{3}\right )}^{\frac {1}{3}} b c - {\left (-c d^{2} + d^{3}\right )}^{\frac {1}{3}} a d\right )} \log \left (\left (-\frac {c - d}{d}\right )^{\frac {2}{3}} + \left (-\frac {c - d}{d}\right )^{\frac {1}{3}} {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {1}{3}} + {\left (-\frac {1}{x^{2}} + 1\right )}^{\frac {2}{3}}\right )}{4 \, c^{2} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (x^3-x\right )}^{1/3}\,\left (b-a\,x^2\right )}{d-c\,x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________