Optimal. Leaf size=143 \[ -\frac{3 i x^2 \sec ^2(x) \text{PolyLog}\left (2,e^{2 i x}\right )}{2 \sqrt{a \sec ^4(x)}}+\frac{3 x \sec ^2(x) \text{PolyLog}\left (3,e^{2 i x}\right )}{2 \sqrt{a \sec ^4(x)}}+\frac{3 i \sec ^2(x) \text{PolyLog}\left (4,e^{2 i x}\right )}{4 \sqrt{a \sec ^4(x)}}-\frac{i x^4 \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}+\frac{x^3 \log \left (1-e^{2 i x}\right ) \sec ^2(x)}{\sqrt{a \sec ^4(x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.610126, antiderivative size = 143, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.389, Rules used = {6720, 3717, 2190, 2531, 6609, 2282, 6589} \[ -\frac{3 i x^2 \sec ^2(x) \text{PolyLog}\left (2,e^{2 i x}\right )}{2 \sqrt{a \sec ^4(x)}}+\frac{3 x \sec ^2(x) \text{PolyLog}\left (3,e^{2 i x}\right )}{2 \sqrt{a \sec ^4(x)}}+\frac{3 i \sec ^2(x) \text{PolyLog}\left (4,e^{2 i x}\right )}{4 \sqrt{a \sec ^4(x)}}-\frac{i x^4 \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}+\frac{x^3 \log \left (1-e^{2 i x}\right ) \sec ^2(x)}{\sqrt{a \sec ^4(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6720
Rule 3717
Rule 2190
Rule 2531
Rule 6609
Rule 2282
Rule 6589
Rubi steps
\begin{align*} \int \frac{x^3 \csc (x) \sec (x)}{\sqrt{a \sec ^4(x)}} \, dx &=\frac{\sec ^2(x) \int x^3 \cot (x) \, dx}{\sqrt{a \sec ^4(x)}}\\ &=-\frac{i x^4 \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}-\frac{\left (2 i \sec ^2(x)\right ) \int \frac{e^{2 i x} x^3}{1-e^{2 i x}} \, dx}{\sqrt{a \sec ^4(x)}}\\ &=-\frac{i x^4 \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}+\frac{x^3 \log \left (1-e^{2 i x}\right ) \sec ^2(x)}{\sqrt{a \sec ^4(x)}}-\frac{\left (3 \sec ^2(x)\right ) \int x^2 \log \left (1-e^{2 i x}\right ) \, dx}{\sqrt{a \sec ^4(x)}}\\ &=-\frac{i x^4 \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}+\frac{x^3 \log \left (1-e^{2 i x}\right ) \sec ^2(x)}{\sqrt{a \sec ^4(x)}}-\frac{3 i x^2 \text{Li}_2\left (e^{2 i x}\right ) \sec ^2(x)}{2 \sqrt{a \sec ^4(x)}}+\frac{\left (3 i \sec ^2(x)\right ) \int x \text{Li}_2\left (e^{2 i x}\right ) \, dx}{\sqrt{a \sec ^4(x)}}\\ &=-\frac{i x^4 \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}+\frac{x^3 \log \left (1-e^{2 i x}\right ) \sec ^2(x)}{\sqrt{a \sec ^4(x)}}-\frac{3 i x^2 \text{Li}_2\left (e^{2 i x}\right ) \sec ^2(x)}{2 \sqrt{a \sec ^4(x)}}+\frac{3 x \text{Li}_3\left (e^{2 i x}\right ) \sec ^2(x)}{2 \sqrt{a \sec ^4(x)}}-\frac{\left (3 \sec ^2(x)\right ) \int \text{Li}_3\left (e^{2 i x}\right ) \, dx}{2 \sqrt{a \sec ^4(x)}}\\ &=-\frac{i x^4 \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}+\frac{x^3 \log \left (1-e^{2 i x}\right ) \sec ^2(x)}{\sqrt{a \sec ^4(x)}}-\frac{3 i x^2 \text{Li}_2\left (e^{2 i x}\right ) \sec ^2(x)}{2 \sqrt{a \sec ^4(x)}}+\frac{3 x \text{Li}_3\left (e^{2 i x}\right ) \sec ^2(x)}{2 \sqrt{a \sec ^4(x)}}+\frac{\left (3 i \sec ^2(x)\right ) \operatorname{Subst}\left (\int \frac{\text{Li}_3(x)}{x} \, dx,x,e^{2 i x}\right )}{4 \sqrt{a \sec ^4(x)}}\\ &=-\frac{i x^4 \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}+\frac{x^3 \log \left (1-e^{2 i x}\right ) \sec ^2(x)}{\sqrt{a \sec ^4(x)}}-\frac{3 i x^2 \text{Li}_2\left (e^{2 i x}\right ) \sec ^2(x)}{2 \sqrt{a \sec ^4(x)}}+\frac{3 x \text{Li}_3\left (e^{2 i x}\right ) \sec ^2(x)}{2 \sqrt{a \sec ^4(x)}}+\frac{3 i \text{Li}_4\left (e^{2 i x}\right ) \sec ^2(x)}{4 \sqrt{a \sec ^4(x)}}\\ \end{align*}
Mathematica [A] time = 0.0693036, size = 87, normalized size = 0.61 \[ -\frac{i \sec ^2(x) \left (-96 x^2 \text{PolyLog}\left (2,e^{-2 i x}\right )+96 i x \text{PolyLog}\left (3,e^{-2 i x}\right )+48 \text{PolyLog}\left (4,e^{-2 i x}\right )-16 x^4+64 i x^3 \log \left (1-e^{-2 i x}\right )+\pi ^4\right )}{64 \sqrt{a \sec ^4(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.069, size = 221, normalized size = 1.6 \begin{align*}{\frac{{\frac{i}{4}}{{\rm e}^{2\,ix}}{x}^{4}}{ \left ( 1+{{\rm e}^{2\,ix}} \right ) ^{2}}{\frac{1}{\sqrt{{\frac{a{{\rm e}^{4\,ix}}}{ \left ( 1+{{\rm e}^{2\,ix}} \right ) ^{4}}}}}}}+{\frac{2\,i}{ \left ( 1+{{\rm e}^{2\,ix}} \right ) ^{2}} \left ( -{\frac{{{\rm e}^{2\,ix}}{x}^{4}}{4}}-{\frac{i}{2}}{{\rm e}^{2\,ix}}{x}^{3}\ln \left ({{\rm e}^{ix}}+1 \right ) -{\frac{3\,{{\rm e}^{2\,ix}}{x}^{2}{\it polylog} \left ( 2,-{{\rm e}^{ix}} \right ) }{2}}-3\,i{{\rm e}^{2\,ix}}x{\it polylog} \left ( 3,-{{\rm e}^{ix}} \right ) +3\,{{\rm e}^{2\,ix}}{\it polylog} \left ( 4,-{{\rm e}^{ix}} \right ) -{\frac{i}{2}}{{\rm e}^{2\,ix}}{x}^{3}\ln \left ( 1-{{\rm e}^{ix}} \right ) -{\frac{3\,{{\rm e}^{2\,ix}}{x}^{2}{\it polylog} \left ( 2,{{\rm e}^{ix}} \right ) }{2}}-3\,i{{\rm e}^{2\,ix}}x{\it polylog} \left ( 3,{{\rm e}^{ix}} \right ) +3\,{{\rm e}^{2\,ix}}{\it polylog} \left ( 4,{{\rm e}^{ix}} \right ) \right ){\frac{1}{\sqrt{{\frac{a{{\rm e}^{4\,ix}}}{ \left ( 1+{{\rm e}^{2\,ix}} \right ) ^{4}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.55314, size = 185, normalized size = 1.29 \begin{align*} \frac{-i \, x^{4} + 4 i \, x^{3} \arctan \left (\sin \left (x\right ), \cos \left (x\right ) + 1\right ) - 4 i \, x^{3} \arctan \left (\sin \left (x\right ), -\cos \left (x\right ) + 1\right ) + 2 \, x^{3} \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} + 2 \, \cos \left (x\right ) + 1\right ) + 2 \, x^{3} \log \left (\cos \left (x\right )^{2} + \sin \left (x\right )^{2} - 2 \, \cos \left (x\right ) + 1\right ) - 12 i \, x^{2}{\rm Li}_2\left (-e^{\left (i \, x\right )}\right ) - 12 i \, x^{2}{\rm Li}_2\left (e^{\left (i \, x\right )}\right ) + 24 \, x{\rm Li}_{3}(-e^{\left (i \, x\right )}) + 24 \, x{\rm Li}_{3}(e^{\left (i \, x\right )}) + 24 i \,{\rm Li}_{4}(-e^{\left (i \, x\right )}) + 24 i \,{\rm Li}_{4}(e^{\left (i \, x\right )})}{4 \, \sqrt{a}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 2.69629, size = 1180, normalized size = 8.25 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{x^{3} \csc \left (x\right ) \sec \left (x\right )}{\sqrt{a \sec \left (x\right )^{4}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]