Optimal. Leaf size=16 \[ a x^m+b \log ^q\left (c x^n\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {14, 2302, 30} \[ a x^m+b \log ^q\left (c x^n\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 30
Rule 2302
Rubi steps
\begin {align*} \int \frac {a m x^m+b n q \log ^{-1+q}\left (c x^n\right )}{x} \, dx &=\int \left (a m x^{-1+m}+\frac {b n q \log ^{-1+q}\left (c x^n\right )}{x}\right ) \, dx\\ &=a x^m+(b n q) \int \frac {\log ^{-1+q}\left (c x^n\right )}{x} \, dx\\ &=a x^m+(b q) \operatorname {Subst}\left (\int x^{-1+q} \, dx,x,\log \left (c x^n\right )\right )\\ &=a x^m+b \log ^q\left (c x^n\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.02, size = 16, normalized size = 1.00 \[ a x^m+b \log ^q\left (c x^n\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.44, size = 28, normalized size = 1.75 \[ {\left (b n \log \relax (x) + b \log \relax (c)\right )} {\left (n \log \relax (x) + \log \relax (c)\right )}^{q - 1} + a x^{m} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.20, size = 17, normalized size = 1.06 \[ {\left (n \log \relax (x) + \log \relax (c)\right )}^{q} b + a x^{m} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.08, size = 17, normalized size = 1.06 \[ a \,x^{m}+b \ln \left (c \,x^{n}\right )^{q} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.45, size = 16, normalized size = 1.00 \[ a x^{m} + b \log \left (c x^{n}\right )^{q} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.30, size = 16, normalized size = 1.00 \[ a\,x^m+b\,{\ln \left (c\,x^n\right )}^q \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 30.63, size = 58, normalized size = 3.62 \[ a m \left (\begin {cases} \frac {x^{m}}{m} & \text {for}\: m \neq 0 \\\log {\relax (x )} & \text {otherwise} \end {cases}\right ) + b n q \left (\begin {cases} \frac {\log {\relax (x )}}{\log {\relax (c )}} & \text {for}\: n = 0 \wedge q = 0 \\\frac {\log {\relax (c )}^{q} \log {\relax (x )}}{\log {\relax (c )}} & \text {for}\: n = 0 \\\frac {\log {\left (n \log {\relax (x )} + \log {\relax (c )} \right )}}{n} & \text {for}\: q = 0 \\\frac {\left (n \log {\relax (x )} + \log {\relax (c )}\right )^{q}}{n q} & \text {otherwise} \end {cases}\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________