Integrand size = 23, antiderivative size = 191 \[ \int \frac {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx=-\frac {b d^3 n}{4 x^2}-\frac {3 b d e^2 n x^{-2 (1-r)}}{4 (1-r)^2}-\frac {3 b d^2 e n x^{-2+r}}{(2-r)^2}-\frac {b e^3 n x^{-2+3 r}}{(2-3 r)^2}-\frac {d^3 \left (a+b \log \left (c x^n\right )\right )}{2 x^2}-\frac {3 d e^2 x^{-2 (1-r)} \left (a+b \log \left (c x^n\right )\right )}{2 (1-r)}-\frac {3 d^2 e x^{-2+r} \left (a+b \log \left (c x^n\right )\right )}{2-r}-\frac {e^3 x^{-2+3 r} \left (a+b \log \left (c x^n\right )\right )}{2-3 r} \] Output:
-1/4*b*d^3*n/x^2-3/4*b*d*e^2*n/(1-r)^2/(x^(2-2*r))-3*b*d^2*e*n*x^(-2+r)/(2 -r)^2-b*e^3*n*x^(-2+3*r)/(2-3*r)^2-1/2*d^3*(a+b*ln(c*x^n))/x^2-3/2*d*e^2*( a+b*ln(c*x^n))/(1-r)/(x^(2-2*r))-3*d^2*e*x^(-2+r)*(a+b*ln(c*x^n))/(2-r)-e^ 3*x^(-2+3*r)*(a+b*ln(c*x^n))/(2-3*r)
Time = 0.49 (sec) , antiderivative size = 181, normalized size of antiderivative = 0.95 \[ \int \frac {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx=\frac {b n \left (-d^3-\frac {12 d^2 e x^r}{(-2+r)^2}-\frac {3 d e^2 x^{2 r}}{(-1+r)^2}-\frac {4 e^3 x^{3 r}}{(2-3 r)^2}\right )+a \left (-2 d^3+\frac {12 d^2 e x^r}{-2+r}+\frac {6 d e^2 x^{2 r}}{-1+r}+\frac {4 e^3 x^{3 r}}{-2+3 r}\right )+2 b \left (-d^3+\frac {6 d^2 e x^r}{-2+r}+\frac {3 d e^2 x^{2 r}}{-1+r}+\frac {2 e^3 x^{3 r}}{-2+3 r}\right ) \log \left (c x^n\right )}{4 x^2} \] Input:
Integrate[((d + e*x^r)^3*(a + b*Log[c*x^n]))/x^3,x]
Output:
(b*n*(-d^3 - (12*d^2*e*x^r)/(-2 + r)^2 - (3*d*e^2*x^(2*r))/(-1 + r)^2 - (4 *e^3*x^(3*r))/(2 - 3*r)^2) + a*(-2*d^3 + (12*d^2*e*x^r)/(-2 + r) + (6*d*e^ 2*x^(2*r))/(-1 + r) + (4*e^3*x^(3*r))/(-2 + 3*r)) + 2*b*(-d^3 + (6*d^2*e*x ^r)/(-2 + r) + (3*d*e^2*x^(2*r))/(-1 + r) + (2*e^3*x^(3*r))/(-2 + 3*r))*Lo g[c*x^n])/(4*x^2)
Time = 0.66 (sec) , antiderivative size = 190, 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.174, Rules used = {2772, 27, 2010, 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 {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx\) |
\(\Big \downarrow \) 2772 |
\(\displaystyle -b n \int -\frac {\frac {6 d^2 e x^r}{2-r}+\frac {3 d e^2 x^{2 r}}{1-r}+\frac {2 e^3 x^{3 r}}{2-3 r}+d^3}{2 x^3}dx-\frac {d^3 \left (a+b \log \left (c x^n\right )\right )}{2 x^2}-\frac {3 d^2 e x^{r-2} \left (a+b \log \left (c x^n\right )\right )}{2-r}-\frac {3 d e^2 x^{-2 (1-r)} \left (a+b \log \left (c x^n\right )\right )}{2 (1-r)}-\frac {e^3 x^{3 r-2} \left (a+b \log \left (c x^n\right )\right )}{2-3 r}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {1}{2} b n \int \frac {\frac {6 d^2 e x^r}{2-r}+\frac {3 d e^2 x^{2 r}}{1-r}+\frac {2 e^3 x^{3 r}}{2-3 r}+d^3}{x^3}dx-\frac {d^3 \left (a+b \log \left (c x^n\right )\right )}{2 x^2}-\frac {3 d^2 e x^{r-2} \left (a+b \log \left (c x^n\right )\right )}{2-r}-\frac {3 d e^2 x^{-2 (1-r)} \left (a+b \log \left (c x^n\right )\right )}{2 (1-r)}-\frac {e^3 x^{3 r-2} \left (a+b \log \left (c x^n\right )\right )}{2-3 r}\) |
\(\Big \downarrow \) 2010 |
\(\displaystyle \frac {1}{2} b n \int \left (-\frac {6 d^2 e x^{r-3}}{r-2}+\frac {2 e^3 x^{3 (r-1)}}{2-3 r}-\frac {3 d e^2 x^{2 r-3}}{r-1}+\frac {d^3}{x^3}\right )dx-\frac {d^3 \left (a+b \log \left (c x^n\right )\right )}{2 x^2}-\frac {3 d^2 e x^{r-2} \left (a+b \log \left (c x^n\right )\right )}{2-r}-\frac {3 d e^2 x^{-2 (1-r)} \left (a+b \log \left (c x^n\right )\right )}{2 (1-r)}-\frac {e^3 x^{3 r-2} \left (a+b \log \left (c x^n\right )\right )}{2-3 r}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {d^3 \left (a+b \log \left (c x^n\right )\right )}{2 x^2}-\frac {3 d^2 e x^{r-2} \left (a+b \log \left (c x^n\right )\right )}{2-r}-\frac {3 d e^2 x^{-2 (1-r)} \left (a+b \log \left (c x^n\right )\right )}{2 (1-r)}-\frac {e^3 x^{3 r-2} \left (a+b \log \left (c x^n\right )\right )}{2-3 r}+\frac {1}{2} b n \left (-\frac {d^3}{2 x^2}-\frac {6 d^2 e x^{r-2}}{(2-r)^2}-\frac {3 d e^2 x^{-2 (1-r)}}{2 (1-r)^2}-\frac {2 e^3 x^{3 r-2}}{(2-3 r)^2}\right )\) |
Input:
Int[((d + e*x^r)^3*(a + b*Log[c*x^n]))/x^3,x]
Output:
(b*n*(-1/2*d^3/x^2 - (3*d*e^2)/(2*(1 - r)^2*x^(2*(1 - r))) - (6*d^2*e*x^(- 2 + r))/(2 - r)^2 - (2*e^3*x^(-2 + 3*r))/(2 - 3*r)^2))/2 - (d^3*(a + b*Log [c*x^n]))/(2*x^2) - (3*d*e^2*(a + b*Log[c*x^n]))/(2*(1 - r)*x^(2*(1 - r))) - (3*d^2*e*x^(-2 + r)*(a + b*Log[c*x^n]))/(2 - r) - (e^3*x^(-2 + 3*r)*(a + b*Log[c*x^n]))/(2 - 3*r)
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[(u_)*((c_.)*(x_))^(m_.), x_Symbol] :> Int[ExpandIntegrand[(c*x)^m*u, x] , x] /; FreeQ[{c, m}, x] && SumQ[u] && !LinearQ[u, x] && !MatchQ[u, (a_) + (b_.)*(v_) /; FreeQ[{a, b}, x] && InverseFunctionQ[v]]
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])
Leaf count of result is larger than twice the leaf count of optimal. \(1043\) vs. \(2(183)=366\).
Time = 3.46 (sec) , antiderivative size = 1044, normalized size of antiderivative = 5.47
method | result | size |
parallelrisch | \(\text {Expression too large to display}\) | \(1044\) |
risch | \(\text {Expression too large to display}\) | \(4027\) |
Input:
int((d+e*x^r)^3*(a+b*ln(c*x^n))/x^3,x,method=_RETURNVERBOSE)
Output:
-1/4*(32*a*d^3+80*a*e^3*r^4*(x^r)^3+16*b*e^3*n*(x^r)^3-204*a*e^3*r^3*(x^r) ^3+248*a*e^3*r^2*(x^r)^3-144*a*e^3*r*(x^r)^3-12*a*e^3*r^5*(x^r)^3-360*b*d^ 2*e*n*r^3*x^r+32*b*ln(c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-528*x^r*ln(c*x^n)*b*d^2*e*r-144*(x^r)^3*ln(c*x^n)*b*e^3*r-12*(x^r )^3*ln(c*x^n)*b*e^3*r^5+80*(x^r)^3*ln(c*x^n)*b*e^3*r^4-204*(x^r)^3*ln(c*x^ n)*b*e^3*r^3+248*(x^r)^3*ln(c*x^n)*b*e^3*r^2-54*(x^r)^2*ln(c*x^n)*b*d*e...
Leaf count of result is larger than twice the leaf count of optimal. 981 vs. \(2 (174) = 348\).
Time = 0.10 (sec) , antiderivative size = 981, normalized size of antiderivative = 5.14 \[ \int \frac {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx =\text {Too large to display} \] Input:
integrate((d+e*x^r)^3*(a+b*log(c*x^n))/x^3,x, algorithm="fricas")
Output:
-1/4*(9*(b*d^3*n + 2*a*d^3)*r^6 - 66*(b*d^3*n + 2*a*d^3)*r^5 + 16*b*d^3*n + 193*(b*d^3*n + 2*a*d^3)*r^4 + 32*a*d^3 - 288*(b*d^3*n + 2*a*d^3)*r^3 + 2 32*(b*d^3*n + 2*a*d^3)*r^2 - 96*(b*d^3*n + 2*a*d^3)*r - 4*(3*a*e^3*r^5 - 4 *b*e^3*n - (b*e^3*n + 20*a*e^3)*r^4 - 8*a*e^3 + 3*(2*b*e^3*n + 17*a*e^3)*r ^3 - (13*b*e^3*n + 62*a*e^3)*r^2 + 12*(b*e^3*n + 3*a*e^3)*r + (3*b*e^3*r^5 - 20*b*e^3*r^4 + 51*b*e^3*r^3 - 62*b*e^3*r^2 + 36*b*e^3*r - 8*b*e^3)*log( c) + (3*b*e^3*n*r^5 - 20*b*e^3*n*r^4 + 51*b*e^3*n*r^3 - 62*b*e^3*n*r^2 + 3 6*b*e^3*n*r - 8*b*e^3*n)*log(x))*x^(3*r) - 3*(18*a*d*e^2*r^5 - 16*b*d*e^2* n - 3*(3*b*d*e^2*n + 38*a*d*e^2)*r^4 - 32*a*d*e^2 + 16*(3*b*d*e^2*n + 17*a *d*e^2)*r^3 - 8*(11*b*d*e^2*n + 38*a*d*e^2)*r^2 + 32*(2*b*d*e^2*n + 5*a*d* e^2)*r + 2*(9*b*d*e^2*r^5 - 57*b*d*e^2*r^4 + 136*b*d*e^2*r^3 - 152*b*d*e^2 *r^2 + 80*b*d*e^2*r - 16*b*d*e^2)*log(c) + 2*(9*b*d*e^2*n*r^5 - 57*b*d*e^2 *n*r^4 + 136*b*d*e^2*n*r^3 - 152*b*d*e^2*n*r^2 + 80*b*d*e^2*n*r - 16*b*d*e ^2*n)*log(x))*x^(2*r) - 12*(9*a*d^2*e*r^5 - 4*b*d^2*e*n - 3*(3*b*d^2*e*n + 16*a*d^2*e)*r^4 - 8*a*d^2*e + (30*b*d^2*e*n + 97*a*d^2*e)*r^3 - (37*b*d^2 *e*n + 94*a*d^2*e)*r^2 + 4*(5*b*d^2*e*n + 11*a*d^2*e)*r + (9*b*d^2*e*r^5 - 48*b*d^2*e*r^4 + 97*b*d^2*e*r^3 - 94*b*d^2*e*r^2 + 44*b*d^2*e*r - 8*b*d^2 *e)*log(c) + (9*b*d^2*e*n*r^5 - 48*b*d^2*e*n*r^4 + 97*b*d^2*e*n*r^3 - 94*b *d^2*e*n*r^2 + 44*b*d^2*e*n*r - 8*b*d^2*e*n)*log(x))*x^r + 2*(9*b*d^3*r^6 - 66*b*d^3*r^5 + 193*b*d^3*r^4 - 288*b*d^3*r^3 + 232*b*d^3*r^2 - 96*b*d...
Time = 47.47 (sec) , antiderivative size = 347, normalized size of antiderivative = 1.82 \[ \int \frac {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx =\text {Too large to display} \] Input:
integrate((d+e*x**r)**3*(a+b*ln(c*x**n))/x**3,x)
Output:
-a*d**3/(2*x**2) + 3*a*d**2*e*Piecewise((x**r/(r*x**2 - 2*x**2), Ne(r, 2)) , (x**r*log(x)/x**2, True)) + 3*a*d*e**2*Piecewise((x**(2*r)/(2*r*x**2 - 2 *x**2), Ne(r, 1)), (x**(2*r)*log(x)/x**2, True)) + a*e**3*Piecewise((x**(3 *r)/(3*r*x**2 - 2*x**2), Ne(r, 2/3)), (x**(3*r)*log(x)/x**2, True)) - b*d* *3*n/(4*x**2) - b*d**3*log(c*x**n)/(2*x**2) - 3*b*d**2*e*n*Piecewise((Piec ewise((x**(r - 2)/(r - 2), Ne(r, 2)), (log(x), True))/(r - 2), (r > -oo) & (r < oo) & Ne(r, 2)), (log(x)**2/2, True)) + 3*b*d**2*e*Piecewise((x**(r - 2)/(r - 2), Ne(r, 2)), (log(x), True))*log(c*x**n) - 3*b*d*e**2*n*Piecew ise((Piecewise((x**(2*r - 2)/(2*r - 2), Ne(r, 1)), (log(x), True))/(2*r - 2), (r > -oo) & (r < oo) & Ne(r, 1)), (log(x)**2/2, True)) + 3*b*d*e**2*Pi ecewise((x**(2*r - 2)/(2*r - 2), Ne(r, 1)), (log(x), True))*log(c*x**n) - b*e**3*n*Piecewise((Piecewise((x**(3*r - 2)/(3*r - 2), Ne(r, 2/3)), (log(x ), True))/(3*r - 2), (r > -oo) & (r < oo) & Ne(r, 2/3)), (log(x)**2/2, Tru e)) + b*e**3*Piecewise((x**(3*r - 2)/(3*r - 2), Ne(r, 2/3)), (log(x), True ))*log(c*x**n)
Exception generated. \[ \int \frac {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx=\text {Exception raised: ValueError} \] Input:
integrate((d+e*x^r)^3*(a+b*log(c*x^n))/x^3,x, algorithm="maxima")
Output:
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume(r-3>0)', see `assume?` for more details)Is
\[ \int \frac {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx=\int { \frac {{\left (e x^{r} + d\right )}^{3} {\left (b \log \left (c x^{n}\right ) + a\right )}}{x^{3}} \,d x } \] Input:
integrate((d+e*x^r)^3*(a+b*log(c*x^n))/x^3,x, algorithm="giac")
Output:
integrate((e*x^r + d)^3*(b*log(c*x^n) + a)/x^3, x)
Timed out. \[ \int \frac {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx=\int \frac {{\left (d+e\,x^r\right )}^3\,\left (a+b\,\ln \left (c\,x^n\right )\right )}{x^3} \,d x \] Input:
int(((d + e*x^r)^3*(a + b*log(c*x^n)))/x^3,x)
Output:
int(((d + e*x^r)^3*(a + b*log(c*x^n)))/x^3, x)
Time = 0.16 (sec) , antiderivative size = 1053, normalized size of antiderivative = 5.51 \[ \int \frac {\left (d+e x^r\right )^3 \left (a+b \log \left (c x^n\right )\right )}{x^3} \, dx =\text {Too large to display} \] Input:
int((d+e*x^r)^3*(a+b*log(c*x^n))/x^3,x)
Output:
(12*x**(3*r)*log(x**n*c)*b*e**3*r**5 - 80*x**(3*r)*log(x**n*c)*b*e**3*r**4 + 204*x**(3*r)*log(x**n*c)*b*e**3*r**3 - 248*x**(3*r)*log(x**n*c)*b*e**3* r**2 + 144*x**(3*r)*log(x**n*c)*b*e**3*r - 32*x**(3*r)*log(x**n*c)*b*e**3 + 12*x**(3*r)*a*e**3*r**5 - 80*x**(3*r)*a*e**3*r**4 + 204*x**(3*r)*a*e**3* r**3 - 248*x**(3*r)*a*e**3*r**2 + 144*x**(3*r)*a*e**3*r - 32*x**(3*r)*a*e* *3 - 4*x**(3*r)*b*e**3*n*r**4 + 24*x**(3*r)*b*e**3*n*r**3 - 52*x**(3*r)*b* e**3*n*r**2 + 48*x**(3*r)*b*e**3*n*r - 16*x**(3*r)*b*e**3*n + 54*x**(2*r)* log(x**n*c)*b*d*e**2*r**5 - 342*x**(2*r)*log(x**n*c)*b*d*e**2*r**4 + 816*x **(2*r)*log(x**n*c)*b*d*e**2*r**3 - 912*x**(2*r)*log(x**n*c)*b*d*e**2*r**2 + 480*x**(2*r)*log(x**n*c)*b*d*e**2*r - 96*x**(2*r)*log(x**n*c)*b*d*e**2 + 54*x**(2*r)*a*d*e**2*r**5 - 342*x**(2*r)*a*d*e**2*r**4 + 816*x**(2*r)*a* d*e**2*r**3 - 912*x**(2*r)*a*d*e**2*r**2 + 480*x**(2*r)*a*d*e**2*r - 96*x* *(2*r)*a*d*e**2 - 27*x**(2*r)*b*d*e**2*n*r**4 + 144*x**(2*r)*b*d*e**2*n*r* *3 - 264*x**(2*r)*b*d*e**2*n*r**2 + 192*x**(2*r)*b*d*e**2*n*r - 48*x**(2*r )*b*d*e**2*n + 108*x**r*log(x**n*c)*b*d**2*e*r**5 - 576*x**r*log(x**n*c)*b *d**2*e*r**4 + 1164*x**r*log(x**n*c)*b*d**2*e*r**3 - 1128*x**r*log(x**n*c) *b*d**2*e*r**2 + 528*x**r*log(x**n*c)*b*d**2*e*r - 96*x**r*log(x**n*c)*b*d **2*e + 108*x**r*a*d**2*e*r**5 - 576*x**r*a*d**2*e*r**4 + 1164*x**r*a*d**2 *e*r**3 - 1128*x**r*a*d**2*e*r**2 + 528*x**r*a*d**2*e*r - 96*x**r*a*d**2*e - 108*x**r*b*d**2*e*n*r**4 + 360*x**r*b*d**2*e*n*r**3 - 444*x**r*b*d**...