Integrand size = 21, antiderivative size = 109 \[ \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx=-\frac {b^2 d n^2}{32 x^4}-\frac {2 b^2 e n^2}{27 x^3}-\frac {b d n \left (a+b \log \left (c x^n\right )\right )}{8 x^4}-\frac {2 b e n \left (a+b \log \left (c x^n\right )\right )}{9 x^3}-\frac {d \left (a+b \log \left (c x^n\right )\right )^2}{4 x^4}-\frac {e \left (a+b \log \left (c x^n\right )\right )^2}{3 x^3} \] Output:
-1/32*b^2*d*n^2/x^4-2/27*b^2*e*n^2/x^3-1/8*b*d*n*(a+b*ln(c*x^n))/x^4-2/9*b *e*n*(a+b*ln(c*x^n))/x^3-1/4*d*(a+b*ln(c*x^n))^2/x^4-1/3*e*(a+b*ln(c*x^n)) ^2/x^3
Time = 0.07 (sec) , antiderivative size = 82, normalized size of antiderivative = 0.75 \[ \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx=-\frac {216 d \left (a+b \log \left (c x^n\right )\right )^2+288 e x \left (a+b \log \left (c x^n\right )\right )^2+64 b e n x \left (3 a+b n+3 b \log \left (c x^n\right )\right )+27 b d n \left (4 a+b n+4 b \log \left (c x^n\right )\right )}{864 x^4} \] Input:
Integrate[((d + e*x)*(a + b*Log[c*x^n])^2)/x^5,x]
Output:
-1/864*(216*d*(a + b*Log[c*x^n])^2 + 288*e*x*(a + b*Log[c*x^n])^2 + 64*b*e *n*x*(3*a + b*n + 3*b*Log[c*x^n]) + 27*b*d*n*(4*a + b*n + 4*b*Log[c*x^n])) /x^4
Time = 0.34 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {2795, 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) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx\) |
\(\Big \downarrow \) 2795 |
\(\displaystyle \int \left (\frac {d \left (a+b \log \left (c x^n\right )\right )^2}{x^5}+\frac {e \left (a+b \log \left (c x^n\right )\right )^2}{x^4}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {b d n \left (a+b \log \left (c x^n\right )\right )}{8 x^4}-\frac {d \left (a+b \log \left (c x^n\right )\right )^2}{4 x^4}-\frac {2 b e n \left (a+b \log \left (c x^n\right )\right )}{9 x^3}-\frac {e \left (a+b \log \left (c x^n\right )\right )^2}{3 x^3}-\frac {b^2 d n^2}{32 x^4}-\frac {2 b^2 e n^2}{27 x^3}\) |
Input:
Int[((d + e*x)*(a + b*Log[c*x^n])^2)/x^5,x]
Output:
-1/32*(b^2*d*n^2)/x^4 - (2*b^2*e*n^2)/(27*x^3) - (b*d*n*(a + b*Log[c*x^n]) )/(8*x^4) - (2*b*e*n*(a + b*Log[c*x^n]))/(9*x^3) - (d*(a + b*Log[c*x^n])^2 )/(4*x^4) - (e*(a + b*Log[c*x^n])^2)/(3*x^3)
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = ExpandIntegrand[(a + b*Log[ c*x^n])^p, (f*x)^m*(d + e*x^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b , c, d, e, f, m, n, p, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0 ] && IntegerQ[m] && IntegerQ[r]))
Time = 0.27 (sec) , antiderivative size = 131, normalized size of antiderivative = 1.20
method | result | size |
parallelrisch | \(-\frac {288 b^{2} \ln \left (c \,x^{n}\right )^{2} e x +192 b^{2} e n x \ln \left (c \,x^{n}\right )+64 b^{2} e \,n^{2} x +576 a b \ln \left (c \,x^{n}\right ) e x +192 a b e n x +216 b^{2} \ln \left (c \,x^{n}\right )^{2} d +108 \ln \left (c \,x^{n}\right ) n \,b^{2} d +27 b^{2} d \,n^{2}+288 a^{2} e x +432 a b \ln \left (c \,x^{n}\right ) d +108 d a b n +216 a^{2} d}{864 x^{4}}\) | \(131\) |
risch | \(\text {Expression too large to display}\) | \(1486\) |
Input:
int((e*x+d)*(a+b*ln(c*x^n))^2/x^5,x,method=_RETURNVERBOSE)
Output:
-1/864/x^4*(288*b^2*ln(c*x^n)^2*e*x+192*b^2*e*n*x*ln(c*x^n)+64*b^2*e*n^2*x +576*a*b*ln(c*x^n)*e*x+192*a*b*e*n*x+216*b^2*ln(c*x^n)^2*d+108*ln(c*x^n)*n *b^2*d+27*b^2*d*n^2+288*a^2*e*x+432*a*b*ln(c*x^n)*d+108*d*a*b*n+216*a^2*d)
Time = 0.07 (sec) , antiderivative size = 188, normalized size of antiderivative = 1.72 \[ \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx=-\frac {27 \, b^{2} d n^{2} + 108 \, a b d n + 216 \, a^{2} d + 72 \, {\left (4 \, b^{2} e x + 3 \, b^{2} d\right )} \log \left (c\right )^{2} + 72 \, {\left (4 \, b^{2} e n^{2} x + 3 \, b^{2} d n^{2}\right )} \log \left (x\right )^{2} + 32 \, {\left (2 \, b^{2} e n^{2} + 6 \, a b e n + 9 \, a^{2} e\right )} x + 12 \, {\left (9 \, b^{2} d n + 36 \, a b d + 16 \, {\left (b^{2} e n + 3 \, a b e\right )} x\right )} \log \left (c\right ) + 12 \, {\left (9 \, b^{2} d n^{2} + 36 \, a b d n + 16 \, {\left (b^{2} e n^{2} + 3 \, a b e n\right )} x + 12 \, {\left (4 \, b^{2} e n x + 3 \, b^{2} d n\right )} \log \left (c\right )\right )} \log \left (x\right )}{864 \, x^{4}} \] Input:
integrate((e*x+d)*(a+b*log(c*x^n))^2/x^5,x, algorithm="fricas")
Output:
-1/864*(27*b^2*d*n^2 + 108*a*b*d*n + 216*a^2*d + 72*(4*b^2*e*x + 3*b^2*d)* log(c)^2 + 72*(4*b^2*e*n^2*x + 3*b^2*d*n^2)*log(x)^2 + 32*(2*b^2*e*n^2 + 6 *a*b*e*n + 9*a^2*e)*x + 12*(9*b^2*d*n + 36*a*b*d + 16*(b^2*e*n + 3*a*b*e)* x)*log(c) + 12*(9*b^2*d*n^2 + 36*a*b*d*n + 16*(b^2*e*n^2 + 3*a*b*e*n)*x + 12*(4*b^2*e*n*x + 3*b^2*d*n)*log(c))*log(x))/x^4
Time = 0.53 (sec) , antiderivative size = 187, normalized size of antiderivative = 1.72 \[ \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx=- \frac {a^{2} d}{4 x^{4}} - \frac {a^{2} e}{3 x^{3}} - \frac {a b d n}{8 x^{4}} - \frac {a b d \log {\left (c x^{n} \right )}}{2 x^{4}} - \frac {2 a b e n}{9 x^{3}} - \frac {2 a b e \log {\left (c x^{n} \right )}}{3 x^{3}} - \frac {b^{2} d n^{2}}{32 x^{4}} - \frac {b^{2} d n \log {\left (c x^{n} \right )}}{8 x^{4}} - \frac {b^{2} d \log {\left (c x^{n} \right )}^{2}}{4 x^{4}} - \frac {2 b^{2} e n^{2}}{27 x^{3}} - \frac {2 b^{2} e n \log {\left (c x^{n} \right )}}{9 x^{3}} - \frac {b^{2} e \log {\left (c x^{n} \right )}^{2}}{3 x^{3}} \] Input:
integrate((e*x+d)*(a+b*ln(c*x**n))**2/x**5,x)
Output:
-a**2*d/(4*x**4) - a**2*e/(3*x**3) - a*b*d*n/(8*x**4) - a*b*d*log(c*x**n)/ (2*x**4) - 2*a*b*e*n/(9*x**3) - 2*a*b*e*log(c*x**n)/(3*x**3) - b**2*d*n**2 /(32*x**4) - b**2*d*n*log(c*x**n)/(8*x**4) - b**2*d*log(c*x**n)**2/(4*x**4 ) - 2*b**2*e*n**2/(27*x**3) - 2*b**2*e*n*log(c*x**n)/(9*x**3) - b**2*e*log (c*x**n)**2/(3*x**3)
Time = 0.04 (sec) , antiderivative size = 151, normalized size of antiderivative = 1.39 \[ \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx=-\frac {2}{27} \, b^{2} e {\left (\frac {n^{2}}{x^{3}} + \frac {3 \, n \log \left (c x^{n}\right )}{x^{3}}\right )} - \frac {1}{32} \, b^{2} d {\left (\frac {n^{2}}{x^{4}} + \frac {4 \, n \log \left (c x^{n}\right )}{x^{4}}\right )} - \frac {b^{2} e \log \left (c x^{n}\right )^{2}}{3 \, x^{3}} - \frac {2 \, a b e n}{9 \, x^{3}} - \frac {2 \, a b e \log \left (c x^{n}\right )}{3 \, x^{3}} - \frac {b^{2} d \log \left (c x^{n}\right )^{2}}{4 \, x^{4}} - \frac {a b d n}{8 \, x^{4}} - \frac {a^{2} e}{3 \, x^{3}} - \frac {a b d \log \left (c x^{n}\right )}{2 \, x^{4}} - \frac {a^{2} d}{4 \, x^{4}} \] Input:
integrate((e*x+d)*(a+b*log(c*x^n))^2/x^5,x, algorithm="maxima")
Output:
-2/27*b^2*e*(n^2/x^3 + 3*n*log(c*x^n)/x^3) - 1/32*b^2*d*(n^2/x^4 + 4*n*log (c*x^n)/x^4) - 1/3*b^2*e*log(c*x^n)^2/x^3 - 2/9*a*b*e*n/x^3 - 2/3*a*b*e*lo g(c*x^n)/x^3 - 1/4*b^2*d*log(c*x^n)^2/x^4 - 1/8*a*b*d*n/x^4 - 1/3*a^2*e/x^ 3 - 1/2*a*b*d*log(c*x^n)/x^4 - 1/4*a^2*d/x^4
Leaf count of result is larger than twice the leaf count of optimal. 195 vs. \(2 (97) = 194\).
Time = 0.12 (sec) , antiderivative size = 195, normalized size of antiderivative = 1.79 \[ \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx=-\frac {{\left (4 \, b^{2} e n^{2} x + 3 \, b^{2} d n^{2}\right )} \log \left (x\right )^{2}}{12 \, x^{4}} - \frac {{\left (16 \, b^{2} e n^{2} x + 48 \, b^{2} e n x \log \left (c\right ) + 9 \, b^{2} d n^{2} + 48 \, a b e n x + 36 \, b^{2} d n \log \left (c\right ) + 36 \, a b d n\right )} \log \left (x\right )}{72 \, x^{4}} - \frac {64 \, b^{2} e n^{2} x + 192 \, b^{2} e n x \log \left (c\right ) + 288 \, b^{2} e x \log \left (c\right )^{2} + 27 \, b^{2} d n^{2} + 192 \, a b e n x + 108 \, b^{2} d n \log \left (c\right ) + 576 \, a b e x \log \left (c\right ) + 216 \, b^{2} d \log \left (c\right )^{2} + 108 \, a b d n + 288 \, a^{2} e x + 432 \, a b d \log \left (c\right ) + 216 \, a^{2} d}{864 \, x^{4}} \] Input:
integrate((e*x+d)*(a+b*log(c*x^n))^2/x^5,x, algorithm="giac")
Output:
-1/12*(4*b^2*e*n^2*x + 3*b^2*d*n^2)*log(x)^2/x^4 - 1/72*(16*b^2*e*n^2*x + 48*b^2*e*n*x*log(c) + 9*b^2*d*n^2 + 48*a*b*e*n*x + 36*b^2*d*n*log(c) + 36* a*b*d*n)*log(x)/x^4 - 1/864*(64*b^2*e*n^2*x + 192*b^2*e*n*x*log(c) + 288*b ^2*e*x*log(c)^2 + 27*b^2*d*n^2 + 192*a*b*e*n*x + 108*b^2*d*n*log(c) + 576* a*b*e*x*log(c) + 216*b^2*d*log(c)^2 + 108*a*b*d*n + 288*a^2*e*x + 432*a*b* d*log(c) + 216*a^2*d)/x^4
Time = 26.97 (sec) , antiderivative size = 114, normalized size of antiderivative = 1.05 \[ \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx=-\frac {x\,\left (24\,e\,a^2+16\,e\,a\,b\,n+\frac {16\,e\,b^2\,n^2}{3}\right )+18\,a^2\,d+\frac {9\,b^2\,d\,n^2}{4}+9\,a\,b\,d\,n}{72\,x^4}-\frac {\ln \left (c\,x^n\right )\,\left (\frac {3\,b\,d\,\left (4\,a+b\,n\right )}{4}+\frac {4\,b\,e\,x\,\left (3\,a+b\,n\right )}{3}\right )}{6\,x^4}-\frac {{\ln \left (c\,x^n\right )}^2\,\left (\frac {b^2\,d}{4}+\frac {b^2\,e\,x}{3}\right )}{x^4} \] Input:
int(((a + b*log(c*x^n))^2*(d + e*x))/x^5,x)
Output:
- (x*(24*a^2*e + (16*b^2*e*n^2)/3 + 16*a*b*e*n) + 18*a^2*d + (9*b^2*d*n^2) /4 + 9*a*b*d*n)/(72*x^4) - (log(c*x^n)*((3*b*d*(4*a + b*n))/4 + (4*b*e*x*( 3*a + b*n))/3))/(6*x^4) - (log(c*x^n)^2*((b^2*d)/4 + (b^2*e*x)/3))/x^4
Time = 0.17 (sec) , antiderivative size = 130, normalized size of antiderivative = 1.19 \[ \int \frac {(d+e x) \left (a+b \log \left (c x^n\right )\right )^2}{x^5} \, dx=\frac {-216 \mathrm {log}\left (x^{n} c \right )^{2} b^{2} d -288 \mathrm {log}\left (x^{n} c \right )^{2} b^{2} e x -432 \,\mathrm {log}\left (x^{n} c \right ) a b d -576 \,\mathrm {log}\left (x^{n} c \right ) a b e x -108 \,\mathrm {log}\left (x^{n} c \right ) b^{2} d n -192 \,\mathrm {log}\left (x^{n} c \right ) b^{2} e n x -216 a^{2} d -288 a^{2} e x -108 a b d n -192 a b e n x -27 b^{2} d \,n^{2}-64 b^{2} e \,n^{2} x}{864 x^{4}} \] Input:
int((e*x+d)*(a+b*log(c*x^n))^2/x^5,x)
Output:
( - 216*log(x**n*c)**2*b**2*d - 288*log(x**n*c)**2*b**2*e*x - 432*log(x**n *c)*a*b*d - 576*log(x**n*c)*a*b*e*x - 108*log(x**n*c)*b**2*d*n - 192*log(x **n*c)*b**2*e*n*x - 216*a**2*d - 288*a**2*e*x - 108*a*b*d*n - 192*a*b*e*n* x - 27*b**2*d*n**2 - 64*b**2*e*n**2*x)/(864*x**4)