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

Optimal. Leaf size=48 \[ \frac {\left (a+b x^n\right ) \csc ^{-1}\left (a+b x^n\right )}{b n}+\frac {\tanh ^{-1}\left (\sqrt {1-\frac {1}{\left (a+b x^n\right )^2}}\right )}{b n} \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.07, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.429, Rules used = {6715, 5251, 372, 266, 63, 206} \[ \frac {\left (a+b x^n\right ) \csc ^{-1}\left (a+b x^n\right )}{b n}+\frac {\tanh ^{-1}\left (\sqrt {1-\frac {1}{\left (a+b x^n\right )^2}}\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Int[x^(-1 + n)*ArcCsc[a + b*x^n],x]

[Out]

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

Rule 63

Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_), x_Symbol] :> With[{p = Denominator[m]}, Dist[p/b, Sub
st[Int[x^(p*(m + 1) - 1)*(c - (a*d)/b + (d*x^p)/b)^n, x], x, (a + b*x)^(1/p)], x]] /; FreeQ[{a, b, c, d}, x] &
& NeQ[b*c - a*d, 0] && LtQ[-1, m, 0] && LeQ[-1, n, 0] && LeQ[Denominator[n], Denominator[m]] && IntLinearQ[a,
b, c, d, m, n, x]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 266

Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Dist[1/n, Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a
+ b*x)^p, x], x, x^n], x] /; FreeQ[{a, b, m, n, p}, x] && IntegerQ[Simplify[(m + 1)/n]]

Rule 372

Int[(u_)^(m_.)*((a_) + (b_.)*(v_)^(n_))^(p_.), x_Symbol] :> Dist[u^m/(Coefficient[v, x, 1]*v^m), Subst[Int[x^m
*(a + b*x^n)^p, x], x, v], x] /; FreeQ[{a, b, m, n, p}, x] && LinearPairQ[u, v, x]

Rule 5251

Int[ArcCsc[(c_) + (d_.)*(x_)], x_Symbol] :> Simp[((c + d*x)*ArcCsc[c + d*x])/d, x] + Int[1/((c + d*x)*Sqrt[1 -
 1/(c + d*x)^2]), x] /; FreeQ[{c, d}, x]

Rule 6715

Int[(u_)*(x_)^(m_.), x_Symbol] :> Dist[1/(m + 1), Subst[Int[SubstFor[x^(m + 1), u, x], x], x, x^(m + 1)], x] /
; FreeQ[m, x] && NeQ[m, -1] && FunctionOfQ[x^(m + 1), u, x]

Rubi steps

\begin {align*} \int x^{-1+n} \csc ^{-1}\left (a+b x^n\right ) \, dx &=\frac {\operatorname {Subst}\left (\int \csc ^{-1}(a+b x) \, dx,x,x^n\right )}{n}\\ &=\frac {\left (a+b x^n\right ) \csc ^{-1}\left (a+b x^n\right )}{b n}+\frac {\operatorname {Subst}\left (\int \frac {1}{(a+b x) \sqrt {1-\frac {1}{(a+b x)^2}}} \, dx,x,x^n\right )}{n}\\ &=\frac {\left (a+b x^n\right ) \csc ^{-1}\left (a+b x^n\right )}{b n}+\frac {\operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\frac {1}{x^2}} x} \, dx,x,a+b x^n\right )}{b n}\\ &=\frac {\left (a+b x^n\right ) \csc ^{-1}\left (a+b x^n\right )}{b n}-\frac {\operatorname {Subst}\left (\int \frac {1}{\sqrt {1-x} x} \, dx,x,\frac {1}{\left (a+b x^n\right )^2}\right )}{2 b n}\\ &=\frac {\left (a+b x^n\right ) \csc ^{-1}\left (a+b x^n\right )}{b n}+\frac {\operatorname {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {1-\frac {1}{\left (a+b x^n\right )^2}}\right )}{b n}\\ &=\frac {\left (a+b x^n\right ) \csc ^{-1}\left (a+b x^n\right )}{b n}+\frac {\tanh ^{-1}\left (\sqrt {1-\frac {1}{\left (a+b x^n\right )^2}}\right )}{b n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B]  time = 0.29, size = 130, normalized size = 2.71 \[ \frac {\sqrt {\left (a+b x^n\right )^2-1} \left (\log \left (\frac {a+b x^n}{\sqrt {\left (a+b x^n\right )^2-1}}+1\right )-\log \left (1-\frac {a+b x^n}{\sqrt {\left (a+b x^n\right )^2-1}}\right )\right )}{2 b n \left (a+b x^n\right ) \sqrt {1-\frac {1}{\left (a+b x^n\right )^2}}}+\frac {\left (a+b x^n\right ) \csc ^{-1}\left (a+b x^n\right )}{b n} \]

