\(\int \frac {\log (d (\frac {1}{d}+f \sqrt {x})) (a+b \log (c x^n))^2}{x} \, dx\) [62]

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [F(-1)]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 30, antiderivative size = 70 \[ \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=-2 \left (a+b \log \left (c x^n\right )\right )^2 \operatorname {PolyLog}\left (2,-d f \sqrt {x}\right )+8 b n \left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}\left (3,-d f \sqrt {x}\right )-16 b^2 n^2 \operatorname {PolyLog}\left (4,-d f \sqrt {x}\right ) \] Output:

-2*(a+b*ln(c*x^n))^2*polylog(2,-d*f*x^(1/2))+8*b*n*(a+b*ln(c*x^n))*polylog 
(3,-d*f*x^(1/2))-16*b^2*n^2*polylog(4,-d*f*x^(1/2))
 

Mathematica [A] (verified)

Time = 0.22 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.00 \[ \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=-2 \left (\left (a+b \log \left (c x^n\right )\right )^2 \operatorname {PolyLog}\left (2,-d f \sqrt {x}\right )+4 b n \left (-\left (\left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}\left (3,-d f \sqrt {x}\right )\right )+2 b n \operatorname {PolyLog}\left (4,-d f \sqrt {x}\right )\right )\right ) \] Input:

Integrate[(Log[d*(d^(-1) + f*Sqrt[x])]*(a + b*Log[c*x^n])^2)/x,x]
 

Output:

-2*((a + b*Log[c*x^n])^2*PolyLog[2, -(d*f*Sqrt[x])] + 4*b*n*(-((a + b*Log[ 
c*x^n])*PolyLog[3, -(d*f*Sqrt[x])]) + 2*b*n*PolyLog[4, -(d*f*Sqrt[x])]))
 

Rubi [A] (verified)

Time = 0.35 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.99, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2821, 2830, 7143}

Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.

\(\displaystyle \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx\)

\(\Big \downarrow \) 2821

\(\displaystyle 4 b n \int \frac {\left (a+b \log \left (c x^n\right )\right ) \operatorname {PolyLog}\left (2,-d f \sqrt {x}\right )}{x}dx-2 \operatorname {PolyLog}\left (2,-d f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )^2\)

\(\Big \downarrow \) 2830

\(\displaystyle 4 b n \left (2 \operatorname {PolyLog}\left (3,-d f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )-2 b n \int \frac {\operatorname {PolyLog}\left (3,-d f \sqrt {x}\right )}{x}dx\right )-2 \operatorname {PolyLog}\left (2,-d f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )^2\)

\(\Big \downarrow \) 7143

\(\displaystyle 4 b n \left (2 \operatorname {PolyLog}\left (3,-d f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )-4 b n \operatorname {PolyLog}\left (4,-d f \sqrt {x}\right )\right )-2 \operatorname {PolyLog}\left (2,-d f \sqrt {x}\right ) \left (a+b \log \left (c x^n\right )\right )^2\)

Input:

Int[(Log[d*(d^(-1) + f*Sqrt[x])]*(a + b*Log[c*x^n])^2)/x,x]
 

Output:

-2*(a + b*Log[c*x^n])^2*PolyLog[2, -(d*f*Sqrt[x])] + 4*b*n*(2*(a + b*Log[c 
*x^n])*PolyLog[3, -(d*f*Sqrt[x])] - 4*b*n*PolyLog[4, -(d*f*Sqrt[x])])
 

Defintions of rubi rules used

