Integrand size = 20, antiderivative size = 256 \[ \int \frac {\left (a+b x+c x^2\right )^3}{(d+e x)^2} \, dx=\frac {3 \left (c d^2-b d e+a e^2\right ) \left (5 c^2 d^2+b^2 e^2-c e (5 b d-a e)\right ) x}{e^6}-\frac {\left (c d^2-b d e+a e^2\right )^3}{e^7 (d+e x)}-\frac {(2 c d-b e) \left (10 c^2 d^2+b^2 e^2-2 c e (5 b d-3 a e)\right ) (d+e x)^2}{2 e^7}+\frac {c \left (5 c^2 d^2+b^2 e^2-c e (5 b d-a e)\right ) (d+e x)^3}{e^7}-\frac {3 c^2 (2 c d-b e) (d+e x)^4}{4 e^7}+\frac {c^3 (d+e x)^5}{5 e^7}-\frac {3 (2 c d-b e) \left (c d^2-b d e+a e^2\right )^2 \log (d+e x)}{e^7} \] Output:
3*(a*e^2-b*d*e+c*d^2)*(5*c^2*d^2+b^2*e^2-c*e*(-a*e+5*b*d))*x/e^6-(a*e^2-b* d*e+c*d^2)^3/e^7/(e*x+d)-1/2*(-b*e+2*c*d)*(10*c^2*d^2+b^2*e^2-2*c*e*(-3*a* e+5*b*d))*(e*x+d)^2/e^7+c*(5*c^2*d^2+b^2*e^2-c*e*(-a*e+5*b*d))*(e*x+d)^3/e ^7-3/4*c^2*(-b*e+2*c*d)*(e*x+d)^4/e^7+1/5*c^3*(e*x+d)^5/e^7-3*(-b*e+2*c*d) *(a*e^2-b*d*e+c*d^2)^2*ln(e*x+d)/e^7
Time = 0.08 (sec) , antiderivative size = 255, normalized size of antiderivative = 1.00 \[ \int \frac {\left (a+b x+c x^2\right )^3}{(d+e x)^2} \, dx=\frac {20 e \left (5 c^3 d^4+3 c^2 d^2 e (-4 b d+3 a e)+b^2 e^3 (-2 b d+3 a e)+3 c e^2 \left (3 b^2 d^2-4 a b d e+a^2 e^2\right )\right ) x+10 e^2 (-c d+b e) \left (4 c^2 d^2+b^2 e^2+c e (-5 b d+6 a e)\right ) x^2+20 c e^3 \left (c^2 d^2+b^2 e^2+c e (-2 b d+a e)\right ) x^3+5 c^2 e^4 (-2 c d+3 b e) x^4+4 c^3 e^5 x^5-\frac {20 \left (c d^2+e (-b d+a e)\right )^3}{d+e x}-60 (2 c d-b e) \left (c d^2+e (-b d+a e)\right )^2 \log (d+e x)}{20 e^7} \] Input:
Integrate[(a + b*x + c*x^2)^3/(d + e*x)^2,x]
Output:
(20*e*(5*c^3*d^4 + 3*c^2*d^2*e*(-4*b*d + 3*a*e) + b^2*e^3*(-2*b*d + 3*a*e) + 3*c*e^2*(3*b^2*d^2 - 4*a*b*d*e + a^2*e^2))*x + 10*e^2*(-(c*d) + b*e)*(4 *c^2*d^2 + b^2*e^2 + c*e*(-5*b*d + 6*a*e))*x^2 + 20*c*e^3*(c^2*d^2 + b^2*e ^2 + c*e*(-2*b*d + a*e))*x^3 + 5*c^2*e^4*(-2*c*d + 3*b*e)*x^4 + 4*c^3*e^5* x^5 - (20*(c*d^2 + e*(-(b*d) + a*e))^3)/(d + e*x) - 60*(2*c*d - b*e)*(c*d^ 2 + e*(-(b*d) + a*e))^2*Log[d + e*x])/(20*e^7)
Time = 0.55 (sec) , antiderivative size = 256, 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.100, Rules used = {1140, 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+b x+c x^2\right )^3}{(d+e x)^2} \, dx\) |
\(\Big \downarrow \) 1140 |
\(\displaystyle \int \left (\frac {3 c (d+e x)^2 \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{e^6}+\frac {(d+e x) (2 c d-b e) \left (2 c e (5 b d-3 a e)-b^2 e^2-10 c^2 d^2\right )}{e^6}+\frac {3 \left (a e^2-b d e+c d^2\right ) \left (a c e^2+b^2 e^2-5 b c d e+5 c^2 d^2\right )}{e^6}+\frac {3 (b e-2 c d) \left (a e^2-b d e+c d^2\right )^2}{e^6 (d+e x)}+\frac {\left (a e^2-b d e+c d^2\right )^3}{e^6 (d+e x)^2}-\frac {3 c^2 (d+e x)^3 (2 c d-b e)}{e^6}+\frac {c^3 (d+e x)^4}{e^6}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {c (d+e x)^3 \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{e^7}-\frac {(d+e x)^2 (2 c d-b e) \left (-2 c e (5 b d-3 a e)+b^2 e^2+10 c^2 d^2\right )}{2 e^7}+\frac {3 x \left (a e^2-b d e+c d^2\right ) \left (-c e (5 b d-a e)+b^2 e^2+5 c^2 d^2\right )}{e^6}-\frac {\left (a e^2-b d e+c d^2\right )^3}{e^7 (d+e x)}-\frac {3 (2 c d-b e) \log (d+e x) \left (a e^2-b d e+c d^2\right )^2}{e^7}-\frac {3 c^2 (d+e x)^4 (2 c d-b e)}{4 e^7}+\frac {c^3 (d+e x)^5}{5 e^7}\) |
Input:
Int[(a + b*x + c*x^2)^3/(d + e*x)^2,x]
Output:
(3*(c*d^2 - b*d*e + a*e^2)*(5*c^2*d^2 + b^2*e^2 - c*e*(5*b*d - a*e))*x)/e^ 6 - (c*d^2 - b*d*e + a*e^2)^3/(e^7*(d + e*x)) - ((2*c*d - b*e)*(10*c^2*d^2 + b^2*e^2 - 2*c*e*(5*b*d - 3*a*e))*(d + e*x)^2)/(2*e^7) + (c*(5*c^2*d^2 + b^2*e^2 - c*e*(5*b*d - a*e))*(d + e*x)^3)/e^7 - (3*c^2*(2*c*d - b*e)*(d + e*x)^4)/(4*e^7) + (c^3*(d + e*x)^5)/(5*e^7) - (3*(2*c*d - b*e)*(c*d^2 - b *d*e + a*e^2)^2*Log[d + e*x])/e^7
Int[((d_.) + (e_.)*(x_))^(m_.)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x _Symbol] :> Int[ExpandIntegrand[(d + e*x)^m*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m}, x] && IGtQ[p, 0]
Time = 0.90 (sec) , antiderivative size = 447, normalized size of antiderivative = 1.75
method | result | size |
norman | \(\frac {\frac {\left (e^{6} a^{3}-3 a^{2} b d \,e^{5}+6 d^{2} e^{4} a^{2} c +6 a \,b^{2} d^{2} e^{4}-18 a b c \,d^{3} e^{3}+12 d^{4} e^{2} a \,c^{2}-3 b^{3} d^{3} e^{3}+12 b^{2} c \,d^{4} e^{2}-15 b \,c^{2} d^{5} e +6 d^{6} c^{3}\right ) x}{d \,e^{6}}+\frac {c^{3} x^{6}}{5 e}+\frac {\left (6 a b c \,e^{3}-4 d \,e^{2} a \,c^{2}+b^{3} e^{3}-4 d \,e^{2} b^{2} c +5 d^{2} e b \,c^{2}-2 d^{3} c^{3}\right ) x^{3}}{2 e^{4}}+\frac {3 \left (2 e^{4} a^{2} c +2 a \,b^{2} e^{4}-6 a b c d \,e^{3}+4 d^{2} e^{2} a \,c^{2}-b^{3} d \,e^{3}+4 b^{2} c \,d^{2} e^{2}-5 b \,c^{2} d^{3} e +2 d^{4} c^{3}\right ) x^{2}}{2 e^{5}}+\frac {c \left (4 a c \,e^{2}+4 b^{2} e^{2}-5 b c d e +2 c^{2} d^{2}\right ) x^{4}}{4 e^{3}}+\frac {3 c^{2} \left (5 b e -2 c d \right ) x^{5}}{20 e^{2}}}{e x +d}+\frac {3 \left (a^{2} b \,e^{5}-2 d \,e^{4} a^{2} c -2 a \,b^{2} d \,e^{4}+6 a b c \,d^{2} e^{3}-4 d^{3} e^{2} a \,c^{2}+b^{3} d^{2} e^{3}-4 b^{2} c \,d^{3} e^{2}+5 b \,c^{2} d^{4} e -2 d^{5} c^{3}\right ) \ln \left (e x +d \right )}{e^{7}}\) | \(447\) |
default | \(\frac {\frac {1}{5} c^{3} x^{5} e^{4}+\frac {3}{4} b \,c^{2} e^{4} x^{4}-\frac {1}{2} c^{3} d \,e^{3} x^{4}+a \,c^{2} e^{4} x^{3}+b^{2} c \,e^{4} x^{3}-2 b \,c^{2} d \,e^{3} x^{3}+c^{3} d^{2} e^{2} x^{3}+3 a b c \,e^{4} x^{2}-3 a \,c^{2} d \,e^{3} x^{2}+\frac {1}{2} b^{3} e^{4} x^{2}-3 b^{2} c d \,e^{3} x^{2}+\frac {9}{2} b \,c^{2} d^{2} e^{2} x^{2}-2 c^{3} d^{3} e \,x^{2}+3 e^{4} a^{2} c x +3 a \,b^{2} e^{4} x -12 a b c d \,e^{3} x +9 d^{2} e^{2} a \,c^{2} x -2 d \,e^{3} b^{3} x +9 d^{2} e^{2} b^{2} c x -12 d^{3} e b \,c^{2} x +5 d^{4} c^{3} x}{e^{6}}+\frac {\left (3 a^{2} b \,e^{5}-6 d \,e^{4} a^{2} c -6 a \,b^{2} d \,e^{4}+18 a b c \,d^{2} e^{3}-12 d^{3} e^{2} a \,c^{2}+3 b^{3} d^{2} e^{3}-12 b^{2} c \,d^{3} e^{2}+15 b \,c^{2} d^{4} e -6 d^{5} c^{3}\right ) \ln \left (e x +d \right )}{e^{7}}-\frac {e^{6} a^{3}-3 a^{2} b d \,e^{5}+3 d^{2} e^{4} a^{2} c +3 a \,b^{2} d^{2} e^{4}-6 a b c \,d^{3} e^{3}+3 d^{4} e^{2} a \,c^{2}-b^{3} d^{3} e^{3}+3 b^{2} c \,d^{4} e^{2}-3 b \,c^{2} d^{5} e +d^{6} c^{3}}{e^{7} \left (e x +d \right )}\) | \(472\) |
risch | \(-\frac {3 d^{4} a \,c^{2}}{e^{5} \left (e x +d \right )}-\frac {3 b^{2} c \,d^{4}}{e^{5} \left (e x +d \right )}+\frac {3 b \,c^{2} d^{5}}{e^{6} \left (e x +d \right )}-\frac {3 a \,c^{2} d \,x^{2}}{e^{3}}-\frac {3 b^{2} c d \,x^{2}}{e^{3}}+\frac {9 b \,c^{2} d^{2} x^{2}}{2 e^{4}}+\frac {9 d^{2} a \,c^{2} x}{e^{4}}+\frac {9 d^{2} b^{2} c x}{e^{4}}-\frac {12 d^{3} b \,c^{2} x}{e^{5}}+\frac {3 a^{2} b d}{e^{2} \left (e x +d \right )}+\frac {b^{3} x^{2}}{2 e^{2}}-\frac {a^{3}}{e \left (e x +d \right )}-\frac {2 b \,c^{2} d \,x^{3}}{e^{3}}+\frac {3 a b c \,x^{2}}{e^{2}}-\frac {c^{3} d \,x^{4}}{2 e^{3}}-\frac {12 a b c d x}{e^{3}}+\frac {6 a b c \,d^{3}}{e^{4} \left (e x +d \right )}+\frac {18 \ln \left (e x +d \right ) a b c \,d^{2}}{e^{4}}+\frac {3 \ln \left (e x +d \right ) a^{2} b}{e^{2}}+\frac {3 \ln \left (e x +d \right ) b^{3} d^{2}}{e^{4}}-\frac {6 \ln \left (e x +d \right ) d^{5} c^{3}}{e^{7}}+\frac {c^{3} x^{5}}{5 e^{2}}-\frac {6 \ln \left (e x +d \right ) d \,a^{2} c}{e^{3}}-\frac {6 \ln \left (e x +d \right ) a \,b^{2} d}{e^{3}}-\frac {12 \ln \left (e x +d \right ) d^{3} a \,c^{2}}{e^{5}}-\frac {12 \ln \left (e x +d \right ) b^{2} c \,d^{3}}{e^{5}}+\frac {15 \ln \left (e x +d \right ) b \,c^{2} d^{4}}{e^{6}}-\frac {3 d^{2} a^{2} c}{e^{3} \left (e x +d \right )}-\frac {3 a \,b^{2} d^{2}}{e^{3} \left (e x +d \right )}+\frac {3 b \,c^{2} x^{4}}{4 e^{2}}+\frac {a \,c^{2} x^{3}}{e^{2}}+\frac {b^{2} c \,x^{3}}{e^{2}}+\frac {c^{3} d^{2} x^{3}}{e^{4}}-\frac {2 c^{3} d^{3} x^{2}}{e^{5}}+\frac {3 a^{2} c x}{e^{2}}+\frac {3 a \,b^{2} x}{e^{2}}-\frac {2 d \,b^{3} x}{e^{3}}+\frac {5 d^{4} c^{3} x}{e^{6}}+\frac {b^{3} d^{3}}{e^{4} \left (e x +d \right )}-\frac {d^{6} c^{3}}{e^{7} \left (e x +d \right )}\) | \(585\) |
parallelrisch | \(\frac {-240 d^{4} e^{2} a \,c^{2}-120 d^{2} e^{4} a^{2} c -120 \ln \left (e x +d \right ) x \,c^{3} d^{5} e -120 d^{6} c^{3}+60 a^{2} b d \,e^{5}-120 a \,b^{2} d^{2} e^{4}-240 b^{2} c \,d^{4} e^{2}-20 e^{6} a^{3}-6 c^{3} d \,e^{5} x^{5}+10 c^{3} d^{2} e^{4} x^{4}-20 c^{3} d^{3} e^{3} x^{3}+60 c^{3} d^{4} e^{2} x^{2}-120 \ln \left (e x +d \right ) x \,a^{2} c d \,e^{5}+300 b \,c^{2} d^{5} e +360 \ln \left (e x +d \right ) x a b c \,d^{2} e^{4}-120 \ln \left (e x +d \right ) x a \,b^{2} d \,e^{5}-240 \ln \left (e x +d \right ) x a \,c^{2} d^{3} e^{3}-240 \ln \left (e x +d \right ) x \,b^{2} c \,d^{3} e^{3}+300 \ln \left (e x +d \right ) x b \,c^{2} d^{4} e^{2}+360 \ln \left (e x +d \right ) a b c \,d^{3} e^{3}-180 x^{2} a b c d \,e^{5}+60 \ln \left (e x +d \right ) x \,a^{2} b \,e^{6}+60 \ln \left (e x +d \right ) x \,b^{3} d^{2} e^{4}+4 c^{3} e^{6} x^{6}+60 x^{3} a b c \,e^{6}-40 x^{3} a \,c^{2} d \,e^{5}-40 x^{3} b^{2} c d \,e^{5}+50 x^{3} b \,c^{2} d^{2} e^{4}+120 x^{2} b^{2} c \,d^{2} e^{4}-150 x^{2} b \,c^{2} d^{3} e^{3}+60 \ln \left (e x +d \right ) a^{2} b d \,e^{5}-120 \ln \left (e x +d \right ) a^{2} c \,d^{2} e^{4}-120 \ln \left (e x +d \right ) a \,b^{2} d^{2} e^{4}-240 \ln \left (e x +d \right ) a \,c^{2} d^{4} e^{2}-240 \ln \left (e x +d \right ) b^{2} c \,d^{4} e^{2}+300 \ln \left (e x +d \right ) b \,c^{2} d^{5} e -25 x^{4} b \,c^{2} d \,e^{5}+120 x^{2} a \,c^{2} d^{2} e^{4}+15 x^{5} b \,c^{2} e^{6}+20 x^{4} a \,c^{2} e^{6}+20 x^{4} b^{2} c \,e^{6}+60 x^{2} a^{2} c \,e^{6}+60 x^{2} a \,b^{2} e^{6}-30 x^{2} b^{3} d \,e^{5}+60 \ln \left (e x +d \right ) b^{3} d^{3} e^{3}+60 b^{3} d^{3} e^{3}+10 x^{3} b^{3} e^{6}-120 \ln \left (e x +d \right ) c^{3} d^{6}+360 a b c \,d^{3} e^{3}}{20 e^{7} \left (e x +d \right )}\) | \(701\) |
Input:
int((c*x^2+b*x+a)^3/(e*x+d)^2,x,method=_RETURNVERBOSE)
Output:
((a^3*e^6-3*a^2*b*d*e^5+6*a^2*c*d^2*e^4+6*a*b^2*d^2*e^4-18*a*b*c*d^3*e^3+1 2*a*c^2*d^4*e^2-3*b^3*d^3*e^3+12*b^2*c*d^4*e^2-15*b*c^2*d^5*e+6*c^3*d^6)/d /e^6*x+1/5*c^3*x^6/e+1/2*(6*a*b*c*e^3-4*a*c^2*d*e^2+b^3*e^3-4*b^2*c*d*e^2+ 5*b*c^2*d^2*e-2*c^3*d^3)/e^4*x^3+3/2*(2*a^2*c*e^4+2*a*b^2*e^4-6*a*b*c*d*e^ 3+4*a*c^2*d^2*e^2-b^3*d*e^3+4*b^2*c*d^2*e^2-5*b*c^2*d^3*e+2*c^3*d^4)/e^5*x ^2+1/4*c*(4*a*c*e^2+4*b^2*e^2-5*b*c*d*e+2*c^2*d^2)/e^3*x^4+3/20*c^2*(5*b*e -2*c*d)/e^2*x^5)/(e*x+d)+3*(a^2*b*e^5-2*a^2*c*d*e^4-2*a*b^2*d*e^4+6*a*b*c* d^2*e^3-4*a*c^2*d^3*e^2+b^3*d^2*e^3-4*b^2*c*d^3*e^2+5*b*c^2*d^4*e-2*c^3*d^ 5)/e^7*ln(e*x+d)
Leaf count of result is larger than twice the leaf count of optimal. 580 vs. \(2 (250) = 500\).
Time = 0.08 (sec) , antiderivative size = 580, normalized size of antiderivative = 2.27 \[ \int \frac {\left (a+b x+c x^2\right )^3}{(d+e x)^2} \, dx=\frac {4 \, c^{3} e^{6} x^{6} - 20 \, c^{3} d^{6} + 60 \, b c^{2} d^{5} e + 60 \, a^{2} b d e^{5} - 20 \, a^{3} e^{6} - 60 \, {\left (b^{2} c + a c^{2}\right )} d^{4} e^{2} + 20 \, {\left (b^{3} + 6 \, a b c\right )} d^{3} e^{3} - 60 \, {\left (a b^{2} + a^{2} c\right )} d^{2} e^{4} - 3 \, {\left (2 \, c^{3} d e^{5} - 5 \, b c^{2} e^{6}\right )} x^{5} + 5 \, {\left (2 \, c^{3} d^{2} e^{4} - 5 \, b c^{2} d e^{5} + 4 \, {\left (b^{2} c + a c^{2}\right )} e^{6}\right )} x^{4} - 10 \, {\left (2 \, c^{3} d^{3} e^{3} - 5 \, b c^{2} d^{2} e^{4} + 4 \, {\left (b^{2} c + a c^{2}\right )} d e^{5} - {\left (b^{3} + 6 \, a b c\right )} e^{6}\right )} x^{3} + 30 \, {\left (2 \, c^{3} d^{4} e^{2} - 5 \, b c^{2} d^{3} e^{3} + 4 \, {\left (b^{2} c + a c^{2}\right )} d^{2} e^{4} - {\left (b^{3} + 6 \, a b c\right )} d e^{5} + 2 \, {\left (a b^{2} + a^{2} c\right )} e^{6}\right )} x^{2} + 20 \, {\left (5 \, c^{3} d^{5} e - 12 \, b c^{2} d^{4} e^{2} + 9 \, {\left (b^{2} c + a c^{2}\right )} d^{3} e^{3} - 2 \, {\left (b^{3} + 6 \, a b c\right )} d^{2} e^{4} + 3 \, {\left (a b^{2} + a^{2} c\right )} d e^{5}\right )} x - 60 \, {\left (2 \, c^{3} d^{6} - 5 \, b c^{2} d^{5} e - a^{2} b d e^{5} + 4 \, {\left (b^{2} c + a c^{2}\right )} d^{4} e^{2} - {\left (b^{3} + 6 \, a b c\right )} d^{3} e^{3} + 2 \, {\left (a b^{2} + a^{2} c\right )} d^{2} e^{4} + {\left (2 \, c^{3} d^{5} e - 5 \, b c^{2} d^{4} e^{2} - a^{2} b e^{6} + 4 \, {\left (b^{2} c + a c^{2}\right )} d^{3} e^{3} - {\left (b^{3} + 6 \, a b c\right )} d^{2} e^{4} + 2 \, {\left (a b^{2} + a^{2} c\right )} d e^{5}\right )} x\right )} \log \left (e x + d\right )}{20 \, {\left (e^{8} x + d e^{7}\right )}} \] Input:
integrate((c*x^2+b*x+a)^3/(e*x+d)^2,x, algorithm="fricas")
Output:
1/20*(4*c^3*e^6*x^6 - 20*c^3*d^6 + 60*b*c^2*d^5*e + 60*a^2*b*d*e^5 - 20*a^ 3*e^6 - 60*(b^2*c + a*c^2)*d^4*e^2 + 20*(b^3 + 6*a*b*c)*d^3*e^3 - 60*(a*b^ 2 + a^2*c)*d^2*e^4 - 3*(2*c^3*d*e^5 - 5*b*c^2*e^6)*x^5 + 5*(2*c^3*d^2*e^4 - 5*b*c^2*d*e^5 + 4*(b^2*c + a*c^2)*e^6)*x^4 - 10*(2*c^3*d^3*e^3 - 5*b*c^2 *d^2*e^4 + 4*(b^2*c + a*c^2)*d*e^5 - (b^3 + 6*a*b*c)*e^6)*x^3 + 30*(2*c^3* d^4*e^2 - 5*b*c^2*d^3*e^3 + 4*(b^2*c + a*c^2)*d^2*e^4 - (b^3 + 6*a*b*c)*d* e^5 + 2*(a*b^2 + a^2*c)*e^6)*x^2 + 20*(5*c^3*d^5*e - 12*b*c^2*d^4*e^2 + 9* (b^2*c + a*c^2)*d^3*e^3 - 2*(b^3 + 6*a*b*c)*d^2*e^4 + 3*(a*b^2 + a^2*c)*d* e^5)*x - 60*(2*c^3*d^6 - 5*b*c^2*d^5*e - a^2*b*d*e^5 + 4*(b^2*c + a*c^2)*d ^4*e^2 - (b^3 + 6*a*b*c)*d^3*e^3 + 2*(a*b^2 + a^2*c)*d^2*e^4 + (2*c^3*d^5* e - 5*b*c^2*d^4*e^2 - a^2*b*e^6 + 4*(b^2*c + a*c^2)*d^3*e^3 - (b^3 + 6*a*b *c)*d^2*e^4 + 2*(a*b^2 + a^2*c)*d*e^5)*x)*log(e*x + d))/(e^8*x + d*e^7)
Time = 1.25 (sec) , antiderivative size = 411, normalized size of antiderivative = 1.61 \[ \int \frac {\left (a+b x+c x^2\right )^3}{(d+e x)^2} \, dx=\frac {c^{3} x^{5}}{5 e^{2}} + x^{4} \cdot \left (\frac {3 b c^{2}}{4 e^{2}} - \frac {c^{3} d}{2 e^{3}}\right ) + x^{3} \left (\frac {a c^{2}}{e^{2}} + \frac {b^{2} c}{e^{2}} - \frac {2 b c^{2} d}{e^{3}} + \frac {c^{3} d^{2}}{e^{4}}\right ) + x^{2} \cdot \left (\frac {3 a b c}{e^{2}} - \frac {3 a c^{2} d}{e^{3}} + \frac {b^{3}}{2 e^{2}} - \frac {3 b^{2} c d}{e^{3}} + \frac {9 b c^{2} d^{2}}{2 e^{4}} - \frac {2 c^{3} d^{3}}{e^{5}}\right ) + x \left (\frac {3 a^{2} c}{e^{2}} + \frac {3 a b^{2}}{e^{2}} - \frac {12 a b c d}{e^{3}} + \frac {9 a c^{2} d^{2}}{e^{4}} - \frac {2 b^{3} d}{e^{3}} + \frac {9 b^{2} c d^{2}}{e^{4}} - \frac {12 b c^{2} d^{3}}{e^{5}} + \frac {5 c^{3} d^{4}}{e^{6}}\right ) + \frac {- a^{3} e^{6} + 3 a^{2} b d e^{5} - 3 a^{2} c d^{2} e^{4} - 3 a b^{2} d^{2} e^{4} + 6 a b c d^{3} e^{3} - 3 a c^{2} d^{4} e^{2} + b^{3} d^{3} e^{3} - 3 b^{2} c d^{4} e^{2} + 3 b c^{2} d^{5} e - c^{3} d^{6}}{d e^{7} + e^{8} x} + \frac {3 \left (b e - 2 c d\right ) \left (a e^{2} - b d e + c d^{2}\right )^{2} \log {\left (d + e x \right )}}{e^{7}} \] Input:
integrate((c*x**2+b*x+a)**3/(e*x+d)**2,x)
Output:
c**3*x**5/(5*e**2) + x**4*(3*b*c**2/(4*e**2) - c**3*d/(2*e**3)) + x**3*(a* c**2/e**2 + b**2*c/e**2 - 2*b*c**2*d/e**3 + c**3*d**2/e**4) + x**2*(3*a*b* c/e**2 - 3*a*c**2*d/e**3 + b**3/(2*e**2) - 3*b**2*c*d/e**3 + 9*b*c**2*d**2 /(2*e**4) - 2*c**3*d**3/e**5) + x*(3*a**2*c/e**2 + 3*a*b**2/e**2 - 12*a*b* c*d/e**3 + 9*a*c**2*d**2/e**4 - 2*b**3*d/e**3 + 9*b**2*c*d**2/e**4 - 12*b* c**2*d**3/e**5 + 5*c**3*d**4/e**6) + (-a**3*e**6 + 3*a**2*b*d*e**5 - 3*a** 2*c*d**2*e**4 - 3*a*b**2*d**2*e**4 + 6*a*b*c*d**3*e**3 - 3*a*c**2*d**4*e** 2 + b**3*d**3*e**3 - 3*b**2*c*d**4*e**2 + 3*b*c**2*d**5*e - c**3*d**6)/(d* e**7 + e**8*x) + 3*(b*e - 2*c*d)*(a*e**2 - b*d*e + c*d**2)**2*log(d + e*x) /e**7
Time = 0.05 (sec) , antiderivative size = 410, normalized size of antiderivative = 1.60 \[ \int \frac {\left (a+b x+c x^2\right )^3}{(d+e x)^2} \, dx=-\frac {c^{3} d^{6} - 3 \, b c^{2} d^{5} e - 3 \, a^{2} b d e^{5} + a^{3} e^{6} + 3 \, {\left (b^{2} c + a c^{2}\right )} d^{4} e^{2} - {\left (b^{3} + 6 \, a b c\right )} d^{3} e^{3} + 3 \, {\left (a b^{2} + a^{2} c\right )} d^{2} e^{4}}{e^{8} x + d e^{7}} + \frac {4 \, c^{3} e^{4} x^{5} - 5 \, {\left (2 \, c^{3} d e^{3} - 3 \, b c^{2} e^{4}\right )} x^{4} + 20 \, {\left (c^{3} d^{2} e^{2} - 2 \, b c^{2} d e^{3} + {\left (b^{2} c + a c^{2}\right )} e^{4}\right )} x^{3} - 10 \, {\left (4 \, c^{3} d^{3} e - 9 \, b c^{2} d^{2} e^{2} + 6 \, {\left (b^{2} c + a c^{2}\right )} d e^{3} - {\left (b^{3} + 6 \, a b c\right )} e^{4}\right )} x^{2} + 20 \, {\left (5 \, c^{3} d^{4} - 12 \, b c^{2} d^{3} e + 9 \, {\left (b^{2} c + a c^{2}\right )} d^{2} e^{2} - 2 \, {\left (b^{3} + 6 \, a b c\right )} d e^{3} + 3 \, {\left (a b^{2} + a^{2} c\right )} e^{4}\right )} x}{20 \, e^{6}} - \frac {3 \, {\left (2 \, c^{3} d^{5} - 5 \, b c^{2} d^{4} e - a^{2} b e^{5} + 4 \, {\left (b^{2} c + a c^{2}\right )} d^{3} e^{2} - {\left (b^{3} + 6 \, a b c\right )} d^{2} e^{3} + 2 \, {\left (a b^{2} + a^{2} c\right )} d e^{4}\right )} \log \left (e x + d\right )}{e^{7}} \] Input:
integrate((c*x^2+b*x+a)^3/(e*x+d)^2,x, algorithm="maxima")
Output:
-(c^3*d^6 - 3*b*c^2*d^5*e - 3*a^2*b*d*e^5 + a^3*e^6 + 3*(b^2*c + a*c^2)*d^ 4*e^2 - (b^3 + 6*a*b*c)*d^3*e^3 + 3*(a*b^2 + a^2*c)*d^2*e^4)/(e^8*x + d*e^ 7) + 1/20*(4*c^3*e^4*x^5 - 5*(2*c^3*d*e^3 - 3*b*c^2*e^4)*x^4 + 20*(c^3*d^2 *e^2 - 2*b*c^2*d*e^3 + (b^2*c + a*c^2)*e^4)*x^3 - 10*(4*c^3*d^3*e - 9*b*c^ 2*d^2*e^2 + 6*(b^2*c + a*c^2)*d*e^3 - (b^3 + 6*a*b*c)*e^4)*x^2 + 20*(5*c^3 *d^4 - 12*b*c^2*d^3*e + 9*(b^2*c + a*c^2)*d^2*e^2 - 2*(b^3 + 6*a*b*c)*d*e^ 3 + 3*(a*b^2 + a^2*c)*e^4)*x)/e^6 - 3*(2*c^3*d^5 - 5*b*c^2*d^4*e - a^2*b*e ^5 + 4*(b^2*c + a*c^2)*d^3*e^2 - (b^3 + 6*a*b*c)*d^2*e^3 + 2*(a*b^2 + a^2* c)*d*e^4)*log(e*x + d)/e^7
Leaf count of result is larger than twice the leaf count of optimal. 567 vs. \(2 (250) = 500\).
Time = 0.33 (sec) , antiderivative size = 567, normalized size of antiderivative = 2.21 \[ \int \frac {\left (a+b x+c x^2\right )^3}{(d+e x)^2} \, dx=\frac {{\left (4 \, c^{3} - \frac {15 \, {\left (2 \, c^{3} d e - b c^{2} e^{2}\right )}}{{\left (e x + d\right )} e} + \frac {20 \, {\left (5 \, c^{3} d^{2} e^{2} - 5 \, b c^{2} d e^{3} + b^{2} c e^{4} + a c^{2} e^{4}\right )}}{{\left (e x + d\right )}^{2} e^{2}} - \frac {10 \, {\left (20 \, c^{3} d^{3} e^{3} - 30 \, b c^{2} d^{2} e^{4} + 12 \, b^{2} c d e^{5} + 12 \, a c^{2} d e^{5} - b^{3} e^{6} - 6 \, a b c e^{6}\right )}}{{\left (e x + d\right )}^{3} e^{3}} + \frac {60 \, {\left (5 \, c^{3} d^{4} e^{4} - 10 \, b c^{2} d^{3} e^{5} + 6 \, b^{2} c d^{2} e^{6} + 6 \, a c^{2} d^{2} e^{6} - b^{3} d e^{7} - 6 \, a b c d e^{7} + a b^{2} e^{8} + a^{2} c e^{8}\right )}}{{\left (e x + d\right )}^{4} e^{4}}\right )} {\left (e x + d\right )}^{5}}{20 \, e^{7}} + \frac {3 \, {\left (2 \, c^{3} d^{5} - 5 \, b c^{2} d^{4} e + 4 \, b^{2} c d^{3} e^{2} + 4 \, a c^{2} d^{3} e^{2} - b^{3} d^{2} e^{3} - 6 \, a b c d^{2} e^{3} + 2 \, a b^{2} d e^{4} + 2 \, a^{2} c d e^{4} - a^{2} 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 {c^{3} d^{6} e^{5}}{e x + d} - \frac {3 \, b c^{2} d^{5} e^{6}}{e x + d} + \frac {3 \, b^{2} c d^{4} e^{7}}{e x + d} + \frac {3 \, a c^{2} d^{4} e^{7}}{e x + d} - \frac {b^{3} d^{3} e^{8}}{e x + d} - \frac {6 \, a b c d^{3} e^{8}}{e x + d} + \frac {3 \, a b^{2} d^{2} e^{9}}{e x + d} + \frac {3 \, a^{2} c d^{2} e^{9}}{e x + d} - \frac {3 \, a^{2} b d e^{10}}{e x + d} + \frac {a^{3} e^{11}}{e x + d}}{e^{12}} \] Input:
integrate((c*x^2+b*x+a)^3/(e*x+d)^2,x, algorithm="giac")
Output:
1/20*(4*c^3 - 15*(2*c^3*d*e - b*c^2*e^2)/((e*x + d)*e) + 20*(5*c^3*d^2*e^2 - 5*b*c^2*d*e^3 + b^2*c*e^4 + a*c^2*e^4)/((e*x + d)^2*e^2) - 10*(20*c^3*d ^3*e^3 - 30*b*c^2*d^2*e^4 + 12*b^2*c*d*e^5 + 12*a*c^2*d*e^5 - b^3*e^6 - 6* a*b*c*e^6)/((e*x + d)^3*e^3) + 60*(5*c^3*d^4*e^4 - 10*b*c^2*d^3*e^5 + 6*b^ 2*c*d^2*e^6 + 6*a*c^2*d^2*e^6 - b^3*d*e^7 - 6*a*b*c*d*e^7 + a*b^2*e^8 + a^ 2*c*e^8)/((e*x + d)^4*e^4))*(e*x + d)^5/e^7 + 3*(2*c^3*d^5 - 5*b*c^2*d^4*e + 4*b^2*c*d^3*e^2 + 4*a*c^2*d^3*e^2 - b^3*d^2*e^3 - 6*a*b*c*d^2*e^3 + 2*a *b^2*d*e^4 + 2*a^2*c*d*e^4 - a^2*b*e^5)*log(abs(e*x + d)/((e*x + d)^2*abs( e)))/e^7 - (c^3*d^6*e^5/(e*x + d) - 3*b*c^2*d^5*e^6/(e*x + d) + 3*b^2*c*d^ 4*e^7/(e*x + d) + 3*a*c^2*d^4*e^7/(e*x + d) - b^3*d^3*e^8/(e*x + d) - 6*a* b*c*d^3*e^8/(e*x + d) + 3*a*b^2*d^2*e^9/(e*x + d) + 3*a^2*c*d^2*e^9/(e*x + d) - 3*a^2*b*d*e^10/(e*x + d) + a^3*e^11/(e*x + d))/e^12
Time = 0.06 (sec) , antiderivative size = 592, normalized size of antiderivative = 2.31 \[ \int \frac {\left (a+b x+c x^2\right )^3}{(d+e x)^2} \, dx=x^2\,\left (\frac {b^3+6\,a\,c\,b}{2\,e^2}+\frac {d\,\left (\frac {2\,d\,\left (\frac {3\,b\,c^2}{e^2}-\frac {2\,c^3\,d}{e^3}\right )}{e}+\frac {c^3\,d^2}{e^4}-\frac {3\,c\,\left (b^2+a\,c\right )}{e^2}\right )}{e}-\frac {d^2\,\left (\frac {3\,b\,c^2}{e^2}-\frac {2\,c^3\,d}{e^3}\right )}{2\,e^2}\right )+x^4\,\left (\frac {3\,b\,c^2}{4\,e^2}-\frac {c^3\,d}{2\,e^3}\right )-x^3\,\left (\frac {2\,d\,\left (\frac {3\,b\,c^2}{e^2}-\frac {2\,c^3\,d}{e^3}\right )}{3\,e}+\frac {c^3\,d^2}{3\,e^4}-\frac {c\,\left (b^2+a\,c\right )}{e^2}\right )+x\,\left (\frac {d^2\,\left (\frac {2\,d\,\left (\frac {3\,b\,c^2}{e^2}-\frac {2\,c^3\,d}{e^3}\right )}{e}+\frac {c^3\,d^2}{e^4}-\frac {3\,c\,\left (b^2+a\,c\right )}{e^2}\right )}{e^2}-\frac {2\,d\,\left (\frac {b^3+6\,a\,c\,b}{e^2}+\frac {2\,d\,\left (\frac {2\,d\,\left (\frac {3\,b\,c^2}{e^2}-\frac {2\,c^3\,d}{e^3}\right )}{e}+\frac {c^3\,d^2}{e^4}-\frac {3\,c\,\left (b^2+a\,c\right )}{e^2}\right )}{e}-\frac {d^2\,\left (\frac {3\,b\,c^2}{e^2}-\frac {2\,c^3\,d}{e^3}\right )}{e^2}\right )}{e}+\frac {3\,a\,\left (b^2+a\,c\right )}{e^2}\right )-\frac {a^3\,e^6-3\,a^2\,b\,d\,e^5+3\,a^2\,c\,d^2\,e^4+3\,a\,b^2\,d^2\,e^4-6\,a\,b\,c\,d^3\,e^3+3\,a\,c^2\,d^4\,e^2-b^3\,d^3\,e^3+3\,b^2\,c\,d^4\,e^2-3\,b\,c^2\,d^5\,e+c^3\,d^6}{e\,\left (x\,e^7+d\,e^6\right )}+\frac {c^3\,x^5}{5\,e^2}-\frac {\ln \left (d+e\,x\right )\,\left (-3\,a^2\,b\,e^5+6\,a^2\,c\,d\,e^4+6\,a\,b^2\,d\,e^4-18\,a\,b\,c\,d^2\,e^3+12\,a\,c^2\,d^3\,e^2-3\,b^3\,d^2\,e^3+12\,b^2\,c\,d^3\,e^2-15\,b\,c^2\,d^4\,e+6\,c^3\,d^5\right )}{e^7} \] Input:
int((a + b*x + c*x^2)^3/(d + e*x)^2,x)
Output:
x^2*((b^3 + 6*a*b*c)/(2*e^2) + (d*((2*d*((3*b*c^2)/e^2 - (2*c^3*d)/e^3))/e + (c^3*d^2)/e^4 - (3*c*(a*c + b^2))/e^2))/e - (d^2*((3*b*c^2)/e^2 - (2*c^ 3*d)/e^3))/(2*e^2)) + x^4*((3*b*c^2)/(4*e^2) - (c^3*d)/(2*e^3)) - x^3*((2* d*((3*b*c^2)/e^2 - (2*c^3*d)/e^3))/(3*e) + (c^3*d^2)/(3*e^4) - (c*(a*c + b ^2))/e^2) + x*((d^2*((2*d*((3*b*c^2)/e^2 - (2*c^3*d)/e^3))/e + (c^3*d^2)/e ^4 - (3*c*(a*c + b^2))/e^2))/e^2 - (2*d*((b^3 + 6*a*b*c)/e^2 + (2*d*((2*d* ((3*b*c^2)/e^2 - (2*c^3*d)/e^3))/e + (c^3*d^2)/e^4 - (3*c*(a*c + b^2))/e^2 ))/e - (d^2*((3*b*c^2)/e^2 - (2*c^3*d)/e^3))/e^2))/e + (3*a*(a*c + b^2))/e ^2) - (a^3*e^6 + c^3*d^6 - b^3*d^3*e^3 + 3*a*b^2*d^2*e^4 + 3*a*c^2*d^4*e^2 + 3*a^2*c*d^2*e^4 + 3*b^2*c*d^4*e^2 - 3*a^2*b*d*e^5 - 3*b*c^2*d^5*e - 6*a *b*c*d^3*e^3)/(e*(d*e^6 + e^7*x)) + (c^3*x^5)/(5*e^2) - (log(d + e*x)*(6*c ^3*d^5 - 3*a^2*b*e^5 - 3*b^3*d^2*e^3 + 12*a*c^2*d^3*e^2 + 12*b^2*c*d^3*e^2 + 6*a*b^2*d*e^4 + 6*a^2*c*d*e^4 - 15*b*c^2*d^4*e - 18*a*b*c*d^2*e^3))/e^7
Time = 0.22 (sec) , antiderivative size = 743, normalized size of antiderivative = 2.90 \[ \int \frac {\left (a+b x+c x^2\right )^3}{(d+e x)^2} \, dx=\frac {-120 \,\mathrm {log}\left (e x +d \right ) a^{2} c \,d^{2} e^{5} x -120 \,\mathrm {log}\left (e x +d \right ) a \,b^{2} d^{2} e^{5} x +360 \,\mathrm {log}\left (e x +d \right ) a b c \,d^{4} e^{3}-240 \,\mathrm {log}\left (e x +d \right ) a \,c^{2} d^{4} e^{3} x -240 \,\mathrm {log}\left (e x +d \right ) b^{2} c \,d^{4} e^{3} x +300 \,\mathrm {log}\left (e x +d \right ) b \,c^{2} d^{5} e^{2} x -360 a b c \,d^{3} e^{4} x -180 a b c \,d^{2} e^{5} x^{2}+60 a b c d \,e^{6} x^{3}-120 \,\mathrm {log}\left (e x +d \right ) c^{3} d^{7}+20 a^{3} e^{7} x +60 \,\mathrm {log}\left (e x +d \right ) a^{2} b d \,e^{6} x +60 \,\mathrm {log}\left (e x +d \right ) a^{2} b \,d^{2} e^{5}-120 \,\mathrm {log}\left (e x +d \right ) a^{2} c \,d^{3} e^{4}-120 \,\mathrm {log}\left (e x +d \right ) a \,b^{2} d^{3} e^{4}-240 \,\mathrm {log}\left (e x +d \right ) a \,c^{2} d^{5} e^{2}+60 \,\mathrm {log}\left (e x +d \right ) b^{3} d^{3} e^{4} x -240 \,\mathrm {log}\left (e x +d \right ) b^{2} c \,d^{5} e^{2}+300 \,\mathrm {log}\left (e x +d \right ) b \,c^{2} d^{6} e -120 \,\mathrm {log}\left (e x +d \right ) c^{3} d^{6} e x -60 a^{2} b d \,e^{6} x +120 a^{2} c \,d^{2} e^{5} x +60 a^{2} c d \,e^{6} x^{2}+120 a \,b^{2} d^{2} e^{5} x +60 a \,b^{2} d \,e^{6} x^{2}+240 a \,c^{2} d^{4} e^{3} x +120 a \,c^{2} d^{3} e^{4} x^{2}-40 a \,c^{2} d^{2} e^{5} x^{3}+20 a \,c^{2} d \,e^{6} x^{4}+240 b^{2} c \,d^{4} e^{3} x +120 b^{2} c \,d^{3} e^{4} x^{2}-40 b^{2} c \,d^{2} e^{5} x^{3}+20 b^{2} c d \,e^{6} x^{4}-300 b \,c^{2} d^{5} e^{2} x -150 b \,c^{2} d^{4} e^{3} x^{2}+50 b \,c^{2} d^{3} e^{4} x^{3}-25 b \,c^{2} d^{2} e^{5} x^{4}+15 b \,c^{2} d \,e^{6} x^{5}+60 \,\mathrm {log}\left (e x +d \right ) b^{3} d^{4} e^{3}-60 b^{3} d^{3} e^{4} x -30 b^{3} d^{2} e^{5} x^{2}+10 b^{3} d \,e^{6} x^{3}+120 c^{3} d^{6} e x +60 c^{3} d^{5} e^{2} x^{2}-20 c^{3} d^{4} e^{3} x^{3}+10 c^{3} d^{3} e^{4} x^{4}-6 c^{3} d^{2} e^{5} x^{5}+4 c^{3} d \,e^{6} x^{6}+360 \,\mathrm {log}\left (e x +d \right ) a b c \,d^{3} e^{4} x}{20 d \,e^{7} \left (e x +d \right )} \] Input:
int((c*x^2+b*x+a)^3/(e*x+d)^2,x)
Output:
(60*log(d + e*x)*a**2*b*d**2*e**5 + 60*log(d + e*x)*a**2*b*d*e**6*x - 120* log(d + e*x)*a**2*c*d**3*e**4 - 120*log(d + e*x)*a**2*c*d**2*e**5*x - 120* log(d + e*x)*a*b**2*d**3*e**4 - 120*log(d + e*x)*a*b**2*d**2*e**5*x + 360* log(d + e*x)*a*b*c*d**4*e**3 + 360*log(d + e*x)*a*b*c*d**3*e**4*x - 240*lo g(d + e*x)*a*c**2*d**5*e**2 - 240*log(d + e*x)*a*c**2*d**4*e**3*x + 60*log (d + e*x)*b**3*d**4*e**3 + 60*log(d + e*x)*b**3*d**3*e**4*x - 240*log(d + e*x)*b**2*c*d**5*e**2 - 240*log(d + e*x)*b**2*c*d**4*e**3*x + 300*log(d + e*x)*b*c**2*d**6*e + 300*log(d + e*x)*b*c**2*d**5*e**2*x - 120*log(d + e*x )*c**3*d**7 - 120*log(d + e*x)*c**3*d**6*e*x + 20*a**3*e**7*x - 60*a**2*b* d*e**6*x + 120*a**2*c*d**2*e**5*x + 60*a**2*c*d*e**6*x**2 + 120*a*b**2*d** 2*e**5*x + 60*a*b**2*d*e**6*x**2 - 360*a*b*c*d**3*e**4*x - 180*a*b*c*d**2* e**5*x**2 + 60*a*b*c*d*e**6*x**3 + 240*a*c**2*d**4*e**3*x + 120*a*c**2*d** 3*e**4*x**2 - 40*a*c**2*d**2*e**5*x**3 + 20*a*c**2*d*e**6*x**4 - 60*b**3*d **3*e**4*x - 30*b**3*d**2*e**5*x**2 + 10*b**3*d*e**6*x**3 + 240*b**2*c*d** 4*e**3*x + 120*b**2*c*d**3*e**4*x**2 - 40*b**2*c*d**2*e**5*x**3 + 20*b**2* c*d*e**6*x**4 - 300*b*c**2*d**5*e**2*x - 150*b*c**2*d**4*e**3*x**2 + 50*b* c**2*d**3*e**4*x**3 - 25*b*c**2*d**2*e**5*x**4 + 15*b*c**2*d*e**6*x**5 + 1 20*c**3*d**6*e*x + 60*c**3*d**5*e**2*x**2 - 20*c**3*d**4*e**3*x**3 + 10*c* *3*d**3*e**4*x**4 - 6*c**3*d**2*e**5*x**5 + 4*c**3*d*e**6*x**6)/(20*d*e**7 *(d + e*x))