3.1.48 \(\int x^2 (a+b \log (c \log ^p(d x^n))) \, dx\) [48]

Optimal. Leaf size=55 \[ -\frac {1}{3} b p x^3 \left (d x^n\right )^{-3/n} \text {Ei}\left (\frac {3 \log \left (d x^n\right )}{n}\right )+\frac {1}{3} x^3 \left (a+b \log \left (c \log ^p\left (d x^n\right )\right )\right ) \]

[Out]

-1/3*b*p*x^3*Ei(3*ln(d*x^n)/n)/((d*x^n)^(3/n))+1/3*x^3*(a+b*ln(c*ln(d*x^n)^p))

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 55, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {2602, 2347, 2209} \begin {gather*} \frac {1}{3} x^3 \left (a+b \log \left (c \log ^p\left (d x^n\right )\right )\right )-\frac {1}{3} b p x^3 \left (d x^n\right )^{-3/n} \text {Ei}\left (\frac {3 \log \left (d x^n\right )}{n}\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-1/3*(b*p*x^3*ExpIntegralEi[(3*Log[d*x^n])/n])/(d*x^n)^(3/n) + (x^3*(a + b*Log[c*Log[d*x^n]^p]))/3

Rule 2209

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))/((c_.) + (d_.)*(x_)), x_Symbol] :> Simp[(F^(g*(e - c*(f/d)))/d)*ExpInteg
ralEi[f*g*(c + d*x)*(Log[F]/d)], x] /; FreeQ[{F, c, d, e, f, g}, x] &&  !TrueQ[$UseGamma]

Rule 2347

Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_)*((d_.)*(x_))^(m_.), x_Symbol] :> Dist[(d*x)^(m + 1)/(d*n*(c*x^n
)^((m + 1)/n)), Subst[Int[E^(((m + 1)/n)*x)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2602

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

Rubi steps

\begin {align*} \int x^2 \left (a+b \log \left (c \log ^p\left (d x^n\right )\right )\right ) \, dx &=\frac {1}{3} x^3 \left (a+b \log \left (c \log ^p\left (d x^n\right )\right )\right )-\frac {1}{3} (b n p) \int \frac {x^2}{\log \left (d x^n\right )} \, dx\\ &=\frac {1}{3} x^3 \left (a+b \log \left (c \log ^p\left (d x^n\right )\right )\right )-\frac {1}{3} \left (b p x^3 \left (d x^n\right )^{-3/n}\right ) \text {Subst}\left (\int \frac {e^{\frac {3 x}{n}}}{x} \, dx,x,\log \left (d x^n\right )\right )\\ &=-\frac {1}{3} b p x^3 \left (d x^n\right )^{-3/n} \text {Ei}\left (\frac {3 \log \left (d x^n\right )}{n}\right )+\frac {1}{3} x^3 \left (a+b \log \left (c \log ^p\left (d x^n\right )\right )\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.05, size = 49, normalized size = 0.89 \begin {gather*} \frac {1}{3} x^3 \left (a-b p \left (d x^n\right )^{-3/n} \text {Ei}\left (\frac {3 \log \left (d x^n\right )}{n}\right )+b \log \left (c \log ^p\left (d x^n\right )\right )\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(x^3*(a - (b*p*ExpIntegralEi[(3*Log[d*x^n])/n])/(d*x^n)^(3/n) + b*Log[c*Log[d*x^n]^p]))/3

________________________________________________________________________________________

Maple [F]
time = 0.01, size = 0, normalized size = 0.00 \[\int x^{2} \left (a +b \ln \left (c \ln \left (d \,x^{n}\right )^{p}\right )\right )\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a+b*ln(c*ln(d*x^n)^p)),x)

[Out]

int(x^2*(a+b*ln(c*ln(d*x^n)^p)),x)

________________________________________________________________________________________

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(x^2*(a+b*log(c*log(d*x^n)^p)),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

Fricas [A]
time = 0.46, size = 70, normalized size = 1.27 \begin {gather*} \frac {b d^{\frac {3}{n}} p x^{3} \log \left (n \log \left (x\right ) + \log \left (d\right )\right ) - b p \operatorname {log\_integral}\left (d^{\frac {3}{n}} x^{3}\right ) + {\left (b x^{3} \log \left (c\right ) + a x^{3}\right )} d^{\frac {3}{n}}}{3 \, d^{\frac {3}{n}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*(b*d^(3/n)*p*x^3*log(n*log(x) + log(d)) - b*p*log_integral(d^(3/n)*x^3) + (b*x^3*log(c) + a*x^3)*d^(3/n))/
d^(3/n)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{2} \left (a + b \log {\left (c \log {\left (d x^{n} \right )}^{p} \right )}\right )\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(x**2*(a+b*ln(c*ln(d*x**n)**p)),x)

[Out]

Integral(x**2*(a + b*log(c*log(d*x**n)**p)), x)

________________________________________________________________________________________

Giac [A]
time = 3.91, size = 56, normalized size = 1.02 \begin {gather*} \frac {1}{3} \, b p x^{3} \log \left (n \log \left (x\right ) + \log \left (d\right )\right ) + \frac {1}{3} \, b x^{3} \log \left (c\right ) + \frac {1}{3} \, a x^{3} - \frac {b p {\rm Ei}\left (\frac {3 \, \log \left (d\right )}{n} + 3 \, \log \left (x\right )\right )}{3 \, d^{\frac {3}{n}}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/3*b*p*x^3*log(n*log(x) + log(d)) + 1/3*b*x^3*log(c) + 1/3*a*x^3 - 1/3*b*p*Ei(3*log(d)/n + 3*log(x))/d^(3/n)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int x^2\,\left (a+b\,\ln \left (c\,{\ln \left (d\,x^n\right )}^p\right )\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(x^2*(a + b*log(c*log(d*x^n)^p)),x)

[Out]

int(x^2*(a + b*log(c*log(d*x^n)^p)), x)

________________________________________________________________________________________