Optimal. Leaf size=177 \[ -\frac {1}{2} i \text {ArcCos}(a+b x)^2+\text {ArcCos}(a+b x) \log \left (1-\frac {e^{i \text {ArcCos}(a+b x)}}{a-i \sqrt {1-a^2}}\right )+\text {ArcCos}(a+b x) \log \left (1-\frac {e^{i \text {ArcCos}(a+b x)}}{a+i \sqrt {1-a^2}}\right )-i \text {PolyLog}\left (2,\frac {e^{i \text {ArcCos}(a+b x)}}{a-i \sqrt {1-a^2}}\right )-i \text {PolyLog}\left (2,\frac {e^{i \text {ArcCos}(a+b x)}}{a+i \sqrt {1-a^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.20, antiderivative size = 177, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {4890, 4826,
4618, 2221, 2317, 2438} \begin {gather*} -i \text {Li}_2\left (\frac {e^{i \text {ArcCos}(a+b x)}}{a-i \sqrt {1-a^2}}\right )-i \text {Li}_2\left (\frac {e^{i \text {ArcCos}(a+b x)}}{a+i \sqrt {1-a^2}}\right )+\text {ArcCos}(a+b x) \log \left (1-\frac {e^{i \text {ArcCos}(a+b x)}}{a-i \sqrt {1-a^2}}\right )+\text {ArcCos}(a+b x) \log \left (1-\frac {e^{i \text {ArcCos}(a+b x)}}{a+i \sqrt {1-a^2}}\right )-\frac {1}{2} i \text {ArcCos}(a+b x)^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 4618
Rule 4826
Rule 4890
Rubi steps
\begin {align*} \int \frac {\cos ^{-1}(a+b x)}{x} \, dx &=\frac {\text {Subst}\left (\int \frac {\cos ^{-1}(x)}{-\frac {a}{b}+\frac {x}{b}} \, dx,x,a+b x\right )}{b}\\ &=-\frac {\text {Subst}\left (\int \frac {x \sin (x)}{-\frac {a}{b}+\frac {\cos (x)}{b}} \, dx,x,\cos ^{-1}(a+b x)\right )}{b}\\ &=-\frac {1}{2} i \cos ^{-1}(a+b x)^2-\frac {\text {Subst}\left (\int \frac {e^{i x} x}{-\frac {i a}{b}-\frac {\sqrt {1-a^2}}{b}+\frac {i e^{i x}}{b}} \, dx,x,\cos ^{-1}(a+b x)\right )}{b}-\frac {\text {Subst}\left (\int \frac {e^{i x} x}{-\frac {i a}{b}+\frac {\sqrt {1-a^2}}{b}+\frac {i e^{i x}}{b}} \, dx,x,\cos ^{-1}(a+b x)\right )}{b}\\ &=-\frac {1}{2} i \cos ^{-1}(a+b x)^2+\cos ^{-1}(a+b x) \log \left (1-\frac {e^{i \cos ^{-1}(a+b x)}}{a-i \sqrt {1-a^2}}\right )+\cos ^{-1}(a+b x) \log \left (1-\frac {e^{i \cos ^{-1}(a+b x)}}{a+i \sqrt {1-a^2}}\right )-\text {Subst}\left (\int \log \left (1+\frac {i e^{i x}}{\left (-\frac {i a}{b}-\frac {\sqrt {1-a^2}}{b}\right ) b}\right ) \, dx,x,\cos ^{-1}(a+b x)\right )-\text {Subst}\left (\int \log \left (1+\frac {i e^{i x}}{\left (-\frac {i a}{b}+\frac {\sqrt {1-a^2}}{b}\right ) b}\right ) \, dx,x,\cos ^{-1}(a+b x)\right )\\ &=-\frac {1}{2} i \cos ^{-1}(a+b x)^2+\cos ^{-1}(a+b x) \log \left (1-\frac {e^{i \cos ^{-1}(a+b x)}}{a-i \sqrt {1-a^2}}\right )+\cos ^{-1}(a+b x) \log \left (1-\frac {e^{i \cos ^{-1}(a+b x)}}{a+i \sqrt {1-a^2}}\right )+i \text {Subst}\left (\int \frac {\log \left (1+\frac {i x}{\left (-\frac {i a}{b}-\frac {\sqrt {1-a^2}}{b}\right ) b}\right )}{x} \, dx,x,e^{i \cos ^{-1}(a+b x)}\right )+i \text {Subst}\left (\int \frac {\log \left (1+\frac {i x}{\left (-\frac {i a}{b}+\frac {\sqrt {1-a^2}}{b}\right ) b}\right )}{x} \, dx,x,e^{i \cos ^{-1}(a+b x)}\right )\\ &=-\frac {1}{2} i \cos ^{-1}(a+b x)^2+\cos ^{-1}(a+b x) \log \left (1-\frac {e^{i \cos ^{-1}(a+b x)}}{a-i \sqrt {1-a^2}}\right )+\cos ^{-1}(a+b x) \log \left (1-\frac {e^{i \cos ^{-1}(a+b x)}}{a+i \sqrt {1-a^2}}\right )-i \text {Li}_2\left (\frac {e^{i \cos ^{-1}(a+b x)}}{a-i \sqrt {1-a^2}}\right )-i \text {Li}_2\left (\frac {e^{i \cos ^{-1}(a+b x)}}{a+i \sqrt {1-a^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.14, size = 228, normalized size = 1.29 \begin {gather*} -\frac {1}{2} i \text {ArcCos}(a+b x)^2-4 i \text {ArcSin}\left (\frac {\sqrt {1-a}}{\sqrt {2}}\right ) \text {ArcTan}\left (\frac {(1+a) \tan \left (\frac {1}{2} \text {ArcCos}(a+b x)\right )}{\sqrt {-1+a^2}}\right )+\left (\text {ArcCos}(a+b x)-2 \text {ArcSin}\left (\frac {\sqrt {1-a}}{\sqrt {2}}\right )\right ) \log \left (1+\left (-a+\sqrt {-1+a^2}\right ) e^{i \text {ArcCos}(a+b x)}\right )+\left (\text {ArcCos}(a+b x)+2 \text {ArcSin}\left (\frac {\sqrt {1-a}}{\sqrt {2}}\right )\right ) \log \left (1-\left (a+\sqrt {-1+a^2}\right ) e^{i \text {ArcCos}(a+b x)}\right )-i \left (\text {PolyLog}\left (2,\left (a-\sqrt {-1+a^2}\right ) e^{i \text {ArcCos}(a+b x)}\right )+\text {PolyLog}\left (2,\left (a+\sqrt {-1+a^2}\right ) e^{i \text {ArcCos}(a+b x)}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.83, size = 199, normalized size = 1.12
method | result | size |
derivativedivides | \(-\frac {i \arccos \left (b x +a \right )^{2}}{2}+\arccos \left (b x +a \right ) \ln \left (\frac {\sqrt {a^{2}-1}-b x -i \sqrt {1-\left (b x +a \right )^{2}}}{a +\sqrt {a^{2}-1}}\right )+\arccos \left (b x +a \right ) \ln \left (\frac {\sqrt {a^{2}-1}+b x +i \sqrt {1-\left (b x +a \right )^{2}}}{-a +\sqrt {a^{2}-1}}\right )-i \dilog \left (\frac {\sqrt {a^{2}-1}+b x +i \sqrt {1-\left (b x +a \right )^{2}}}{-a +\sqrt {a^{2}-1}}\right )-i \dilog \left (\frac {\sqrt {a^{2}-1}-b x -i \sqrt {1-\left (b x +a \right )^{2}}}{a +\sqrt {a^{2}-1}}\right )\) | \(199\) |
default | \(-\frac {i \arccos \left (b x +a \right )^{2}}{2}+\arccos \left (b x +a \right ) \ln \left (\frac {\sqrt {a^{2}-1}-b x -i \sqrt {1-\left (b x +a \right )^{2}}}{a +\sqrt {a^{2}-1}}\right )+\arccos \left (b x +a \right ) \ln \left (\frac {\sqrt {a^{2}-1}+b x +i \sqrt {1-\left (b x +a \right )^{2}}}{-a +\sqrt {a^{2}-1}}\right )-i \dilog \left (\frac {\sqrt {a^{2}-1}+b x +i \sqrt {1-\left (b x +a \right )^{2}}}{-a +\sqrt {a^{2}-1}}\right )-i \dilog \left (\frac {\sqrt {a^{2}-1}-b x -i \sqrt {1-\left (b x +a \right )^{2}}}{a +\sqrt {a^{2}-1}}\right )\) | \(199\) |
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 {\operatorname {acos}{\left (a + b x \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 {acos}\left (a+b\,x\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________