\(\int \frac {\log ^3(c (a+b x^2)^p)}{x} \, dx\) [94]

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

Optimal result

Integrand size = 18, antiderivative size = 106 \[ \int \frac {\log ^3\left (c \left (a+b x^2\right )^p\right )}{x} \, dx=\frac {1}{2} \log \left (-\frac {b x^2}{a}\right ) \log ^3\left (c \left (a+b x^2\right )^p\right )+\frac {3}{2} p \log ^2\left (c \left (a+b x^2\right )^p\right ) \operatorname {PolyLog}\left (2,1+\frac {b x^2}{a}\right )-3 p^2 \log \left (c \left (a+b x^2\right )^p\right ) \operatorname {PolyLog}\left (3,1+\frac {b x^2}{a}\right )+3 p^3 \operatorname {PolyLog}\left (4,1+\frac {b x^2}{a}\right ) \] Output:

1/2*ln(-b*x^2/a)*ln(c*(b*x^2+a)^p)^3+3/2*p*ln(c*(b*x^2+a)^p)^2*polylog(2,1 
+b*x^2/a)-3*p^2*ln(c*(b*x^2+a)^p)*polylog(3,1+b*x^2/a)+3*p^3*polylog(4,1+b 
*x^2/a)
 

Mathematica [B] (verified)

Leaf count is larger than twice the leaf count of optimal. \(279\) vs. \(2(106)=212\).

Time = 0.23 (sec) , antiderivative size = 279, normalized size of antiderivative = 2.63 \[ \int \frac {\log ^3\left (c \left (a+b x^2\right )^p\right )}{x} \, dx=\log (x) \left (-p \log \left (a+b x^2\right )+\log \left (c \left (a+b x^2\right )^p\right )\right )^3+3 p \left (-p \log \left (a+b x^2\right )+\log \left (c \left (a+b x^2\right )^p\right )\right )^2 \left (\log (x) \left (\log \left (a+b x^2\right )-\log \left (1+\frac {b x^2}{a}\right )\right )-\frac {1}{2} \operatorname {PolyLog}\left (2,-\frac {b x^2}{a}\right )\right )-\frac {3}{2} p^2 \left (p \log \left (a+b x^2\right )-\log \left (c \left (a+b x^2\right )^p\right )\right ) \left (\log \left (-\frac {b x^2}{a}\right ) \log ^2\left (a+b x^2\right )+2 \log \left (a+b x^2\right ) \operatorname {PolyLog}\left (2,1+\frac {b x^2}{a}\right )-2 \operatorname {PolyLog}\left (3,1+\frac {b x^2}{a}\right )\right )+\frac {1}{2} p^3 \left (\log \left (-\frac {b x^2}{a}\right ) \log ^3\left (a+b x^2\right )+3 \log ^2\left (a+b x^2\right ) \operatorname {PolyLog}\left (2,1+\frac {b x^2}{a}\right )-6 \log \left (a+b x^2\right ) \operatorname {PolyLog}\left (3,1+\frac {b x^2}{a}\right )+6 \operatorname {PolyLog}\left (4,1+\frac {b x^2}{a}\right )\right ) \] Input:

Integrate[Log[c*(a + b*x^2)^p]^3/x,x]
 

Output:

Log[x]*(-(p*Log[a + b*x^2]) + Log[c*(a + b*x^2)^p])^3 + 3*p*(-(p*Log[a + b 
*x^2]) + Log[c*(a + b*x^2)^p])^2*(Log[x]*(Log[a + b*x^2] - Log[1 + (b*x^2) 
/a]) - PolyLog[2, -((b*x^2)/a)]/2) - (3*p^2*(p*Log[a + b*x^2] - Log[c*(a + 
 b*x^2)^p])*(Log[-((b*x^2)/a)]*Log[a + b*x^2]^2 + 2*Log[a + b*x^2]*PolyLog 
[2, 1 + (b*x^2)/a] - 2*PolyLog[3, 1 + (b*x^2)/a]))/2 + (p^3*(Log[-((b*x^2) 
/a)]*Log[a + b*x^2]^3 + 3*Log[a + b*x^2]^2*PolyLog[2, 1 + (b*x^2)/a] - 6*L 
og[a + b*x^2]*PolyLog[3, 1 + (b*x^2)/a] + 6*PolyLog[4, 1 + (b*x^2)/a]))/2
 

Rubi [A] (verified)

Time = 0.81 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.03, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {2904, 2843, 2881, 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 ^3\left (c \left (a+b x^2\right )^p\right )}{x} \, dx\)

\(\Big \downarrow \) 2904

\(\displaystyle \frac {1}{2} \int \frac {\log ^3\left (c \left (b x^2+a\right )^p\right )}{x^2}dx^2\)

\(\Big \downarrow \) 2843

