3.1.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\) [38]

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.16, 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 = {2626} \begin {gather*} \frac {d \log \left (c x^n\right )}{a x^m+b \log ^q\left (c x^n\right )} \end {gather*}

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 2626

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.17, size = 26, normalized size = 1.00 \begin {gather*} \frac {d \log \left (c x^n\right )}{a x^m+b \log ^q\left (c x^n\right )} \end {gather*}

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)

________________________________________________________________________________________

Maple [C] Result contains higher order function than in optimal. Order 9 vs. order 3.
time = 0.09, size = 158, normalized size = 6.08

method result size
risch \(\frac {\left (2 \ln \left (c \right )+2 \ln \left (x^{n}\right )-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}\right ) d}{2 a \,x^{m}+2 b \left (\ln \left (c \right )+\ln \left (x^{n}\right )-\frac {i \pi \,\mathrm {csgn}\left (i c \,x^{n}\right ) \left (-\mathrm {csgn}\left (i c \,x^{n}\right )+\mathrm {csgn}\left (i c \right )\right ) \left (-\mathrm {csgn}\left (i c \,x^{n}\right )+\mathrm {csgn}\left (i x^{n}\right )\right )}{2}\right )^{q}}\) \(158\)

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

[Out]

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

________________________________________________________________________________________

Maxima [A]
time = 0.45, size = 31, normalized size = 1.19 \begin {gather*} \frac {d \log \left (c\right ) + d \log \left (x^{n}\right )}{a x^{m} + b {\left (\log \left (c\right ) + \log \left (x^{n}\right )\right )}^{q}} \end {gather*}

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)

________________________________________________________________________________________

Fricas [A]
time = 0.34, size = 30, normalized size = 1.15 \begin {gather*} \frac {d n \log \left (x\right ) + d \log \left (c\right )}{{\left (n \log \left (x\right ) + \log \left (c\right )\right )}^{q} b + a x^{m}} \end {gather*}

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)

________________________________________________________________________________________

Sympy [A]
time = 44.66, size = 22, normalized size = 0.85 \begin {gather*} \frac {d \log {\left (c x^{n} \right )}}{a x^{m} + b \log {\left (c x^{n} \right )}^{q}} \end {gather*}

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]

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

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

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)

________________________________________________________________________________________

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

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)

________________________________________________________________________________________