Optimal. Leaf size=48 \[ \frac {(a+b x) \sec ^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {c \tanh ^{-1}\left (\sqrt {1-\frac {c^2}{(a+b x)^2}}\right )}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.600, Rules used = {4833, 5250, 372, 266, 63, 206} \[ \frac {(a+b x) \sec ^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {c \tanh ^{-1}\left (\sqrt {1-\frac {c^2}{(a+b x)^2}}\right )}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 206
Rule 266
Rule 372
Rule 4833
Rule 5250
Rubi steps
\begin {align*} \int \cos ^{-1}\left (\frac {c}{a+b x}\right ) \, dx &=\int \sec ^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right ) \, dx\\ &=\frac {(a+b x) \sec ^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\int \frac {1}{\left (\frac {a}{c}+\frac {b x}{c}\right ) \sqrt {1-\frac {1}{\left (\frac {a}{c}+\frac {b x}{c}\right )^2}}} \, dx\\ &=\frac {(a+b x) \sec ^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {c \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\frac {1}{x^2}} x} \, dx,x,\frac {a}{c}+\frac {b x}{c}\right )}{b}\\ &=\frac {(a+b x) \sec ^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}+\frac {c \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x} x} \, dx,x,\frac {1}{\left (\frac {a}{c}+\frac {b x}{c}\right )^2}\right )}{2 b}\\ &=\frac {(a+b x) \sec ^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {c \operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {1-\frac {c^2}{(a+b x)^2}}\right )}{b}\\ &=\frac {(a+b x) \sec ^{-1}\left (\frac {a}{c}+\frac {b x}{c}\right )}{b}-\frac {c \tanh ^{-1}\left (\sqrt {1-\frac {c^2}{(a+b x)^2}}\right )}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.17, size = 141, normalized size = 2.94 \[ x \cos ^{-1}\left (\frac {c}{a+b x}\right )-\frac {(a+b x) \sqrt {\frac {a^2+2 a b x+b^2 x^2-c^2}{(a+b x)^2}} \left (c \tanh ^{-1}\left (\frac {a+b x}{\sqrt {a^2+2 a b x+b^2 x^2-c^2}}\right )-a \tan ^{-1}\left (\frac {\sqrt {(a+b x)^2-c^2}}{c}\right )\right )}{b \sqrt {a^2+2 a b x+b^2 x^2-c^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.48, size = 140, normalized size = 2.92 \[ \frac {b x \arccos \left (\frac {c}{b x + a}\right ) + 2 \, a \arctan \left (-\frac {b x - {\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}}} + a}{c}\right ) + c \log \left (-b x + {\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}}} - a\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.22, size = 95, normalized size = 1.98 \[ -\frac {b {\left (\frac {c^{2} {\left (\log \left (\sqrt {-\frac {c^{2}}{{\left (b x + a\right )}^{2}} + 1} + 1\right ) - \log \left (-\sqrt {-\frac {c^{2}}{{\left (b x + a\right )}^{2}} + 1} + 1\right )\right )}}{b^{2}} - \frac {2 \, {\left (b x + a\right )} c \arccos \left (-\frac {c}{{\left (b x + a\right )} {\left (\frac {a}{b x + a} - 1\right )} - a}\right )}{b^{2}}\right )}}{2 \, c} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 45, normalized size = 0.94 \[ -\frac {c \left (-\frac {\left (b x +a \right ) \arccos \left (\frac {c}{b x +a}\right )}{c}+\arctanh \left (\frac {1}{\sqrt {1-\frac {c^{2}}{\left (b x +a \right )^{2}}}}\right )\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ x \arctan \left (\frac {\sqrt {b x + a + c} \sqrt {b x + a - c}}{c}\right ) - \int \frac {{\left (b^{2} c x^{2} + a b c x\right )} e^{\left (\frac {1}{2} \, \log \left (b x + a + c\right ) + \frac {1}{2} \, \log \left (b x + a - c\right )\right )}}{b^{2} c^{2} x^{2} + 2 \, a b c^{2} x + a^{2} c^{2} - c^{4} + {\left (b^{2} x^{2} + 2 \, a b x + a^{2} - c^{2}\right )} e^{\left (\log \left (b x + a + c\right ) + \log \left (b x + a - c\right )\right )}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.63, size = 43, normalized size = 0.90 \[ \frac {\mathrm {acos}\left (\frac {c}{a+b\,x}\right )\,\left (a+b\,x\right )}{b}-\frac {c\,\mathrm {atanh}\left (\frac {1}{\sqrt {1-\frac {c^2}{{\left (a+b\,x\right )}^2}}}\right )}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \operatorname {acos}{\left (\frac {c}{a + b x} \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________