3.1.69 \(\int \frac {\text {ArcCos}(a x^n)}{x} \, dx\) [69]

Optimal. Leaf size=68 \[ -\frac {i \text {ArcCos}\left (a x^n\right )^2}{2 n}+\frac {\text {ArcCos}\left (a x^n\right ) \log \left (1+e^{2 i \text {ArcCos}\left (a x^n\right )}\right )}{n}-\frac {i \text {PolyLog}\left (2,-e^{2 i \text {ArcCos}\left (a x^n\right )}\right )}{2 n} \]

[Out]

-1/2*I*arccos(a*x^n)^2/n+arccos(a*x^n)*ln(1+(a*x^n+I*(1-a^2*(x^n)^2)^(1/2))^2)/n-1/2*I*polylog(2,-(a*x^n+I*(1-
a^2*(x^n)^2)^(1/2))^2)/n

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 68, 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 = {4915, 3800, 2221, 2317, 2438} \begin {gather*} -\frac {i \text {Li}_2\left (-e^{2 i \text {ArcCos}\left (a x^n\right )}\right )}{2 n}-\frac {i \text {ArcCos}\left (a x^n\right )^2}{2 n}+\frac {\text {ArcCos}\left (a x^n\right ) \log \left (1+e^{2 i \text {ArcCos}\left (a x^n\right )}\right )}{n} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[ArcCos[a*x^n]/x,x]

[Out]

((-1/2*I)*ArcCos[a*x^n]^2)/n + (ArcCos[a*x^n]*Log[1 + E^((2*I)*ArcCos[a*x^n])])/n - ((I/2)*PolyLog[2, -E^((2*I
)*ArcCos[a*x^n])])/n

Rule 2221

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

Rule 2317

Int[Log[(a_) + (b_.)*((F_)^((e_.)*((c_.) + (d_.)*(x_))))^(n_.)], x_Symbol] :> Dist[1/(d*e*n*Log[F]), Subst[Int
[Log[a + b*x]/x, x], x, (F^(e*(c + d*x)))^n], x] /; FreeQ[{F, a, b, c, d, e, n}, x] && GtQ[a, 0]

Rule 2438

Int[Log[(c_.)*((d_) + (e_.)*(x_)^(n_.))]/(x_), x_Symbol] :> Simp[-PolyLog[2, (-c)*e*x^n]/n, x] /; FreeQ[{c, d,
 e, n}, x] && EqQ[c*d, 1]

Rule 3800

Int[((c_.) + (d_.)*(x_))^(m_.)*tan[(e_.) + (f_.)*(x_)], x_Symbol] :> Simp[I*((c + d*x)^(m + 1)/(d*(m + 1))), x
] - Dist[2*I, Int[(c + d*x)^m*(E^(2*I*(e + f*x))/(1 + E^(2*I*(e + f*x)))), x], x] /; FreeQ[{c, d, e, f}, x] &&
 IGtQ[m, 0]

Rule 4915

Int[ArcCos[(a_.)*(x_)^(p_)]^(n_.)/(x_), x_Symbol] :> Dist[-p^(-1), Subst[Int[x^n*Tan[x], x], x, ArcCos[a*x^p]]
, x] /; FreeQ[{a, p}, x] && IGtQ[n, 0]

Rubi steps