rule 2821
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] + Simp[b*n*(p/m)   Int[PolyLog[2, (-d)*f*x^m]*((a + b*Log[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 2830
Int[(((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*PolyLog[k_, (e_.)*(x_)^(q_ 
.)])/(x_), x_Symbol] :> Simp[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^p/q) 
, x] - Simp[b*n*(p/q)   Int[PolyLog[k + 1, e*x^q]*((a + b*Log[c*x^n])^(p - 
1)/x), x], x] /; FreeQ[{a, b, c, e, k, n, q}, x] && GtQ[p, 0]
 

rule 7143
Int[PolyLog[n_, (c_.)*((a_.) + (b_.)*(x_))^(p_.)]/((d_.) + (e_.)*(x_)), x_S 
ymbol] :> 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]
 
Maple [F]

\[\int \frac {\ln \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) {\left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}}{x}d x\]

Input:

int(ln(d*(1/d+f*x^(1/2)))*(a+b*ln(c*x^n))^2/x,x)
 

Output:

int(ln(d*(1/d+f*x^(1/2)))*(a+b*ln(c*x^n))^2/x,x)
 

Fricas [F]

\[ \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} \log \left ({\left (f \sqrt {x} + \frac {1}{d}\right )} d\right )}{x} \,d x } \] Input:

integrate(log(d*(1/d+f*x^(1/2)))*(a+b*log(c*x^n))^2/x,x, algorithm="fricas 
")
 

Output:

integral((b^2*log(c*x^n)^2 + 2*a*b*log(c*x^n) + a^2)*log(d*f*sqrt(x) + 1)/ 
x, x)
 

Sympy [F(-1)]

Timed out. \[ \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\text {Timed out} \] Input:

integrate(ln(d*(1/d+f*x**(1/2)))*(a+b*ln(c*x**n))**2/x,x)
 

Output:

Timed out
 

Maxima [F]

\[ \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} \log \left ({\left (f \sqrt {x} + \frac {1}{d}\right )} d\right )}{x} \,d x } \] Input:

integrate(log(d*(1/d+f*x^(1/2)))*(a+b*log(c*x^n))^2/x,x, algorithm="maxima 
")
 

Output:

integrate((b*log(c*x^n) + a)^2*log((f*sqrt(x) + 1/d)*d)/x, x)
 

Giac [F]

\[ \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\int { \frac {{\left (b \log \left (c x^{n}\right ) + a\right )}^{2} \log \left ({\left (f \sqrt {x} + \frac {1}{d}\right )} d\right )}{x} \,d x } \] Input:

integrate(log(d*(1/d+f*x^(1/2)))*(a+b*log(c*x^n))^2/x,x, algorithm="giac")
 

Output:

integrate((b*log(c*x^n) + a)^2*log((f*sqrt(x) + 1/d)*d)/x, x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=\int \frac {\ln \left (d\,\left (f\,\sqrt {x}+\frac {1}{d}\right )\right )\,{\left (a+b\,\ln \left (c\,x^n\right )\right )}^2}{x} \,d x \] Input:

int((log(d*(f*x^(1/2) + 1/d))*(a + b*log(c*x^n))^2)/x,x)
 

Output:

int((log(d*(f*x^(1/2) + 1/d))*(a + b*log(c*x^n))^2)/x, x)
 

Reduce [F]

\[ \int \frac {\log \left (d \left (\frac {1}{d}+f \sqrt {x}\right )\right ) \left (a+b \log \left (c x^n\right )\right )^2}{x} \, dx=-\left (\int \frac {\mathrm {log}\left (\sqrt {x}\, d f +1\right )}{d^{2} f^{2} x^{2}-x}d x \right ) a^{2}+\left (\int \frac {\mathrm {log}\left (\sqrt {x}\, d f +1\right ) \mathrm {log}\left (x^{n} c \right )^{2}}{x}d x \right ) b^{2}+2 \left (\int \frac {\mathrm {log}\left (\sqrt {x}\, d f +1\right ) \mathrm {log}\left (x^{n} c \right )}{x}d x \right ) a b +\left (\int \frac {\sqrt {x}\, \mathrm {log}\left (\sqrt {x}\, d f +1\right )}{d^{2} f^{2} x^{2}-x}d x \right ) a^{2} d f +\mathrm {log}\left (\sqrt {x}\, d f +1\right )^{2} a^{2} \] Input:

int(log(d*(1/d+f*x^(1/2)))*(a+b*log(c*x^n))^2/x,x)
 

Output:

 - int(log(sqrt(x)*d*f + 1)/(d**2*f**2*x**2 - x),x)*a**2 + int((log(sqrt(x 
)*d*f + 1)*log(x**n*c)**2)/x,x)*b**2 + 2*int((log(sqrt(x)*d*f + 1)*log(x** 
n*c))/x,x)*a*b + int((sqrt(x)*log(sqrt(x)*d*f + 1))/(d**2*f**2*x**2 - x),x 
)*a**2*d*f + log(sqrt(x)*d*f + 1)**2*a**2