Integrand size = 18, antiderivative size = 70 \[ \int (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx=-b d^2 n x-\frac {1}{2} b d e n x^2-\frac {1}{9} b e^2 n x^3-\frac {b d^3 n \log (x)}{3 e}+\frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{3 e} \] Output:
-b*d^2*n*x-1/2*b*d*e*n*x^2-1/9*b*e^2*n*x^3-1/3*b*d^3*n*ln(x)/e+1/3*(e*x+d) ^3*(a+b*ln(c*x^n))/e
Time = 0.05 (sec) , antiderivative size = 77, normalized size of antiderivative = 1.10 \[ \int (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {1}{18} x \left (6 a \left (3 d^2+3 d e x+e^2 x^2\right )-b n \left (18 d^2+9 d e x+2 e^2 x^2\right )+6 b \left (3 d^2+3 d e x+e^2 x^2\right ) \log \left (c x^n\right )\right ) \] Input:
Integrate[(d + e*x)^2*(a + b*Log[c*x^n]),x]
Output:
(x*(6*a*(3*d^2 + 3*d*e*x + e^2*x^2) - b*n*(18*d^2 + 9*d*e*x + 2*e^2*x^2) + 6*b*(3*d^2 + 3*d*e*x + e^2*x^2)*Log[c*x^n]))/18
Time = 0.24 (sec) , antiderivative size = 69, normalized size of antiderivative = 0.99, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2750, 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 (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx\) |
\(\Big \downarrow \) 2750 |
\(\displaystyle \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{3 e}-b n \int \frac {(d+e x)^3}{3 e x}dx\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{3 e}-\frac {b n \int \frac {(d+e x)^3}{x}dx}{3 e}\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{3 e}-\frac {b n \int \left (\frac {d^3}{x}+3 e d^2+3 e^2 x d+e^3 x^2\right )dx}{3 e}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {(d+e x)^3 \left (a+b \log \left (c x^n\right )\right )}{3 e}-\frac {b n \left (d^3 \log (x)+3 d^2 e x+\frac {3}{2} d e^2 x^2+\frac {e^3 x^3}{3}\right )}{3 e}\) |
Input:
Int[(d + e*x)^2*(a + b*Log[c*x^n]),x]
Output:
-1/3*(b*n*(3*d^2*e*x + (3*d*e^2*x^2)/2 + (e^3*x^3)/3 + d^3*Log[x]))/e + (( d + e*x)^3*(a + b*Log[c*x^n]))/(3*e)
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_.))*((d_) + (e_.)*(x_)^(r_.))^(q_.), x_Symbol] :> With[{u = IntHide[(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]
Time = 0.44 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.30
method | result | size |
parallelrisch | \(\frac {b \ln \left (c \,x^{n}\right ) e^{2} x^{3}}{3}-\frac {b \,e^{2} n \,x^{3}}{9}+\frac {a \,e^{2} x^{3}}{3}+b \ln \left (c \,x^{n}\right ) e \,x^{2} d -\frac {b d e n \,x^{2}}{2}+a e \,x^{2} d +x b \ln \left (c \,x^{n}\right ) d^{2}-b \,d^{2} n x +a \,d^{2} x\) | \(91\) |
risch | \(\frac {\left (e x +d \right )^{3} b \ln \left (x^{n}\right )}{3 e}-\frac {i e^{2} \pi b \,x^{3} \operatorname {csgn}\left (i c \,x^{n}\right )^{3}}{6}-\frac {i e \pi b d \,x^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{3}}{2}-\frac {i e \pi b d \,x^{2} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )}{2}+\frac {i e \pi b d \,x^{2} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}+\frac {i \pi b \,d^{2} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2} x}{2}-\frac {i \pi b \,d^{2} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right ) x}{2}+\frac {i e^{2} \pi b \,x^{3} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{6}+\frac {i e \pi b d \,x^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )}{2}+\frac {i e^{2} \pi b \,x^{3} \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )}{6}-\frac {i e^{2} \pi b \,x^{3} \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )}{6}-\frac {i \pi b \,d^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{3} x}{2}+\frac {i \pi b \,d^{2} \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right ) x}{2}+\frac {\ln \left (c \right ) b \,e^{2} x^{3}}{3}-\frac {b \,e^{2} n \,x^{3}}{9}+\ln \left (c \right ) b d e \,x^{2}+\frac {a \,e^{2} x^{3}}{3}-\frac {b d e n \,x^{2}}{2}-\frac {b \,d^{3} n \ln \left (x \right )}{3 e}+x \ln \left (c \right ) b \,d^{2}+a e \,x^{2} d -b \,d^{2} n x +a \,d^{2} x\) | \(414\) |
Input:
int((e*x+d)^2*(a+b*ln(c*x^n)),x,method=_RETURNVERBOSE)
Output:
1/3*b*ln(c*x^n)*e^2*x^3-1/9*b*e^2*n*x^3+1/3*a*e^2*x^3+b*ln(c*x^n)*e*x^2*d- 1/2*b*d*e*n*x^2+a*e*x^2*d+x*b*ln(c*x^n)*d^2-b*d^2*n*x+a*d^2*x
Time = 0.08 (sec) , antiderivative size = 110, normalized size of antiderivative = 1.57 \[ \int (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx=-\frac {1}{9} \, {\left (b e^{2} n - 3 \, a e^{2}\right )} x^{3} - \frac {1}{2} \, {\left (b d e n - 2 \, a d e\right )} x^{2} - {\left (b d^{2} n - a d^{2}\right )} x + \frac {1}{3} \, {\left (b e^{2} x^{3} + 3 \, b d e x^{2} + 3 \, b d^{2} x\right )} \log \left (c\right ) + \frac {1}{3} \, {\left (b e^{2} n x^{3} + 3 \, b d e n x^{2} + 3 \, b d^{2} n x\right )} \log \left (x\right ) \] Input:
integrate((e*x+d)^2*(a+b*log(c*x^n)),x, algorithm="fricas")
Output:
-1/9*(b*e^2*n - 3*a*e^2)*x^3 - 1/2*(b*d*e*n - 2*a*d*e)*x^2 - (b*d^2*n - a* d^2)*x + 1/3*(b*e^2*x^3 + 3*b*d*e*x^2 + 3*b*d^2*x)*log(c) + 1/3*(b*e^2*n*x ^3 + 3*b*d*e*n*x^2 + 3*b*d^2*n*x)*log(x)
Time = 0.20 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.46 \[ \int (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx=a d^{2} x + a d e x^{2} + \frac {a e^{2} x^{3}}{3} - b d^{2} n x + b d^{2} x \log {\left (c x^{n} \right )} - \frac {b d e n x^{2}}{2} + b d e x^{2} \log {\left (c x^{n} \right )} - \frac {b e^{2} n x^{3}}{9} + \frac {b e^{2} x^{3} \log {\left (c x^{n} \right )}}{3} \] Input:
integrate((e*x+d)**2*(a+b*ln(c*x**n)),x)
Output:
a*d**2*x + a*d*e*x**2 + a*e**2*x**3/3 - b*d**2*n*x + b*d**2*x*log(c*x**n) - b*d*e*n*x**2/2 + b*d*e*x**2*log(c*x**n) - b*e**2*n*x**3/9 + b*e**2*x**3* log(c*x**n)/3
Time = 0.03 (sec) , antiderivative size = 90, normalized size of antiderivative = 1.29 \[ \int (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx=-\frac {1}{9} \, b e^{2} n x^{3} + \frac {1}{3} \, b e^{2} x^{3} \log \left (c x^{n}\right ) - \frac {1}{2} \, b d e n x^{2} + \frac {1}{3} \, a e^{2} x^{3} + b d e x^{2} \log \left (c x^{n}\right ) - b d^{2} n x + a d e x^{2} + b d^{2} x \log \left (c x^{n}\right ) + a d^{2} x \] Input:
integrate((e*x+d)^2*(a+b*log(c*x^n)),x, algorithm="maxima")
Output:
-1/9*b*e^2*n*x^3 + 1/3*b*e^2*x^3*log(c*x^n) - 1/2*b*d*e*n*x^2 + 1/3*a*e^2* x^3 + b*d*e*x^2*log(c*x^n) - b*d^2*n*x + a*d*e*x^2 + b*d^2*x*log(c*x^n) + a*d^2*x
Time = 0.11 (sec) , antiderivative size = 109, normalized size of antiderivative = 1.56 \[ \int (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {1}{3} \, b e^{2} n x^{3} \log \left (x\right ) - \frac {1}{9} \, b e^{2} n x^{3} + \frac {1}{3} \, b e^{2} x^{3} \log \left (c\right ) + b d e n x^{2} \log \left (x\right ) - \frac {1}{2} \, b d e n x^{2} + \frac {1}{3} \, a e^{2} x^{3} + b d e x^{2} \log \left (c\right ) + b d^{2} n x \log \left (x\right ) - b d^{2} n x + a d e x^{2} + b d^{2} x \log \left (c\right ) + a d^{2} x \] Input:
integrate((e*x+d)^2*(a+b*log(c*x^n)),x, algorithm="giac")
Output:
1/3*b*e^2*n*x^3*log(x) - 1/9*b*e^2*n*x^3 + 1/3*b*e^2*x^3*log(c) + b*d*e*n* x^2*log(x) - 1/2*b*d*e*n*x^2 + 1/3*a*e^2*x^3 + b*d*e*x^2*log(c) + b*d^2*n* x*log(x) - b*d^2*n*x + a*d*e*x^2 + b*d^2*x*log(c) + a*d^2*x
Time = 27.77 (sec) , antiderivative size = 73, normalized size of antiderivative = 1.04 \[ \int (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx=\ln \left (c\,x^n\right )\,\left (b\,d^2\,x+b\,d\,e\,x^2+\frac {b\,e^2\,x^3}{3}\right )+\frac {e^2\,x^3\,\left (3\,a-b\,n\right )}{9}+d^2\,x\,\left (a-b\,n\right )+\frac {d\,e\,x^2\,\left (2\,a-b\,n\right )}{2} \] Input:
int((a + b*log(c*x^n))*(d + e*x)^2,x)
Output:
log(c*x^n)*((b*e^2*x^3)/3 + b*d^2*x + b*d*e*x^2) + (e^2*x^3*(3*a - b*n))/9 + d^2*x*(a - b*n) + (d*e*x^2*(2*a - b*n))/2
Time = 0.17 (sec) , antiderivative size = 88, normalized size of antiderivative = 1.26 \[ \int (d+e x)^2 \left (a+b \log \left (c x^n\right )\right ) \, dx=\frac {x \left (18 \,\mathrm {log}\left (x^{n} c \right ) b \,d^{2}+18 \,\mathrm {log}\left (x^{n} c \right ) b d e x +6 \,\mathrm {log}\left (x^{n} c \right ) b \,e^{2} x^{2}+18 a \,d^{2}+18 a d e x +6 a \,e^{2} x^{2}-18 b \,d^{2} n -9 b d e n x -2 b \,e^{2} n \,x^{2}\right )}{18} \] Input:
int((e*x+d)^2*(a+b*log(c*x^n)),x)
Output:
(x*(18*log(x**n*c)*b*d**2 + 18*log(x**n*c)*b*d*e*x + 6*log(x**n*c)*b*e**2* x**2 + 18*a*d**2 + 18*a*d*e*x + 6*a*e**2*x**2 - 18*b*d**2*n - 9*b*d*e*n*x - 2*b*e**2*n*x**2))/18