\(\displaystyle \frac {1}{2} \left (\log \left (-\frac {b x^2}{a}\right ) \log ^3\left (c \left (a+b x^2\right )^p\right )-3 b p \int \frac {\log \left (-\frac {b x^2}{a}\right ) \log ^2\left (c \left (b x^2+a\right )^p\right )}{b x^2+a}dx^2\right )\)

\(\Big \downarrow \) 2881

\(\displaystyle \frac {1}{2} \left (\log \left (-\frac {b x^2}{a}\right ) \log ^3\left (c \left (a+b x^2\right )^p\right )-3 p \int \frac {\log \left (-\frac {b x^2}{a}\right ) \log ^2\left (c \left (b x^2+a\right )^p\right )}{x^2}d\left (b x^2+a\right )\right )\)

\(\Big \downarrow \) 2821

\(\displaystyle \frac {1}{2} \left (\log \left (-\frac {b x^2}{a}\right ) \log ^3\left (c \left (a+b x^2\right )^p\right )-3 p \left (2 p \int \frac {\log \left (c \left (b x^2+a\right )^p\right ) \operatorname {PolyLog}\left (2,\frac {b x^2+a}{a}\right )}{x^2}d\left (b x^2+a\right )-\operatorname {PolyLog}\left (2,\frac {b x^2+a}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )\right )\right )\)

\(\Big \downarrow \) 2830

\(\displaystyle \frac {1}{2} \left (\log \left (-\frac {b x^2}{a}\right ) \log ^3\left (c \left (a+b x^2\right )^p\right )-3 p \left (2 p \left (\operatorname {PolyLog}\left (3,\frac {b x^2+a}{a}\right ) \log \left (c \left (a+b x^2\right )^p\right )-p \int \frac {\operatorname {PolyLog}\left (3,\frac {b x^2+a}{a}\right )}{x^2}d\left (b x^2+a\right )\right )-\operatorname {PolyLog}\left (2,\frac {b x^2+a}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )\right )\right )\)

\(\Big \downarrow \) 7143

\(\displaystyle \frac {1}{2} \left (\log \left (-\frac {b x^2}{a}\right ) \log ^3\left (c \left (a+b x^2\right )^p\right )-3 p \left (2 p \left (\operatorname {PolyLog}\left (3,\frac {b x^2+a}{a}\right ) \log \left (c \left (a+b x^2\right )^p\right )-p \operatorname {PolyLog}\left (4,\frac {b x^2+a}{a}\right )\right )-\operatorname {PolyLog}\left (2,\frac {b x^2+a}{a}\right ) \log ^2\left (c \left (a+b x^2\right )^p\right )\right )\right )\)

Input:

Int[Log[c*(a + b*x^2)^p]^3/x,x]
 

Output:

(Log[-((b*x^2)/a)]*Log[c*(a + b*x^2)^p]^3 - 3*p*(-(Log[c*(a + b*x^2)^p]^2* 
PolyLog[2, (a + b*x^2)/a]) + 2*p*(Log[c*(a + b*x^2)^p]*PolyLog[3, (a + b*x 
^2)/a] - p*PolyLog[4, (a + b*x^2)/a])))/2
 

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 2843
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_)/((f_.) + (g_. 
)*(x_)), x_Symbol] :> Simp[Log[e*((f + g*x)/(e*f - d*g))]*((a + b*Log[c*(d 
+ e*x)^n])^p/g), x] - Simp[b*e*n*(p/g)   Int[Log[(e*(f + g*x))/(e*f - d*g)] 
*((a + b*Log[c*(d + e*x)^n])^(p - 1)/(d + e*x)), x], x] /; FreeQ[{a, b, c, 
d, e, f, g, n, p}, x] && NeQ[e*f - d*g, 0] && IGtQ[p, 1]
 

rule 2881
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))^(p_.)*((f_.) + Log 
[(h_.)*((i_.) + (j_.)*(x_))^(m_.)]*(g_.))*((k_.) + (l_.)*(x_))^(r_.), x_Sym 
bol] :> Simp[1/e   Subst[Int[(k*(x/d))^r*(a + b*Log[c*x^n])^p*(f + g*Log[h* 
((e*i - d*j)/e + j*(x/e))^m]), x], x, d + e*x], x] /; FreeQ[{a, b, c, d, e, 
 f, g, h, i, j, k, l, n, p, r}, x] && EqQ[e*k - d*l, 0]
 

rule 2904
Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_)^(n_))^(p_.)]*(b_.))^(q_.)*(x_)^(m 
_.), x_Symbol] :> Simp[1/n   Subst[Int[x^(Simplify[(m + 1)/n] - 1)*(a + b*L 
og[c*(d + e*x)^p])^q, x], x, x^n], x] /; FreeQ[{a, b, c, d, e, m, n, p, q}, 
 x] && IntegerQ[Simplify[(m + 1)/n]] && (GtQ[(m + 1)/n, 0] || IGtQ[q, 0]) & 
