Optimal. Leaf size=79 \[ -\frac{a^2 \csc ^{-1}(a+b x)}{2 b^2}+\frac{(a+b x) \sqrt{1-\frac{1}{(a+b x)^2}}}{2 b^2}-\frac{a \tanh ^{-1}\left (\sqrt{1-\frac{1}{(a+b x)^2}}\right )}{b^2}+\frac{1}{2} x^2 \csc ^{-1}(a+b x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0526526, antiderivative size = 79, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 6, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.75, Rules used = {5259, 4427, 3773, 3770, 3767, 8} \[ -\frac{a^2 \csc ^{-1}(a+b x)}{2 b^2}+\frac{(a+b x) \sqrt{1-\frac{1}{(a+b x)^2}}}{2 b^2}-\frac{a \tanh ^{-1}\left (\sqrt{1-\frac{1}{(a+b x)^2}}\right )}{b^2}+\frac{1}{2} x^2 \csc ^{-1}(a+b x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5259
Rule 4427
Rule 3773
Rule 3770
Rule 3767
Rule 8
Rubi steps
\begin{align*} \int x \csc ^{-1}(a+b x) \, dx &=-\frac{\operatorname{Subst}\left (\int x \cot (x) \csc (x) (-a+\csc (x)) \, dx,x,\csc ^{-1}(a+b x)\right )}{b^2}\\ &=\frac{1}{2} x^2 \csc ^{-1}(a+b x)-\frac{\operatorname{Subst}\left (\int (-a+\csc (x))^2 \, dx,x,\csc ^{-1}(a+b x)\right )}{2 b^2}\\ &=-\frac{a^2 \csc ^{-1}(a+b x)}{2 b^2}+\frac{1}{2} x^2 \csc ^{-1}(a+b x)-\frac{\operatorname{Subst}\left (\int \csc ^2(x) \, dx,x,\csc ^{-1}(a+b x)\right )}{2 b^2}+\frac{a \operatorname{Subst}\left (\int \csc (x) \, dx,x,\csc ^{-1}(a+b x)\right )}{b^2}\\ &=-\frac{a^2 \csc ^{-1}(a+b x)}{2 b^2}+\frac{1}{2} x^2 \csc ^{-1}(a+b x)-\frac{a \tanh ^{-1}\left (\sqrt{1-\frac{1}{(a+b x)^2}}\right )}{b^2}+\frac{\operatorname{Subst}\left (\int 1 \, dx,x,(a+b x) \sqrt{1-\frac{1}{(a+b x)^2}}\right )}{2 b^2}\\ &=\frac{(a+b x) \sqrt{1-\frac{1}{(a+b x)^2}}}{2 b^2}-\frac{a^2 \csc ^{-1}(a+b x)}{2 b^2}+\frac{1}{2} x^2 \csc ^{-1}(a+b x)-\frac{a \tanh ^{-1}\left (\sqrt{1-\frac{1}{(a+b x)^2}}\right )}{b^2}\\ \end{align*}
Mathematica [A] time = 0.13349, size = 110, normalized size = 1.39 \[ \frac{(a+b x) \sqrt{\frac{a^2+2 a b x+b^2 x^2-1}{(a+b x)^2}}-2 a \log \left ((a+b x) \left (\sqrt{\frac{a^2+2 a b x+b^2 x^2-1}{(a+b x)^2}}+1\right )\right )+a^2 \left (-\sin ^{-1}\left (\frac{1}{a+b x}\right )\right )+b^2 x^2 \csc ^{-1}(a+b x)}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.222, size = 127, normalized size = 1.6 \begin{align*}{\frac{{x}^{2}{\rm arccsc} \left (bx+a\right )}{2}}-{\frac{{a}^{2}{\rm arccsc} \left (bx+a\right )}{2\,{b}^{2}}}-{\frac{a}{{b}^{2} \left ( bx+a \right ) }\sqrt{-1+ \left ( bx+a \right ) ^{2}}\ln \left ( bx+a+\sqrt{-1+ \left ( bx+a \right ) ^{2}} \right ){\frac{1}{\sqrt{{\frac{-1+ \left ( bx+a \right ) ^{2}}{ \left ( bx+a \right ) ^{2}}}}}}}+{\frac{-1+ \left ( bx+a \right ) ^{2}}{2\,{b}^{2} \left ( bx+a \right ) }{\frac{1}{\sqrt{{\frac{-1+ \left ( bx+a \right ) ^{2}}{ \left ( bx+a \right ) ^{2}}}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \frac{1}{2} \, x^{2} \arctan \left (1, \sqrt{b x + a + 1} \sqrt{b x + a - 1}\right ) + \int \frac{{\left (b^{2} x^{3} + a b x^{2}\right )} e^{\left (\frac{1}{2} \, \log \left (b x + a + 1\right ) + \frac{1}{2} \, \log \left (b x + a - 1\right )\right )}}{2 \,{\left (b^{2} x^{2} + 2 \, a b x + a^{2} +{\left (b^{2} x^{2} + 2 \, a b x + a^{2} - 1\right )} e^{\left (\log \left (b x + a + 1\right ) + \log \left (b x + a - 1\right )\right )} - 1\right )}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 3.12795, size = 254, normalized size = 3.22 \begin{align*} \frac{b^{2} x^{2} \operatorname{arccsc}\left (b x + a\right ) + 2 \, a^{2} \arctan \left (-b x - a + \sqrt{b^{2} x^{2} + 2 \, a b x + a^{2} - 1}\right ) + 2 \, a \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}}{2 \, b^{2}} \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*} \int x \operatorname{acsc}{\left (a + b x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x \operatorname{arccsc}\left (b x + a\right )\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]