Optimal. Leaf size=69 \[ \frac {i \csc ^{-1}\left (a x^n\right )^2}{2 n}-\frac {\csc ^{-1}\left (a x^n\right ) \log \left (1-e^{2 i \csc ^{-1}\left (a x^n\right )}\right )}{n}+\frac {i \text {PolyLog}\left (2,e^{2 i \csc ^{-1}\left (a x^n\right )}\right )}{2 n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {5327, 4721,
3798, 2221, 2317, 2438} \begin {gather*} \frac {i \text {Li}_2\left (e^{2 i \csc ^{-1}\left (a x^n\right )}\right )}{2 n}+\frac {i \csc ^{-1}\left (a x^n\right )^2}{2 n}-\frac {\csc ^{-1}\left (a x^n\right ) \log \left (1-e^{2 i \csc ^{-1}\left (a x^n\right )}\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 3798
Rule 4721
Rule 5327
Rubi steps
\begin {align*} \int \frac {\csc ^{-1}\left (a x^n\right )}{x} \, dx &=\frac {\text {Subst}\left (\int \frac {\csc ^{-1}(a x)}{x} \, dx,x,x^n\right )}{n}\\ &=-\frac {\text {Subst}\left (\int \frac {\sin ^{-1}\left (\frac {x}{a}\right )}{x} \, dx,x,x^{-n}\right )}{n}\\ &=-\frac {\text {Subst}\left (\int x \cot (x) \, dx,x,\sin ^{-1}\left (\frac {x^{-n}}{a}\right )\right )}{n}\\ &=\frac {i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )^2}{2 n}+\frac {(2 i) \text {Subst}\left (\int \frac {e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\sin ^{-1}\left (\frac {x^{-n}}{a}\right )\right )}{n}\\ &=\frac {i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )^2}{2 n}-\frac {\sin ^{-1}\left (\frac {x^{-n}}{a}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )}\right )}{n}+\frac {\text {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\sin ^{-1}\left (\frac {x^{-n}}{a}\right )\right )}{n}\\ &=\frac {i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )^2}{2 n}-\frac {\sin ^{-1}\left (\frac {x^{-n}}{a}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )}\right )}{n}-\frac {i \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )}\right )}{2 n}\\ &=\frac {i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )^2}{2 n}-\frac {\sin ^{-1}\left (\frac {x^{-n}}{a}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )}\right )}{n}+\frac {i \text {Li}_2\left (e^{2 i \sin ^{-1}\left (\frac {x^{-n}}{a}\right )}\right )}{2 n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 0.06, size = 63, normalized size = 0.91 \begin {gather*} -\frac {x^{-n} \, _3F_2\left (\frac {1}{2},\frac {1}{2},\frac {1}{2};\frac {3}{2},\frac {3}{2};\frac {x^{-2 n}}{a^2}\right )}{a n}+\left (\csc ^{-1}\left (a x^n\right )-\text {ArcSin}\left (\frac {x^{-n}}{a}\right )\right ) \log (x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.32, size = 155, normalized size = 2.25
method | result | size |
derivativedivides | \(\frac {\frac {i \mathrm {arccsc}\left (a \,x^{n}\right )^{2}}{2}-\mathrm {arccsc}\left (a \,x^{n}\right ) \ln \left (1-\frac {i x^{-n}}{a}-\sqrt {1-\frac {x^{-2 n}}{a^{2}}}\right )-\mathrm {arccsc}\left (a \,x^{n}\right ) \ln \left (1+\frac {i x^{-n}}{a}+\sqrt {1-\frac {x^{-2 n}}{a^{2}}}\right )+i \polylog \left (2, \frac {i x^{-n}}{a}+\sqrt {1-\frac {x^{-2 n}}{a^{2}}}\right )+i \polylog \left (2, -\frac {i x^{-n}}{a}-\sqrt {1-\frac {x^{-2 n}}{a^{2}}}\right )}{n}\) | \(155\) |
default | \(\frac {\frac {i \mathrm {arccsc}\left (a \,x^{n}\right )^{2}}{2}-\mathrm {arccsc}\left (a \,x^{n}\right ) \ln \left (1-\frac {i x^{-n}}{a}-\sqrt {1-\frac {x^{-2 n}}{a^{2}}}\right )-\mathrm {arccsc}\left (a \,x^{n}\right ) \ln \left (1+\frac {i x^{-n}}{a}+\sqrt {1-\frac {x^{-2 n}}{a^{2}}}\right )+i \polylog \left (2, \frac {i x^{-n}}{a}+\sqrt {1-\frac {x^{-2 n}}{a^{2}}}\right )+i \polylog \left (2, -\frac {i x^{-n}}{a}-\sqrt {1-\frac {x^{-2 n}}{a^{2}}}\right )}{n}\) | \(155\) |
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(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \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 {\operatorname {acsc}{\left (a x^{n} \right )}}{x}\, 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 {\mathrm {asin}\left (\frac {1}{a\,x^n}\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________