3.1.34 \(\int \frac {\tan ^{-1}(x) \log (x)}{x} \, dx\) [34]

Optimal. Leaf size=57 \[ \frac {1}{2} i \log (x) \text {Li}_2(-i x)-\frac {1}{2} i \log (x) \text {Li}_2(i x)-\frac {1}{2} i \text {Li}_3(-i x)+\frac {1}{2} i \text {Li}_3(i x) \]

[Out]

1/2*I*ln(x)*polylog(2,-I*x)-1/2*I*ln(x)*polylog(2,I*x)-1/2*I*polylog(3,-I*x)+1/2*I*polylog(3,I*x)

________________________________________________________________________________________

Rubi [A]
time = 0.05, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.625, Rules used = {4940, 2438, 5125, 2421, 6724} \begin {gather*} -\frac {1}{2} i \text {Li}_3(-i x)+\frac {1}{2} i \text {Li}_3(i x)+\frac {1}{2} i \text {Li}_2(-i x) \log (x)-\frac {1}{2} i \text {Li}_2(i x) \log (x) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(ArcTan[x]*Log[x])/x,x]

[Out]

(I/2)*Log[x]*PolyLog[2, (-I)*x] - (I/2)*Log[x]*PolyLog[2, I*x] - (I/2)*PolyLog[3, (-I)*x] + (I/2)*PolyLog[3, I
*x]

Rule 2421

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

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 4940

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))/(x_), x_Symbol] :> Simp[a*Log[x], x] + (Dist[I*(b/2), Int[Log[1 - I*c*x
]/x, x], x] - Dist[I*(b/2), Int[Log[1 + I*c*x]/x, x], x]) /; FreeQ[{a, b, c}, x]

Rule 5125

Int[(ArcTan[(c_.)*(x_)^(n_.)]*Log[(d_.)*(x_)^(m_.)])/(x_), x_Symbol] :> Dist[I/2, Int[Log[d*x^m]*(Log[1 - I*c*
x^n]/x), x], x] - Dist[I/2, Int[Log[d*x^m]*(Log[1 + I*c*x^n]/x), x], x] /; FreeQ[{c, d, m, n}, x]

Rule 6724

Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_Symbol] :> Simp[PolyLog[n + 1, c*(a
+ b*x)^p]/(e*p), x] /; FreeQ[{a, b, c, d, e, n, p}, x] && EqQ[b*d, a*e]

Rubi steps

\begin {align*} \int \frac {\tan ^{-1}(x) \log (x)}{x} \, dx &=\frac {1}{2} i \int \frac {\log (1-i x) \log (x)}{x} \, dx-\frac {1}{2} i \int \frac {\log (1+i x) \log (x)}{x} \, dx\\ &=\frac {1}{2} i \log (x) \text {Li}_2(-i x)-\frac {1}{2} i \log (x) \text {Li}_2(i x)-\frac {1}{2} i \int \frac {\text {Li}_2(-i x)}{x} \, dx+\frac {1}{2} i \int \frac {\text {Li}_2(i x)}{x} \, dx\\ &=\frac {1}{2} i \log (x) \text {Li}_2(-i x)-\frac {1}{2} i \log (x) \text {Li}_2(i x)-\frac {1}{2} i \text {Li}_3(-i x)+\frac {1}{2} i \text {Li}_3(i x)\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 44, normalized size = 0.77 \begin {gather*} \frac {1}{2} i (\log (x) \text {Li}_2(-i x)-\log (x) \text {Li}_2(i x)-\text {Li}_3(-i x)+\text {Li}_3(i x)) \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(ArcTan[x]*Log[x])/x,x]

[Out]

(I/2)*(Log[x]*PolyLog[2, (-I)*x] - Log[x]*PolyLog[2, I*x] - PolyLog[3, (-I)*x] + PolyLog[3, I*x])

________________________________________________________________________________________

Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {cought exception: maximum recursion depth exceeded in comparison} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

mathics('Integrate[ArcTan[x]*Log[x]/x,x]')

[Out]

cought exception: maximum recursion depth exceeded in comparison

________________________________________________________________________________________

Maple [A]
time = 0.49, size = 71, normalized size = 1.25

method result size
risch \(\frac {i \ln \left (x \right )^{2} \ln \left (-i \left (x +i\right )\right )}{4}-\frac {i \ln \left (x \right )^{2} \ln \left (-i x +1\right )}{4}-\frac {i \ln \left (x \right ) \polylog \left (2, i x \right )}{2}+\frac {i \polylog \left (3, i x \right )}{2}+\frac {i \ln \left (x \right ) \polylog \left (2, -i x \right )}{2}-\frac {i \polylog \left (3, -i x \right )}{2}\) \(71\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(arctan(x)*ln(x)/x,x,method=_RETURNVERBOSE)

[Out]

1/4*I*ln(x)^2*ln(-I*(x+I))-1/4*I*ln(x)^2*ln(1-I*x)-1/2*I*ln(x)*polylog(2,I*x)+1/2*I*polylog(3,I*x)+1/2*I*ln(x)
*polylog(2,-I*x)-1/2*I*polylog(3,-I*x)

________________________________________________________________________________________

Maxima [A]
time = 0.39, size = 31, normalized size = 0.54 \begin {gather*} -\frac {1}{2} i \, {\rm Li}_2\left (i \, x\right ) \log \left (x\right ) + \frac {1}{2} i \, {\rm Li}_2\left (-i \, x\right ) \log \left (x\right ) + \frac {1}{2} i \, {\rm Li}_{3}(i \, x) - \frac {1}{2} i \, {\rm Li}_{3}(-i \, x) \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(arctan(x)*log(x)/x,x, algorithm="maxima")

[Out]

-1/2*I*dilog(I*x)*log(x) + 1/2*I*dilog(-I*x)*log(x) + 1/2*I*polylog(3, I*x) - 1/2*I*polylog(3, -I*x)

________________________________________________________________________________________

Fricas [F]
time = 0.34, 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(arctan(x)*log(x)/x,x, algorithm="fricas")

[Out]

integral(arctan(x)*log(x)/x, x)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(atan(x)*ln(x)/x,x)

[Out]

Integral(log(x)*atan(x)/x, x)

________________________________________________________________________________________

Giac [F] N/A
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(arctan(x)*log(x)/x,x)

[Out]

Could not integrate

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\mathrm {atan}\left (x\right )\,\ln \left (x\right )}{x} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((atan(x)*log(x))/x,x)

[Out]

int((atan(x)*log(x))/x, x)

________________________________________________________________________________________