Integrand size = 26, antiderivative size = 156 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx=\frac {15 b^2 (b d-a e)^4 x}{e^6}-\frac {(b d-a e)^6}{e^7 (d+e x)}-\frac {10 b^3 (b d-a e)^3 (d+e x)^2}{e^7}+\frac {5 b^4 (b d-a e)^2 (d+e x)^3}{e^7}-\frac {3 b^5 (b d-a e) (d+e x)^4}{2 e^7}+\frac {b^6 (d+e x)^5}{5 e^7}-\frac {6 b (b d-a e)^5 \log (d+e x)}{e^7} \] Output:
15*b^2*(-a*e+b*d)^4*x/e^6-(-a*e+b*d)^6/e^7/(e*x+d)-10*b^3*(-a*e+b*d)^3*(e* x+d)^2/e^7+5*b^4*(-a*e+b*d)^2*(e*x+d)^3/e^7-3/2*b^5*(-a*e+b*d)*(e*x+d)^4/e ^7+1/5*b^6*(e*x+d)^5/e^7-6*b*(-a*e+b*d)^5*ln(e*x+d)/e^7
Time = 0.11 (sec) , antiderivative size = 302, normalized size of antiderivative = 1.94 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx=\frac {60 a^5 b d e^5-10 a^6 e^6+150 a^4 b^2 e^4 \left (-d^2+d e x+e^2 x^2\right )+100 a^3 b^3 e^3 \left (2 d^3-4 d^2 e x-3 d e^2 x^2+e^3 x^3\right )+50 a^2 b^4 e^2 \left (-3 d^4+9 d^3 e x+6 d^2 e^2 x^2-2 d e^3 x^3+e^4 x^4\right )+5 a b^5 e \left (12 d^5-48 d^4 e x-30 d^3 e^2 x^2+10 d^2 e^3 x^3-5 d e^4 x^4+3 e^5 x^5\right )+b^6 \left (-10 d^6+50 d^5 e x+30 d^4 e^2 x^2-10 d^3 e^3 x^3+5 d^2 e^4 x^4-3 d e^5 x^5+2 e^6 x^6\right )-60 b (b d-a e)^5 (d+e x) \log (d+e x)}{10 e^7 (d+e x)} \] Input:
Integrate[(a^2 + 2*a*b*x + b^2*x^2)^3/(d + e*x)^2,x]
Output:
(60*a^5*b*d*e^5 - 10*a^6*e^6 + 150*a^4*b^2*e^4*(-d^2 + d*e*x + e^2*x^2) + 100*a^3*b^3*e^3*(2*d^3 - 4*d^2*e*x - 3*d*e^2*x^2 + e^3*x^3) + 50*a^2*b^4*e ^2*(-3*d^4 + 9*d^3*e*x + 6*d^2*e^2*x^2 - 2*d*e^3*x^3 + e^4*x^4) + 5*a*b^5* e*(12*d^5 - 48*d^4*e*x - 30*d^3*e^2*x^2 + 10*d^2*e^3*x^3 - 5*d*e^4*x^4 + 3 *e^5*x^5) + b^6*(-10*d^6 + 50*d^5*e*x + 30*d^4*e^2*x^2 - 10*d^3*e^3*x^3 + 5*d^2*e^4*x^4 - 3*d*e^5*x^5 + 2*e^6*x^6) - 60*b*(b*d - a*e)^5*(d + e*x)*Lo g[d + e*x])/(10*e^7*(d + e*x))
Time = 0.70 (sec) , antiderivative size = 156, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {1098, 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 {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx\) |
\(\Big \downarrow \) 1098 |
\(\displaystyle \frac {\int \frac {b^6 (a+b x)^6}{(d+e x)^2}dx}{b^6}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \int \frac {(a+b x)^6}{(d+e x)^2}dx\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \int \left (-\frac {6 b^5 (d+e x)^3 (b d-a e)}{e^6}+\frac {15 b^4 (d+e x)^2 (b d-a e)^2}{e^6}-\frac {20 b^3 (d+e x) (b d-a e)^3}{e^6}+\frac {15 b^2 (b d-a e)^4}{e^6}-\frac {6 b (b d-a e)^5}{e^6 (d+e x)}+\frac {(a e-b d)^6}{e^6 (d+e x)^2}+\frac {b^6 (d+e x)^4}{e^6}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {3 b^5 (d+e x)^4 (b d-a e)}{2 e^7}+\frac {5 b^4 (d+e x)^3 (b d-a e)^2}{e^7}-\frac {10 b^3 (d+e x)^2 (b d-a e)^3}{e^7}+\frac {15 b^2 x (b d-a e)^4}{e^6}-\frac {(b d-a e)^6}{e^7 (d+e x)}-\frac {6 b (b d-a e)^5 \log (d+e x)}{e^7}+\frac {b^6 (d+e x)^5}{5 e^7}\) |
Input:
Int[(a^2 + 2*a*b*x + b^2*x^2)^3/(d + e*x)^2,x]
Output:
(15*b^2*(b*d - a*e)^4*x)/e^6 - (b*d - a*e)^6/(e^7*(d + e*x)) - (10*b^3*(b* d - a*e)^3*(d + e*x)^2)/e^7 + (5*b^4*(b*d - a*e)^2*(d + e*x)^3)/e^7 - (3*b ^5*(b*d - a*e)*(d + e*x)^4)/(2*e^7) + (b^6*(d + e*x)^5)/(5*e^7) - (6*b*(b* d - a*e)^5*Log[d + e*x])/e^7
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[((d_.) + (e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_ Symbol] :> Simp[1/c^p Int[(d + e*x)^m*(b/2 + c*x)^(2*p), x], x] /; FreeQ[ {a, b, c, d, e, m}, x] && EqQ[b^2 - 4*a*c, 0] && IntegerQ[p]
Leaf count of result is larger than twice the leaf count of optimal. \(344\) vs. \(2(152)=304\).
Time = 1.10 (sec) , antiderivative size = 345, normalized size of antiderivative = 2.21
method | result | size |
norman | \(\frac {\frac {b^{3} \left (10 e^{3} a^{3}-10 a^{2} b d \,e^{2}+5 a \,b^{2} d^{2} e -b^{3} d^{3}\right ) x^{3}}{e^{4}}+\frac {\left (a^{6} e^{6}-6 a^{5} b d \,e^{5}+30 a^{4} b^{2} d^{2} e^{4}-60 a^{3} b^{3} d^{3} e^{3}+60 a^{2} b^{4} d^{4} e^{2}-30 a \,b^{5} d^{5} e +6 b^{6} d^{6}\right ) x}{d \,e^{6}}+\frac {b^{6} x^{6}}{5 e}+\frac {3 b^{2} \left (5 a^{4} e^{4}-10 a^{3} b d \,e^{3}+10 a^{2} b^{2} d^{2} e^{2}-5 a \,b^{3} d^{3} e +b^{4} d^{4}\right ) x^{2}}{e^{5}}+\frac {b^{4} \left (10 e^{2} a^{2}-5 a b d e +b^{2} d^{2}\right ) x^{4}}{2 e^{3}}+\frac {3 b^{5} \left (5 a e -b d \right ) x^{5}}{10 e^{2}}}{e x +d}+\frac {6 b \left (e^{5} a^{5}-5 a^{4} b d \,e^{4}+10 a^{3} b^{2} d^{2} e^{3}-10 a^{2} b^{3} d^{3} e^{2}+5 a \,b^{4} d^{4} e -b^{5} d^{5}\right ) \ln \left (e x +d \right )}{e^{7}}\) | \(345\) |
default | \(\frac {b^{2} \left (\frac {1}{5} b^{4} x^{5} e^{4}+\frac {3}{2} x^{4} a \,b^{3} e^{4}-\frac {1}{2} x^{4} b^{4} d \,e^{3}+5 x^{3} a^{2} b^{2} e^{4}-4 x^{3} a \,b^{3} d \,e^{3}+x^{3} b^{4} d^{2} e^{2}+10 x^{2} a^{3} b \,e^{4}-15 x^{2} a^{2} b^{2} d \,e^{3}+9 x^{2} a \,b^{3} d^{2} e^{2}-2 x^{2} b^{4} d^{3} e +15 a^{4} e^{4} x -40 a^{3} b d \,e^{3} x +45 a^{2} b^{2} d^{2} e^{2} x -24 a \,b^{3} d^{3} e x +5 b^{4} d^{4} x \right )}{e^{6}}+\frac {6 b \left (e^{5} a^{5}-5 a^{4} b d \,e^{4}+10 a^{3} b^{2} d^{2} e^{3}-10 a^{2} b^{3} d^{3} e^{2}+5 a \,b^{4} d^{4} e -b^{5} d^{5}\right ) \ln \left (e x +d \right )}{e^{7}}-\frac {a^{6} e^{6}-6 a^{5} b d \,e^{5}+15 a^{4} b^{2} d^{2} e^{4}-20 a^{3} b^{3} d^{3} e^{3}+15 a^{2} b^{4} d^{4} e^{2}-6 a \,b^{5} d^{5} e +b^{6} d^{6}}{e^{7} \left (e x +d \right )}\) | \(359\) |
risch | \(-\frac {4 b^{5} x^{3} a d}{e^{3}}-\frac {15 b^{4} x^{2} a^{2} d}{e^{3}}-\frac {15 a^{4} b^{2} d^{2}}{e^{3} \left (e x +d \right )}+\frac {20 a^{3} b^{3} d^{3}}{e^{4} \left (e x +d \right )}-\frac {15 a^{2} b^{4} d^{4}}{e^{5} \left (e x +d \right )}+\frac {6 a \,b^{5} d^{5}}{e^{6} \left (e x +d \right )}+\frac {9 b^{5} x^{2} a \,d^{2}}{e^{4}}-\frac {40 b^{3} a^{3} d x}{e^{3}}+\frac {45 b^{4} a^{2} d^{2} x}{e^{4}}-\frac {24 b^{5} a \,d^{3} x}{e^{5}}-\frac {30 b^{2} \ln \left (e x +d \right ) a^{4} d}{e^{3}}+\frac {60 b^{3} \ln \left (e x +d \right ) a^{3} d^{2}}{e^{4}}-\frac {60 b^{4} \ln \left (e x +d \right ) a^{2} d^{3}}{e^{5}}+\frac {30 b^{5} \ln \left (e x +d \right ) a \,d^{4}}{e^{6}}+\frac {6 a^{5} b d}{e^{2} \left (e x +d \right )}+\frac {3 b^{5} x^{4} a}{2 e^{2}}-\frac {b^{6} x^{4} d}{2 e^{3}}+\frac {5 b^{4} x^{3} a^{2}}{e^{2}}+\frac {b^{6} x^{3} d^{2}}{e^{4}}+\frac {10 b^{3} x^{2} a^{3}}{e^{2}}-\frac {2 b^{6} x^{2} d^{3}}{e^{5}}+\frac {15 b^{2} a^{4} x}{e^{2}}+\frac {5 b^{6} d^{4} x}{e^{6}}+\frac {6 b \ln \left (e x +d \right ) a^{5}}{e^{2}}-\frac {6 b^{6} \ln \left (e x +d \right ) d^{5}}{e^{7}}-\frac {b^{6} d^{6}}{e^{7} \left (e x +d \right )}+\frac {b^{6} x^{5}}{5 e^{2}}-\frac {a^{6}}{e \left (e x +d \right )}\) | \(440\) |
parallelrisch | \(\frac {300 a \,b^{5} d^{5} e +60 a^{5} b d \,e^{5}+600 a^{3} b^{3} d^{3} e^{3}-300 a^{4} b^{2} d^{2} e^{4}-600 \ln \left (e x +d \right ) x \,a^{2} b^{4} d^{3} e^{3}-600 a^{2} b^{4} d^{4} e^{2}+60 \ln \left (e x +d \right ) x \,a^{5} b \,e^{6}-60 \ln \left (e x +d \right ) x \,b^{6} d^{5} e -60 b^{6} d^{6}+600 \ln \left (e x +d \right ) x \,a^{3} b^{3} d^{2} e^{4}-300 \ln \left (e x +d \right ) x \,a^{4} b^{2} d \,e^{5}+300 \ln \left (e x +d \right ) x a \,b^{5} d^{4} e^{2}+50 x^{3} a \,b^{5} d^{2} e^{4}-300 x^{2} a^{3} b^{3} d \,e^{5}+300 x^{2} a^{2} b^{4} d^{2} e^{4}-150 x^{2} a \,b^{5} d^{3} e^{3}+60 \ln \left (e x +d \right ) a^{5} b d \,e^{5}-300 \ln \left (e x +d \right ) a^{4} b^{2} d^{2} e^{4}+600 \ln \left (e x +d \right ) a^{3} b^{3} d^{3} e^{3}-600 \ln \left (e x +d \right ) a^{2} b^{4} d^{4} e^{2}+300 \ln \left (e x +d \right ) a \,b^{5} d^{5} e +100 x^{3} a^{3} b^{3} e^{6}-10 x^{3} b^{6} d^{3} e^{3}+150 x^{2} a^{4} b^{2} e^{6}+30 x^{2} b^{6} d^{4} e^{2}-25 x^{4} a \,b^{5} d \,e^{5}-100 x^{3} a^{2} b^{4} d \,e^{5}-10 a^{6} e^{6}+15 x^{5} a \,b^{5} e^{6}-3 x^{5} b^{6} d \,e^{5}+50 x^{4} a^{2} b^{4} e^{6}+5 x^{4} b^{6} d^{2} e^{4}-60 \ln \left (e x +d \right ) b^{6} d^{6}+2 x^{6} b^{6} e^{6}}{10 e^{7} \left (e x +d \right )}\) | \(519\) |
Input:
int((b^2*x^2+2*a*b*x+a^2)^3/(e*x+d)^2,x,method=_RETURNVERBOSE)
Output:
(b^3*(10*a^3*e^3-10*a^2*b*d*e^2+5*a*b^2*d^2*e-b^3*d^3)/e^4*x^3+(a^6*e^6-6* a^5*b*d*e^5+30*a^4*b^2*d^2*e^4-60*a^3*b^3*d^3*e^3+60*a^2*b^4*d^4*e^2-30*a* b^5*d^5*e+6*b^6*d^6)/d/e^6*x+1/5/e*b^6*x^6+3*b^2*(5*a^4*e^4-10*a^3*b*d*e^3 +10*a^2*b^2*d^2*e^2-5*a*b^3*d^3*e+b^4*d^4)/e^5*x^2+1/2*b^4*(10*a^2*e^2-5*a *b*d*e+b^2*d^2)/e^3*x^4+3/10*b^5*(5*a*e-b*d)/e^2*x^5)/(e*x+d)+6*b/e^7*(a^5 *e^5-5*a^4*b*d*e^4+10*a^3*b^2*d^2*e^3-10*a^2*b^3*d^3*e^2+5*a*b^4*d^4*e-b^5 *d^5)*ln(e*x+d)
Leaf count of result is larger than twice the leaf count of optimal. 496 vs. \(2 (152) = 304\).
Time = 0.08 (sec) , antiderivative size = 496, normalized size of antiderivative = 3.18 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx=\frac {2 \, b^{6} e^{6} x^{6} - 10 \, b^{6} d^{6} + 60 \, a b^{5} d^{5} e - 150 \, a^{2} b^{4} d^{4} e^{2} + 200 \, a^{3} b^{3} d^{3} e^{3} - 150 \, a^{4} b^{2} d^{2} e^{4} + 60 \, a^{5} b d e^{5} - 10 \, a^{6} e^{6} - 3 \, {\left (b^{6} d e^{5} - 5 \, a b^{5} e^{6}\right )} x^{5} + 5 \, {\left (b^{6} d^{2} e^{4} - 5 \, a b^{5} d e^{5} + 10 \, a^{2} b^{4} e^{6}\right )} x^{4} - 10 \, {\left (b^{6} d^{3} e^{3} - 5 \, a b^{5} d^{2} e^{4} + 10 \, a^{2} b^{4} d e^{5} - 10 \, a^{3} b^{3} e^{6}\right )} x^{3} + 30 \, {\left (b^{6} d^{4} e^{2} - 5 \, a b^{5} d^{3} e^{3} + 10 \, a^{2} b^{4} d^{2} e^{4} - 10 \, a^{3} b^{3} d e^{5} + 5 \, a^{4} b^{2} e^{6}\right )} x^{2} + 10 \, {\left (5 \, b^{6} d^{5} e - 24 \, a b^{5} d^{4} e^{2} + 45 \, a^{2} b^{4} d^{3} e^{3} - 40 \, a^{3} b^{3} d^{2} e^{4} + 15 \, a^{4} b^{2} d e^{5}\right )} x - 60 \, {\left (b^{6} d^{6} - 5 \, a b^{5} d^{5} e + 10 \, a^{2} b^{4} d^{4} e^{2} - 10 \, a^{3} b^{3} d^{3} e^{3} + 5 \, a^{4} b^{2} d^{2} e^{4} - a^{5} b d e^{5} + {\left (b^{6} d^{5} e - 5 \, a b^{5} d^{4} e^{2} + 10 \, a^{2} b^{4} d^{3} e^{3} - 10 \, a^{3} b^{3} d^{2} e^{4} + 5 \, a^{4} b^{2} d e^{5} - a^{5} b e^{6}\right )} x\right )} \log \left (e x + d\right )}{10 \, {\left (e^{8} x + d e^{7}\right )}} \] Input:
integrate((b^2*x^2+2*a*b*x+a^2)^3/(e*x+d)^2,x, algorithm="fricas")
Output:
1/10*(2*b^6*e^6*x^6 - 10*b^6*d^6 + 60*a*b^5*d^5*e - 150*a^2*b^4*d^4*e^2 + 200*a^3*b^3*d^3*e^3 - 150*a^4*b^2*d^2*e^4 + 60*a^5*b*d*e^5 - 10*a^6*e^6 - 3*(b^6*d*e^5 - 5*a*b^5*e^6)*x^5 + 5*(b^6*d^2*e^4 - 5*a*b^5*d*e^5 + 10*a^2* b^4*e^6)*x^4 - 10*(b^6*d^3*e^3 - 5*a*b^5*d^2*e^4 + 10*a^2*b^4*d*e^5 - 10*a ^3*b^3*e^6)*x^3 + 30*(b^6*d^4*e^2 - 5*a*b^5*d^3*e^3 + 10*a^2*b^4*d^2*e^4 - 10*a^3*b^3*d*e^5 + 5*a^4*b^2*e^6)*x^2 + 10*(5*b^6*d^5*e - 24*a*b^5*d^4*e^ 2 + 45*a^2*b^4*d^3*e^3 - 40*a^3*b^3*d^2*e^4 + 15*a^4*b^2*d*e^5)*x - 60*(b^ 6*d^6 - 5*a*b^5*d^5*e + 10*a^2*b^4*d^4*e^2 - 10*a^3*b^3*d^3*e^3 + 5*a^4*b^ 2*d^2*e^4 - a^5*b*d*e^5 + (b^6*d^5*e - 5*a*b^5*d^4*e^2 + 10*a^2*b^4*d^3*e^ 3 - 10*a^3*b^3*d^2*e^4 + 5*a^4*b^2*d*e^5 - a^5*b*e^6)*x)*log(e*x + d))/(e^ 8*x + d*e^7)
Leaf count of result is larger than twice the leaf count of optimal. 311 vs. \(2 (143) = 286\).
Time = 0.59 (sec) , antiderivative size = 311, normalized size of antiderivative = 1.99 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx=\frac {b^{6} x^{5}}{5 e^{2}} + \frac {6 b \left (a e - b d\right )^{5} \log {\left (d + e x \right )}}{e^{7}} + x^{4} \cdot \left (\frac {3 a b^{5}}{2 e^{2}} - \frac {b^{6} d}{2 e^{3}}\right ) + x^{3} \cdot \left (\frac {5 a^{2} b^{4}}{e^{2}} - \frac {4 a b^{5} d}{e^{3}} + \frac {b^{6} d^{2}}{e^{4}}\right ) + x^{2} \cdot \left (\frac {10 a^{3} b^{3}}{e^{2}} - \frac {15 a^{2} b^{4} d}{e^{3}} + \frac {9 a b^{5} d^{2}}{e^{4}} - \frac {2 b^{6} d^{3}}{e^{5}}\right ) + x \left (\frac {15 a^{4} b^{2}}{e^{2}} - \frac {40 a^{3} b^{3} d}{e^{3}} + \frac {45 a^{2} b^{4} d^{2}}{e^{4}} - \frac {24 a b^{5} d^{3}}{e^{5}} + \frac {5 b^{6} d^{4}}{e^{6}}\right ) + \frac {- a^{6} e^{6} + 6 a^{5} b d e^{5} - 15 a^{4} b^{2} d^{2} e^{4} + 20 a^{3} b^{3} d^{3} e^{3} - 15 a^{2} b^{4} d^{4} e^{2} + 6 a b^{5} d^{5} e - b^{6} d^{6}}{d e^{7} + e^{8} x} \] Input:
integrate((b**2*x**2+2*a*b*x+a**2)**3/(e*x+d)**2,x)
Output:
b**6*x**5/(5*e**2) + 6*b*(a*e - b*d)**5*log(d + e*x)/e**7 + x**4*(3*a*b**5 /(2*e**2) - b**6*d/(2*e**3)) + x**3*(5*a**2*b**4/e**2 - 4*a*b**5*d/e**3 + b**6*d**2/e**4) + x**2*(10*a**3*b**3/e**2 - 15*a**2*b**4*d/e**3 + 9*a*b**5 *d**2/e**4 - 2*b**6*d**3/e**5) + x*(15*a**4*b**2/e**2 - 40*a**3*b**3*d/e** 3 + 45*a**2*b**4*d**2/e**4 - 24*a*b**5*d**3/e**5 + 5*b**6*d**4/e**6) + (-a **6*e**6 + 6*a**5*b*d*e**5 - 15*a**4*b**2*d**2*e**4 + 20*a**3*b**3*d**3*e* *3 - 15*a**2*b**4*d**4*e**2 + 6*a*b**5*d**5*e - b**6*d**6)/(d*e**7 + e**8* x)
Leaf count of result is larger than twice the leaf count of optimal. 357 vs. \(2 (152) = 304\).
Time = 0.04 (sec) , antiderivative size = 357, normalized size of antiderivative = 2.29 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx=-\frac {b^{6} d^{6} - 6 \, a b^{5} d^{5} e + 15 \, a^{2} b^{4} d^{4} e^{2} - 20 \, a^{3} b^{3} d^{3} e^{3} + 15 \, a^{4} b^{2} d^{2} e^{4} - 6 \, a^{5} b d e^{5} + a^{6} e^{6}}{e^{8} x + d e^{7}} + \frac {2 \, b^{6} e^{4} x^{5} - 5 \, {\left (b^{6} d e^{3} - 3 \, a b^{5} e^{4}\right )} x^{4} + 10 \, {\left (b^{6} d^{2} e^{2} - 4 \, a b^{5} d e^{3} + 5 \, a^{2} b^{4} e^{4}\right )} x^{3} - 10 \, {\left (2 \, b^{6} d^{3} e - 9 \, a b^{5} d^{2} e^{2} + 15 \, a^{2} b^{4} d e^{3} - 10 \, a^{3} b^{3} e^{4}\right )} x^{2} + 10 \, {\left (5 \, b^{6} d^{4} - 24 \, a b^{5} d^{3} e + 45 \, a^{2} b^{4} d^{2} e^{2} - 40 \, a^{3} b^{3} d e^{3} + 15 \, a^{4} b^{2} e^{4}\right )} x}{10 \, e^{6}} - \frac {6 \, {\left (b^{6} d^{5} - 5 \, a b^{5} d^{4} e + 10 \, a^{2} b^{4} d^{3} e^{2} - 10 \, a^{3} b^{3} d^{2} e^{3} + 5 \, a^{4} b^{2} d e^{4} - a^{5} b e^{5}\right )} \log \left (e x + d\right )}{e^{7}} \] Input:
integrate((b^2*x^2+2*a*b*x+a^2)^3/(e*x+d)^2,x, algorithm="maxima")
Output:
-(b^6*d^6 - 6*a*b^5*d^5*e + 15*a^2*b^4*d^4*e^2 - 20*a^3*b^3*d^3*e^3 + 15*a ^4*b^2*d^2*e^4 - 6*a^5*b*d*e^5 + a^6*e^6)/(e^8*x + d*e^7) + 1/10*(2*b^6*e^ 4*x^5 - 5*(b^6*d*e^3 - 3*a*b^5*e^4)*x^4 + 10*(b^6*d^2*e^2 - 4*a*b^5*d*e^3 + 5*a^2*b^4*e^4)*x^3 - 10*(2*b^6*d^3*e - 9*a*b^5*d^2*e^2 + 15*a^2*b^4*d*e^ 3 - 10*a^3*b^3*e^4)*x^2 + 10*(5*b^6*d^4 - 24*a*b^5*d^3*e + 45*a^2*b^4*d^2* e^2 - 40*a^3*b^3*d*e^3 + 15*a^4*b^2*e^4)*x)/e^6 - 6*(b^6*d^5 - 5*a*b^5*d^4 *e + 10*a^2*b^4*d^3*e^2 - 10*a^3*b^3*d^2*e^3 + 5*a^4*b^2*d*e^4 - a^5*b*e^5 )*log(e*x + d)/e^7
Leaf count of result is larger than twice the leaf count of optimal. 446 vs. \(2 (152) = 304\).
Time = 0.24 (sec) , antiderivative size = 446, normalized size of antiderivative = 2.86 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx=\frac {{\left (2 \, b^{6} - \frac {15 \, {\left (b^{6} d e - a b^{5} e^{2}\right )}}{{\left (e x + d\right )} e} + \frac {50 \, {\left (b^{6} d^{2} e^{2} - 2 \, a b^{5} d e^{3} + a^{2} b^{4} e^{4}\right )}}{{\left (e x + d\right )}^{2} e^{2}} - \frac {100 \, {\left (b^{6} d^{3} e^{3} - 3 \, a b^{5} d^{2} e^{4} + 3 \, a^{2} b^{4} d e^{5} - a^{3} b^{3} e^{6}\right )}}{{\left (e x + d\right )}^{3} e^{3}} + \frac {150 \, {\left (b^{6} d^{4} e^{4} - 4 \, a b^{5} d^{3} e^{5} + 6 \, a^{2} b^{4} d^{2} e^{6} - 4 \, a^{3} b^{3} d e^{7} + a^{4} b^{2} e^{8}\right )}}{{\left (e x + d\right )}^{4} e^{4}}\right )} {\left (e x + d\right )}^{5}}{10 \, e^{7}} + \frac {6 \, {\left (b^{6} d^{5} - 5 \, a b^{5} d^{4} e + 10 \, a^{2} b^{4} d^{3} e^{2} - 10 \, a^{3} b^{3} d^{2} e^{3} + 5 \, a^{4} b^{2} d e^{4} - a^{5} b e^{5}\right )} \log \left (\frac {{\left | e x + d \right |}}{{\left (e x + d\right )}^{2} {\left | e \right |}}\right )}{e^{7}} - \frac {\frac {b^{6} d^{6} e^{5}}{e x + d} - \frac {6 \, a b^{5} d^{5} e^{6}}{e x + d} + \frac {15 \, a^{2} b^{4} d^{4} e^{7}}{e x + d} - \frac {20 \, a^{3} b^{3} d^{3} e^{8}}{e x + d} + \frac {15 \, a^{4} b^{2} d^{2} e^{9}}{e x + d} - \frac {6 \, a^{5} b d e^{10}}{e x + d} + \frac {a^{6} e^{11}}{e x + d}}{e^{12}} \] Input:
integrate((b^2*x^2+2*a*b*x+a^2)^3/(e*x+d)^2,x, algorithm="giac")
Output:
1/10*(2*b^6 - 15*(b^6*d*e - a*b^5*e^2)/((e*x + d)*e) + 50*(b^6*d^2*e^2 - 2 *a*b^5*d*e^3 + a^2*b^4*e^4)/((e*x + d)^2*e^2) - 100*(b^6*d^3*e^3 - 3*a*b^5 *d^2*e^4 + 3*a^2*b^4*d*e^5 - a^3*b^3*e^6)/((e*x + d)^3*e^3) + 150*(b^6*d^4 *e^4 - 4*a*b^5*d^3*e^5 + 6*a^2*b^4*d^2*e^6 - 4*a^3*b^3*d*e^7 + a^4*b^2*e^8 )/((e*x + d)^4*e^4))*(e*x + d)^5/e^7 + 6*(b^6*d^5 - 5*a*b^5*d^4*e + 10*a^2 *b^4*d^3*e^2 - 10*a^3*b^3*d^2*e^3 + 5*a^4*b^2*d*e^4 - a^5*b*e^5)*log(abs(e *x + d)/((e*x + d)^2*abs(e)))/e^7 - (b^6*d^6*e^5/(e*x + d) - 6*a*b^5*d^5*e ^6/(e*x + d) + 15*a^2*b^4*d^4*e^7/(e*x + d) - 20*a^3*b^3*d^3*e^8/(e*x + d) + 15*a^4*b^2*d^2*e^9/(e*x + d) - 6*a^5*b*d*e^10/(e*x + d) + a^6*e^11/(e*x + d))/e^12
Time = 8.72 (sec) , antiderivative size = 523, normalized size of antiderivative = 3.35 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx=x^4\,\left (\frac {3\,a\,b^5}{2\,e^2}-\frac {b^6\,d}{2\,e^3}\right )-x^3\,\left (\frac {2\,d\,\left (\frac {6\,a\,b^5}{e^2}-\frac {2\,b^6\,d}{e^3}\right )}{3\,e}-\frac {5\,a^2\,b^4}{e^2}+\frac {b^6\,d^2}{3\,e^4}\right )+x^2\,\left (\frac {10\,a^3\,b^3}{e^2}+\frac {d\,\left (\frac {2\,d\,\left (\frac {6\,a\,b^5}{e^2}-\frac {2\,b^6\,d}{e^3}\right )}{e}-\frac {15\,a^2\,b^4}{e^2}+\frac {b^6\,d^2}{e^4}\right )}{e}-\frac {d^2\,\left (\frac {6\,a\,b^5}{e^2}-\frac {2\,b^6\,d}{e^3}\right )}{2\,e^2}\right )+x\,\left (\frac {d^2\,\left (\frac {2\,d\,\left (\frac {6\,a\,b^5}{e^2}-\frac {2\,b^6\,d}{e^3}\right )}{e}-\frac {15\,a^2\,b^4}{e^2}+\frac {b^6\,d^2}{e^4}\right )}{e^2}-\frac {2\,d\,\left (\frac {20\,a^3\,b^3}{e^2}+\frac {2\,d\,\left (\frac {2\,d\,\left (\frac {6\,a\,b^5}{e^2}-\frac {2\,b^6\,d}{e^3}\right )}{e}-\frac {15\,a^2\,b^4}{e^2}+\frac {b^6\,d^2}{e^4}\right )}{e}-\frac {d^2\,\left (\frac {6\,a\,b^5}{e^2}-\frac {2\,b^6\,d}{e^3}\right )}{e^2}\right )}{e}+\frac {15\,a^4\,b^2}{e^2}\right )-\frac {\ln \left (d+e\,x\right )\,\left (-6\,a^5\,b\,e^5+30\,a^4\,b^2\,d\,e^4-60\,a^3\,b^3\,d^2\,e^3+60\,a^2\,b^4\,d^3\,e^2-30\,a\,b^5\,d^4\,e+6\,b^6\,d^5\right )}{e^7}+\frac {b^6\,x^5}{5\,e^2}-\frac {a^6\,e^6-6\,a^5\,b\,d\,e^5+15\,a^4\,b^2\,d^2\,e^4-20\,a^3\,b^3\,d^3\,e^3+15\,a^2\,b^4\,d^4\,e^2-6\,a\,b^5\,d^5\,e+b^6\,d^6}{e\,\left (x\,e^7+d\,e^6\right )} \] Input:
int((a^2 + b^2*x^2 + 2*a*b*x)^3/(d + e*x)^2,x)
Output:
x^4*((3*a*b^5)/(2*e^2) - (b^6*d)/(2*e^3)) - x^3*((2*d*((6*a*b^5)/e^2 - (2* b^6*d)/e^3))/(3*e) - (5*a^2*b^4)/e^2 + (b^6*d^2)/(3*e^4)) + x^2*((10*a^3*b ^3)/e^2 + (d*((2*d*((6*a*b^5)/e^2 - (2*b^6*d)/e^3))/e - (15*a^2*b^4)/e^2 + (b^6*d^2)/e^4))/e - (d^2*((6*a*b^5)/e^2 - (2*b^6*d)/e^3))/(2*e^2)) + x*(( d^2*((2*d*((6*a*b^5)/e^2 - (2*b^6*d)/e^3))/e - (15*a^2*b^4)/e^2 + (b^6*d^2 )/e^4))/e^2 - (2*d*((20*a^3*b^3)/e^2 + (2*d*((2*d*((6*a*b^5)/e^2 - (2*b^6* d)/e^3))/e - (15*a^2*b^4)/e^2 + (b^6*d^2)/e^4))/e - (d^2*((6*a*b^5)/e^2 - (2*b^6*d)/e^3))/e^2))/e + (15*a^4*b^2)/e^2) - (log(d + e*x)*(6*b^6*d^5 - 6 *a^5*b*e^5 + 30*a^4*b^2*d*e^4 + 60*a^2*b^4*d^3*e^2 - 60*a^3*b^3*d^2*e^3 - 30*a*b^5*d^4*e))/e^7 + (b^6*x^5)/(5*e^2) - (a^6*e^6 + b^6*d^6 + 15*a^2*b^4 *d^4*e^2 - 20*a^3*b^3*d^3*e^3 + 15*a^4*b^2*d^2*e^4 - 6*a*b^5*d^5*e - 6*a^5 *b*d*e^5)/(e*(d*e^6 + e^7*x))
Time = 0.23 (sec) , antiderivative size = 549, normalized size of antiderivative = 3.52 \[ \int \frac {\left (a^2+2 a b x+b^2 x^2\right )^3}{(d+e x)^2} \, dx=\frac {60 \,\mathrm {log}\left (e x +d \right ) a^{5} b \,d^{2} e^{5}-300 \,\mathrm {log}\left (e x +d \right ) a^{4} b^{2} d^{3} e^{4}+600 \,\mathrm {log}\left (e x +d \right ) a^{3} b^{3} d^{4} e^{3}-600 \,\mathrm {log}\left (e x +d \right ) a^{2} b^{4} d^{5} e^{2}+300 \,\mathrm {log}\left (e x +d \right ) a \,b^{5} d^{6} e -60 \,\mathrm {log}\left (e x +d \right ) b^{6} d^{6} e x -60 a^{5} b d \,e^{6} x +300 a^{4} b^{2} d^{2} e^{5} x +150 a^{4} b^{2} d \,e^{6} x^{2}-600 a^{3} b^{3} d^{3} e^{4} x -300 a^{3} b^{3} d^{2} e^{5} x^{2}+100 a^{3} b^{3} d \,e^{6} x^{3}+600 a^{2} b^{4} d^{4} e^{3} x +300 a^{2} b^{4} d^{3} e^{4} x^{2}-100 a^{2} b^{4} d^{2} e^{5} x^{3}+50 a^{2} b^{4} d \,e^{6} x^{4}-300 a \,b^{5} d^{5} e^{2} x -150 a \,b^{5} d^{4} e^{3} x^{2}+50 a \,b^{5} d^{3} e^{4} x^{3}-25 a \,b^{5} d^{2} e^{5} x^{4}+15 a \,b^{5} d \,e^{6} x^{5}+60 b^{6} d^{6} e x +30 b^{6} d^{5} e^{2} x^{2}-10 b^{6} d^{4} e^{3} x^{3}+5 b^{6} d^{3} e^{4} x^{4}-3 b^{6} d^{2} e^{5} x^{5}+2 b^{6} d \,e^{6} x^{6}-60 \,\mathrm {log}\left (e x +d \right ) b^{6} d^{7}+10 a^{6} e^{7} x +60 \,\mathrm {log}\left (e x +d \right ) a^{5} b d \,e^{6} x -300 \,\mathrm {log}\left (e x +d \right ) a^{4} b^{2} d^{2} e^{5} x +600 \,\mathrm {log}\left (e x +d \right ) a^{3} b^{3} d^{3} e^{4} x -600 \,\mathrm {log}\left (e x +d \right ) a^{2} b^{4} d^{4} e^{3} x +300 \,\mathrm {log}\left (e x +d \right ) a \,b^{5} d^{5} e^{2} x}{10 d \,e^{7} \left (e x +d \right )} \] Input:
int((b^2*x^2+2*a*b*x+a^2)^3/(e*x+d)^2,x)
Output:
(60*log(d + e*x)*a**5*b*d**2*e**5 + 60*log(d + e*x)*a**5*b*d*e**6*x - 300* log(d + e*x)*a**4*b**2*d**3*e**4 - 300*log(d + e*x)*a**4*b**2*d**2*e**5*x + 600*log(d + e*x)*a**3*b**3*d**4*e**3 + 600*log(d + e*x)*a**3*b**3*d**3*e **4*x - 600*log(d + e*x)*a**2*b**4*d**5*e**2 - 600*log(d + e*x)*a**2*b**4* d**4*e**3*x + 300*log(d + e*x)*a*b**5*d**6*e + 300*log(d + e*x)*a*b**5*d** 5*e**2*x - 60*log(d + e*x)*b**6*d**7 - 60*log(d + e*x)*b**6*d**6*e*x + 10* a**6*e**7*x - 60*a**5*b*d*e**6*x + 300*a**4*b**2*d**2*e**5*x + 150*a**4*b* *2*d*e**6*x**2 - 600*a**3*b**3*d**3*e**4*x - 300*a**3*b**3*d**2*e**5*x**2 + 100*a**3*b**3*d*e**6*x**3 + 600*a**2*b**4*d**4*e**3*x + 300*a**2*b**4*d* *3*e**4*x**2 - 100*a**2*b**4*d**2*e**5*x**3 + 50*a**2*b**4*d*e**6*x**4 - 3 00*a*b**5*d**5*e**2*x - 150*a*b**5*d**4*e**3*x**2 + 50*a*b**5*d**3*e**4*x* *3 - 25*a*b**5*d**2*e**5*x**4 + 15*a*b**5*d*e**6*x**5 + 60*b**6*d**6*e*x + 30*b**6*d**5*e**2*x**2 - 10*b**6*d**4*e**3*x**3 + 5*b**6*d**3*e**4*x**4 - 3*b**6*d**2*e**5*x**5 + 2*b**6*d*e**6*x**6)/(10*d*e**7*(d + e*x))