\(\int \frac {a x^3+2 b n x^2 \log (c x^n)}{(a x^2+b x \log ^2(c x^n))^3} \, dx\) [28]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [A] (verified)
   Fricas [B] (verification not implemented)
   Sympy [F(-2)]
   Maxima [B] (verification not implemented)
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 39, antiderivative size = 20 \[ \int \frac {a x^3+2 b n x^2 \log \left (c x^n\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx=-\frac {1}{2 \left (a x+b \log ^2\left (c x^n\right )\right )^2} \]

[Out]

-1/2/(a*x+b*ln(c*x^n)^2)^2

Rubi [A] (verified)

Time = 0.10 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.051, Rules used = {2641, 2624} \[ \int \frac {a x^3+2 b n x^2 \log \left (c x^n\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx=-\frac {1}{2 \left (a x+b \log ^2\left (c x^n\right )\right )^2} \]

[In]

Int[(a*x^3 + 2*b*n*x^2*Log[c*x^n])/(a*x^2 + b*x*Log[c*x^n]^2)^3,x]

[Out]

-1/2*1/(a*x + b*Log[c*x^n]^2)^2

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]

Rule 2641

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

Rubi steps \begin{align*} \text {integral}& = \int \frac {x^2 \left (a x+2 b n \log \left (c x^n\right )\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx \\ & = \int \frac {a x+2 b n \log \left (c x^n\right )}{x \left (a x+b \log ^2\left (c x^n\right )\right )^3} \, dx \\ & = -\frac {1}{2 \left (a x+b \log ^2\left (c x^n\right )\right )^2} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.01 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.00 \[ \int \frac {a x^3+2 b n x^2 \log \left (c x^n\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx=-\frac {1}{2 \left (a x+b \log ^2\left (c x^n\right )\right )^2} \]

[In]

Integrate[(a*x^3 + 2*b*n*x^2*Log[c*x^n])/(a*x^2 + b*x*Log[c*x^n]^2)^3,x]

[Out]

-1/2*1/(a*x + b*Log[c*x^n]^2)^2

Maple [A] (verified)

Time = 1.16 (sec) , antiderivative size = 19, normalized size of antiderivative = 0.95

method result size
parallelrisch \(-\frac {1}{2 {\left (a x +b \ln \left (c \,x^{n}\right )^{2}\right )}^{2}}\) \(19\)
risch \(-\frac {8}{\left (-b \,\pi ^{2} \operatorname {csgn}\left (i c \right )^{2} \operatorname {csgn}\left (i x^{n}\right )^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+2 b \,\pi ^{2} \operatorname {csgn}\left (i c \right )^{2} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{3}-b \,\pi ^{2} \operatorname {csgn}\left (i c \right )^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{4}+2 b \,\pi ^{2} \operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right )^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{3}-4 b \,\pi ^{2} \operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{4}+2 b \,\pi ^{2} \operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{5}-b \,\pi ^{2} \operatorname {csgn}\left (i x^{n}\right )^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{4}+2 b \,\pi ^{2} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{5}-b \,\pi ^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{6}+4 i \pi \ln \left (c \right ) b \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}-4 i \pi \ln \left (c \right ) b \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )-4 i \pi \ln \left (c \right ) b \operatorname {csgn}\left (i c \,x^{n}\right )^{3}+4 i b \ln \left (x^{n}\right ) \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+4 i \pi \ln \left (c \right ) b \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}-4 i b \ln \left (x^{n}\right ) \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}+4 i b \ln \left (x^{n}\right ) \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}-4 i b \ln \left (x^{n}\right ) \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )+4 b \ln \left (c \right )^{2}+8 b \ln \left (c \right ) \ln \left (x^{n}\right )+4 b \ln \left (x^{n}\right )^{2}+4 a x \right )^{2}}\) \(451\)

[In]

