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

Optimal. Leaf size=17 \[ \log \left (a x^m+b \log ^q\left (c x^n\right )\right ) \]

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.19, antiderivative size = 17, 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 = {2541} \[ \log \left (a x^m+b \log ^q\left (c x^n\right )\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

Log[a*x^m + b*Log[c*x^n]^q]

Rule 2541

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.24, size = 17, normalized size = 1.00 \[ \log \left (a x^m+b \log ^q\left (c x^n\right )\right ) \]

Antiderivative was successfully verified.

[In]

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

[Out]

Log[a*x^m + b*Log[c*x^n]^q]

________________________________________________________________________________________

fricas [A]  time = 0.46, size = 18, normalized size = 1.06 \[ \log \left ({\left (n \log \relax (x) + \log \relax (c)\right )}^{q} b + a x^{m}\right ) \]

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))/x/(a*x^m+b*log(c*x^n)^q),x, algorithm="fricas")

[Out]

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

________________________________________________________________________________________

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

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))/x/(a*x^m+b*log(c*x^n)^q),x, algorithm="giac")

[Out]

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

________________________________________________________________________________________

maple [C]  time = 0.58, size = 212, normalized size = 12.47 \[ -q \ln \left (-\frac {i \pi \left (\mathrm {csgn}\left (i c \right )-\mathrm {csgn}\left (i c \,x^{n}\right )\right ) \left (\mathrm {csgn}\left (i x^{n}\right )-\mathrm {csgn}\left (i c \,x^{n}\right )\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{2}+\ln \relax (c )+\ln \left (x^{n}\right )\right )+q \ln \left (-\frac {i \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{2}+\frac {i \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2}+\frac {i \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}}{2}-\frac {i \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}}{2}+\ln \relax (c )+\ln \left (x^{n}\right )\right )+\ln \left (\frac {a \,x^{m}}{b}+\left (-\frac {i \pi \left (\mathrm {csgn}\left (i c \right )-\mathrm {csgn}\left (i c \,x^{n}\right )\right ) \left (\mathrm {csgn}\left (i x^{n}\right )-\mathrm {csgn}\left (i c \,x^{n}\right )\right ) \mathrm {csgn}\left (i c \,x^{n}\right )}{2}+\ln \relax (c )+\ln \left (x^{n}\right )\right )^{q}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

q*ln(ln(c)+ln(x^n)-1/2*I*Pi*csgn(I*c*x^n)^3+1/2*I*Pi*csgn(I*c*x^n)^2*csgn(I*c)+1/2*I*Pi*csgn(I*x^n)*csgn(I*c*x
^n)^2-1/2*I*Pi*csgn(I*c*x^n)*csgn(I*c)*csgn(I*x^n))-q*ln(-1/2*I*Pi*(csgn(I*c)-csgn(I*c*x^n))*(csgn(I*x^n)-csgn
(I*c*x^n))*csgn(I*c*x^n)+ln(c)+ln(x^n))+ln((-1/2*I*Pi*(csgn(I*c)-csgn(I*c*x^n))*(csgn(I*x^n)-csgn(I*c*x^n))*cs
gn(I*c*x^n)+ln(c)+ln(x^n))^q+1/b*a*x^m)

________________________________________________________________________________________

maxima [A]  time = 1.03, size = 22, normalized size = 1.29 \[ \log \left (\frac {a x^{m} + b {\left (\log \relax (c) + \log \left (x^{n}\right )\right )}^{q}}{b}\right ) \]

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))/x/(a*x^m+b*log(c*x^n)^q),x, algorithm="maxima")

[Out]

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

________________________________________________________________________________________

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

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

[Out]

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

________________________________________________________________________________________

sympy [F(-1)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Timed out} \]

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))/x/(a*x**m+b*ln(c*x**n)**q),x)

[Out]

Timed out

________________________________________________________________________________________