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

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

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 0.25, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 60, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.017, Rules used = {2546} \[ \frac {d \log \left (c x^n\right )}{a x^m+b \log ^q\left (c x^n\right )} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 2546

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

Rubi steps

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

________________________________________________________________________________________

Mathematica [A]  time = 0.37, size = 26, normalized size = 1.00 \[ \frac {d \log \left (c x^n\right )}{a x^m+b \log ^q\left (c x^n\right )} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

________________________________________________________________________________________

fricas [A]  time = 0.45, size = 30, normalized size = 1.15 \[ \frac {d n \log \relax (x) + d \log \relax (c)}{{\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]

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

[Out]

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

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

maple [C]  time = 0.51, size = 158, normalized size = 6.08 \[ \frac {\left (-i \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )+i \pi \,\mathrm {csgn}\left (i c \right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}+i \pi \,\mathrm {csgn}\left (i x^{n}\right ) \mathrm {csgn}\left (i c \,x^{n}\right )^{2}-i \pi \mathrm {csgn}\left (i c \,x^{n}\right )^{3}+2 \ln \relax (c )+2 \ln \left (x^{n}\right )\right ) d}{2 a \,x^{m}+2 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}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*(2*ln(c)+2*ln(x^n)+I*Pi*csgn(I*x^n)*csgn(I*c*x^n)^2-I*Pi*csgn(I*x^n)*csgn(I*c*x^n)*csgn(I*c)-I*Pi*csgn(I*c
*x^n)^3+I*Pi*csgn(I*c*x^n)^2*csgn(I*c))*d/(a*x^m+b*(-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))^q)

________________________________________________________________________________________

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

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

mupad [B]  time = 0.33, size = 26, normalized size = 1.00 \[ \frac {d\,\ln \left (c\,x^n\right )}{a\,x^m+b\,{\ln \left (c\,x^n\right )}^q} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

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

[Out]

Timed out

________________________________________________________________________________________