3.4 \(\int \frac {\log ^{-1+q}(c x^n) (a x^m+b \log ^q(c x^n))}{x} \, dx\)

Optimal. Leaf size=81 \[ \frac {b \log ^{2 q}\left (c x^n\right )}{2 n q}-\frac {a x^m \left (c x^n\right )^{-\frac {m}{n}} \log ^q\left (c x^n\right ) \left (-\frac {m \log \left (c x^n\right )}{n}\right )^{-q} \Gamma \left (q,-\frac {m \log \left (c x^n\right )}{n}\right )}{n} \]

[Out]

1/2*b*ln(c*x^n)^(2*q)/n/q-a*x^m*GAMMA(q,-m*ln(c*x^n)/n)*ln(c*x^n)^q/n/((c*x^n)^(m/n))/((-m*ln(c*x^n)/n)^q)

________________________________________________________________________________________

Rubi [A]  time = 0.16, antiderivative size = 81, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2539, 2310, 2181, 2302, 30} \[ \frac {b \log ^{2 q}\left (c x^n\right )}{2 n q}-\frac {a x^m \left (c x^n\right )^{-\frac {m}{n}} \log ^q\left (c x^n\right ) \left (-\frac {m \log \left (c x^n\right )}{n}\right )^{-q} \text {Gamma}\left (q,-\frac {m \log \left (c x^n\right )}{n}\right )}{n} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(b*Log[c*x^n]^(2*q))/(2*n*q) - (a*x^m*Gamma[q, -((m*Log[c*x^n])/n)]*Log[c*x^n]^q)/(n*(c*x^n)^(m/n)*(-((m*Log[c
*x^n])/n))^q)

Rule 30

Int[(x_)^(m_.), x_Symbol] :> Simp[x^(m + 1)/(m + 1), x] /; FreeQ[m, x] && NeQ[m, -1]

Rule 2181

Int[(F_)^((g_.)*((e_.) + (f_.)*(x_)))*((c_.) + (d_.)*(x_))^(m_), x_Symbol] :> -Simp[(F^(g*(e - (c*f)/d))*(c +
d*x)^FracPart[m]*Gamma[m + 1, (-((f*g*Log[F])/d))*(c + d*x)])/(d*(-((f*g*Log[F])/d))^(IntPart[m] + 1)*(-((f*g*
Log[F]*(c + d*x))/d))^FracPart[m]), x] /; FreeQ[{F, c, d, e, f, g, m}, x] &&  !IntegerQ[m]

Rule 2302

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

Rule 2310

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)*x)/n)*(a + b*x)^p, x], x, Log[c*x^n]], x] /; FreeQ[{a, b, c, d, m, n, p}
, x]

Rule 2539

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.17, size = 77, normalized size = 0.95 \[ \frac {\log ^q\left (c x^n\right ) \left (\frac {b \log ^q\left (c x^n\right )}{q}-2 a x^m \left (c x^n\right )^{-\frac {m}{n}} \left (-\frac {m \log \left (c x^n\right )}{n}\right )^{-q} \Gamma \left (q,-\frac {m \log \left (c x^n\right )}{n}\right )\right )}{2 n} \]

Antiderivative was successfully verified.

[In]

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

[Out]

(Log[c*x^n]^q*((b*Log[c*x^n]^q)/q - (2*a*x^m*Gamma[q, -((m*Log[c*x^n])/n)])/((c*x^n)^(m/n)*(-((m*Log[c*x^n])/n
))^q)))/(2*n)

________________________________________________________________________________________

fricas [F]  time = 0.45, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {a x^{m} \log \left (c x^{n}\right )^{q - 1} + b \log \left (c x^{n}\right )^{q - 1} \log \left (c x^{n}\right )^{q}}{x}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (a x^{m} + b \log \left (c x^{n}\right )^{q}\right )} \log \left (c x^{n}\right )^{q - 1}}{x}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maxima [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: RuntimeError} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(log(c*x^n)^(-1+q)*(a*x^m+b*log(c*x^n)^q)/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

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\ln \left (c\,x^n\right )}^{q-1}\,\left (a\,x^m+b\,{\ln \left (c\,x^n\right )}^q\right )}{x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________