&  !(EqQ[q, 1] && ILtQ[n, 0] && IGtQ[m, 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 (c \left (b \,x^{2}+a \right )^{p}\right )}^{3}}{x}d x\]

Input:

int(ln(c*(b*x^2+a)^p)^3/x,x)
 

Output:

int(ln(c*(b*x^2+a)^p)^3/x,x)
 

Fricas [F]

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

integrate(log(c*(b*x^2+a)^p)^3/x,x, algorithm="fricas")
 

Output:

integral(log((b*x^2 + a)^p*c)^3/x, x)
 

Sympy [F]

\[ \int \frac {\log ^3\left (c \left (a+b x^2\right )^p\right )}{x} \, dx=\int \frac {\log {\left (c \left (a + b x^{2}\right )^{p} \right )}^{3}}{x}\, dx \] Input:

integrate(ln(c*(b*x**2+a)**p)**3/x,x)
 

Output:

Integral(log(c*(a + b*x**2)**p)**3/x, x)
 

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 217 vs. \(2 (101) = 202\).

Time = 0.05 (sec) , antiderivative size = 217, normalized size of antiderivative = 2.05 \[ \int \frac {\log ^3\left (c \left (a+b x^2\right )^p\right )}{x} \, dx=\frac {1}{2} \, {\left (\log \left (b x^{2} + a\right )^{3} \log \left (-\frac {b x^{2} + a}{a} + 1\right ) + 3 \, {\rm Li}_2\left (\frac {b x^{2} + a}{a}\right ) \log \left (b x^{2} + a\right )^{2} - 6 \, \log \left (b x^{2} + a\right ) {\rm Li}_{3}(\frac {b x^{2} + a}{a}) + 6 \, {\rm Li}_{4}(\frac {b x^{2} + a}{a})\right )} p^{3} + \frac {3}{2} \, {\left (\log \left (b x^{2} + a\right )^{2} \log \left (-\frac {b x^{2} + a}{a} + 1\right ) + 2 \, {\rm Li}_2\left (\frac {b x^{2} + a}{a}\right ) \log \left (b x^{2} + a\right ) - 2 \, {\rm Li}_{3}(\frac {b x^{2} + a}{a})\right )} p^{2} \log \left (c\right ) + \frac {3}{2} \, {\left (\log \left (b x^{2} + a\right ) \log \left (-\frac {b x^{2} + a}{a} + 1\right ) + {\rm Li}_2\left (\frac {b x^{2} + a}{a}\right )\right )} p \log \left (c\right )^{2} + \log \left (c\right )^{3} \log \left (x\right ) \] Input:

integrate(log(c*(b*x^2+a)^p)^3/x,x, algorithm="maxima")
 

Output:

1/2*(log(b*x^2 + a)^3*log(-(b*x^2 + a)/a + 1) + 3*dilog((b*x^2 + a)/a)*log 
(b*x^2 + a)^2 - 6*log(b*x^2 + a)*polylog(3, (b*x^2 + a)/a) + 6*polylog(4, 
(b*x^2 + a)/a))*p^3 + 3/2*(log(b*x^2 + a)^2*log(-(b*x^2 + a)/a + 1) + 2*di 
log((b*x^2 + a)/a)*log(b*x^2 + a) - 2*polylog(3, (b*x^2 + a)/a))*p^2*log(c 
) + 3/2*(log(b*x^2 + a)*log(-(b*x^2 + a)/a + 1) + dilog((b*x^2 + a)/a))*p* 
log(c)^2 + log(c)^3*log(x)
 

Giac [F]

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

integrate(log(c*(b*x^2+a)^p)^3/x,x, algorithm="giac")
 

Output:

integrate(log((b*x^2 + a)^p*c)^3/x, x)
 

Mupad [F(-1)]

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

int(log(c*(a + b*x^2)^p)^3/x,x)
 

Output:

int(log(c*(a + b*x^2)^p)^3/x, x)
 

Reduce [F]

\[ \int \frac {\log ^3\left (c \left (a+b x^2\right )^p\right )}{x} \, dx=\frac {8 \left (\int \frac {{\mathrm {log}\left (\left (b \,x^{2}+a \right )^{p} c \right )}^{3}}{b \,x^{3}+a x}d x \right ) a p +{\mathrm {log}\left (\left (b \,x^{2}+a \right )^{p} c \right )}^{4}}{8 p} \] Input:

int(log(c*(b*x^2+a)^p)^3/x,x)
 

Output:

(8*int(log((a + b*x**2)**p*c)**3/(a*x + b*x**3),x)*a*p + log((a + b*x**2)* 
*p*c)**4)/(8*p)