3.20 \(\int x \csc ^{-1}(a+b x) \, dx\)

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]

((a + b*x)*Sqrt[1 - (a + b*x)^(-2)])/(2*b^2) - (a^2*ArcCsc[a + b*x])/(2*b^2) + (x^2*ArcCsc[a + b*x])/2 - (a*Ar
cTanh[Sqrt[1 - (a + b*x)^(-2)]])/b^2

________________________________________________________________________________________

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]

Int[x*ArcCsc[a + b*x],x]

[Out]

((a + b*x)*Sqrt[1 - (a + b*x)^(-2)])/(2*b^2) - (a^2*ArcCsc[a + b*x])/(2*b^2) + (x^2*ArcCsc[a + b*x])/2 - (a*Ar
cTanh[Sqrt[1 - (a + b*x)^(-2)]])/b^2

Rule 5259

Int[((a_.) + ArcCsc[(c_) + (d_.)*(x_)]*(b_.))^(p_.)*((e_.) + (f_.)*(x_))^(m_.), x_Symbol] :> -Dist[(d^(m + 1))
^(-1), Subst[Int[(a + b*x)^p*Csc[x]*Cot[x]*(d*e - c*f + f*Csc[x])^m, x], x, ArcCsc[c + d*x]], x] /; FreeQ[{a,
b, c, d, e, f}, x] && IGtQ[p, 0] && IntegerQ[m]

Rule 4427

Int[Cot[(c_.) + (d_.)*(x_)]*Csc[(c_.) + (d_.)*(x_)]*(Csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n_.)*((e_.) + (f_.
)*(x_))^(m_.), x_Symbol] :> -Simp[((e + f*x)^m*(a + b*Csc[c + d*x])^(n + 1))/(b*d*(n + 1)), x] + Dist[(f*m)/(b
*d*(n + 1)), Int[(e + f*x)^(m - 1)*(a + b*Csc[c + d*x])^(n + 1), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] &&
IGtQ[m, 0] && NeQ[n, -1]

Rule 3773

Int[(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^2, x_Symbol] :> Simp[a^2*x, x] + (Dist[2*a*b, Int[Csc[c + d*x], x],
 x] + Dist[b^2, Int[Csc[c + d*x]^2, x], x]) /; FreeQ[{a, b, c, d}, x]

Rule 3770

Int[csc[(c_.) + (d_.)*(x_)], x_Symbol] :> -Simp[ArcTanh[Cos[c + d*x]]/d, x] /; FreeQ[{c, d}, x]

Rule 3767

Int[csc[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> -Dist[d^(-1), Subst[Int[ExpandIntegrand[(1 + x^2)^(n/2 - 1), x]
, x], x, Cot[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[n/2, 0]

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

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]

Integrate[x*ArcCsc[a + b*x],x]

[Out]

((a + b*x)*Sqrt[(-1 + a^2 + 2*a*b*x + b^2*x^2)/(a + b*x)^2] + b^2*x^2*ArcCsc[a + b*x] - a^2*ArcSin[(a + b*x)^(
-1)] - 2*a*Log[(a + b*x)*(1 + Sqrt[(-1 + a^2 + 2*a*b*x + b^2*x^2)/(a + b*x)^2])])/(2*b^2)

________________________________________________________________________________________

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]

int(x*arccsc(b*x+a),x)

[Out]

1/2*x^2*arccsc(b*x+a)-1/2*a^2*arccsc(b*x+a)/b^2-1/b^2*(-1+(b*x+a)^2)^(1/2)/((-1+(b*x+a)^2)/(b*x+a)^2)^(1/2)/(b
*x+a)*a*ln(b*x+a+(-1+(b*x+a)^2)^(1/2))+1/2/b^2*(-1+(b*x+a)^2)/((-1+(b*x+a)^2)/(b*x+a)^2)^(1/2)/(b*x+a)

________________________________________________________________________________________

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]

integrate(x*arccsc(b*x+a),x, algorithm="maxima")

[Out]

1/2*x^2*arctan2(1, sqrt(b*x + a + 1)*sqrt(b*x + a - 1)) + integrate(1/2*(b^2*x^3 + a*b*x^2)*e^(1/2*log(b*x + a
 + 1) + 1/2*log(b*x + a - 1))/(b^2*x^2 + 2*a*b*x + a^2 + (b^2*x^2 + 2*a*b*x + a^2 - 1)*e^(log(b*x + a + 1) + l
og(b*x + a - 1)) - 1), x)

________________________________________________________________________________________

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]

integrate(x*arccsc(b*x+a),x, algorithm="fricas")

[Out]

1/2*(b^2*x^2*arccsc(b*x + a) + 2*a^2*arctan(-b*x - a + sqrt(b^2*x^2 + 2*a*b*x + a^2 - 1)) + 2*a*log(-b*x - a +
 sqrt(b^2*x^2 + 2*a*b*x + a^2 - 1)) + sqrt(b^2*x^2 + 2*a*b*x + a^2 - 1))/b^2

________________________________________________________________________________________

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]

integrate(x*acsc(b*x+a),x)

[Out]

Integral(x*acsc(a + b*x), x)

________________________________________________________________________________________

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]

integrate(x*arccsc(b*x+a),x, algorithm="giac")

[Out]

integrate(x*arccsc(b*x + a), x)