Optimal. Leaf size=200 \[ \sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1-\sqrt {1-a^2}}\right )+\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1+\sqrt {1-a^2}}\right )-\sec ^{-1}(a+b x) \log \left (1+e^{2 i \sec ^{-1}(a+b x)}\right )-i \text {PolyLog}\left (2,\frac {a e^{i \sec ^{-1}(a+b x)}}{1-\sqrt {1-a^2}}\right )-i \text {PolyLog}\left (2,\frac {a e^{i \sec ^{-1}(a+b x)}}{1+\sqrt {1-a^2}}\right )+\frac {1}{2} i \text {PolyLog}\left (2,-e^{2 i \sec ^{-1}(a+b x)}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.24, antiderivative size = 200, normalized size of antiderivative = 1.00, number of steps
used = 14, number of rules used = 8, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.800, Rules used = {5366, 4647,
4626, 3800, 2221, 2317, 2438, 4616} \begin {gather*} -i \text {Li}_2\left (\frac {a e^{i \sec ^{-1}(a+b x)}}{1-\sqrt {1-a^2}}\right )-i \text {Li}_2\left (\frac {a e^{i \sec ^{-1}(a+b x)}}{\sqrt {1-a^2}+1}\right )+\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1-\sqrt {1-a^2}}\right )+\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{\sqrt {1-a^2}+1}\right )+\frac {1}{2} i \text {Li}_2\left (-e^{2 i \sec ^{-1}(a+b x)}\right )-\sec ^{-1}(a+b x) \log \left (1+e^{2 i \sec ^{-1}(a+b x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 3800
Rule 4616
Rule 4626
Rule 4647
Rule 5366
Rubi steps
\begin {align*} \int \frac {\sec ^{-1}(a+b x)}{x} \, dx &=\text {Subst}\left (\int \frac {x \sec (x) \tan (x)}{-a+\sec (x)} \, dx,x,\sec ^{-1}(a+b x)\right )\\ &=\text {Subst}\left (\int \frac {x \tan (x)}{1-a \cos (x)} \, dx,x,\sec ^{-1}(a+b x)\right )\\ &=a \text {Subst}\left (\int \frac {x \sin (x)}{1-a \cos (x)} \, dx,x,\sec ^{-1}(a+b x)\right )+\text {Subst}\left (\int x \tan (x) \, dx,x,\sec ^{-1}(a+b x)\right )\\ &=-\left (2 i \text {Subst}\left (\int \frac {e^{2 i x} x}{1+e^{2 i x}} \, dx,x,\sec ^{-1}(a+b x)\right )\right )-(i a) \text {Subst}\left (\int \frac {e^{i x} x}{1-\sqrt {1-a^2}-a e^{i x}} \, dx,x,\sec ^{-1}(a+b x)\right )-(i a) \text {Subst}\left (\int \frac {e^{i x} x}{1+\sqrt {1-a^2}-a e^{i x}} \, dx,x,\sec ^{-1}(a+b x)\right )\\ &=\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1-\sqrt {1-a^2}}\right )+\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1+\sqrt {1-a^2}}\right )-\sec ^{-1}(a+b x) \log \left (1+e^{2 i \sec ^{-1}(a+b x)}\right )-\text {Subst}\left (\int \log \left (1-\frac {a e^{i x}}{1-\sqrt {1-a^2}}\right ) \, dx,x,\sec ^{-1}(a+b x)\right )-\text {Subst}\left (\int \log \left (1-\frac {a e^{i x}}{1+\sqrt {1-a^2}}\right ) \, dx,x,\sec ^{-1}(a+b x)\right )+\text {Subst}\left (\int \log \left (1+e^{2 i x}\right ) \, dx,x,\sec ^{-1}(a+b x)\right )\\ &=\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1-\sqrt {1-a^2}}\right )+\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1+\sqrt {1-a^2}}\right )-\sec ^{-1}(a+b x) \log \left (1+e^{2 i \sec ^{-1}(a+b x)}\right )-\frac {1}{2} i \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{2 i \sec ^{-1}(a+b x)}\right )+i \text {Subst}\left (\int \frac {\log \left (1-\frac {a x}{1-\sqrt {1-a^2}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(a+b x)}\right )+i \text {Subst}\left (\int \frac {\log \left (1-\frac {a x}{1+\sqrt {1-a^2}}\right )}{x} \, dx,x,e^{i \sec ^{-1}(a+b x)}\right )\\ &=\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1-\sqrt {1-a^2}}\right )+\sec ^{-1}(a+b x) \log \left (1-\frac {a e^{i \sec ^{-1}(a+b x)}}{1+\sqrt {1-a^2}}\right )-\sec ^{-1}(a+b x) \log \left (1+e^{2 i \sec ^{-1}(a+b x)}\right )-i \text {Li}_2\left (\frac {a e^{i \sec ^{-1}(a+b x)}}{1-\sqrt {1-a^2}}\right )-i \text {Li}_2\left (\frac {a e^{i \sec ^{-1}(a+b x)}}{1+\sqrt {1-a^2}}\right )+\frac {1}{2} i \text {Li}_2\left (-e^{2 i \sec ^{-1}(a+b x)}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.22, size = 284, normalized size = 1.42 \begin {gather*} -4 i \text {ArcSin}\left (\frac {\sqrt {\frac {-1+a}{a}}}{\sqrt {2}}\right ) \text {ArcTan}\left (\frac {(1+a) \tan \left (\frac {1}{2} \sec ^{-1}(a+b x)\right )}{\sqrt {1-a^2}}\right )+\left (\sec ^{-1}(a+b x)-2 \text {ArcSin}\left (\frac {\sqrt {\frac {-1+a}{a}}}{\sqrt {2}}\right )\right ) \log \left (1+\frac {\left (-1+\sqrt {1-a^2}\right ) e^{i \sec ^{-1}(a+b x)}}{a}\right )+\left (\sec ^{-1}(a+b x)+2 \text {ArcSin}\left (\frac {\sqrt {\frac {-1+a}{a}}}{\sqrt {2}}\right )\right ) \log \left (1-\frac {\left (1+\sqrt {1-a^2}\right ) e^{i \sec ^{-1}(a+b x)}}{a}\right )-\sec ^{-1}(a+b x) \log \left (1+e^{2 i \sec ^{-1}(a+b x)}\right )-i \left (\text {PolyLog}\left (2,-\frac {\left (-1+\sqrt {1-a^2}\right ) e^{i \sec ^{-1}(a+b x)}}{a}\right )+\text {PolyLog}\left (2,\frac {\left (1+\sqrt {1-a^2}\right ) e^{i \sec ^{-1}(a+b x)}}{a}\right )\right )+\frac {1}{2} i \text {PolyLog}\left (2,-e^{2 i \sec ^{-1}(a+b x)}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.76, size = 374, normalized size = 1.87
method | result | size |
derivativedivides | \(-\mathrm {arcsec}\left (b x +a \right ) \ln \left (1+i \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )\right )-\mathrm {arcsec}\left (b x +a \right ) \ln \left (1-i \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )\right )+\mathrm {arcsec}\left (b x +a \right ) \ln \left (\frac {-a \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )+\sqrt {-a^{2}+1}+1}{1+\sqrt {-a^{2}+1}}\right )+\mathrm {arcsec}\left (b x +a \right ) \ln \left (\frac {a \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )+\sqrt {-a^{2}+1}-1}{-1+\sqrt {-a^{2}+1}}\right )+i \dilog \left (1+i \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )\right )+i \dilog \left (1-i \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )\right )-i \dilog \left (\frac {-a \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )+\sqrt {-a^{2}+1}+1}{1+\sqrt {-a^{2}+1}}\right )-i \dilog \left (\frac {a \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )+\sqrt {-a^{2}+1}-1}{-1+\sqrt {-a^{2}+1}}\right )\) | \(374\) |
default | \(-\mathrm {arcsec}\left (b x +a \right ) \ln \left (1+i \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )\right )-\mathrm {arcsec}\left (b x +a \right ) \ln \left (1-i \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )\right )+\mathrm {arcsec}\left (b x +a \right ) \ln \left (\frac {-a \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )+\sqrt {-a^{2}+1}+1}{1+\sqrt {-a^{2}+1}}\right )+\mathrm {arcsec}\left (b x +a \right ) \ln \left (\frac {a \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )+\sqrt {-a^{2}+1}-1}{-1+\sqrt {-a^{2}+1}}\right )+i \dilog \left (1+i \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )\right )+i \dilog \left (1-i \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )\right )-i \dilog \left (\frac {-a \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )+\sqrt {-a^{2}+1}+1}{1+\sqrt {-a^{2}+1}}\right )-i \dilog \left (\frac {a \left (\frac {1}{b x +a}+i \sqrt {1-\frac {1}{\left (b x +a \right )^{2}}}\right )+\sqrt {-a^{2}+1}-1}{-1+\sqrt {-a^{2}+1}}\right )\) | \(374\) |
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 {asec}{\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.00 \begin {gather*} \int \frac {\mathrm {acos}\left (\frac {1}{a+b\,x}\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________