Optimal. Leaf size=67 \[ \frac {1}{2} i b \text {ArcSin}\left (\frac {c}{x}\right )^2-b \text {ArcSin}\left (\frac {c}{x}\right ) \log \left (1-e^{2 i \text {ArcSin}\left (\frac {c}{x}\right )}\right )+a \log (x)+\frac {1}{2} i b \text {PolyLog}\left (2,e^{2 i \text {ArcSin}\left (\frac {c}{x}\right )}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 67, normalized size of antiderivative = 1.00, 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 = {6874, 4914,
3798, 2221, 2317, 2438} \begin {gather*} a \log (x)+\frac {1}{2} i b \text {Li}_2\left (e^{2 i \text {ArcSin}\left (\frac {c}{x}\right )}\right )+\frac {1}{2} i b \text {ArcSin}\left (\frac {c}{x}\right )^2-b \text {ArcSin}\left (\frac {c}{x}\right ) \log \left (1-e^{2 i \text {ArcSin}\left (\frac {c}{x}\right )}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 3798
Rule 4914
Rule 6874
Rubi steps
\begin {align*} \int \frac {a+b \sin ^{-1}\left (\frac {c}{x}\right )}{x} \, dx &=\int \left (\frac {a}{x}+\frac {b \sin ^{-1}\left (\frac {c}{x}\right )}{x}\right ) \, dx\\ &=a \log (x)+b \int \frac {\sin ^{-1}\left (\frac {c}{x}\right )}{x} \, dx\\ &=a \log (x)-b \text {Subst}\left (\int x \cot (x) \, dx,x,\sin ^{-1}\left (\frac {c}{x}\right )\right )\\ &=\frac {1}{2} i b \sin ^{-1}\left (\frac {c}{x}\right )^2+a \log (x)+(2 i b) \text {Subst}\left (\int \frac {e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\sin ^{-1}\left (\frac {c}{x}\right )\right )\\ &=\frac {1}{2} i b \sin ^{-1}\left (\frac {c}{x}\right )^2-b \sin ^{-1}\left (\frac {c}{x}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {c}{x}\right )}\right )+a \log (x)+b \text {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\sin ^{-1}\left (\frac {c}{x}\right )\right )\\ &=\frac {1}{2} i b \sin ^{-1}\left (\frac {c}{x}\right )^2-b \sin ^{-1}\left (\frac {c}{x}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {c}{x}\right )}\right )+a \log (x)-\frac {1}{2} (i b) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \sin ^{-1}\left (\frac {c}{x}\right )}\right )\\ &=\frac {1}{2} i b \sin ^{-1}\left (\frac {c}{x}\right )^2-b \sin ^{-1}\left (\frac {c}{x}\right ) \log \left (1-e^{2 i \sin ^{-1}\left (\frac {c}{x}\right )}\right )+a \log (x)+\frac {1}{2} i b \text {Li}_2\left (e^{2 i \sin ^{-1}\left (\frac {c}{x}\right )}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 61, normalized size = 0.91 \begin {gather*} -b \text {ArcSin}\left (\frac {c}{x}\right ) \log \left (1-e^{2 i \text {ArcSin}\left (\frac {c}{x}\right )}\right )+a \log (x)+\frac {1}{2} i b \left (\text {ArcSin}\left (\frac {c}{x}\right )^2+\text {PolyLog}\left (2,e^{2 i \text {ArcSin}\left (\frac {c}{x}\right )}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.42, size = 141, normalized size = 2.10
method | result | size |
derivativedivides | \(-a \ln \left (\frac {c}{x}\right )+\frac {i b \arcsin \left (\frac {c}{x}\right )^{2}}{2}-b \arcsin \left (\frac {c}{x}\right ) \ln \left (1-\frac {i c}{x}-\sqrt {1-\frac {c^{2}}{x^{2}}}\right )-b \arcsin \left (\frac {c}{x}\right ) \ln \left (1+\frac {i c}{x}+\sqrt {1-\frac {c^{2}}{x^{2}}}\right )+i b \polylog \left (2, \frac {i c}{x}+\sqrt {1-\frac {c^{2}}{x^{2}}}\right )+i b \polylog \left (2, -\frac {i c}{x}-\sqrt {1-\frac {c^{2}}{x^{2}}}\right )\) | \(141\) |
default | \(-a \ln \left (\frac {c}{x}\right )+\frac {i b \arcsin \left (\frac {c}{x}\right )^{2}}{2}-b \arcsin \left (\frac {c}{x}\right ) \ln \left (1-\frac {i c}{x}-\sqrt {1-\frac {c^{2}}{x^{2}}}\right )-b \arcsin \left (\frac {c}{x}\right ) \ln \left (1+\frac {i c}{x}+\sqrt {1-\frac {c^{2}}{x^{2}}}\right )+i b \polylog \left (2, \frac {i c}{x}+\sqrt {1-\frac {c^{2}}{x^{2}}}\right )+i b \polylog \left (2, -\frac {i c}{x}-\sqrt {1-\frac {c^{2}}{x^{2}}}\right )\) | \(141\) |
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]
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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {a + b \operatorname {asin}{\left (\frac {c}{x} \right )}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.44, size = 57, normalized size = 0.85 \begin {gather*} \frac {b\,{\mathrm {asin}\left (\frac {c}{x}\right )}^2\,1{}\mathrm {i}}{2}+a\,\ln \left (x\right )+\frac {b\,\mathrm {polylog}\left (2,{\mathrm {e}}^{\mathrm {asin}\left (\frac {c}{x}\right )\,2{}\mathrm {i}}\right )\,1{}\mathrm {i}}{2}-b\,\ln \left (1-{\mathrm {e}}^{\mathrm {asin}\left (\frac {c}{x}\right )\,2{}\mathrm {i}}\right )\,\mathrm {asin}\left (\frac {c}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________