Optimal. Leaf size=98 \[ -\frac {i c e^{-3 i a} x^3}{16 \sqrt {c x^2}}-\frac {9 i e^{i a} x}{16 \sqrt [6]{c x^2}}+\frac {9}{32} i e^{-i a} x \sqrt [6]{c x^2}+\frac {i e^{3 i a} x \log (x)}{8 \sqrt {c x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.118, Rules used = {4571, 4577}
\begin {gather*} \frac {9}{32} i e^{-i a} x \sqrt [6]{c x^2}-\frac {9 i e^{i a} x}{16 \sqrt [6]{c x^2}}+\frac {i e^{3 i a} x \log (x)}{8 \sqrt {c x^2}}-\frac {i e^{-3 i a} c x^3}{16 \sqrt {c x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 4571
Rule 4577
Rubi steps
\begin {align*} \int \sin ^3\left (a+\frac {1}{6} i \log \left (c x^2\right )\right ) \, dx &=\frac {x \text {Subst}\left (\int \frac {\sin ^3\left (a+\frac {1}{6} i \log (x)\right )}{\sqrt {x}} \, dx,x,c x^2\right )}{2 \sqrt {c x^2}}\\ &=\frac {(i x) \text {Subst}\left (\int \left (-e^{-3 i a}+\frac {e^{3 i a}}{x}-\frac {3 e^{i a}}{x^{2/3}}+\frac {3 e^{-i a}}{\sqrt [3]{x}}\right ) \, dx,x,c x^2\right )}{16 \sqrt {c x^2}}\\ &=-\frac {i c e^{-3 i a} x^3}{16 \sqrt {c x^2}}-\frac {9 i e^{i a} x}{16 \sqrt [6]{c x^2}}+\frac {9}{32} i e^{-i a} x \sqrt [6]{c x^2}+\frac {i e^{3 i a} x \log (x)}{8 \sqrt {c x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 103, normalized size = 1.05 \begin {gather*} \frac {x \left (9 i \sqrt [3]{c x^2} \left (-2+\sqrt [3]{c x^2}\right ) \cos (a)-2 i \cos (3 a) \left (c x^2-2 \log (x)\right )+18 \sqrt [3]{c x^2} \sin (a)+9 \left (c x^2\right )^{2/3} \sin (a)-2 c x^2 \sin (3 a)-4 \log (x) \sin (3 a)\right )}{32 \sqrt {c x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 283 vs. \(2 (74 ) = 148\).
time = 0.13, size = 284, normalized size = 2.90
method | result | size |
norman | \(\frac {-\frac {23 i x}{40}+\frac {27 x \tan \left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )}{10}+\frac {27 x \left (\tan ^{5}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{10}+\frac {33 i x \left (\tan ^{2}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{8}+\frac {23 i x \left (\tan ^{6}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{40}-\frac {33 i x \left (\tan ^{4}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{8}-\frac {3 x \ln \left (c \,x^{2}\right ) \tan \left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )}{8}+\frac {5 x \ln \left (c \,x^{2}\right ) \left (\tan ^{3}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{4}-\frac {3 x \ln \left (c \,x^{2}\right ) \left (\tan ^{5}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{8}+\frac {i x \ln \left (c \,x^{2}\right )}{16}-\frac {15 i x \ln \left (c \,x^{2}\right ) \left (\tan ^{2}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{16}+\frac {15 i x \ln \left (c \,x^{2}\right ) \left (\tan ^{4}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{16}-\frac {i x \ln \left (c \,x^{2}\right ) \left (\tan ^{6}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )}{16}}{\left (1+\tan ^{2}\left (\frac {a}{2}+\frac {i \ln \left (c \,x^{2}\right )}{12}\right )\right )^{3}}\) | \(284\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.28, size = 75, normalized size = 0.77 \begin {gather*} -\frac {9 \, c^{\frac {4}{3}} x^{\frac {4}{3}} {\left (-i \, \cos \left (a\right ) - \sin \left (a\right )\right )} + 18 \, c x^{\frac {2}{3}} {\left (i \, \cos \left (a\right ) - \sin \left (a\right )\right )} + 2 \, {\left (c x^{2} {\left (i \, \cos \left (3 \, a\right ) + \sin \left (3 \, a\right )\right )} + 2 \, {\left (-i \, \cos \left (3 \, a\right ) + \sin \left (3 \, a\right )\right )} \log \left (x\right )\right )} c^{\frac {2}{3}}}{32 \, c^{\frac {7}{6}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Both result and optimal contain complex but leaf count of result is larger than twice
the leaf count of optimal. 204 vs. \(2 (62) = 124\).
time = 6.06, size = 204, normalized size = 2.08 \begin {gather*} \frac {{\left (2 \, c x \sqrt {-\frac {e^{\left (6 i \, a\right )}}{c}} e^{\left (3 i \, a\right )} \log \left (\frac {{\left (\sqrt {c x^{2}} {\left (x^{2} + 1\right )} e^{\left (3 i \, a\right )} - {\left (i \, c x^{3} - i \, c x\right )} \sqrt {-\frac {e^{\left (6 i \, a\right )}}{c}}\right )} e^{\left (-3 i \, a\right )}}{8 \, x^{2}}\right ) - 2 \, c x \sqrt {-\frac {e^{\left (6 i \, a\right )}}{c}} e^{\left (3 i \, a\right )} \log \left (\frac {{\left (\sqrt {c x^{2}} {\left (x^{2} + 1\right )} e^{\left (3 i \, a\right )} - {\left (-i \, c x^{3} + i \, c x\right )} \sqrt {-\frac {e^{\left (6 i \, a\right )}}{c}}\right )} e^{\left (-3 i \, a\right )}}{8 \, x^{2}}\right ) + 9 i \, \left (c x^{2}\right )^{\frac {1}{6}} c x^{2} e^{\left (2 i \, a\right )} - 18 i \, \left (c x^{2}\right )^{\frac {5}{6}} e^{\left (4 i \, a\right )} - 2 \, \sqrt {c x^{2}} {\left (i \, c x^{2} - i \, c\right )}\right )} e^{\left (-3 i \, a\right )}}{32 \, c x} \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 \sin ^{3}{\left (a + \frac {i \log {\left (c x^{2} \right )}}{6} \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 {\sin \left (a+\frac {\ln \left (c\,x^2\right )\,1{}\mathrm {i}}{6}\right )}^3 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________