3.1.16 \(\int \frac {(a m x^m+b n q \log ^{-1+q}(c x^n)) (a x^m+b \log ^q(c x^n))^p}{x} \, dx\) [16]

Optimal. Leaf size=26 \[ \frac {\left (a x^m+b \log ^q\left (c x^n\right )\right )^{1+p}}{1+p} \]

[Out]

(a*x^m+b*ln(c*x^n)^q)^(1+p)/(1+p)

________________________________________________________________________________________

Rubi [A]
time = 0.12, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 43, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.023, Rules used = {2624} \begin {gather*} \frac {\left (a x^m+b \log ^q\left (c x^n\right )\right )^{p+1}}{p+1} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[((a*m*x^m + b*n*q*Log[c*x^n]^(-1 + q))*(a*x^m + b*Log[c*x^n]^q)^p)/x,x]

[Out]

(a*x^m + b*Log[c*x^n]^q)^(1 + p)/(1 + p)

Rule 2624

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

Rubi steps

\begin {align*} \int \frac {\left (a m x^m+b n q \log ^{-1+q}\left (c x^n\right )\right ) \left (a x^m+b \log ^q\left (c x^n\right )\right )^p}{x} \, dx &=\frac {\left (a x^m+b \log ^q\left (c x^n\right )\right )^{1+p}}{1+p}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.07, size = 26, normalized size = 1.00 \begin {gather*} \frac {\left (a x^m+b \log ^q\left (c x^n\right )\right )^{1+p}}{1+p} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[((a*m*x^m + b*n*q*Log[c*x^n]^(-1 + q))*(a*x^m + b*Log[c*x^n]^q)^p)/x,x]

[Out]

(a*x^m + b*Log[c*x^n]^q)^(1 + p)/(1 + p)

________________________________________________________________________________________

Maple [F]
time = 0.10, size = 0, normalized size = 0.00 \[\int \frac {\left (a m \,x^{m}+b n q \ln \left (c \,x^{n}\right )^{-1+q}\right ) \left (a \,x^{m}+b \ln \left (c \,x^{n}\right )^{q}\right )^{p}}{x}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a*m*x^m+b*n*q*ln(c*x^n)^(-1+q))*(a*x^m+b*ln(c*x^n)^q)^p/x,x)

[Out]

int((a*m*x^m+b*n*q*ln(c*x^n)^(-1+q))*(a*x^m+b*ln(c*x^n)^q)^p/x,x)

________________________________________________________________________________________

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]

integrate((a*m*x^m+b*n*q*log(c*x^n)^(-1+q))*(a*x^m+b*log(c*x^n)^q)^p/x,x, algorithm="maxima")

[Out]

Exception raised: RuntimeError >> ECL says: In function CAR, the value of the first argument is  0which is not
 of the expected type LIST

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 42, normalized size = 1.62 \begin {gather*} \frac {{\left ({\left (n \log \left (x\right ) + \log \left (c\right )\right )}^{q} b + a x^{m}\right )} {\left ({\left (n \log \left (x\right ) + \log \left (c\right )\right )}^{q} b + a x^{m}\right )}^{p}}{p + 1} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*m*x^m+b*n*q*log(c*x^n)^(-1+q))*(a*x^m+b*log(c*x^n)^q)^p/x,x, algorithm="fricas")

[Out]

((n*log(x) + log(c))^q*b + a*x^m)*((n*log(x) + log(c))^q*b + a*x^m)^p/(p + 1)

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a*m*x**m+b*n*q*ln(c*x**n)**(-1+q))*(a*x**m+b*ln(c*x**n)**q)**p/x,x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 3435 deep

________________________________________________________________________________________

Giac [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]

integrate((a*m*x^m+b*n*q*log(c*x^n)^(-1+q))*(a*x^m+b*log(c*x^n)^q)^p/x,x, algorithm="giac")

[Out]

Exception raised: RuntimeError >> An error occurred running a Giac command:INPUT:sage2OUTPUT:Unable to divide,
 perhaps due to rounding error%%%{1,[0,0,2,5,2,0,5,0,3,1,2,3]%%%}+%%%{-2,[0,0,2,4,2,1,5,0,2,1,2,3]%%%}+%%%{5,[
0,0,2,4,2,0,4,

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((a*m*x^m + b*n*q*log(c*x^n)^(q - 1))*(a*x^m + b*log(c*x^n)^q)^p)/x,x)

[Out]

int(((a*m*x^m + b*n*q*log(c*x^n)^(q - 1))*(a*x^m + b*log(c*x^n)^q)^p)/x, x)

________________________________________________________________________________________