Optimal. Leaf size=75 \[ -\frac{i b \text{PolyLog}\left (2,e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{2 n}+a \log (x)-\frac{i b \sin ^{-1}\left (c x^n\right )^2}{2 n}+\frac{b \sin ^{-1}\left (c x^n\right ) \log \left (1-e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.104086, antiderivative size = 75, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 6, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.429, Rules used = {6742, 4830, 3717, 2190, 2279, 2391} \[ -\frac{i b \text{PolyLog}\left (2,e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{2 n}+a \log (x)-\frac{i b \sin ^{-1}\left (c x^n\right )^2}{2 n}+\frac{b \sin ^{-1}\left (c x^n\right ) \log \left (1-e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{n} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6742
Rule 4830
Rule 3717
Rule 2190
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \frac{a+b \sin ^{-1}\left (c x^n\right )}{x} \, dx &=\int \left (\frac{a}{x}+\frac{b \sin ^{-1}\left (c x^n\right )}{x}\right ) \, dx\\ &=a \log (x)+b \int \frac{\sin ^{-1}\left (c x^n\right )}{x} \, dx\\ &=a \log (x)+\frac{b \operatorname{Subst}\left (\int x \cot (x) \, dx,x,\sin ^{-1}\left (c x^n\right )\right )}{n}\\ &=-\frac{i b \sin ^{-1}\left (c x^n\right )^2}{2 n}+a \log (x)-\frac{(2 i b) \operatorname{Subst}\left (\int \frac{e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\sin ^{-1}\left (c x^n\right )\right )}{n}\\ &=-\frac{i b \sin ^{-1}\left (c x^n\right )^2}{2 n}+\frac{b \sin ^{-1}\left (c x^n\right ) \log \left (1-e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{n}+a \log (x)-\frac{b \operatorname{Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\sin ^{-1}\left (c x^n\right )\right )}{n}\\ &=-\frac{i b \sin ^{-1}\left (c x^n\right )^2}{2 n}+\frac{b \sin ^{-1}\left (c x^n\right ) \log \left (1-e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{n}+a \log (x)+\frac{(i b) \operatorname{Subst}\left (\int \frac{\log (1-x)}{x} \, dx,x,e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{2 n}\\ &=-\frac{i b \sin ^{-1}\left (c x^n\right )^2}{2 n}+\frac{b \sin ^{-1}\left (c x^n\right ) \log \left (1-e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{n}+a \log (x)-\frac{i b \text{Li}_2\left (e^{2 i \sin ^{-1}\left (c x^n\right )}\right )}{2 n}\\ \end{align*}
Mathematica [B] time = 0.17181, size = 157, normalized size = 2.09 \[ -\frac{b c \left (\log (x) \log \left (\sqrt{-c^2} x^n+\sqrt{1-c^2 x^{2 n}}\right )+\frac{i \left (i \sinh ^{-1}\left (\sqrt{-c^2} x^n\right ) \log \left (1-e^{-2 \sinh ^{-1}\left (\sqrt{-c^2} x^n\right )}\right )-\frac{1}{2} i \left (\text{PolyLog}\left (2,e^{-2 \sinh ^{-1}\left (\sqrt{-c^2} x^n\right )}\right )-\sinh ^{-1}\left (\sqrt{-c^2} x^n\right )^2\right )\right )}{n}\right )}{\sqrt{-c^2}}+a \log (x)+b \log (x) \sin ^{-1}\left (c x^n\right ) \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.004, size = 164, normalized size = 2.2 \begin{align*}{\frac{a\ln \left ( c{x}^{n} \right ) }{n}}-{\frac{{\frac{i}{2}}b \left ( \arcsin \left ( c{x}^{n} \right ) \right ) ^{2}}{n}}+{\frac{b\arcsin \left ( c{x}^{n} \right ) }{n}\ln \left ( 1+ic{x}^{n}+\sqrt{1-{c}^{2} \left ({x}^{n} \right ) ^{2}} \right ) }+{\frac{b\arcsin \left ( c{x}^{n} \right ) }{n}\ln \left ( 1-ic{x}^{n}-\sqrt{1-{c}^{2} \left ({x}^{n} \right ) ^{2}} \right ) }-{\frac{ib}{n}{\it polylog} \left ( 2,-ic{x}^{n}-\sqrt{1-{c}^{2} \left ({x}^{n} \right ) ^{2}} \right ) }-{\frac{ib}{n}{\it polylog} \left ( 2,ic{x}^{n}+\sqrt{1-{c}^{2} \left ({x}^{n} \right ) ^{2}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\left (c n \int \frac{\sqrt{c x^{n} + 1} \sqrt{-c x^{n} + 1} x^{n} \log \left (x\right )}{c^{2} x x^{2 \, n} - x}\,{d x} + \arctan \left (c x^{n}, \sqrt{c x^{n} + 1} \sqrt{-c x^{n} + 1}\right ) \log \left (x\right )\right )} b + a \log \left (x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: UnboundLocalError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{a + b \operatorname{asin}{\left (c x^{n} \right )}}{x}\, dx \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{b \arcsin \left (c x^{n}\right ) + a}{x}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]