Optimal. Leaf size=58 \[ \frac {(a+b x) \text {sech}^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {2 c \text {ArcTan}\left (\sqrt {\frac {\left (1-\frac {a}{c}\right ) c-b x}{a+c+b x}}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 58, 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 = {6012, 6448,
1983, 12, 209} \begin {gather*} \frac {(a+b x) \text {sech}^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {2 c \text {ArcTan}\left (\sqrt {\frac {c \left (1-\frac {a}{c}\right )-b x}{a+b x+c}}\right )}{b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 209
Rule 1983
Rule 6012
Rule 6448
Rubi steps
\begin {align*} \int \cosh ^{-1}\left (\frac {c}{a+b x}\right ) \, dx &=\int \text {sech}^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right ) \, dx\\ &=\frac {(a+b x) \text {sech}^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}+\int \frac {\sqrt {\frac {1-\frac {a}{c}-\frac {b x}{c}}{1+\frac {a}{c}+\frac {b x}{c}}}}{1-\frac {a}{c}-\frac {b x}{c}} \, dx\\ &=\frac {(a+b x) \text {sech}^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {(4 b) \text {Subst}\left (\int \frac {c^2}{2 b^2 \left (1+x^2\right )} \, dx,x,\sqrt {\frac {1-\frac {a}{c}-\frac {b x}{c}}{1+\frac {a}{c}+\frac {b x}{c}}}\right )}{c}\\ &=\frac {(a+b x) \text {sech}^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {(2 c) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\sqrt {\frac {1-\frac {a}{c}-\frac {b x}{c}}{1+\frac {a}{c}+\frac {b x}{c}}}\right )}{b}\\ &=\frac {(a+b x) \text {sech}^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {2 c \tan ^{-1}\left (\sqrt {\frac {\left (1-\frac {a}{c}\right ) c-b x}{a+c+b x}}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 116, normalized size = 2.00 \begin {gather*} x \cosh ^{-1}\left (\frac {c}{a+b x}\right )+\frac {2 \sqrt {-\frac {a-c+b x}{a+c+b x}} \sqrt {a+c+b x} \left (a \text {ArcTan}\left (\frac {\sqrt {a-c+b x}}{\sqrt {a+c+b x}}\right )-c \tanh ^{-1}\left (\frac {\sqrt {a-c+b x}}{\sqrt {a+c+b x}}\right )\right )}{b \sqrt {a-c+b x}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.16, size = 87, normalized size = 1.50
method | result | size |
derivativedivides | \(-\frac {c \left (-\frac {\left (b x +a \right ) \mathrm {arccosh}\left (\frac {c}{b x +a}\right )}{c}-\frac {\sqrt {\frac {c}{b x +a}-1}\, \sqrt {\frac {c}{b x +a}+1}\, \arctan \left (\frac {1}{\sqrt {\frac {c^{2}}{\left (b x +a \right )^{2}}-1}}\right )}{\sqrt {\frac {c^{2}}{\left (b x +a \right )^{2}}-1}}\right )}{b}\) | \(87\) |
default | \(-\frac {c \left (-\frac {\left (b x +a \right ) \mathrm {arccosh}\left (\frac {c}{b x +a}\right )}{c}-\frac {\sqrt {\frac {c}{b x +a}-1}\, \sqrt {\frac {c}{b x +a}+1}\, \arctan \left (\frac {1}{\sqrt {\frac {c^{2}}{\left (b x +a \right )^{2}}-1}}\right )}{\sqrt {\frac {c^{2}}{\left (b x +a \right )^{2}}-1}}\right )}{b}\) | \(87\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 276 vs.
\(2 (55) = 110\).
time = 0.43, size = 276, normalized size = 4.76 \begin {gather*} \frac {2 \, b x \log \left (\frac {{\left (b x + a\right )} \sqrt {-\frac {b^{2} x^{2} + 2 \, a b x + a^{2} - c^{2}}{b^{2} x^{2} + 2 \, a b x + a^{2}}} + c}{b x + a}\right ) - 2 \, c \arctan \left (\frac {{\left (b^{2} x^{2} + 2 \, a b x + a^{2}\right )} \sqrt {-\frac {b^{2} x^{2} + 2 \, a b x + a^{2} - c^{2}}{b^{2} x^{2} + 2 \, a b x + a^{2}}}}{b^{2} x^{2} + 2 \, a b x + a^{2} - c^{2}}\right ) + a \log \left (\frac {{\left (b x + a\right )} \sqrt {-\frac {b^{2} x^{2} + 2 \, a b x + a^{2} - c^{2}}{b^{2} x^{2} + 2 \, a b x + a^{2}}} + c}{x}\right ) - a \log \left (\frac {{\left (b x + a\right )} \sqrt {-\frac {b^{2} x^{2} + 2 \, a b x + a^{2} - c^{2}}{b^{2} x^{2} + 2 \, a b x + a^{2}}} - c}{x}\right )}{2 \, b} \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 \operatorname {acosh}{\left (\frac {c}{a + b x} \right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 119 vs.
\(2 (55) = 110\).
time = 2.29, size = 119, normalized size = 2.05 \begin {gather*} \frac {c \arcsin \left (-\frac {b x + a}{c}\right ) \mathrm {sgn}\left (b\right ) \mathrm {sgn}\left (c\right )}{{\left | b \right |}} + x \log \left (\sqrt {\frac {c}{b x + a} + 1} \sqrt {\frac {c}{b x + a} - 1} + \frac {c}{b x + a}\right ) - \frac {a \log \left (\frac {{\left | -2 \, b c - 2 \, \sqrt {-b^{2} x^{2} - 2 \, a b x - a^{2} + c^{2}} {\left | b \right |} \right |}}{{\left | -2 \, b^{2} x - 2 \, a b \right |}}\right )}{{\left | b \right |}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.51, size = 53, normalized size = 0.91 \begin {gather*} \frac {\mathrm {acosh}\left (\frac {c}{a+b\,x}\right )\,\left (a+b\,x\right )}{b}+\frac {c\,\mathrm {atan}\left (\frac {1}{\sqrt {\frac {c}{a+b\,x}-1}\,\sqrt {\frac {c}{a+b\,x}+1}}\right )}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________