Optimal. Leaf size=27 \[ \frac {\log \left (a x^n\right ) \log ^2\left (a x^n\right )^p}{n (1+2 p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 27, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.143, Rules used = {15, 30}
\begin {gather*} \frac {\log \left (a x^n\right ) \log ^2\left (a x^n\right )^p}{n (2 p+1)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 15
Rule 30
Rubi steps
\begin {align*} \int \frac {\log ^2\left (a x^n\right )^p}{x} \, dx &=\frac {\text {Subst}\left (\int \left (x^2\right )^p \, dx,x,\log \left (a x^n\right )\right )}{n}\\ &=\frac {\left (\log ^{-2 p}\left (a x^n\right ) \log ^2\left (a x^n\right )^p\right ) \text {Subst}\left (\int x^{2 p} \, dx,x,\log \left (a x^n\right )\right )}{n}\\ &=\frac {\log \left (a x^n\right ) \log ^2\left (a x^n\right )^p}{n (1+2 p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 27, normalized size = 1.00 \begin {gather*} \frac {\log \left (a x^n\right ) \log ^2\left (a x^n\right )^p}{n (1+2 p)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {\left (\ln \left (a \,x^{n}\right )^{2}\right )^{p}}{x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 38, normalized size = 1.41 \begin {gather*} \frac {{\left (n \log \left (x\right ) + \log \left (a\right )\right )} {\left (n^{2} \log \left (x\right )^{2} + 2 \, n \log \left (a\right ) \log \left (x\right ) + \log \left (a\right )^{2}\right )}^{p}}{2 \, n p + n} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (\log {\left (a x^{n} \right )}^{2}\right )^{p}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 13.25, size = 48, normalized size = 1.78 \begin {gather*} \frac {{\left (n \log \left (x\right ) \mathrm {sgn}\left (\log \left (a x^{n}\right )\right ) + \log \left (a\right ) \mathrm {sgn}\left (\log \left (a x^{n}\right )\right )\right )}^{2 \, p + 1}}{n {\left (2 \, p + 1\right )} \mathrm {sgn}\left (\log \left (a x^{n}\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.40, size = 27, normalized size = 1.00 \begin {gather*} \frac {\ln \left (a\,x^n\right )\,{\left ({\ln \left (a\,x^n\right )}^2\right )}^p}{n\,\left (2\,p+1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________