\begin {align*} \int \frac {\cos ^{-1}\left (a x^n\right )}{x} \, dx &=-\frac {\text {Subst}\left (\int x \tan (x) \, dx,x,\cos ^{-1}\left (a x^n\right )\right )}{n}\\ &=-\frac {i \cos ^{-1}\left (a x^n\right )^2}{2 n}+\frac {(2 i) \text {Subst}\left (\int \frac {e^{2 i x} x}{1+e^{2 i x}} \, dx,x,\cos ^{-1}\left (a x^n\right )\right )}{n}\\ &=-\frac {i \cos ^{-1}\left (a x^n\right )^2}{2 n}+\frac {\cos ^{-1}\left (a x^n\right ) \log \left (1+e^{2 i \cos ^{-1}\left (a x^n\right )}\right )}{n}-\frac {\text {Subst}\left (\int \log \left (1+e^{2 i x}\right ) \, dx,x,\cos ^{-1}\left (a x^n\right )\right )}{n}\\ &=-\frac {i \cos ^{-1}\left (a x^n\right )^2}{2 n}+\frac {\cos ^{-1}\left (a x^n\right ) \log \left (1+e^{2 i \cos ^{-1}\left (a x^n\right )}\right )}{n}+\frac {i \text {Subst}\left (\int \frac {\log (1+x)}{x} \, dx,x,e^{2 i \cos ^{-1}\left (a x^n\right )}\right )}{2 n}\\ &=-\frac {i \cos ^{-1}\left (a x^n\right )^2}{2 n}+\frac {\cos ^{-1}\left (a x^n\right ) \log \left (1+e^{2 i \cos ^{-1}\left (a x^n\right )}\right )}{n}-\frac {i \text {Li}_2\left (-e^{2 i \cos ^{-1}\left (a x^n\right )}\right )}{2 n}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(141\) vs. \(2(68)=136\).
time = 0.10, size = 141, normalized size = 2.07 \begin {gather*} \text {ArcCos}\left (a x^n\right ) \log (x)+\frac {a \left (-\sinh ^{-1}\left (\sqrt {-a^2} x^n\right )^2-2 \sinh ^{-1}\left (\sqrt {-a^2} x^n\right ) \log \left (1-e^{-2 \sinh ^{-1}\left (\sqrt {-a^2} x^n\right )}\right )+2 n \log (x) \log \left (\sqrt {-a^2} x^n+\sqrt {1-a^2 x^{2 n}}\right )+\text {PolyLog}\left (2,e^{-2 \sinh ^{-1}\left (\sqrt {-a^2} x^n\right )}\right )\right )}{2 \sqrt {-a^2} n} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[ArcCos[a*x^n]/x,x]

[Out]

ArcCos[a*x^n]*Log[x] + (a*(-ArcSinh[Sqrt[-a^2]*x^n]^2 - 2*ArcSinh[Sqrt[-a^2]*x^n]*Log[1 - E^(-2*ArcSinh[Sqrt[-
a^2]*x^n])] + 2*n*Log[x]*Log[Sqrt[-a^2]*x^n + Sqrt[1 - a^2*x^(2*n)]] + PolyLog[2, E^(-2*ArcSinh[Sqrt[-a^2]*x^n
])]))/(2*Sqrt[-a^2]*n)

________________________________________________________________________________________

Maple [A]
time = 0.56, size = 84, normalized size = 1.24

method result size
derivativedivides \(\frac {-\frac {i \arccos \left (a \,x^{n}\right )^{2}}{2}+\arccos \left (a \,x^{n}\right ) \ln \left (1+\left (a \,x^{n}+i \sqrt {1-a^{2} x^{2 n}}\right )^{2}\right )-\frac {i \polylog \left (2, -\left (a \,x^{n}+i \sqrt {1-a^{2} x^{2 n}}\right )^{2}\right )}{2}}{n}\) \(84\)
default \(\frac {-\frac {i \arccos \left (a \,x^{n}\right )^{2}}{2}+\arccos \left (a \,x^{n}\right ) \ln \left (1+\left (a \,x^{n}+i \sqrt {1-a^{2} x^{2 n}}\right )^{2}\right )-\frac {i \polylog \left (2, -\left (a \,x^{n}+i \sqrt {1-a^{2} x^{2 n}}\right )^{2}\right )}{2}}{n}\) \(84\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arccos(a*x^n)/x,x,method=_RETURNVERBOSE)

[Out]

1/n*(-1/2*I*arccos(a*x^n)^2+arccos(a*x^n)*ln(1+(a*x^n+I*(1-a^2*(x^n)^2)^(1/2))^2)-1/2*I*polylog(2,-(a*x^n+I*(1
-a^2*(x^n)^2)^(1/2))^2))

________________________________________________________________________________________

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]

integrate(arccos(a*x^n)/x,x, algorithm="maxima")

[Out]

-a*n*integrate(sqrt(a*x^n + 1)*sqrt(-a*x^n + 1)*x^n*log(x)/(a^2*x*x^(2*n) - x), x) + arctan(sqrt(a*x^n + 1)*sq
rt(-a*x^n + 1)/(a*x^n))*log(x)

________________________________________________________________________________________

Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arccos(a*x^n)/x,x, algorithm="fricas")

[Out]

Exception raised: TypeError >>  Error detected within library code:   integrate: implementation incomplete (co
nstant residues)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\operatorname {acos}{\left (a x^{n} \right )}}{x}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(acos(a*x**n)/x,x)

[Out]

Integral(acos(a*x**n)/x, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arccos(a*x^n)/x,x, algorithm="giac")

[Out]

integrate(arccos(a*x^n)/x, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\mathrm {acos}\left (a\,x^n\right )}{x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(acos(a*x^n)/x,x)

[Out]

int(acos(a*x^n)/x, x)

________________________________________________________________________________________