Optimal. Leaf size=106 \[ \frac {b \sqrt {-1+a+b x} \sqrt {1+a+b x}}{2 \left (1-a^2\right ) x}-\frac {\cosh ^{-1}(a+b x)}{2 x^2}-\frac {a b^2 \text {ArcTan}\left (\frac {\sqrt {1-a} \sqrt {1+a+b x}}{\sqrt {1+a} \sqrt {-1+a+b x}}\right )}{\left (1-a^2\right )^{3/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {5996, 5963, 98,
95, 211} \begin {gather*} -\frac {a b^2 \text {ArcTan}\left (\frac {\sqrt {1-a} \sqrt {a+b x+1}}{\sqrt {a+1} \sqrt {a+b x-1}}\right )}{\left (1-a^2\right )^{3/2}}+\frac {b \sqrt {a+b x-1} \sqrt {a+b x+1}}{2 \left (1-a^2\right ) x}-\frac {\cosh ^{-1}(a+b x)}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 95
Rule 98
Rule 211
Rule 5963
Rule 5996
Rubi steps
\begin {align*} \int \frac {\cosh ^{-1}(a+b x)}{x^3} \, dx &=\frac {\text {Subst}\left (\int \frac {\cosh ^{-1}(x)}{\left (-\frac {a}{b}+\frac {x}{b}\right )^3} \, dx,x,a+b x\right )}{b}\\ &=-\frac {\cosh ^{-1}(a+b x)}{2 x^2}+\frac {1}{2} \text {Subst}\left (\int \frac {1}{\sqrt {-1+x} \sqrt {1+x} \left (-\frac {a}{b}+\frac {x}{b}\right )^2} \, dx,x,a+b x\right )\\ &=\frac {b \sqrt {-1+a+b x} \sqrt {1+a+b x}}{2 \left (1-a^2\right ) x}-\frac {\cosh ^{-1}(a+b x)}{2 x^2}+\frac {(a b) \text {Subst}\left (\int \frac {1}{\sqrt {-1+x} \sqrt {1+x} \left (-\frac {a}{b}+\frac {x}{b}\right )} \, dx,x,a+b x\right )}{2 \left (1-a^2\right )}\\ &=\frac {b \sqrt {-1+a+b x} \sqrt {1+a+b x}}{2 \left (1-a^2\right ) x}-\frac {\cosh ^{-1}(a+b x)}{2 x^2}+\frac {(a b) \text {Subst}\left (\int \frac {1}{-\frac {1}{b}-\frac {a}{b}-\left (\frac {1}{b}-\frac {a}{b}\right ) x^2} \, dx,x,\frac {\sqrt {1+a+b x}}{\sqrt {-1+a+b x}}\right )}{1-a^2}\\ &=\frac {b \sqrt {-1+a+b x} \sqrt {1+a+b x}}{2 \left (1-a^2\right ) x}-\frac {\cosh ^{-1}(a+b x)}{2 x^2}-\frac {a b^2 \tan ^{-1}\left (\frac {\sqrt {1-a} \sqrt {1+a+b x}}{\sqrt {1+a} \sqrt {-1+a+b x}}\right )}{\left (1-a^2\right )^{3/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.19, size = 136, normalized size = 1.28 \begin {gather*} \frac {-\cosh ^{-1}(a+b x)+\frac {b x \left (-\sqrt {-1+a+b x} \sqrt {1+a+b x}+\frac {i a b x \log \left (\frac {4 i \sqrt {1-a^2} \left (-1+a^2+a b x-i \sqrt {1-a^2} \sqrt {-1+a+b x} \sqrt {1+a+b x}\right )}{a b^2 x}\right )}{\sqrt {1-a^2}}\right )}{-1+a^2}}{2 x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(200\) vs.
\(2(88)=176\).
time = 5.02, size = 201, normalized size = 1.90
method | result | size |
derivativedivides | \(b^{2} \left (-\frac {\mathrm {arccosh}\left (b x +a \right )}{2 b^{2} x^{2}}-\frac {\sqrt {b x +a +1}\, \sqrt {b x +a -1}\, \left (\ln \left (\frac {2 \sqrt {a^{2}-1}\, \sqrt {\left (b x +a \right )^{2}-1}+2 \left (b x +a \right ) a -2}{b x}\right ) \sqrt {a^{2}-1}\, a^{2}-\ln \left (\frac {2 \sqrt {a^{2}-1}\, \sqrt {\left (b x +a \right )^{2}-1}+2 \left (b x +a \right ) a -2}{b x}\right ) \sqrt {a^{2}-1}\, a \left (b x +a \right )+a^{2} \sqrt {\left (b x +a \right )^{2}-1}-\sqrt {\left (b x +a \right )^{2}-1}\right )}{2 b x \left (a^{2}-1\right ) \left (1+a \right ) \left (-1+a \right ) \sqrt {\left (b x +a \right )^{2}-1}}\right )\) | \(201\) |
default | \(b^{2} \left (-\frac {\mathrm {arccosh}\left (b x +a \right )}{2 b^{2} x^{2}}-\frac {\sqrt {b x +a +1}\, \sqrt {b x +a -1}\, \left (\ln \left (\frac {2 \sqrt {a^{2}-1}\, \sqrt {\left (b x +a \right )^{2}-1}+2 \left (b x +a \right ) a -2}{b x}\right ) \sqrt {a^{2}-1}\, a^{2}-\ln \left (\frac {2 \sqrt {a^{2}-1}\, \sqrt {\left (b x +a \right )^{2}-1}+2 \left (b x +a \right ) a -2}{b x}\right ) \sqrt {a^{2}-1}\, a \left (b x +a \right )+a^{2} \sqrt {\left (b x +a \right )^{2}-1}-\sqrt {\left (b x +a \right )^{2}-1}\right )}{2 b x \left (a^{2}-1\right ) \left (1+a \right ) \left (-1+a \right ) \sqrt {\left (b x +a \right )^{2}-1}}\right )\) | \(201\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 222 vs.
\(2 (86) = 172\).
time = 0.40, size = 460, normalized size = 4.34 \begin {gather*} \left [\frac {\sqrt {a^{2} - 1} a b^{2} x^{2} \log \left (\frac {a^{2} b x + a^{3} + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1} {\left (a^{2} + \sqrt {a^{2} - 1} a - 1\right )} + {\left (a b x + a^{2} - 1\right )} \sqrt {a^{2} - 1} - a}{x}\right ) - {\left (a^{2} - 1\right )} b^{2} x^{2} + {\left (a^{4} - 2 \, a^{2} + 1\right )} x^{2} \log \left (-b x - a + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1}\right ) - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1} {\left (a^{2} - 1\right )} b x - {\left (a^{4} - {\left (a^{4} - 2 \, a^{2} + 1\right )} x^{2} - 2 \, a^{2} + 1\right )} \log \left (b x + a + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1}\right )}{2 \, {\left (a^{4} - 2 \, a^{2} + 1\right )} x^{2}}, -\frac {2 \, \sqrt {-a^{2} + 1} a b^{2} x^{2} \arctan \left (-\frac {\sqrt {-a^{2} + 1} b x - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1} \sqrt {-a^{2} + 1}}{a^{2} - 1}\right ) + {\left (a^{2} - 1\right )} b^{2} x^{2} - {\left (a^{4} - 2 \, a^{2} + 1\right )} x^{2} \log \left (-b x - a + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1}\right ) + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1} {\left (a^{2} - 1\right )} b x + {\left (a^{4} - {\left (a^{4} - 2 \, a^{2} + 1\right )} x^{2} - 2 \, a^{2} + 1\right )} \log \left (b x + a + \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1}\right )}{2 \, {\left (a^{4} - 2 \, a^{2} + 1\right )} x^{2}}\right ] \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^{3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 170, normalized size = 1.60 \begin {gather*} -{\left (\frac {a b \arctan \left (-\frac {x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1}}{\sqrt {-a^{2} + 1}}\right )}{{\left (a^{2} - 1\right )} \sqrt {-a^{2} + 1}} - \frac {{\left (x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1}\right )} a b + a^{2} {\left | b \right |} - {\left | b \right |}}{{\left ({\left (x {\left | b \right |} - \sqrt {b^{2} x^{2} + 2 \, a b x + a^{2} - 1}\right )}^{2} - a^{2} + 1\right )} {\left (a^{2} - 1\right )}}\right )} b - \frac {\log \left (b x + a + \sqrt {{\left (b x + a\right )}^{2} - 1}\right )}{2 \, x^{2}} \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^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________