Optimal. Leaf size=131 \[ -\frac {1}{2} \cosh ^{-1}(a+b x)^2+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a-\sqrt {-1+a^2}}\right )+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a+\sqrt {-1+a^2}}\right )+\text {PolyLog}\left (2,\frac {e^{\cosh ^{-1}(a+b x)}}{a-\sqrt {-1+a^2}}\right )+\text {PolyLog}\left (2,\frac {e^{\cosh ^{-1}(a+b x)}}{a+\sqrt {-1+a^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 131, 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 = {5996, 5962,
5681, 2221, 2317, 2438} \begin {gather*} \text {Li}_2\left (\frac {e^{\cosh ^{-1}(a+b x)}}{a-\sqrt {a^2-1}}\right )+\text {Li}_2\left (\frac {e^{\cosh ^{-1}(a+b x)}}{a+\sqrt {a^2-1}}\right )+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a-\sqrt {a^2-1}}\right )+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{\sqrt {a^2-1}+a}\right )-\frac {1}{2} \cosh ^{-1}(a+b x)^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 5681
Rule 5962
Rule 5996
Rubi steps
\begin {align*} \int \frac {\cosh ^{-1}(a+b x)}{x} \, dx &=\frac {\text {Subst}\left (\int \frac {\cosh ^{-1}(x)}{-\frac {a}{b}+\frac {x}{b}} \, dx,x,a+b x\right )}{b}\\ &=\frac {\text {Subst}\left (\int \frac {x \sinh (x)}{-\frac {a}{b}+\frac {\cosh (x)}{b}} \, dx,x,\cosh ^{-1}(a+b x)\right )}{b}\\ &=-\frac {1}{2} \cosh ^{-1}(a+b x)^2+\frac {\text {Subst}\left (\int \frac {e^x x}{-\frac {a}{b}-\frac {\sqrt {-1+a^2}}{b}+\frac {e^x}{b}} \, dx,x,\cosh ^{-1}(a+b x)\right )}{b}+\frac {\text {Subst}\left (\int \frac {e^x x}{-\frac {a}{b}+\frac {\sqrt {-1+a^2}}{b}+\frac {e^x}{b}} \, dx,x,\cosh ^{-1}(a+b x)\right )}{b}\\ &=-\frac {1}{2} \cosh ^{-1}(a+b x)^2+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a-\sqrt {-1+a^2}}\right )+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a+\sqrt {-1+a^2}}\right )-\text {Subst}\left (\int \log \left (1+\frac {e^x}{\left (-\frac {a}{b}-\frac {\sqrt {-1+a^2}}{b}\right ) b}\right ) \, dx,x,\cosh ^{-1}(a+b x)\right )-\text {Subst}\left (\int \log \left (1+\frac {e^x}{\left (-\frac {a}{b}+\frac {\sqrt {-1+a^2}}{b}\right ) b}\right ) \, dx,x,\cosh ^{-1}(a+b x)\right )\\ &=-\frac {1}{2} \cosh ^{-1}(a+b x)^2+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a-\sqrt {-1+a^2}}\right )+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a+\sqrt {-1+a^2}}\right )-\text {Subst}\left (\int \frac {\log \left (1+\frac {x}{\left (-\frac {a}{b}-\frac {\sqrt {-1+a^2}}{b}\right ) b}\right )}{x} \, dx,x,e^{\cosh ^{-1}(a+b x)}\right )-\text {Subst}\left (\int \frac {\log \left (1+\frac {x}{\left (-\frac {a}{b}+\frac {\sqrt {-1+a^2}}{b}\right ) b}\right )}{x} \, dx,x,e^{\cosh ^{-1}(a+b x)}\right )\\ &=-\frac {1}{2} \cosh ^{-1}(a+b x)^2+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a-\sqrt {-1+a^2}}\right )+\cosh ^{-1}(a+b x) \log \left (1-\frac {e^{\cosh ^{-1}(a+b x)}}{a+\sqrt {-1+a^2}}\right )+\text {Li}_2\left (\frac {e^{\cosh ^{-1}(a+b x)}}{a-\sqrt {-1+a^2}}\right )+\text {Li}_2\left (\frac {e^{\cosh ^{-1}(a+b x)}}{a+\sqrt {-1+a^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 153, normalized size = 1.17 \begin {gather*} -\frac {1}{2} \cosh ^{-1}(a+b x)^2+\cosh ^{-1}(a+b x) \log \left (1+\frac {e^{\cosh ^{-1}(a+b x)}}{\left (-\frac {a}{b}-\frac {\sqrt {-1+a^2}}{b}\right ) b}\right )+\cosh ^{-1}(a+b x) \log \left (1+\frac {e^{\cosh ^{-1}(a+b x)}}{\left (-\frac {a}{b}+\frac {\sqrt {-1+a^2}}{b}\right ) b}\right )+\text {PolyLog}\left (2,-\frac {e^{\cosh ^{-1}(a+b x)}}{-a+\sqrt {-1+a^2}}\right )+\text {PolyLog}\left (2,\frac {e^{\cosh ^{-1}(a+b x)}}{a+\sqrt {-1+a^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(430\) vs.
\(2(177)=354\).
time = 10.85, size = 431, normalized size = 3.29
method | result | size |
derivativedivides | \(-\frac {\mathrm {arccosh}\left (b x +a \right )^{2}}{2}+\frac {a \,\mathrm {arccosh}\left (b x +a \right ) \ln \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right )}{\sqrt {a^{2}-1}}-\frac {a \,\mathrm {arccosh}\left (b x +a \right ) \ln \left (\frac {\sqrt {a^{2}-1}+b x +\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{-a +\sqrt {a^{2}-1}}\right )}{\sqrt {a^{2}-1}}+\frac {\left (a^{2}-1+a \sqrt {a^{2}-1}\right ) \mathrm {arccosh}\left (b x +a \right ) \left (\ln \left (\frac {\sqrt {a^{2}-1}+b x +\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{-a +\sqrt {a^{2}-1}}\right )-2 \ln \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right ) a^{2}+\ln \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right )+2 a \sqrt {a^{2}-1}\, \ln \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right )\right )}{a^{2}-1}+\dilog \left (\frac {\sqrt {a^{2}-1}+b x +\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{-a +\sqrt {a^{2}-1}}\right )+\dilog \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right )\) | \(431\) |
default | \(-\frac {\mathrm {arccosh}\left (b x +a \right )^{2}}{2}+\frac {a \,\mathrm {arccosh}\left (b x +a \right ) \ln \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right )}{\sqrt {a^{2}-1}}-\frac {a \,\mathrm {arccosh}\left (b x +a \right ) \ln \left (\frac {\sqrt {a^{2}-1}+b x +\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{-a +\sqrt {a^{2}-1}}\right )}{\sqrt {a^{2}-1}}+\frac {\left (a^{2}-1+a \sqrt {a^{2}-1}\right ) \mathrm {arccosh}\left (b x +a \right ) \left (\ln \left (\frac {\sqrt {a^{2}-1}+b x +\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{-a +\sqrt {a^{2}-1}}\right )-2 \ln \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right ) a^{2}+\ln \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right )+2 a \sqrt {a^{2}-1}\, \ln \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right )\right )}{a^{2}-1}+\dilog \left (\frac {\sqrt {a^{2}-1}+b x +\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{-a +\sqrt {a^{2}-1}}\right )+\dilog \left (\frac {\sqrt {a^{2}-1}-b x -\sqrt {b x +a -1}\, \sqrt {b x +a +1}}{a +\sqrt {a^{2}-1}}\right )\) | \(431\) |
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 {acosh}{\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 {acosh}\left (a+b\,x\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________