Optimal. Leaf size=110 \[ -\frac{2 i b^2 \text{PolyLog}\left (2,-i e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}+\frac{2 i b^2 \text{PolyLog}\left (2,i e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}-\frac{\left (a+b \cosh ^{-1}(c+d x)\right )^2}{d e^2 (c+d x)}+\frac{4 b \tan ^{-1}\left (e^{\cosh ^{-1}(c+d x)}\right ) \left (a+b \cosh ^{-1}(c+d x)\right )}{d e^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.242946, antiderivative size = 110, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 7, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.304, Rules used = {5866, 12, 5662, 5761, 4180, 2279, 2391} \[ -\frac{2 i b^2 \text{PolyLog}\left (2,-i e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}+\frac{2 i b^2 \text{PolyLog}\left (2,i e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}-\frac{\left (a+b \cosh ^{-1}(c+d x)\right )^2}{d e^2 (c+d x)}+\frac{4 b \tan ^{-1}\left (e^{\cosh ^{-1}(c+d x)}\right ) \left (a+b \cosh ^{-1}(c+d x)\right )}{d e^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5866
Rule 12
Rule 5662
Rule 5761
Rule 4180
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \frac{\left (a+b \cosh ^{-1}(c+d x)\right )^2}{(c e+d e x)^2} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b \cosh ^{-1}(x)\right )^2}{e^2 x^2} \, dx,x,c+d x\right )}{d}\\ &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b \cosh ^{-1}(x)\right )^2}{x^2} \, dx,x,c+d x\right )}{d e^2}\\ &=-\frac{\left (a+b \cosh ^{-1}(c+d x)\right )^2}{d e^2 (c+d x)}+\frac{(2 b) \operatorname{Subst}\left (\int \frac{a+b \cosh ^{-1}(x)}{\sqrt{-1+x} x \sqrt{1+x}} \, dx,x,c+d x\right )}{d e^2}\\ &=-\frac{\left (a+b \cosh ^{-1}(c+d x)\right )^2}{d e^2 (c+d x)}+\frac{(2 b) \operatorname{Subst}\left (\int (a+b x) \text{sech}(x) \, dx,x,\cosh ^{-1}(c+d x)\right )}{d e^2}\\ &=-\frac{\left (a+b \cosh ^{-1}(c+d x)\right )^2}{d e^2 (c+d x)}+\frac{4 b \left (a+b \cosh ^{-1}(c+d x)\right ) \tan ^{-1}\left (e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}-\frac{\left (2 i b^2\right ) \operatorname{Subst}\left (\int \log \left (1-i e^x\right ) \, dx,x,\cosh ^{-1}(c+d x)\right )}{d e^2}+\frac{\left (2 i b^2\right ) \operatorname{Subst}\left (\int \log \left (1+i e^x\right ) \, dx,x,\cosh ^{-1}(c+d x)\right )}{d e^2}\\ &=-\frac{\left (a+b \cosh ^{-1}(c+d x)\right )^2}{d e^2 (c+d x)}+\frac{4 b \left (a+b \cosh ^{-1}(c+d x)\right ) \tan ^{-1}\left (e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}-\frac{\left (2 i b^2\right ) \operatorname{Subst}\left (\int \frac{\log (1-i x)}{x} \, dx,x,e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}+\frac{\left (2 i b^2\right ) \operatorname{Subst}\left (\int \frac{\log (1+i x)}{x} \, dx,x,e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}\\ &=-\frac{\left (a+b \cosh ^{-1}(c+d x)\right )^2}{d e^2 (c+d x)}+\frac{4 b \left (a+b \cosh ^{-1}(c+d x)\right ) \tan ^{-1}\left (e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}-\frac{2 i b^2 \text{Li}_2\left (-i e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}+\frac{2 i b^2 \text{Li}_2\left (i e^{\cosh ^{-1}(c+d x)}\right )}{d e^2}\\ \end{align*}
Mathematica [A] time = 0.721384, size = 161, normalized size = 1.46 \[ \frac{-i b^2 \left (2 \text{PolyLog}\left (2,-i e^{-\cosh ^{-1}(c+d x)}\right )-2 \text{PolyLog}\left (2,i e^{-\cosh ^{-1}(c+d x)}\right )+\cosh ^{-1}(c+d x) \left (-\frac{i \cosh ^{-1}(c+d x)}{c+d x}+2 \log \left (1-i e^{-\cosh ^{-1}(c+d x)}\right )-2 \log \left (1+i e^{-\cosh ^{-1}(c+d x)}\right )\right )\right )-\frac{a^2}{c+d x}+2 a b \left (2 \tan ^{-1}\left (\tanh \left (\frac{1}{2} \cosh ^{-1}(c+d x)\right )\right )-\frac{\cosh ^{-1}(c+d x)}{c+d x}\right )}{d e^2} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.049, size = 290, normalized size = 2.6 \begin{align*} -{\frac{{a}^{2}}{d{e}^{2} \left ( dx+c \right ) }}-{\frac{{b}^{2} \left ({\rm arccosh} \left (dx+c\right ) \right ) ^{2}}{d{e}^{2} \left ( dx+c \right ) }}-{\frac{2\,i{b}^{2}{\rm arccosh} \left (dx+c\right )}{d{e}^{2}}\ln \left ( 1+i \left ( dx+c+\sqrt{dx+c-1}\sqrt{dx+c+1} \right ) \right ) }+{\frac{2\,i{b}^{2}{\rm arccosh} \left (dx+c\right )}{d{e}^{2}}\ln \left ( 1-i \left ( dx+c+\sqrt{dx+c-1}\sqrt{dx+c+1} \right ) \right ) }-{\frac{2\,i{b}^{2}}{d{e}^{2}}{\it dilog} \left ( 1+i \left ( dx+c+\sqrt{dx+c-1}\sqrt{dx+c+1} \right ) \right ) }+{\frac{2\,i{b}^{2}}{d{e}^{2}}{\it dilog} \left ( 1-i \left ( dx+c+\sqrt{dx+c-1}\sqrt{dx+c+1} \right ) \right ) }-2\,{\frac{ab{\rm arccosh} \left (dx+c\right )}{d{e}^{2} \left ( dx+c \right ) }}-2\,{\frac{ab\sqrt{dx+c-1}\sqrt{dx+c+1}\arctan \left ({\frac{1}{\sqrt{ \left ( dx+c \right ) ^{2}-1}}} \right ) }{d{e}^{2}\sqrt{ \left ( dx+c \right ) ^{2}-1}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{2} \operatorname{arcosh}\left (d x + c\right )^{2} + 2 \, a b \operatorname{arcosh}\left (d x + c\right ) + a^{2}}{d^{2} e^{2} x^{2} + 2 \, c d e^{2} x + c^{2} e^{2}}, x\right ) \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*} \frac{\int \frac{a^{2}}{c^{2} + 2 c d x + d^{2} x^{2}}\, dx + \int \frac{b^{2} \operatorname{acosh}^{2}{\left (c + d x \right )}}{c^{2} + 2 c d x + d^{2} x^{2}}\, dx + \int \frac{2 a b \operatorname{acosh}{\left (c + d x \right )}}{c^{2} + 2 c d x + d^{2} x^{2}}\, dx}{e^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]