Antiderivative was successfully verified.

[In]

Integrate[x^(-1 + n)*ArcCsc[a + b*x^n],x]

[Out]

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

________________________________________________________________________________________

fricas [B]  time = 0.73, size = 94, normalized size = 1.96 \[ \frac {b x^{n} \operatorname {arccsc}\left (b x^{n} + a\right ) - 2 \, a \arctan \left (-b x^{n} - a + \sqrt {b^{2} x^{2 \, n} + 2 \, a b x^{n} + a^{2} - 1}\right ) - \log \left (-b x^{n} - a + \sqrt {b^{2} x^{2 \, n} + 2 \, a b x^{n} + a^{2} - 1}\right )}{b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*arccsc(a+b*x^n),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

giac [A]  time = 0.26, size = 74, normalized size = 1.54 \[ \frac {b {\left (\frac {2 \, {\left (b x^{n} + a\right )} \arcsin \left (\frac {1}{b x^{n} + a}\right )}{b^{2}} + \frac {\log \left (\sqrt {-\frac {1}{{\left (b x^{n} + a\right )}^{2}} + 1} + 1\right ) - \log \left (-\sqrt {-\frac {1}{{\left (b x^{n} + a\right )}^{2}} + 1} + 1\right )}{b^{2}}\right )}}{2 \, n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*arccsc(a+b*x^n),x, algorithm="giac")

[Out]

1/2*b*(2*(b*x^n + a)*arcsin(1/(b*x^n + a))/b^2 + (log(sqrt(-1/(b*x^n + a)^2 + 1) + 1) - log(-sqrt(-1/(b*x^n +
a)^2 + 1) + 1))/b^2)/n

________________________________________________________________________________________

maple [F]  time = 0.08, size = 0, normalized size = 0.00 \[ \int x^{n -1} \mathrm {arccsc}\left (a +b \,x^{n}\right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(n-1)*arccsc(a+b*x^n),x)

[Out]

int(x^(n-1)*arccsc(a+b*x^n),x)

________________________________________________________________________________________

maxima [A]  time = 0.39, size = 66, normalized size = 1.38 \[ \frac {2 \, {\left (b x^{n} + a\right )} \operatorname {arccsc}\left (b x^{n} + a\right ) + \log \left (\sqrt {-\frac {1}{{\left (b x^{n} + a\right )}^{2}} + 1} + 1\right ) - \log \left (-\sqrt {-\frac {1}{{\left (b x^{n} + a\right )}^{2}} + 1} + 1\right )}{2 \, b n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x^(-1+n)*arccsc(a+b*x^n),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.73, size = 42, normalized size = 0.88 \[ \frac {\mathrm {atanh}\left (\frac {1}{\sqrt {1-\frac {1}{{\left (a+b\,x^n\right )}^2}}}\right )+\mathrm {asin}\left (\frac {1}{a+b\,x^n}\right )\,\left (a+b\,x^n\right )}{b\,n} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^(n - 1)*asin(1/(a + b*x^n)),x)

[Out]

(atanh(1/(1 - 1/(a + b*x^n)^2)^(1/2)) + asin(1/(a + b*x^n))*(a + b*x^n))/(b*n)

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**(-1+n)*acsc(a+b*x**n),x)

[Out]

Timed out

________________________________________________________________________________________