Integrand size = 26, antiderivative size = 41 \[ \int \frac {\log \left (c x^n\right ) \left (a x^m+b \log ^2\left (c x^n\right )\right )}{x} \, dx=-\frac {a n x^m}{m^2}+\frac {a x^m \log \left (c x^n\right )}{m}+\frac {b \log ^4\left (c x^n\right )}{4 n} \]
[Out]
Time = 0.05 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2619, 2341, 2339, 30} \[ \int \frac {\log \left (c x^n\right ) \left (a x^m+b \log ^2\left (c x^n\right )\right )}{x} \, dx=\frac {a x^m \log \left (c x^n\right )}{m}-\frac {a n x^m}{m^2}+\frac {b \log ^4\left (c x^n\right )}{4 n} \]
[In]
[Out]
Rule 30
Rule 2339
Rule 2341
Rule 2619
Rubi steps \begin{align*} \text {integral}& = \int \left (a x^{-1+m} \log \left (c x^n\right )+\frac {b \log ^3\left (c x^n\right )}{x}\right ) \, dx \\ & = a \int x^{-1+m} \log \left (c x^n\right ) \, dx+b \int \frac {\log ^3\left (c x^n\right )}{x} \, dx \\ & = -\frac {a n x^m}{m^2}+\frac {a x^m \log \left (c x^n\right )}{m}+\frac {b \text {Subst}\left (\int x^3 \, dx,x,\log \left (c x^n\right )\right )}{n} \\ & = -\frac {a n x^m}{m^2}+\frac {a x^m \log \left (c x^n\right )}{m}+\frac {b \log ^4\left (c x^n\right )}{4 n} \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 41, normalized size of antiderivative = 1.00 \[ \int \frac {\log \left (c x^n\right ) \left (a x^m+b \log ^2\left (c x^n\right )\right )}{x} \, dx=-\frac {a n x^m}{m^2}+\frac {a x^m \log \left (c x^n\right )}{m}+\frac {b \log ^4\left (c x^n\right )}{4 n} \]
[In]
[Out]
Time = 0.82 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.15
method | result | size |
parallelrisch | \(-\frac {-b \ln \left (c \,x^{n}\right )^{4} m^{2}-4 x^{m} \ln \left (c \,x^{n}\right ) a m n +4 n^{2} a \,x^{m}}{4 m^{2} n}\) | \(47\) |
risch | \(\text {Expression too large to display}\) | \(2146\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 81 vs. \(2 (39) = 78\).
Time = 0.33 (sec) , antiderivative size = 81, normalized size of antiderivative = 1.98 \[ \int \frac {\log \left (c x^n\right ) \left (a x^m+b \log ^2\left (c x^n\right )\right )}{x} \, dx=\frac {b m^{2} n^{3} \log \left (x\right )^{4} + 4 \, b m^{2} n^{2} \log \left (c\right ) \log \left (x\right )^{3} + 6 \, b m^{2} n \log \left (c\right )^{2} \log \left (x\right )^{2} + 4 \, b m^{2} \log \left (c\right )^{3} \log \left (x\right ) + 4 \, {\left (a m n \log \left (x\right ) + a m \log \left (c\right ) - a n\right )} x^{m}}{4 \, m^{2}} \]
[In]
[Out]
Time = 8.60 (sec) , antiderivative size = 65, normalized size of antiderivative = 1.59 \[ \int \frac {\log \left (c x^n\right ) \left (a x^m+b \log ^2\left (c x^n\right )\right )}{x} \, dx=- a n \left (\begin {cases} \frac {\begin {cases} \frac {x^{m}}{m} & \text {for}\: m \neq 0 \\\log {\left (x \right )} & \text {otherwise} \end {cases}}{m} & \text {for}\: m > -\infty \wedge m < \infty \wedge m \neq 0 \\\frac {\log {\left (x \right )}^{2}}{2} & \text {otherwise} \end {cases}\right ) + a \left (\begin {cases} \frac {x^{m}}{m} & \text {for}\: m \neq 0 \\\log {\left (x \right )} & \text {otherwise} \end {cases}\right ) \log {\left (c x^{n} \right )} - b \left (\begin {cases} - \log {\left (c \right )}^{3} \log {\left (x \right )} & \text {for}\: n = 0 \\- \frac {\log {\left (c x^{n} \right )}^{4}}{4 n} & \text {otherwise} \end {cases}\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 186 vs. \(2 (39) = 78\).
Time = 0.21 (sec) , antiderivative size = 186, normalized size of antiderivative = 4.54 \[ \int \frac {\log \left (c x^n\right ) \left (a x^m+b \log ^2\left (c x^n\right )\right )}{x} \, dx=\frac {1}{3} \, {\left (\frac {b \log \left (c x^{n}\right )^{3}}{n} + \frac {3 \, a x^{m}}{m}\right )} \log \left (c x^{n}\right ) + \frac {b m^{2} n^{3} \log \left (x\right )^{4} - 4 \, b m^{2} n^{2} \log \left (c\right ) \log \left (x\right )^{3} + 6 \, b m^{2} n \log \left (c\right )^{2} \log \left (x\right )^{2} - 4 \, b m^{2} \log \left (c\right )^{3} \log \left (x\right ) - 4 \, b m^{2} \log \left (x\right ) \log \left (x^{n}\right )^{3} - 12 \, a n x^{m} + 6 \, {\left (b m^{2} n \log \left (x\right )^{2} - 2 \, b m^{2} \log \left (c\right ) \log \left (x\right )\right )} \log \left (x^{n}\right )^{2} - 4 \, {\left (b m^{2} n^{2} \log \left (x\right )^{3} - 3 \, b m^{2} n \log \left (c\right ) \log \left (x\right )^{2} + 3 \, b m^{2} \log \left (c\right )^{2} \log \left (x\right )\right )} \log \left (x^{n}\right )}{12 \, m^{2}} \]
[In]
[Out]
none
Time = 0.32 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.78 \[ \int \frac {\log \left (c x^n\right ) \left (a x^m+b \log ^2\left (c x^n\right )\right )}{x} \, dx=\frac {1}{4} \, b n^{3} \log \left (x\right )^{4} + b n^{2} \log \left (c\right ) \log \left (x\right )^{3} + \frac {3}{2} \, b n \log \left (c\right )^{2} \log \left (x\right )^{2} + b \log \left (c\right )^{3} \log \left (x\right ) + \frac {a n x^{m} \log \left (x\right )}{m} + \frac {a x^{m} \log \left (c\right )}{m} - \frac {a n x^{m}}{m^{2}} \]
[In]
[Out]
Timed out. \[ \int \frac {\log \left (c x^n\right ) \left (a x^m+b \log ^2\left (c x^n\right )\right )}{x} \, dx=\int \frac {\ln \left (c\,x^n\right )\,\left (a\,x^m+b\,{\ln \left (c\,x^n\right )}^2\right )}{x} \,d x \]
[In]
[Out]