int((x^3*a+2*b*n*x^2*ln(c*x^n))/(x^2*a+b*x*ln(c*x^n)^2)^3,x,method=_RETURNVERBOSE)

[Out]

-1/2/(a*x+b*ln(c*x^n)^2)^2

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 101 vs. \(2 (18) = 36\).

Time = 0.31 (sec) , antiderivative size = 101, normalized size of antiderivative = 5.05 \[ \int \frac {a x^3+2 b n x^2 \log \left (c x^n\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx=-\frac {1}{2 \, {\left (b^{2} n^{4} \log \left (x\right )^{4} + 4 \, b^{2} n^{3} \log \left (c\right ) \log \left (x\right )^{3} + b^{2} \log \left (c\right )^{4} + 2 \, a b x \log \left (c\right )^{2} + a^{2} x^{2} + 2 \, {\left (3 \, b^{2} n^{2} \log \left (c\right )^{2} + a b n^{2} x\right )} \log \left (x\right )^{2} + 4 \, {\left (b^{2} n \log \left (c\right )^{3} + a b n x \log \left (c\right )\right )} \log \left (x\right )\right )}} \]

[In]

integrate((a*x^3+2*b*n*x^2*log(c*x^n))/(a*x^2+b*x*log(c*x^n)^2)^3,x, algorithm="fricas")

[Out]

-1/2/(b^2*n^4*log(x)^4 + 4*b^2*n^3*log(c)*log(x)^3 + b^2*log(c)^4 + 2*a*b*x*log(c)^2 + a^2*x^2 + 2*(3*b^2*n^2*
log(c)^2 + a*b*n^2*x)*log(x)^2 + 4*(b^2*n*log(c)^3 + a*b*n*x*log(c))*log(x))

Sympy [F(-2)]

Exception generated. \[ \int \frac {a x^3+2 b n x^2 \log \left (c x^n\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx=\text {Exception raised: HeuristicGCDFailed} \]

[In]

integrate((a*x**3+2*b*n*x**2*ln(c*x**n))/(a*x**2+b*x*ln(c*x**n)**2)**3,x)

[Out]

Exception raised: HeuristicGCDFailed >> no luck

Maxima [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 95 vs. \(2 (18) = 36\).

Time = 0.27 (sec) , antiderivative size = 95, normalized size of antiderivative = 4.75 \[ \int \frac {a x^3+2 b n x^2 \log \left (c x^n\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx=-\frac {1}{2 \, {\left (b^{2} \log \left (c\right )^{4} + 4 \, b^{2} \log \left (c\right ) \log \left (x^{n}\right )^{3} + b^{2} \log \left (x^{n}\right )^{4} + 2 \, a b x \log \left (c\right )^{2} + a^{2} x^{2} + 2 \, {\left (3 \, b^{2} \log \left (c\right )^{2} + a b x\right )} \log \left (x^{n}\right )^{2} + 4 \, {\left (b^{2} \log \left (c\right )^{3} + a b x \log \left (c\right )\right )} \log \left (x^{n}\right )\right )}} \]

[In]

integrate((a*x^3+2*b*n*x^2*log(c*x^n))/(a*x^2+b*x*log(c*x^n)^2)^3,x, algorithm="maxima")

[Out]

-1/2/(b^2*log(c)^4 + 4*b^2*log(c)*log(x^n)^3 + b^2*log(x^n)^4 + 2*a*b*x*log(c)^2 + a^2*x^2 + 2*(3*b^2*log(c)^2
 + a*b*x)*log(x^n)^2 + 4*(b^2*log(c)^3 + a*b*x*log(c))*log(x^n))

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 306 vs. \(2 (18) = 36\).

Time = 0.33 (sec) , antiderivative size = 306, normalized size of antiderivative = 15.30 \[ \int \frac {a x^3+2 b n x^2 \log \left (c x^n\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx=-\frac {4 \, a b n^{2} x + a^{2} x^{2}}{2 \, {\left (4 \, a b^{3} n^{6} x \log \left (x\right )^{4} + 16 \, a b^{3} n^{5} x \log \left (c\right ) \log \left (x\right )^{3} + a^{2} b^{2} n^{4} x^{2} \log \left (x\right )^{4} + 24 \, a b^{3} n^{4} x \log \left (c\right )^{2} \log \left (x\right )^{2} + 4 \, a^{2} b^{2} n^{3} x^{2} \log \left (c\right ) \log \left (x\right )^{3} + 16 \, a b^{3} n^{3} x \log \left (c\right )^{3} \log \left (x\right ) + 8 \, a^{2} b^{2} n^{4} x^{2} \log \left (x\right )^{2} + 6 \, a^{2} b^{2} n^{2} x^{2} \log \left (c\right )^{2} \log \left (x\right )^{2} + 4 \, a b^{3} n^{2} x \log \left (c\right )^{4} + 16 \, a^{2} b^{2} n^{3} x^{2} \log \left (c\right ) \log \left (x\right ) + 4 \, a^{2} b^{2} n x^{2} \log \left (c\right )^{3} \log \left (x\right ) + 2 \, a^{3} b n^{2} x^{3} \log \left (x\right )^{2} + 8 \, a^{2} b^{2} n^{2} x^{2} \log \left (c\right )^{2} + a^{2} b^{2} x^{2} \log \left (c\right )^{4} + 4 \, a^{3} b n x^{3} \log \left (c\right ) \log \left (x\right ) + 4 \, a^{3} b n^{2} x^{3} + 2 \, a^{3} b x^{3} \log \left (c\right )^{2} + a^{4} x^{4}\right )}} \]

[In]

integrate((a*x^3+2*b*n*x^2*log(c*x^n))/(a*x^2+b*x*log(c*x^n)^2)^3,x, algorithm="giac")

[Out]

-1/2*(4*a*b*n^2*x + a^2*x^2)/(4*a*b^3*n^6*x*log(x)^4 + 16*a*b^3*n^5*x*log(c)*log(x)^3 + a^2*b^2*n^4*x^2*log(x)
^4 + 24*a*b^3*n^4*x*log(c)^2*log(x)^2 + 4*a^2*b^2*n^3*x^2*log(c)*log(x)^3 + 16*a*b^3*n^3*x*log(c)^3*log(x) + 8
*a^2*b^2*n^4*x^2*log(x)^2 + 6*a^2*b^2*n^2*x^2*log(c)^2*log(x)^2 + 4*a*b^3*n^2*x*log(c)^4 + 16*a^2*b^2*n^3*x^2*
log(c)*log(x) + 4*a^2*b^2*n*x^2*log(c)^3*log(x) + 2*a^3*b*n^2*x^3*log(x)^2 + 8*a^2*b^2*n^2*x^2*log(c)^2 + a^2*
b^2*x^2*log(c)^4 + 4*a^3*b*n*x^3*log(c)*log(x) + 4*a^3*b*n^2*x^3 + 2*a^3*b*x^3*log(c)^2 + a^4*x^4)

Mupad [B] (verification not implemented)

Time = 1.48 (sec) , antiderivative size = 39, normalized size of antiderivative = 1.95 \[ \int \frac {a x^3+2 b n x^2 \log \left (c x^n\right )}{\left (a x^2+b x \log ^2\left (c x^n\right )\right )^3} \, dx=-\frac {1}{2\,a^2\,x^2+4\,a\,b\,x\,{\ln \left (c\,x^n\right )}^2+2\,b^2\,{\ln \left (c\,x^n\right )}^4} \]

[In]

int((a*x^3 + 2*b*n*x^2*log(c*x^n))/(a*x^2 + b*x*log(c*x^n)^2)^3,x)

[Out]

-1/(2*b^2*log(c*x^n)^4 + 2*a^2*x^2 + 4*a*b*x*log(c*x^n)^2)