Integrand size = 21, antiderivative size = 90 \[ \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx=-\frac {b d^3 n}{16 x^4}-\frac {b d^2 e n}{3 x^3}-\frac {3 b d e^2 n}{4 x^2}-\frac {b e^3 n}{x}+\frac {b e^4 n \log (x)}{4 d}-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4} \] Output:
-1/16*b*d^3*n/x^4-1/3*b*d^2*e*n/x^3-3/4*b*d*e^2*n/x^2-b*e^3*n/x+1/4*b*e^4* n*ln(x)/d-1/4*(e*x+d)^4*(a+b*ln(c*x^n))/d/x^4
Time = 0.07 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.21 \[ \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx=-\frac {12 a \left (d^3+4 d^2 e x+6 d e^2 x^2+4 e^3 x^3\right )+b n \left (3 d^3+16 d^2 e x+36 d e^2 x^2+48 e^3 x^3\right )+12 b \left (d^3+4 d^2 e x+6 d e^2 x^2+4 e^3 x^3\right ) \log \left (c x^n\right )}{48 x^4} \] Input:
Integrate[((d + e*x)^3*(a + b*Log[c*x^n]))/x^5,x]
Output:
-1/48*(12*a*(d^3 + 4*d^2*e*x + 6*d*e^2*x^2 + 4*e^3*x^3) + b*n*(3*d^3 + 16* d^2*e*x + 36*d*e^2*x^2 + 48*e^3*x^3) + 12*b*(d^3 + 4*d^2*e*x + 6*d*e^2*x^2 + 4*e^3*x^3)*Log[c*x^n])/x^4
Time = 0.29 (sec) , antiderivative size = 85, normalized size of antiderivative = 0.94, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {2772, 27, 49, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx\) |
\(\Big \downarrow \) 2772 |
\(\displaystyle -b n \int -\frac {(d+e x)^4}{4 d x^5}dx-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {b n \int \frac {(d+e x)^4}{x^5}dx}{4 d}-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \frac {b n \int \left (\frac {d^4}{x^5}+\frac {4 e d^3}{x^4}+\frac {6 e^2 d^2}{x^3}+\frac {4 e^3 d}{x^2}+\frac {e^4}{x}\right )dx}{4 d}-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {b n \left (-\frac {d^4}{4 x^4}-\frac {4 d^3 e}{3 x^3}-\frac {3 d^2 e^2}{x^2}-\frac {4 d e^3}{x}+e^4 \log (x)\right )}{4 d}-\frac {(d+e x)^4 \left (a+b \log \left (c x^n\right )\right )}{4 d x^4}\) |
Input:
Int[((d + e*x)^3*(a + b*Log[c*x^n]))/x^5,x]
Output:
(b*n*(-1/4*d^4/x^4 - (4*d^3*e)/(3*x^3) - (3*d^2*e^2)/x^2 - (4*d*e^3)/x + e ^4*Log[x]))/(4*d) - ((d + e*x)^4*(a + b*Log[c*x^n]))/(4*d*x^4)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_.) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int [ExpandIntegrand[(a + b*x)^m*(c + d*x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && IGtQ[m, 0] && IGtQ[m + n + 2, 0]
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))*(x_)^(m_.)*((d_) + (e_.)*(x_)^(r_ .))^(q_.), x_Symbol] :> With[{u = IntHide[x^m*(d + e*x^r)^q, x]}, Simp[(a + b*Log[c*x^n]) u, x] - Simp[b*n Int[SimplifyIntegrand[u/x, x], x], x]] /; FreeQ[{a, b, c, d, e, n, r}, x] && IGtQ[q, 0] && IntegerQ[m] && !(EqQ[q , 1] && EqQ[m, -1])
Time = 0.51 (sec) , antiderivative size = 134, normalized size of antiderivative = 1.49
method | result | size |
parallelrisch | \(-\frac {48 b \ln \left (c \,x^{n}\right ) e^{3} x^{3}+48 b \,e^{3} n \,x^{3}+48 a \,e^{3} x^{3}+72 b \ln \left (c \,x^{n}\right ) d \,e^{2} x^{2}+36 b d \,e^{2} n \,x^{2}+72 a \,e^{2} x^{2} d +48 b \ln \left (c \,x^{n}\right ) d^{2} e x +16 b \,d^{2} e n x +48 a \,d^{2} e x +12 b \ln \left (c \,x^{n}\right ) d^{3}+3 b \,d^{3} n +12 a \,d^{3}}{48 x^{4}}\) | \(134\) |
risch | \(-\frac {b \left (4 e^{3} x^{3}+6 d \,e^{2} x^{2}+4 d^{2} e x +d^{3}\right ) \ln \left (x^{n}\right )}{4 x^{4}}-\frac {24 i \pi b \,e^{3} x^{3} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+72 a \,e^{2} x^{2} d +48 a \,d^{2} e x +12 a \,d^{3}-24 i \pi b \,e^{3} x^{3} \operatorname {csgn}\left (i c \,x^{n}\right )^{3}+6 i \pi b \,d^{3} \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )+48 \ln \left (c \right ) b \,e^{3} x^{3}+72 \ln \left (c \right ) b d \,e^{2} x^{2}+48 \ln \left (c \right ) b \,d^{2} e x -24 i \pi b \,e^{3} x^{3} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )+24 i \pi b \,d^{2} e x \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+24 i \pi b \,d^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right ) e x +36 i \pi b d \,e^{2} x^{2} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}+36 i \pi b d \,e^{2} x^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )+12 d^{3} b \ln \left (c \right )-6 i \pi b \,d^{3} \operatorname {csgn}\left (i c \,x^{n}\right )^{3}+48 a \,e^{3} x^{3}+3 b \,d^{3} n -6 i \pi b \,d^{3} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )+24 i \pi b \,e^{3} x^{3} \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )-36 i \pi b d \,e^{2} x^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{3}-24 i \pi b \,d^{2} e x \operatorname {csgn}\left (i c \,x^{n}\right )^{3}+6 i \pi b \,d^{3} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}-24 i \pi b \,d^{2} e x \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )-36 i \pi b d \,e^{2} x^{2} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )+16 b \,d^{2} e n x +36 b d \,e^{2} n \,x^{2}+48 b \,e^{3} n \,x^{3}}{48 x^{4}}\) | \(569\) |
Input:
int((e*x+d)^3*(a+b*ln(c*x^n))/x^5,x,method=_RETURNVERBOSE)
Output:
-1/48/x^4*(48*b*ln(c*x^n)*e^3*x^3+48*b*e^3*n*x^3+48*a*e^3*x^3+72*b*ln(c*x^ n)*d*e^2*x^2+36*b*d*e^2*n*x^2+72*a*e^2*x^2*d+48*b*ln(c*x^n)*d^2*e*x+16*b*d ^2*e*n*x+48*a*d^2*e*x+12*b*ln(c*x^n)*d^3+3*b*d^3*n+12*a*d^3)
Time = 0.08 (sec) , antiderivative size = 152, normalized size of antiderivative = 1.69 \[ \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx=-\frac {3 \, b d^{3} n + 12 \, a d^{3} + 48 \, {\left (b e^{3} n + a e^{3}\right )} x^{3} + 36 \, {\left (b d e^{2} n + 2 \, a d e^{2}\right )} x^{2} + 16 \, {\left (b d^{2} e n + 3 \, a d^{2} e\right )} x + 12 \, {\left (4 \, b e^{3} x^{3} + 6 \, b d e^{2} x^{2} + 4 \, b d^{2} e x + b d^{3}\right )} \log \left (c\right ) + 12 \, {\left (4 \, b e^{3} n x^{3} + 6 \, b d e^{2} n x^{2} + 4 \, b d^{2} e n x + b d^{3} n\right )} \log \left (x\right )}{48 \, x^{4}} \] Input:
integrate((e*x+d)^3*(a+b*log(c*x^n))/x^5,x, algorithm="fricas")
Output:
-1/48*(3*b*d^3*n + 12*a*d^3 + 48*(b*e^3*n + a*e^3)*x^3 + 36*(b*d*e^2*n + 2 *a*d*e^2)*x^2 + 16*(b*d^2*e*n + 3*a*d^2*e)*x + 12*(4*b*e^3*x^3 + 6*b*d*e^2 *x^2 + 4*b*d^2*e*x + b*d^3)*log(c) + 12*(4*b*e^3*n*x^3 + 6*b*d*e^2*n*x^2 + 4*b*d^2*e*n*x + b*d^3*n)*log(x))/x^4
Time = 0.52 (sec) , antiderivative size = 158, normalized size of antiderivative = 1.76 \[ \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx=- \frac {a d^{3}}{4 x^{4}} - \frac {a d^{2} e}{x^{3}} - \frac {3 a d e^{2}}{2 x^{2}} - \frac {a e^{3}}{x} - \frac {b d^{3} n}{16 x^{4}} - \frac {b d^{3} \log {\left (c x^{n} \right )}}{4 x^{4}} - \frac {b d^{2} e n}{3 x^{3}} - \frac {b d^{2} e \log {\left (c x^{n} \right )}}{x^{3}} - \frac {3 b d e^{2} n}{4 x^{2}} - \frac {3 b d e^{2} \log {\left (c x^{n} \right )}}{2 x^{2}} - \frac {b e^{3} n}{x} - \frac {b e^{3} \log {\left (c x^{n} \right )}}{x} \] Input:
integrate((e*x+d)**3*(a+b*ln(c*x**n))/x**5,x)
Output:
-a*d**3/(4*x**4) - a*d**2*e/x**3 - 3*a*d*e**2/(2*x**2) - a*e**3/x - b*d**3 *n/(16*x**4) - b*d**3*log(c*x**n)/(4*x**4) - b*d**2*e*n/(3*x**3) - b*d**2* e*log(c*x**n)/x**3 - 3*b*d*e**2*n/(4*x**2) - 3*b*d*e**2*log(c*x**n)/(2*x** 2) - b*e**3*n/x - b*e**3*log(c*x**n)/x
Time = 0.03 (sec) , antiderivative size = 143, normalized size of antiderivative = 1.59 \[ \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx=-\frac {b e^{3} n}{x} - \frac {b e^{3} \log \left (c x^{n}\right )}{x} - \frac {3 \, b d e^{2} n}{4 \, x^{2}} - \frac {a e^{3}}{x} - \frac {3 \, b d e^{2} \log \left (c x^{n}\right )}{2 \, x^{2}} - \frac {b d^{2} e n}{3 \, x^{3}} - \frac {3 \, a d e^{2}}{2 \, x^{2}} - \frac {b d^{2} e \log \left (c x^{n}\right )}{x^{3}} - \frac {b d^{3} n}{16 \, x^{4}} - \frac {a d^{2} e}{x^{3}} - \frac {b d^{3} \log \left (c x^{n}\right )}{4 \, x^{4}} - \frac {a d^{3}}{4 \, x^{4}} \] Input:
integrate((e*x+d)^3*(a+b*log(c*x^n))/x^5,x, algorithm="maxima")
Output:
-b*e^3*n/x - b*e^3*log(c*x^n)/x - 3/4*b*d*e^2*n/x^2 - a*e^3/x - 3/2*b*d*e^ 2*log(c*x^n)/x^2 - 1/3*b*d^2*e*n/x^3 - 3/2*a*d*e^2/x^2 - b*d^2*e*log(c*x^n )/x^3 - 1/16*b*d^3*n/x^4 - a*d^2*e/x^3 - 1/4*b*d^3*log(c*x^n)/x^4 - 1/4*a* d^3/x^4
Leaf count of result is larger than twice the leaf count of optimal. 162 vs. \(2 (80) = 160\).
Time = 0.11 (sec) , antiderivative size = 162, normalized size of antiderivative = 1.80 \[ \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx=-\frac {{\left (4 \, b e^{3} n x^{3} + 6 \, b d e^{2} n x^{2} + 4 \, b d^{2} e n x + b d^{3} n\right )} \log \left (x\right )}{4 \, x^{4}} - \frac {48 \, b e^{3} n x^{3} + 48 \, b e^{3} x^{3} \log \left (c\right ) + 36 \, b d e^{2} n x^{2} + 48 \, a e^{3} x^{3} + 72 \, b d e^{2} x^{2} \log \left (c\right ) + 16 \, b d^{2} e n x + 72 \, a d e^{2} x^{2} + 48 \, b d^{2} e x \log \left (c\right ) + 3 \, b d^{3} n + 48 \, a d^{2} e x + 12 \, b d^{3} \log \left (c\right ) + 12 \, a d^{3}}{48 \, x^{4}} \] Input:
integrate((e*x+d)^3*(a+b*log(c*x^n))/x^5,x, algorithm="giac")
Output:
-1/4*(4*b*e^3*n*x^3 + 6*b*d*e^2*n*x^2 + 4*b*d^2*e*n*x + b*d^3*n)*log(x)/x^ 4 - 1/48*(48*b*e^3*n*x^3 + 48*b*e^3*x^3*log(c) + 36*b*d*e^2*n*x^2 + 48*a*e ^3*x^3 + 72*b*d*e^2*x^2*log(c) + 16*b*d^2*e*n*x + 72*a*d*e^2*x^2 + 48*b*d^ 2*e*x*log(c) + 3*b*d^3*n + 48*a*d^2*e*x + 12*b*d^3*log(c) + 12*a*d^3)/x^4
Time = 27.38 (sec) , antiderivative size = 118, normalized size of antiderivative = 1.31 \[ \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx=-\frac {x^3\,\left (4\,a\,e^3+4\,b\,e^3\,n\right )+x\,\left (4\,a\,d^2\,e+\frac {4\,b\,d^2\,e\,n}{3}\right )+a\,d^3+x^2\,\left (6\,a\,d\,e^2+3\,b\,d\,e^2\,n\right )+\frac {b\,d^3\,n}{4}}{4\,x^4}-\frac {\ln \left (c\,x^n\right )\,\left (\frac {b\,d^3}{4}+b\,d^2\,e\,x+\frac {3\,b\,d\,e^2\,x^2}{2}+b\,e^3\,x^3\right )}{x^4} \] Input:
int(((a + b*log(c*x^n))*(d + e*x)^3)/x^5,x)
Output:
- (x^3*(4*a*e^3 + 4*b*e^3*n) + x*(4*a*d^2*e + (4*b*d^2*e*n)/3) + a*d^3 + x ^2*(6*a*d*e^2 + 3*b*d*e^2*n) + (b*d^3*n)/4)/(4*x^4) - (log(c*x^n)*((b*d^3) /4 + b*e^3*x^3 + b*d^2*e*x + (3*b*d*e^2*x^2)/2))/x^4
Time = 0.16 (sec) , antiderivative size = 133, normalized size of antiderivative = 1.48 \[ \int \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{x^5} \, dx=\frac {-12 \,\mathrm {log}\left (x^{n} c \right ) b \,d^{3}-48 \,\mathrm {log}\left (x^{n} c \right ) b \,d^{2} e x -72 \,\mathrm {log}\left (x^{n} c \right ) b d \,e^{2} x^{2}-48 \,\mathrm {log}\left (x^{n} c \right ) b \,e^{3} x^{3}-12 a \,d^{3}-48 a \,d^{2} e x -72 a d \,e^{2} x^{2}-48 a \,e^{3} x^{3}-3 b \,d^{3} n -16 b \,d^{2} e n x -36 b d \,e^{2} n \,x^{2}-48 b \,e^{3} n \,x^{3}}{48 x^{4}} \] Input:
int((e*x+d)^3*(a+b*log(c*x^n))/x^5,x)
Output:
( - 12*log(x**n*c)*b*d**3 - 48*log(x**n*c)*b*d**2*e*x - 72*log(x**n*c)*b*d *e**2*x**2 - 48*log(x**n*c)*b*e**3*x**3 - 12*a*d**3 - 48*a*d**2*e*x - 72*a *d*e**2*x**2 - 48*a*e**3*x**3 - 3*b*d**3*n - 16*b*d**2*e*n*x - 36*b*d*e**2 *n*x**2 - 48*b*e**3*n*x**3)/(48*x**4)