Integrand size = 25, antiderivative size = 284 \[ \int \frac {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx=-\frac {c (4 B c d-2 b B e-A c e) x}{e^5}+\frac {B c^2 x^2}{2 e^4}+\frac {(B d-A e) \left (c d^2-b d e+a e^2\right )^2}{3 e^6 (d+e x)^3}-\frac {\left (c d^2-b d e+a e^2\right ) \left (5 B c d^2-B e (3 b d-a e)-2 A e (2 c d-b e)\right )}{2 e^6 (d+e x)^2}+\frac {B \left (10 c^2 d^3+b e^2 (3 b d-2 a e)-6 c d e (2 b d-a e)\right )-A e \left (6 c^2 d^2+b^2 e^2-2 c e (3 b d-a e)\right )}{e^6 (d+e x)}-\frac {\left (2 A c e (2 c d-b e)-B \left (10 c^2 d^2+b^2 e^2-2 c e (4 b d-a e)\right )\right ) \log (d+e x)}{e^6} \] Output:
-c*(-A*c*e-2*B*b*e+4*B*c*d)*x/e^5+1/2*B*c^2*x^2/e^4+1/3*(-A*e+B*d)*(a*e^2- b*d*e+c*d^2)^2/e^6/(e*x+d)^3-1/2*(a*e^2-b*d*e+c*d^2)*(5*B*c*d^2-B*e*(-a*e+ 3*b*d)-2*A*e*(-b*e+2*c*d))/e^6/(e*x+d)^2+(B*(10*c^2*d^3+b*e^2*(-2*a*e+3*b* d)-6*c*d*e*(-a*e+2*b*d))-A*e*(6*c^2*d^2+b^2*e^2-2*c*e*(-a*e+3*b*d)))/e^6/( e*x+d)-(2*A*c*e*(-b*e+2*c*d)-B*(10*c^2*d^2+b^2*e^2-2*c*e*(-a*e+4*b*d)))*ln (e*x+d)/e^6
Time = 0.12 (sec) , antiderivative size = 263, normalized size of antiderivative = 0.93 \[ \int \frac {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx=\frac {6 c e (-4 B c d+2 b B e+A c e) x+3 B c^2 e^2 x^2+\frac {2 (B d-A e) \left (c d^2+e (-b d+a e)\right )^2}{(d+e x)^3}-\frac {3 \left (c d^2+e (-b d+a e)\right ) \left (5 B c d^2+B e (-3 b d+a e)+2 A e (-2 c d+b e)\right )}{(d+e x)^2}-\frac {6 \left (A e \left (6 c^2 d^2+b^2 e^2+2 c e (-3 b d+a e)\right )+B \left (-10 c^2 d^3+6 c d e (2 b d-a e)+b e^2 (-3 b d+2 a e)\right )\right )}{d+e x}+6 \left (2 A c e (-2 c d+b e)+B \left (10 c^2 d^2+b^2 e^2+2 c e (-4 b d+a e)\right )\right ) \log (d+e x)}{6 e^6} \] Input:
Integrate[((A + B*x)*(a + b*x + c*x^2)^2)/(d + e*x)^4,x]
Output:
(6*c*e*(-4*B*c*d + 2*b*B*e + A*c*e)*x + 3*B*c^2*e^2*x^2 + (2*(B*d - A*e)*( c*d^2 + e*(-(b*d) + a*e))^2)/(d + e*x)^3 - (3*(c*d^2 + e*(-(b*d) + a*e))*( 5*B*c*d^2 + B*e*(-3*b*d + a*e) + 2*A*e*(-2*c*d + b*e)))/(d + e*x)^2 - (6*( A*e*(6*c^2*d^2 + b^2*e^2 + 2*c*e*(-3*b*d + a*e)) + B*(-10*c^2*d^3 + 6*c*d* e*(2*b*d - a*e) + b*e^2*(-3*b*d + 2*a*e))))/(d + e*x) + 6*(2*A*c*e*(-2*c*d + b*e) + B*(10*c^2*d^2 + b^2*e^2 + 2*c*e*(-4*b*d + a*e)))*Log[d + e*x])/( 6*e^6)
Time = 1.07 (sec) , antiderivative size = 284, 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.080, Rules used = {1195, 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 {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx\) |
\(\Big \downarrow \) 1195 |
\(\displaystyle \int \left (\frac {B \left (-2 c e (4 b d-a e)+b^2 e^2+10 c^2 d^2\right )-2 A c e (2 c d-b e)}{e^5 (d+e x)}+\frac {A e \left (-2 c e (3 b d-a e)+b^2 e^2+6 c^2 d^2\right )-B \left (-6 c d e (2 b d-a e)+b e^2 (3 b d-2 a e)+10 c^2 d^3\right )}{e^5 (d+e x)^2}+\frac {\left (a e^2-b d e+c d^2\right ) \left (-B e (3 b d-a e)-2 A e (2 c d-b e)+5 B c d^2\right )}{e^5 (d+e x)^3}+\frac {(A e-B d) \left (a e^2-b d e+c d^2\right )^2}{e^5 (d+e x)^4}+\frac {c (A c e+2 b B e-4 B c d)}{e^5}+\frac {B c^2 x}{e^4}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {\log (d+e x) \left (2 A c e (2 c d-b e)-B \left (-2 c e (4 b d-a e)+b^2 e^2+10 c^2 d^2\right )\right )}{e^6}+\frac {B \left (-6 c d e (2 b d-a e)+b e^2 (3 b d-2 a e)+10 c^2 d^3\right )-A e \left (-2 c e (3 b d-a e)+b^2 e^2+6 c^2 d^2\right )}{e^6 (d+e x)}+\frac {(B d-A e) \left (a e^2-b d e+c d^2\right )^2}{3 e^6 (d+e x)^3}-\frac {\left (a e^2-b d e+c d^2\right ) \left (-B e (3 b d-a e)-2 A e (2 c d-b e)+5 B c d^2\right )}{2 e^6 (d+e x)^2}-\frac {c x (-A c e-2 b B e+4 B c d)}{e^5}+\frac {B c^2 x^2}{2 e^4}\) |
Input:
Int[((A + B*x)*(a + b*x + c*x^2)^2)/(d + e*x)^4,x]
Output:
-((c*(4*B*c*d - 2*b*B*e - A*c*e)*x)/e^5) + (B*c^2*x^2)/(2*e^4) + ((B*d - A *e)*(c*d^2 - b*d*e + a*e^2)^2)/(3*e^6*(d + e*x)^3) - ((c*d^2 - b*d*e + a*e ^2)*(5*B*c*d^2 - B*e*(3*b*d - a*e) - 2*A*e*(2*c*d - b*e)))/(2*e^6*(d + e*x )^2) + (B*(10*c^2*d^3 + b*e^2*(3*b*d - 2*a*e) - 6*c*d*e*(2*b*d - a*e)) - A *e*(6*c^2*d^2 + b^2*e^2 - 2*c*e*(3*b*d - a*e)))/(e^6*(d + e*x)) - ((2*A*c* e*(2*c*d - b*e) - B*(10*c^2*d^2 + b^2*e^2 - 2*c*e*(4*b*d - a*e)))*Log[d + e*x])/e^6
Int[((d_.) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_.) + (b_.)*(x _) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[ExpandIntegrand[(d + e*x)^m*(f + g*x)^n*(a + b*x + c*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n}, x ] && IGtQ[p, 0]
Time = 1.39 (sec) , antiderivative size = 438, normalized size of antiderivative = 1.54
method | result | size |
default | \(\frac {c \left (\frac {1}{2} B c e \,x^{2}+A c e x +2 B b e x -4 B c d x \right )}{e^{5}}-\frac {A \,a^{2} e^{5}-2 A a b d \,e^{4}+2 A a c \,d^{2} e^{3}+A \,b^{2} d^{2} e^{3}-2 A b c \,d^{3} e^{2}+A \,c^{2} d^{4} e -B \,a^{2} d \,e^{4}+2 B a b \,d^{2} e^{3}-2 B a c \,d^{3} e^{2}-B \,b^{2} d^{3} e^{2}+2 B b c \,d^{4} e -B \,c^{2} d^{5}}{3 e^{6} \left (e x +d \right )^{3}}+\frac {\left (2 A b c \,e^{2}-4 A \,c^{2} d e +2 B \,e^{2} a c +B \,e^{2} b^{2}-8 B b c d e +10 B \,c^{2} d^{2}\right ) \ln \left (e x +d \right )}{e^{6}}-\frac {2 A a c \,e^{3}+A \,b^{2} e^{3}-6 A b c d \,e^{2}+6 A \,c^{2} d^{2} e +2 B a b \,e^{3}-6 B a d \,e^{2} c -3 B \,b^{2} d \,e^{2}+12 B b c \,d^{2} e -10 B \,c^{2} d^{3}}{e^{6} \left (e x +d \right )}-\frac {2 A a b \,e^{4}-4 A a c d \,e^{3}-2 A \,b^{2} d \,e^{3}+6 A b c \,d^{2} e^{2}-4 A \,c^{2} d^{3} e +B \,e^{4} a^{2}-4 B a b d \,e^{3}+6 B a c \,d^{2} e^{2}+3 B \,b^{2} d^{2} e^{2}-8 B b c \,d^{3} e +5 B \,c^{2} d^{4}}{2 e^{6} \left (e x +d \right )^{2}}\) | \(438\) |
norman | \(\frac {-\frac {2 A \,a^{2} e^{5}+2 A a b d \,e^{4}+4 A a c \,d^{2} e^{3}+2 A \,b^{2} d^{2} e^{3}-22 A b c \,d^{3} e^{2}+44 A \,c^{2} d^{4} e +B \,a^{2} d \,e^{4}+4 B a b \,d^{2} e^{3}-22 B a c \,d^{3} e^{2}-11 B \,b^{2} d^{3} e^{2}+88 B b c \,d^{4} e -110 B \,c^{2} d^{5}}{6 e^{6}}-\frac {\left (2 A a c \,e^{3}+A \,b^{2} e^{3}-6 A b c d \,e^{2}+12 A \,c^{2} d^{2} e +2 B a b \,e^{3}-6 B a d \,e^{2} c -3 B \,b^{2} d \,e^{2}+24 B b c \,d^{2} e -30 B \,c^{2} d^{3}\right ) x^{2}}{e^{4}}-\frac {\left (2 A a b \,e^{4}+4 A a c d \,e^{3}+2 A \,b^{2} d \,e^{3}-18 A b c \,d^{2} e^{2}+36 A \,c^{2} d^{3} e +B \,e^{4} a^{2}+4 B a b d \,e^{3}-18 B a c \,d^{2} e^{2}-9 B \,b^{2} d^{2} e^{2}+72 B b c \,d^{3} e -90 B \,c^{2} d^{4}\right ) x}{2 e^{5}}+\frac {B \,c^{2} x^{5}}{2 e}+\frac {c \left (2 A c e +4 B b e -5 B c d \right ) x^{4}}{2 e^{2}}}{\left (e x +d \right )^{3}}+\frac {\left (2 A b c \,e^{2}-4 A \,c^{2} d e +2 B \,e^{2} a c +B \,e^{2} b^{2}-8 B b c d e +10 B \,c^{2} d^{2}\right ) \ln \left (e x +d \right )}{e^{6}}\) | \(438\) |
risch | \(\frac {B \,c^{2} x^{2}}{2 e^{4}}+\frac {c^{2} A x}{e^{4}}+\frac {2 c B b x}{e^{4}}-\frac {4 c^{2} B d x}{e^{5}}+\frac {\left (-2 A a c \,e^{4}-A \,b^{2} e^{4}+6 A b c d \,e^{3}-6 A \,d^{2} e^{2} c^{2}-2 B a b \,e^{4}+6 B a c d \,e^{3}+3 B \,b^{2} d \,e^{3}-12 B b c \,d^{2} e^{2}+10 B \,c^{2} d^{3} e \right ) x^{2}+\left (-A a b \,e^{4}-2 A a c d \,e^{3}-A \,b^{2} d \,e^{3}+9 A b c \,d^{2} e^{2}-10 A \,c^{2} d^{3} e -\frac {1}{2} B \,e^{4} a^{2}-2 B a b d \,e^{3}+9 B a c \,d^{2} e^{2}+\frac {9}{2} B \,b^{2} d^{2} e^{2}-20 B b c \,d^{3} e +\frac {35}{2} B \,c^{2} d^{4}\right ) x -\frac {2 A \,a^{2} e^{5}+2 A a b d \,e^{4}+4 A a c \,d^{2} e^{3}+2 A \,b^{2} d^{2} e^{3}-22 A b c \,d^{3} e^{2}+26 A \,c^{2} d^{4} e +B \,a^{2} d \,e^{4}+4 B a b \,d^{2} e^{3}-22 B a c \,d^{3} e^{2}-11 B \,b^{2} d^{3} e^{2}+52 B b c \,d^{4} e -47 B \,c^{2} d^{5}}{6 e}}{e^{5} \left (e x +d \right )^{3}}+\frac {2 \ln \left (e x +d \right ) A b c}{e^{4}}-\frac {4 \ln \left (e x +d \right ) A \,c^{2} d}{e^{5}}+\frac {2 \ln \left (e x +d \right ) B a c}{e^{4}}+\frac {b^{2} B \ln \left (e x +d \right )}{e^{4}}-\frac {8 \ln \left (e x +d \right ) B b c d}{e^{5}}+\frac {10 \ln \left (e x +d \right ) B \,c^{2} d^{2}}{e^{6}}\) | \(476\) |
parallelrisch | \(\frac {11 B \,b^{2} d^{3} e^{2}-2 A \,b^{2} d^{2} e^{3}+6 B \ln \left (e x +d \right ) b^{2} d^{3} e^{2}+12 B \,x^{4} b c \,e^{5}-15 B \,x^{4} c^{2} d \,e^{4}-12 A \,x^{2} a c \,e^{5}-72 A \,x^{2} c^{2} d^{2} e^{3}-12 B \,x^{2} a b \,e^{5}+18 B \,x^{2} b^{2} d \,e^{4}+180 B \,x^{2} c^{2} d^{3} e^{2}-6 A x a b \,e^{5}-6 A x \,b^{2} d \,e^{4}-108 A x \,c^{2} d^{3} e^{2}+27 B x \,b^{2} d^{2} e^{3}+270 B x \,c^{2} d^{4} e -4 B a b \,d^{2} e^{3}-24 A \ln \left (e x +d \right ) c^{2} d^{4} e +22 A b c \,d^{3} e^{2}-4 A a c \,d^{2} e^{3}+22 B a c \,d^{3} e^{2}+36 B \ln \left (e x +d \right ) x^{2} a c d \,e^{4}-144 B \ln \left (e x +d \right ) x^{2} b c \,d^{2} e^{3}+18 B \ln \left (e x +d \right ) x \,b^{2} d^{2} e^{3}-48 B \ln \left (e x +d \right ) x^{3} b c d \,e^{4}-88 B b c \,d^{4} e +36 A \ln \left (e x +d \right ) x b c \,d^{2} e^{3}+36 A \ln \left (e x +d \right ) x^{2} b c d \,e^{4}+36 B \ln \left (e x +d \right ) x a c \,d^{2} e^{3}-144 B \ln \left (e x +d \right ) x b c \,d^{3} e^{2}-2 A a b d \,e^{4}-B \,a^{2} d \,e^{4}-44 A \,c^{2} d^{4} e +3 B \,x^{5} c^{2} e^{5}+60 B \ln \left (e x +d \right ) c^{2} d^{5}+6 A \,x^{4} c^{2} e^{5}-6 A \,x^{2} b^{2} e^{5}-3 B x \,a^{2} e^{5}+12 A \ln \left (e x +d \right ) b c \,d^{3} e^{2}+6 B \ln \left (e x +d \right ) x^{3} b^{2} e^{5}-72 A \ln \left (e x +d \right ) x^{2} c^{2} d^{2} e^{3}-144 B \,x^{2} b c \,d^{2} e^{3}-72 A \ln \left (e x +d \right ) x \,c^{2} d^{3} e^{2}+36 B \,x^{2} a c d \,e^{4}+18 B \ln \left (e x +d \right ) x^{2} b^{2} d \,e^{4}+180 B \ln \left (e x +d \right ) x^{2} c^{2} d^{3} e^{2}-12 A x a c d \,e^{4}+54 A x b c \,d^{2} e^{3}+110 B \,c^{2} d^{5}-2 A \,a^{2} e^{5}+36 A \,x^{2} b c d \,e^{4}+60 B \ln \left (e x +d \right ) x^{3} c^{2} d^{2} e^{3}+12 B \ln \left (e x +d \right ) a c \,d^{3} e^{2}-48 B \ln \left (e x +d \right ) b c \,d^{4} e +12 A \ln \left (e x +d \right ) x^{3} b c \,e^{5}-24 A \ln \left (e x +d \right ) x^{3} c^{2} d \,e^{4}+12 B \ln \left (e x +d \right ) x^{3} a c \,e^{5}-12 B x a b d \,e^{4}+54 B x a c \,d^{2} e^{3}-216 B x b c \,d^{3} e^{2}+180 B \ln \left (e x +d \right ) x \,c^{2} d^{4} e}{6 e^{6} \left (e x +d \right )^{3}}\) | \(858\) |
Input:
int((B*x+A)*(c*x^2+b*x+a)^2/(e*x+d)^4,x,method=_RETURNVERBOSE)
Output:
c/e^5*(1/2*B*c*e*x^2+A*c*e*x+2*B*b*e*x-4*B*c*d*x)-1/3*(A*a^2*e^5-2*A*a*b*d *e^4+2*A*a*c*d^2*e^3+A*b^2*d^2*e^3-2*A*b*c*d^3*e^2+A*c^2*d^4*e-B*a^2*d*e^4 +2*B*a*b*d^2*e^3-2*B*a*c*d^3*e^2-B*b^2*d^3*e^2+2*B*b*c*d^4*e-B*c^2*d^5)/e^ 6/(e*x+d)^3+1/e^6*(2*A*b*c*e^2-4*A*c^2*d*e+2*B*a*c*e^2+B*b^2*e^2-8*B*b*c*d *e+10*B*c^2*d^2)*ln(e*x+d)-1/e^6*(2*A*a*c*e^3+A*b^2*e^3-6*A*b*c*d*e^2+6*A* c^2*d^2*e+2*B*a*b*e^3-6*B*a*c*d*e^2-3*B*b^2*d*e^2+12*B*b*c*d^2*e-10*B*c^2* d^3)/(e*x+d)-1/2/e^6*(2*A*a*b*e^4-4*A*a*c*d*e^3-2*A*b^2*d*e^3+6*A*b*c*d^2* e^2-4*A*c^2*d^3*e+B*a^2*e^4-4*B*a*b*d*e^3+6*B*a*c*d^2*e^2+3*B*b^2*d^2*e^2- 8*B*b*c*d^3*e+5*B*c^2*d^4)/(e*x+d)^2
Leaf count of result is larger than twice the leaf count of optimal. 618 vs. \(2 (279) = 558\).
Time = 0.09 (sec) , antiderivative size = 618, normalized size of antiderivative = 2.18 \[ \int \frac {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx=\frac {3 \, B c^{2} e^{5} x^{5} + 47 \, B c^{2} d^{5} - 2 \, A a^{2} e^{5} - 26 \, {\left (2 \, B b c + A c^{2}\right )} d^{4} e + 11 \, {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d^{3} e^{2} - 2 \, {\left (2 \, B a b + A b^{2} + 2 \, A a c\right )} d^{2} e^{3} - {\left (B a^{2} + 2 \, A a b\right )} d e^{4} - 3 \, {\left (5 \, B c^{2} d e^{4} - 2 \, {\left (2 \, B b c + A c^{2}\right )} e^{5}\right )} x^{4} - 9 \, {\left (7 \, B c^{2} d^{2} e^{3} - 2 \, {\left (2 \, B b c + A c^{2}\right )} d e^{4}\right )} x^{3} - 3 \, {\left (3 \, B c^{2} d^{3} e^{2} + 6 \, {\left (2 \, B b c + A c^{2}\right )} d^{2} e^{3} - 6 \, {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d e^{4} + 2 \, {\left (2 \, B a b + A b^{2} + 2 \, A a c\right )} e^{5}\right )} x^{2} + 3 \, {\left (27 \, B c^{2} d^{4} e - 18 \, {\left (2 \, B b c + A c^{2}\right )} d^{3} e^{2} + 9 \, {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d^{2} e^{3} - 2 \, {\left (2 \, B a b + A b^{2} + 2 \, A a c\right )} d e^{4} - {\left (B a^{2} + 2 \, A a b\right )} e^{5}\right )} x + 6 \, {\left (10 \, B c^{2} d^{5} - 4 \, {\left (2 \, B b c + A c^{2}\right )} d^{4} e + {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d^{3} e^{2} + {\left (10 \, B c^{2} d^{2} e^{3} - 4 \, {\left (2 \, B b c + A c^{2}\right )} d e^{4} + {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} e^{5}\right )} x^{3} + 3 \, {\left (10 \, B c^{2} d^{3} e^{2} - 4 \, {\left (2 \, B b c + A c^{2}\right )} d^{2} e^{3} + {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d e^{4}\right )} x^{2} + 3 \, {\left (10 \, B c^{2} d^{4} e - 4 \, {\left (2 \, B b c + A c^{2}\right )} d^{3} e^{2} + {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d^{2} e^{3}\right )} x\right )} \log \left (e x + d\right )}{6 \, {\left (e^{9} x^{3} + 3 \, d e^{8} x^{2} + 3 \, d^{2} e^{7} x + d^{3} e^{6}\right )}} \] Input:
integrate((B*x+A)*(c*x^2+b*x+a)^2/(e*x+d)^4,x, algorithm="fricas")
Output:
1/6*(3*B*c^2*e^5*x^5 + 47*B*c^2*d^5 - 2*A*a^2*e^5 - 26*(2*B*b*c + A*c^2)*d ^4*e + 11*(B*b^2 + 2*(B*a + A*b)*c)*d^3*e^2 - 2*(2*B*a*b + A*b^2 + 2*A*a*c )*d^2*e^3 - (B*a^2 + 2*A*a*b)*d*e^4 - 3*(5*B*c^2*d*e^4 - 2*(2*B*b*c + A*c^ 2)*e^5)*x^4 - 9*(7*B*c^2*d^2*e^3 - 2*(2*B*b*c + A*c^2)*d*e^4)*x^3 - 3*(3*B *c^2*d^3*e^2 + 6*(2*B*b*c + A*c^2)*d^2*e^3 - 6*(B*b^2 + 2*(B*a + A*b)*c)*d *e^4 + 2*(2*B*a*b + A*b^2 + 2*A*a*c)*e^5)*x^2 + 3*(27*B*c^2*d^4*e - 18*(2* B*b*c + A*c^2)*d^3*e^2 + 9*(B*b^2 + 2*(B*a + A*b)*c)*d^2*e^3 - 2*(2*B*a*b + A*b^2 + 2*A*a*c)*d*e^4 - (B*a^2 + 2*A*a*b)*e^5)*x + 6*(10*B*c^2*d^5 - 4* (2*B*b*c + A*c^2)*d^4*e + (B*b^2 + 2*(B*a + A*b)*c)*d^3*e^2 + (10*B*c^2*d^ 2*e^3 - 4*(2*B*b*c + A*c^2)*d*e^4 + (B*b^2 + 2*(B*a + A*b)*c)*e^5)*x^3 + 3 *(10*B*c^2*d^3*e^2 - 4*(2*B*b*c + A*c^2)*d^2*e^3 + (B*b^2 + 2*(B*a + A*b)* c)*d*e^4)*x^2 + 3*(10*B*c^2*d^4*e - 4*(2*B*b*c + A*c^2)*d^3*e^2 + (B*b^2 + 2*(B*a + A*b)*c)*d^2*e^3)*x)*log(e*x + d))/(e^9*x^3 + 3*d*e^8*x^2 + 3*d^2 *e^7*x + d^3*e^6)
Time = 53.97 (sec) , antiderivative size = 547, normalized size of antiderivative = 1.93 \[ \int \frac {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx=\frac {B c^{2} x^{2}}{2 e^{4}} + x \left (\frac {A c^{2}}{e^{4}} + \frac {2 B b c}{e^{4}} - \frac {4 B c^{2} d}{e^{5}}\right ) + \frac {- 2 A a^{2} e^{5} - 2 A a b d e^{4} - 4 A a c d^{2} e^{3} - 2 A b^{2} d^{2} e^{3} + 22 A b c d^{3} e^{2} - 26 A c^{2} d^{4} e - B a^{2} d e^{4} - 4 B a b d^{2} e^{3} + 22 B a c d^{3} e^{2} + 11 B b^{2} d^{3} e^{2} - 52 B b c d^{4} e + 47 B c^{2} d^{5} + x^{2} \left (- 12 A a c e^{5} - 6 A b^{2} e^{5} + 36 A b c d e^{4} - 36 A c^{2} d^{2} e^{3} - 12 B a b e^{5} + 36 B a c d e^{4} + 18 B b^{2} d e^{4} - 72 B b c d^{2} e^{3} + 60 B c^{2} d^{3} e^{2}\right ) + x \left (- 6 A a b e^{5} - 12 A a c d e^{4} - 6 A b^{2} d e^{4} + 54 A b c d^{2} e^{3} - 60 A c^{2} d^{3} e^{2} - 3 B a^{2} e^{5} - 12 B a b d e^{4} + 54 B a c d^{2} e^{3} + 27 B b^{2} d^{2} e^{3} - 120 B b c d^{3} e^{2} + 105 B c^{2} d^{4} e\right )}{6 d^{3} e^{6} + 18 d^{2} e^{7} x + 18 d e^{8} x^{2} + 6 e^{9} x^{3}} + \frac {\left (2 A b c e^{2} - 4 A c^{2} d e + 2 B a c e^{2} + B b^{2} e^{2} - 8 B b c d e + 10 B c^{2} d^{2}\right ) \log {\left (d + e x \right )}}{e^{6}} \] Input:
integrate((B*x+A)*(c*x**2+b*x+a)**2/(e*x+d)**4,x)
Output:
B*c**2*x**2/(2*e**4) + x*(A*c**2/e**4 + 2*B*b*c/e**4 - 4*B*c**2*d/e**5) + (-2*A*a**2*e**5 - 2*A*a*b*d*e**4 - 4*A*a*c*d**2*e**3 - 2*A*b**2*d**2*e**3 + 22*A*b*c*d**3*e**2 - 26*A*c**2*d**4*e - B*a**2*d*e**4 - 4*B*a*b*d**2*e** 3 + 22*B*a*c*d**3*e**2 + 11*B*b**2*d**3*e**2 - 52*B*b*c*d**4*e + 47*B*c**2 *d**5 + x**2*(-12*A*a*c*e**5 - 6*A*b**2*e**5 + 36*A*b*c*d*e**4 - 36*A*c**2 *d**2*e**3 - 12*B*a*b*e**5 + 36*B*a*c*d*e**4 + 18*B*b**2*d*e**4 - 72*B*b*c *d**2*e**3 + 60*B*c**2*d**3*e**2) + x*(-6*A*a*b*e**5 - 12*A*a*c*d*e**4 - 6 *A*b**2*d*e**4 + 54*A*b*c*d**2*e**3 - 60*A*c**2*d**3*e**2 - 3*B*a**2*e**5 - 12*B*a*b*d*e**4 + 54*B*a*c*d**2*e**3 + 27*B*b**2*d**2*e**3 - 120*B*b*c*d **3*e**2 + 105*B*c**2*d**4*e))/(6*d**3*e**6 + 18*d**2*e**7*x + 18*d*e**8*x **2 + 6*e**9*x**3) + (2*A*b*c*e**2 - 4*A*c**2*d*e + 2*B*a*c*e**2 + B*b**2* e**2 - 8*B*b*c*d*e + 10*B*c**2*d**2)*log(d + e*x)/e**6
Time = 0.06 (sec) , antiderivative size = 409, normalized size of antiderivative = 1.44 \[ \int \frac {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx=\frac {47 \, B c^{2} d^{5} - 2 \, A a^{2} e^{5} - 26 \, {\left (2 \, B b c + A c^{2}\right )} d^{4} e + 11 \, {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d^{3} e^{2} - 2 \, {\left (2 \, B a b + A b^{2} + 2 \, A a c\right )} d^{2} e^{3} - {\left (B a^{2} + 2 \, A a b\right )} d e^{4} + 6 \, {\left (10 \, B c^{2} d^{3} e^{2} - 6 \, {\left (2 \, B b c + A c^{2}\right )} d^{2} e^{3} + 3 \, {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d e^{4} - {\left (2 \, B a b + A b^{2} + 2 \, A a c\right )} e^{5}\right )} x^{2} + 3 \, {\left (35 \, B c^{2} d^{4} e - 20 \, {\left (2 \, B b c + A c^{2}\right )} d^{3} e^{2} + 9 \, {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} d^{2} e^{3} - 2 \, {\left (2 \, B a b + A b^{2} + 2 \, A a c\right )} d e^{4} - {\left (B a^{2} + 2 \, A a b\right )} e^{5}\right )} x}{6 \, {\left (e^{9} x^{3} + 3 \, d e^{8} x^{2} + 3 \, d^{2} e^{7} x + d^{3} e^{6}\right )}} + \frac {B c^{2} e x^{2} - 2 \, {\left (4 \, B c^{2} d - {\left (2 \, B b c + A c^{2}\right )} e\right )} x}{2 \, e^{5}} + \frac {{\left (10 \, B c^{2} d^{2} - 4 \, {\left (2 \, B b c + A c^{2}\right )} d e + {\left (B b^{2} + 2 \, {\left (B a + A b\right )} c\right )} e^{2}\right )} \log \left (e x + d\right )}{e^{6}} \] Input:
integrate((B*x+A)*(c*x^2+b*x+a)^2/(e*x+d)^4,x, algorithm="maxima")
Output:
1/6*(47*B*c^2*d^5 - 2*A*a^2*e^5 - 26*(2*B*b*c + A*c^2)*d^4*e + 11*(B*b^2 + 2*(B*a + A*b)*c)*d^3*e^2 - 2*(2*B*a*b + A*b^2 + 2*A*a*c)*d^2*e^3 - (B*a^2 + 2*A*a*b)*d*e^4 + 6*(10*B*c^2*d^3*e^2 - 6*(2*B*b*c + A*c^2)*d^2*e^3 + 3* (B*b^2 + 2*(B*a + A*b)*c)*d*e^4 - (2*B*a*b + A*b^2 + 2*A*a*c)*e^5)*x^2 + 3 *(35*B*c^2*d^4*e - 20*(2*B*b*c + A*c^2)*d^3*e^2 + 9*(B*b^2 + 2*(B*a + A*b) *c)*d^2*e^3 - 2*(2*B*a*b + A*b^2 + 2*A*a*c)*d*e^4 - (B*a^2 + 2*A*a*b)*e^5) *x)/(e^9*x^3 + 3*d*e^8*x^2 + 3*d^2*e^7*x + d^3*e^6) + 1/2*(B*c^2*e*x^2 - 2 *(4*B*c^2*d - (2*B*b*c + A*c^2)*e)*x)/e^5 + (10*B*c^2*d^2 - 4*(2*B*b*c + A *c^2)*d*e + (B*b^2 + 2*(B*a + A*b)*c)*e^2)*log(e*x + d)/e^6
Time = 0.16 (sec) , antiderivative size = 455, normalized size of antiderivative = 1.60 \[ \int \frac {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx=\frac {{\left (10 \, B c^{2} d^{2} - 8 \, B b c d e - 4 \, A c^{2} d e + B b^{2} e^{2} + 2 \, B a c e^{2} + 2 \, A b c e^{2}\right )} \log \left ({\left | e x + d \right |}\right )}{e^{6}} + \frac {B c^{2} e^{4} x^{2} - 8 \, B c^{2} d e^{3} x + 4 \, B b c e^{4} x + 2 \, A c^{2} e^{4} x}{2 \, e^{8}} + \frac {47 \, B c^{2} d^{5} - 52 \, B b c d^{4} e - 26 \, A c^{2} d^{4} e + 11 \, B b^{2} d^{3} e^{2} + 22 \, B a c d^{3} e^{2} + 22 \, A b c d^{3} e^{2} - 4 \, B a b d^{2} e^{3} - 2 \, A b^{2} d^{2} e^{3} - 4 \, A a c d^{2} e^{3} - B a^{2} d e^{4} - 2 \, A a b d e^{4} - 2 \, A a^{2} e^{5} + 6 \, {\left (10 \, B c^{2} d^{3} e^{2} - 12 \, B b c d^{2} e^{3} - 6 \, A c^{2} d^{2} e^{3} + 3 \, B b^{2} d e^{4} + 6 \, B a c d e^{4} + 6 \, A b c d e^{4} - 2 \, B a b e^{5} - A b^{2} e^{5} - 2 \, A a c e^{5}\right )} x^{2} + 3 \, {\left (35 \, B c^{2} d^{4} e - 40 \, B b c d^{3} e^{2} - 20 \, A c^{2} d^{3} e^{2} + 9 \, B b^{2} d^{2} e^{3} + 18 \, B a c d^{2} e^{3} + 18 \, A b c d^{2} e^{3} - 4 \, B a b d e^{4} - 2 \, A b^{2} d e^{4} - 4 \, A a c d e^{4} - B a^{2} e^{5} - 2 \, A a b e^{5}\right )} x}{6 \, {\left (e x + d\right )}^{3} e^{6}} \] Input:
integrate((B*x+A)*(c*x^2+b*x+a)^2/(e*x+d)^4,x, algorithm="giac")
Output:
(10*B*c^2*d^2 - 8*B*b*c*d*e - 4*A*c^2*d*e + B*b^2*e^2 + 2*B*a*c*e^2 + 2*A* b*c*e^2)*log(abs(e*x + d))/e^6 + 1/2*(B*c^2*e^4*x^2 - 8*B*c^2*d*e^3*x + 4* B*b*c*e^4*x + 2*A*c^2*e^4*x)/e^8 + 1/6*(47*B*c^2*d^5 - 52*B*b*c*d^4*e - 26 *A*c^2*d^4*e + 11*B*b^2*d^3*e^2 + 22*B*a*c*d^3*e^2 + 22*A*b*c*d^3*e^2 - 4* B*a*b*d^2*e^3 - 2*A*b^2*d^2*e^3 - 4*A*a*c*d^2*e^3 - B*a^2*d*e^4 - 2*A*a*b* d*e^4 - 2*A*a^2*e^5 + 6*(10*B*c^2*d^3*e^2 - 12*B*b*c*d^2*e^3 - 6*A*c^2*d^2 *e^3 + 3*B*b^2*d*e^4 + 6*B*a*c*d*e^4 + 6*A*b*c*d*e^4 - 2*B*a*b*e^5 - A*b^2 *e^5 - 2*A*a*c*e^5)*x^2 + 3*(35*B*c^2*d^4*e - 40*B*b*c*d^3*e^2 - 20*A*c^2* d^3*e^2 + 9*B*b^2*d^2*e^3 + 18*B*a*c*d^2*e^3 + 18*A*b*c*d^2*e^3 - 4*B*a*b* d*e^4 - 2*A*b^2*d*e^4 - 4*A*a*c*d*e^4 - B*a^2*e^5 - 2*A*a*b*e^5)*x)/((e*x + d)^3*e^6)
Time = 0.17 (sec) , antiderivative size = 465, normalized size of antiderivative = 1.64 \[ \int \frac {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx=x\,\left (\frac {A\,c^2+2\,B\,b\,c}{e^4}-\frac {4\,B\,c^2\,d}{e^5}\right )-\frac {x^2\,\left (-3\,B\,b^2\,d\,e^3+A\,b^2\,e^4+12\,B\,b\,c\,d^2\,e^2-6\,A\,b\,c\,d\,e^3+2\,B\,a\,b\,e^4-10\,B\,c^2\,d^3\,e+6\,A\,c^2\,d^2\,e^2-6\,B\,a\,c\,d\,e^3+2\,A\,a\,c\,e^4\right )+x\,\left (\frac {B\,a^2\,e^4}{2}+2\,B\,a\,b\,d\,e^3+A\,a\,b\,e^4-9\,B\,a\,c\,d^2\,e^2+2\,A\,a\,c\,d\,e^3-\frac {9\,B\,b^2\,d^2\,e^2}{2}+A\,b^2\,d\,e^3+20\,B\,b\,c\,d^3\,e-9\,A\,b\,c\,d^2\,e^2-\frac {35\,B\,c^2\,d^4}{2}+10\,A\,c^2\,d^3\,e\right )+\frac {B\,a^2\,d\,e^4+2\,A\,a^2\,e^5+4\,B\,a\,b\,d^2\,e^3+2\,A\,a\,b\,d\,e^4-22\,B\,a\,c\,d^3\,e^2+4\,A\,a\,c\,d^2\,e^3-11\,B\,b^2\,d^3\,e^2+2\,A\,b^2\,d^2\,e^3+52\,B\,b\,c\,d^4\,e-22\,A\,b\,c\,d^3\,e^2-47\,B\,c^2\,d^5+26\,A\,c^2\,d^4\,e}{6\,e}}{d^3\,e^5+3\,d^2\,e^6\,x+3\,d\,e^7\,x^2+e^8\,x^3}+\frac {\ln \left (d+e\,x\right )\,\left (B\,b^2\,e^2-8\,B\,b\,c\,d\,e+2\,A\,b\,c\,e^2+10\,B\,c^2\,d^2-4\,A\,c^2\,d\,e+2\,B\,a\,c\,e^2\right )}{e^6}+\frac {B\,c^2\,x^2}{2\,e^4} \] Input:
int(((A + B*x)*(a + b*x + c*x^2)^2)/(d + e*x)^4,x)
Output:
x*((A*c^2 + 2*B*b*c)/e^4 - (4*B*c^2*d)/e^5) - (x^2*(A*b^2*e^4 + 2*A*a*c*e^ 4 + 2*B*a*b*e^4 - 3*B*b^2*d*e^3 - 10*B*c^2*d^3*e + 6*A*c^2*d^2*e^2 - 6*A*b *c*d*e^3 - 6*B*a*c*d*e^3 + 12*B*b*c*d^2*e^2) + x*((B*a^2*e^4)/2 - (35*B*c^ 2*d^4)/2 + A*a*b*e^4 + A*b^2*d*e^3 + 10*A*c^2*d^3*e - (9*B*b^2*d^2*e^2)/2 + 2*A*a*c*d*e^3 + 2*B*a*b*d*e^3 + 20*B*b*c*d^3*e - 9*A*b*c*d^2*e^2 - 9*B*a *c*d^2*e^2) + (2*A*a^2*e^5 - 47*B*c^2*d^5 + B*a^2*d*e^4 + 26*A*c^2*d^4*e + 2*A*b^2*d^2*e^3 - 11*B*b^2*d^3*e^2 + 2*A*a*b*d*e^4 + 52*B*b*c*d^4*e + 4*A *a*c*d^2*e^3 + 4*B*a*b*d^2*e^3 - 22*A*b*c*d^3*e^2 - 22*B*a*c*d^3*e^2)/(6*e ))/(d^3*e^5 + e^8*x^3 + 3*d^2*e^6*x + 3*d*e^7*x^2) + (log(d + e*x)*(B*b^2* e^2 + 10*B*c^2*d^2 + 2*A*b*c*e^2 + 2*B*a*c*e^2 - 4*A*c^2*d*e - 8*B*b*c*d*e ))/e^6 + (B*c^2*x^2)/(2*e^4)
Time = 0.20 (sec) , antiderivative size = 703, normalized size of antiderivative = 2.48 \[ \int \frac {(A+B x) \left (a+b x+c x^2\right )^2}{(d+e x)^4} \, dx=\frac {-48 \,\mathrm {log}\left (e x +d \right ) b^{2} c \,d^{5} e -36 a \,c^{2} d^{4} e^{2} x +6 a \,c^{2} d \,e^{5} x^{4}-72 b^{2} c \,d^{4} e^{2} x +12 b^{2} c d \,e^{5} x^{4}+90 b \,c^{2} d^{5} e x -15 b \,c^{2} d^{2} e^{4} x^{4}+3 b \,c^{2} d \,e^{5} x^{5}+50 b \,c^{2} d^{6}-24 \,\mathrm {log}\left (e x +d \right ) a \,c^{2} d^{5} e +60 \,\mathrm {log}\left (e x +d \right ) b \,c^{2} d^{6}-20 a \,c^{2} d^{5} e -40 b^{2} c \,d^{5} e -2 a^{3} d \,e^{5}+5 b^{3} d^{4} e^{2}+18 \,\mathrm {log}\left (e x +d \right ) b^{3} d^{2} e^{4} x^{2}+20 a b c \,d^{4} e^{2}+18 \,\mathrm {log}\left (e x +d \right ) b^{3} d^{3} e^{3} x -9 a^{2} b d \,e^{5} x +24 a \,c^{2} d^{2} e^{4} x^{3}+48 b^{2} c \,d^{2} e^{4} x^{3}-60 b \,c^{2} d^{3} e^{3} x^{3}+6 \,\mathrm {log}\left (e x +d \right ) b^{3} d^{4} e^{2}+9 b^{3} d^{3} e^{3} x -6 b^{3} d \,e^{5} x^{3}-3 a^{2} b \,d^{2} e^{4}+4 a^{2} c \,e^{6} x^{3}+6 a \,b^{2} e^{6} x^{3}-72 \,\mathrm {log}\left (e x +d \right ) a \,c^{2} d^{4} e^{2} x -72 \,\mathrm {log}\left (e x +d \right ) a \,c^{2} d^{3} e^{3} x^{2}-24 \,\mathrm {log}\left (e x +d \right ) a \,c^{2} d^{2} e^{4} x^{3}-144 \,\mathrm {log}\left (e x +d \right ) b^{2} c \,d^{4} e^{2} x -144 \,\mathrm {log}\left (e x +d \right ) b^{2} c \,d^{3} e^{3} x^{2}-48 \,\mathrm {log}\left (e x +d \right ) b^{2} c \,d^{2} e^{4} x^{3}+180 \,\mathrm {log}\left (e x +d \right ) b \,c^{2} d^{5} e x +180 \,\mathrm {log}\left (e x +d \right ) b \,c^{2} d^{4} e^{2} x^{2}+60 \,\mathrm {log}\left (e x +d \right ) b \,c^{2} d^{3} e^{3} x^{3}+72 \,\mathrm {log}\left (e x +d \right ) a b c \,d^{2} e^{4} x^{2}+24 \,\mathrm {log}\left (e x +d \right ) a b c \,d^{4} e^{2}+36 a b c \,d^{3} e^{3} x -24 a b c d \,e^{5} x^{3}+72 \,\mathrm {log}\left (e x +d \right ) a b c \,d^{3} e^{3} x +24 \,\mathrm {log}\left (e x +d \right ) a b c d \,e^{5} x^{3}+6 \,\mathrm {log}\left (e x +d \right ) b^{3} d \,e^{5} x^{3}}{6 d \,e^{6} \left (e^{3} x^{3}+3 d \,e^{2} x^{2}+3 d^{2} e x +d^{3}\right )} \] Input:
int((B*x+A)*(c*x^2+b*x+a)^2/(e*x+d)^4,x)
Output:
(24*log(d + e*x)*a*b*c*d**4*e**2 + 72*log(d + e*x)*a*b*c*d**3*e**3*x + 72* log(d + e*x)*a*b*c*d**2*e**4*x**2 + 24*log(d + e*x)*a*b*c*d*e**5*x**3 - 24 *log(d + e*x)*a*c**2*d**5*e - 72*log(d + e*x)*a*c**2*d**4*e**2*x - 72*log( d + e*x)*a*c**2*d**3*e**3*x**2 - 24*log(d + e*x)*a*c**2*d**2*e**4*x**3 + 6 *log(d + e*x)*b**3*d**4*e**2 + 18*log(d + e*x)*b**3*d**3*e**3*x + 18*log(d + e*x)*b**3*d**2*e**4*x**2 + 6*log(d + e*x)*b**3*d*e**5*x**3 - 48*log(d + e*x)*b**2*c*d**5*e - 144*log(d + e*x)*b**2*c*d**4*e**2*x - 144*log(d + e* x)*b**2*c*d**3*e**3*x**2 - 48*log(d + e*x)*b**2*c*d**2*e**4*x**3 + 60*log( d + e*x)*b*c**2*d**6 + 180*log(d + e*x)*b*c**2*d**5*e*x + 180*log(d + e*x) *b*c**2*d**4*e**2*x**2 + 60*log(d + e*x)*b*c**2*d**3*e**3*x**3 - 2*a**3*d* e**5 - 3*a**2*b*d**2*e**4 - 9*a**2*b*d*e**5*x + 4*a**2*c*e**6*x**3 + 6*a*b **2*e**6*x**3 + 20*a*b*c*d**4*e**2 + 36*a*b*c*d**3*e**3*x - 24*a*b*c*d*e** 5*x**3 - 20*a*c**2*d**5*e - 36*a*c**2*d**4*e**2*x + 24*a*c**2*d**2*e**4*x* *3 + 6*a*c**2*d*e**5*x**4 + 5*b**3*d**4*e**2 + 9*b**3*d**3*e**3*x - 6*b**3 *d*e**5*x**3 - 40*b**2*c*d**5*e - 72*b**2*c*d**4*e**2*x + 48*b**2*c*d**2*e **4*x**3 + 12*b**2*c*d*e**5*x**4 + 50*b*c**2*d**6 + 90*b*c**2*d**5*e*x - 6 0*b*c**2*d**3*e**3*x**3 - 15*b*c**2*d**2*e**4*x**4 + 3*b*c**2*d*e**5*x**5) /(6*d*e**6*(d**3 + 3*d**2*e*x + 3*d*e**2*x**2 + e**3*x**3))