Integrand size = 46, antiderivative size = 98 \[ \int \frac {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx=-\frac {b (b c-a d)^3 x}{d^4}+\frac {(b c-a d)^2 (a+b x)^2}{2 d^3}-\frac {(b c-a d) (a+b x)^3}{3 d^2}+\frac {(a+b x)^4}{4 d}+\frac {(b c-a d)^4 \log (c+d x)}{d^5} \] Output:
-b*(-a*d+b*c)^3*x/d^4+1/2*(-a*d+b*c)^2*(b*x+a)^2/d^3-1/3*(-a*d+b*c)*(b*x+a )^3/d^2+1/4*(b*x+a)^4/d+(-a*d+b*c)^4*ln(d*x+c)/d^5
Time = 0.01 (sec) , antiderivative size = 115, normalized size of antiderivative = 1.17 \[ \int \frac {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx=\frac {b d x \left (48 a^3 d^3+36 a^2 b d^2 (-2 c+d x)+8 a b^2 d \left (6 c^2-3 c d x+2 d^2 x^2\right )+b^3 \left (-12 c^3+6 c^2 d x-4 c d^2 x^2+3 d^3 x^3\right )\right )+12 (b c-a d)^4 \log (c+d x)}{12 d^5} \] Input:
Integrate[(a^4 + 4*a^3*b*x + 6*a^2*b^2*x^2 + 4*a*b^3*x^3 + b^4*x^4)/(c + d *x),x]
Output:
(b*d*x*(48*a^3*d^3 + 36*a^2*b*d^2*(-2*c + d*x) + 8*a*b^2*d*(6*c^2 - 3*c*d* x + 2*d^2*x^2) + b^3*(-12*c^3 + 6*c^2*d*x - 4*c*d^2*x^2 + 3*d^3*x^3)) + 12 *(b*c - a*d)^4*Log[c + d*x])/(12*d^5)
Time = 0.24 (sec) , antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.065, Rules used = {2006, 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 {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx\) |
\(\Big \downarrow \) 2006 |
\(\displaystyle \int \frac {(a+b x)^4}{c+d x}dx\) |
\(\Big \downarrow \) 49 |
\(\displaystyle \int \left (\frac {(a d-b c)^4}{d^4 (c+d x)}-\frac {b (b c-a d)^3}{d^4}+\frac {b (a+b x) (b c-a d)^2}{d^3}-\frac {b (a+b x)^2 (b c-a d)}{d^2}+\frac {b (a+b x)^3}{d}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {(b c-a d)^4 \log (c+d x)}{d^5}-\frac {b x (b c-a d)^3}{d^4}+\frac {(a+b x)^2 (b c-a d)^2}{2 d^3}-\frac {(a+b x)^3 (b c-a d)}{3 d^2}+\frac {(a+b x)^4}{4 d}\) |
Input:
Int[(a^4 + 4*a^3*b*x + 6*a^2*b^2*x^2 + 4*a*b^3*x^3 + b^4*x^4)/(c + d*x),x]
Output:
-((b*(b*c - a*d)^3*x)/d^4) + ((b*c - a*d)^2*(a + b*x)^2)/(2*d^3) - ((b*c - a*d)*(a + b*x)^3)/(3*d^2) + (a + b*x)^4/(4*d) + ((b*c - a*d)^4*Log[c + d* x])/d^5
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[(u_.)*(Px_), x_Symbol] :> With[{a = Rt[Coeff[Px, x, 0], Expon[Px, x]], b = Rt[Coeff[Px, x, Expon[Px, x]], Expon[Px, x]]}, Int[u*(a + b*x)^Expon[Px , x], x] /; EqQ[Px, (a + b*x)^Expon[Px, x]]] /; PolyQ[Px, x] && GtQ[Expon[P x, x], 1] && NeQ[Coeff[Px, x, 0], 0] && !MatchQ[Px, (a_.)*(v_)^Expon[Px, x ] /; FreeQ[a, x] && LinearQ[v, x]]
Time = 0.12 (sec) , antiderivative size = 168, normalized size of antiderivative = 1.71
method | result | size |
norman | \(\frac {b \left (4 a^{3} d^{3}-6 a^{2} b c \,d^{2}+4 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) x}{d^{4}}+\frac {b^{4} x^{4}}{4 d}+\frac {b^{3} \left (4 a d -b c \right ) x^{3}}{3 d^{2}}+\frac {b^{2} \left (6 a^{2} d^{2}-4 a b c d +b^{2} c^{2}\right ) x^{2}}{2 d^{3}}+\frac {\left (d^{4} a^{4}-4 a^{3} b c \,d^{3}+6 a^{2} b^{2} c^{2} d^{2}-4 a \,b^{3} c^{3} d +c^{4} b^{4}\right ) \ln \left (x d +c \right )}{d^{5}}\) | \(168\) |
default | \(\frac {b \left (\frac {d^{3} x^{4} b^{3}}{4}+\frac {\left (\left (2 a d -b c \right ) b^{2} d^{2}+2 a \,b^{2} d^{3}\right ) x^{3}}{3}+\frac {\left (2 \left (2 a d -b c \right ) a b \,d^{2}+d b \left (2 a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right )\right ) x^{2}}{2}+\left (2 a d -b c \right ) \left (2 a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) x \right )}{d^{4}}+\frac {\left (d^{4} a^{4}-4 a^{3} b c \,d^{3}+6 a^{2} b^{2} c^{2} d^{2}-4 a \,b^{3} c^{3} d +c^{4} b^{4}\right ) \ln \left (x d +c \right )}{d^{5}}\) | \(189\) |
risch | \(\frac {b^{4} x^{4}}{4 d}+\frac {4 b^{3} x^{3} a}{3 d}-\frac {b^{4} x^{3} c}{3 d^{2}}+\frac {3 b^{2} x^{2} a^{2}}{d}-\frac {2 b^{3} x^{2} a c}{d^{2}}+\frac {b^{4} x^{2} c^{2}}{2 d^{3}}+\frac {4 b \,a^{3} x}{d}-\frac {6 b^{2} a^{2} c x}{d^{2}}+\frac {4 b^{3} a \,c^{2} x}{d^{3}}-\frac {b^{4} c^{3} x}{d^{4}}+\frac {\ln \left (x d +c \right ) a^{4}}{d}-\frac {4 \ln \left (x d +c \right ) a^{3} b c}{d^{2}}+\frac {6 \ln \left (x d +c \right ) a^{2} b^{2} c^{2}}{d^{3}}-\frac {4 \ln \left (x d +c \right ) a \,b^{3} c^{3}}{d^{4}}+\frac {\ln \left (x d +c \right ) c^{4} b^{4}}{d^{5}}\) | \(209\) |
parallelrisch | \(\frac {3 d^{4} x^{4} b^{4}+16 a \,b^{3} d^{4} x^{3}-4 b^{4} c \,d^{3} x^{3}+36 a^{2} b^{2} d^{4} x^{2}-24 a \,b^{3} c \,d^{3} x^{2}+6 b^{4} c^{2} d^{2} x^{2}+12 \ln \left (x d +c \right ) a^{4} d^{4}-48 \ln \left (x d +c \right ) a^{3} b c \,d^{3}+72 \ln \left (x d +c \right ) a^{2} b^{2} c^{2} d^{2}-48 \ln \left (x d +c \right ) a \,b^{3} c^{3} d +12 \ln \left (x d +c \right ) b^{4} c^{4}+48 a^{3} b \,d^{4} x -72 a^{2} b^{2} c \,d^{3} x +48 a \,b^{3} c^{2} d^{2} x -12 b^{4} c^{3} d x}{12 d^{5}}\) | \(209\) |
Input:
int((b^4*x^4+4*a*b^3*x^3+6*a^2*b^2*x^2+4*a^3*b*x+a^4)/(d*x+c),x,method=_RE TURNVERBOSE)
Output:
b*(4*a^3*d^3-6*a^2*b*c*d^2+4*a*b^2*c^2*d-b^3*c^3)/d^4*x+1/4*b^4/d*x^4+1/3* b^3/d^2*(4*a*d-b*c)*x^3+1/2/d^3*b^2*(6*a^2*d^2-4*a*b*c*d+b^2*c^2)*x^2+(a^4 *d^4-4*a^3*b*c*d^3+6*a^2*b^2*c^2*d^2-4*a*b^3*c^3*d+b^4*c^4)/d^5*ln(d*x+c)
Time = 0.07 (sec) , antiderivative size = 179, normalized size of antiderivative = 1.83 \[ \int \frac {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx=\frac {3 \, b^{4} d^{4} x^{4} - 4 \, {\left (b^{4} c d^{3} - 4 \, a b^{3} d^{4}\right )} x^{3} + 6 \, {\left (b^{4} c^{2} d^{2} - 4 \, a b^{3} c d^{3} + 6 \, a^{2} b^{2} d^{4}\right )} x^{2} - 12 \, {\left (b^{4} c^{3} d - 4 \, a b^{3} c^{2} d^{2} + 6 \, a^{2} b^{2} c d^{3} - 4 \, a^{3} b d^{4}\right )} x + 12 \, {\left (b^{4} c^{4} - 4 \, a b^{3} c^{3} d + 6 \, a^{2} b^{2} c^{2} d^{2} - 4 \, a^{3} b c d^{3} + a^{4} d^{4}\right )} \log \left (d x + c\right )}{12 \, d^{5}} \] Input:
integrate((b^4*x^4+4*a*b^3*x^3+6*a^2*b^2*x^2+4*a^3*b*x+a^4)/(d*x+c),x, alg orithm="fricas")
Output:
1/12*(3*b^4*d^4*x^4 - 4*(b^4*c*d^3 - 4*a*b^3*d^4)*x^3 + 6*(b^4*c^2*d^2 - 4 *a*b^3*c*d^3 + 6*a^2*b^2*d^4)*x^2 - 12*(b^4*c^3*d - 4*a*b^3*c^2*d^2 + 6*a^ 2*b^2*c*d^3 - 4*a^3*b*d^4)*x + 12*(b^4*c^4 - 4*a*b^3*c^3*d + 6*a^2*b^2*c^2 *d^2 - 4*a^3*b*c*d^3 + a^4*d^4)*log(d*x + c))/d^5
Time = 0.18 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.39 \[ \int \frac {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx=\frac {b^{4} x^{4}}{4 d} + x^{3} \cdot \left (\frac {4 a b^{3}}{3 d} - \frac {b^{4} c}{3 d^{2}}\right ) + x^{2} \cdot \left (\frac {3 a^{2} b^{2}}{d} - \frac {2 a b^{3} c}{d^{2}} + \frac {b^{4} c^{2}}{2 d^{3}}\right ) + x \left (\frac {4 a^{3} b}{d} - \frac {6 a^{2} b^{2} c}{d^{2}} + \frac {4 a b^{3} c^{2}}{d^{3}} - \frac {b^{4} c^{3}}{d^{4}}\right ) + \frac {\left (a d - b c\right )^{4} \log {\left (c + d x \right )}}{d^{5}} \] Input:
integrate((b**4*x**4+4*a*b**3*x**3+6*a**2*b**2*x**2+4*a**3*b*x+a**4)/(d*x+ c),x)
Output:
b**4*x**4/(4*d) + x**3*(4*a*b**3/(3*d) - b**4*c/(3*d**2)) + x**2*(3*a**2*b **2/d - 2*a*b**3*c/d**2 + b**4*c**2/(2*d**3)) + x*(4*a**3*b/d - 6*a**2*b** 2*c/d**2 + 4*a*b**3*c**2/d**3 - b**4*c**3/d**4) + (a*d - b*c)**4*log(c + d *x)/d**5
Time = 0.03 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.81 \[ \int \frac {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx=\frac {3 \, b^{4} d^{3} x^{4} - 4 \, {\left (b^{4} c d^{2} - 4 \, a b^{3} d^{3}\right )} x^{3} + 6 \, {\left (b^{4} c^{2} d - 4 \, a b^{3} c d^{2} + 6 \, a^{2} b^{2} d^{3}\right )} x^{2} - 12 \, {\left (b^{4} c^{3} - 4 \, a b^{3} c^{2} d + 6 \, a^{2} b^{2} c d^{2} - 4 \, a^{3} b d^{3}\right )} x}{12 \, d^{4}} + \frac {{\left (b^{4} c^{4} - 4 \, a b^{3} c^{3} d + 6 \, a^{2} b^{2} c^{2} d^{2} - 4 \, a^{3} b c d^{3} + a^{4} d^{4}\right )} \log \left (d x + c\right )}{d^{5}} \] Input:
integrate((b^4*x^4+4*a*b^3*x^3+6*a^2*b^2*x^2+4*a^3*b*x+a^4)/(d*x+c),x, alg orithm="maxima")
Output:
1/12*(3*b^4*d^3*x^4 - 4*(b^4*c*d^2 - 4*a*b^3*d^3)*x^3 + 6*(b^4*c^2*d - 4*a *b^3*c*d^2 + 6*a^2*b^2*d^3)*x^2 - 12*(b^4*c^3 - 4*a*b^3*c^2*d + 6*a^2*b^2* c*d^2 - 4*a^3*b*d^3)*x)/d^4 + (b^4*c^4 - 4*a*b^3*c^3*d + 6*a^2*b^2*c^2*d^2 - 4*a^3*b*c*d^3 + a^4*d^4)*log(d*x + c)/d^5
Time = 0.12 (sec) , antiderivative size = 184, normalized size of antiderivative = 1.88 \[ \int \frac {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx=\frac {3 \, b^{4} d^{3} x^{4} - 4 \, b^{4} c d^{2} x^{3} + 16 \, a b^{3} d^{3} x^{3} + 6 \, b^{4} c^{2} d x^{2} - 24 \, a b^{3} c d^{2} x^{2} + 36 \, a^{2} b^{2} d^{3} x^{2} - 12 \, b^{4} c^{3} x + 48 \, a b^{3} c^{2} d x - 72 \, a^{2} b^{2} c d^{2} x + 48 \, a^{3} b d^{3} x}{12 \, d^{4}} + \frac {{\left (b^{4} c^{4} - 4 \, a b^{3} c^{3} d + 6 \, a^{2} b^{2} c^{2} d^{2} - 4 \, a^{3} b c d^{3} + a^{4} d^{4}\right )} \log \left ({\left | d x + c \right |}\right )}{d^{5}} \] Input:
integrate((b^4*x^4+4*a*b^3*x^3+6*a^2*b^2*x^2+4*a^3*b*x+a^4)/(d*x+c),x, alg orithm="giac")
Output:
1/12*(3*b^4*d^3*x^4 - 4*b^4*c*d^2*x^3 + 16*a*b^3*d^3*x^3 + 6*b^4*c^2*d*x^2 - 24*a*b^3*c*d^2*x^2 + 36*a^2*b^2*d^3*x^2 - 12*b^4*c^3*x + 48*a*b^3*c^2*d *x - 72*a^2*b^2*c*d^2*x + 48*a^3*b*d^3*x)/d^4 + (b^4*c^4 - 4*a*b^3*c^3*d + 6*a^2*b^2*c^2*d^2 - 4*a^3*b*c*d^3 + a^4*d^4)*log(abs(d*x + c))/d^5
Time = 0.00 (sec) , antiderivative size = 189, normalized size of antiderivative = 1.93 \[ \int \frac {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx=x^3\,\left (\frac {4\,a\,b^3}{3\,d}-\frac {b^4\,c}{3\,d^2}\right )+x\,\left (\frac {4\,a^3\,b}{d}+\frac {c\,\left (\frac {c\,\left (\frac {4\,a\,b^3}{d}-\frac {b^4\,c}{d^2}\right )}{d}-\frac {6\,a^2\,b^2}{d}\right )}{d}\right )-x^2\,\left (\frac {c\,\left (\frac {4\,a\,b^3}{d}-\frac {b^4\,c}{d^2}\right )}{2\,d}-\frac {3\,a^2\,b^2}{d}\right )+\frac {\ln \left (c+d\,x\right )\,\left (a^4\,d^4-4\,a^3\,b\,c\,d^3+6\,a^2\,b^2\,c^2\,d^2-4\,a\,b^3\,c^3\,d+b^4\,c^4\right )}{d^5}+\frac {b^4\,x^4}{4\,d} \] Input:
int((a^4 + b^4*x^4 + 4*a*b^3*x^3 + 6*a^2*b^2*x^2 + 4*a^3*b*x)/(c + d*x),x)
Output:
x^3*((4*a*b^3)/(3*d) - (b^4*c)/(3*d^2)) + x*((4*a^3*b)/d + (c*((c*((4*a*b^ 3)/d - (b^4*c)/d^2))/d - (6*a^2*b^2)/d))/d) - x^2*((c*((4*a*b^3)/d - (b^4* c)/d^2))/(2*d) - (3*a^2*b^2)/d) + (log(c + d*x)*(a^4*d^4 + b^4*c^4 + 6*a^2 *b^2*c^2*d^2 - 4*a*b^3*c^3*d - 4*a^3*b*c*d^3))/d^5 + (b^4*x^4)/(4*d)
Time = 0.17 (sec) , antiderivative size = 208, normalized size of antiderivative = 2.12 \[ \int \frac {a^4+4 a^3 b x+6 a^2 b^2 x^2+4 a b^3 x^3+b^4 x^4}{c+d x} \, dx=\frac {12 \,\mathrm {log}\left (d x +c \right ) a^{4} d^{4}-48 \,\mathrm {log}\left (d x +c \right ) a^{3} b c \,d^{3}+72 \,\mathrm {log}\left (d x +c \right ) a^{2} b^{2} c^{2} d^{2}-48 \,\mathrm {log}\left (d x +c \right ) a \,b^{3} c^{3} d +12 \,\mathrm {log}\left (d x +c \right ) b^{4} c^{4}+48 a^{3} b \,d^{4} x -72 a^{2} b^{2} c \,d^{3} x +36 a^{2} b^{2} d^{4} x^{2}+48 a \,b^{3} c^{2} d^{2} x -24 a \,b^{3} c \,d^{3} x^{2}+16 a \,b^{3} d^{4} x^{3}-12 b^{4} c^{3} d x +6 b^{4} c^{2} d^{2} x^{2}-4 b^{4} c \,d^{3} x^{3}+3 b^{4} d^{4} x^{4}}{12 d^{5}} \] Input:
int((b^4*x^4+4*a*b^3*x^3+6*a^2*b^2*x^2+4*a^3*b*x+a^4)/(d*x+c),x)
Output:
(12*log(c + d*x)*a**4*d**4 - 48*log(c + d*x)*a**3*b*c*d**3 + 72*log(c + d* x)*a**2*b**2*c**2*d**2 - 48*log(c + d*x)*a*b**3*c**3*d + 12*log(c + d*x)*b **4*c**4 + 48*a**3*b*d**4*x - 72*a**2*b**2*c*d**3*x + 36*a**2*b**2*d**4*x* *2 + 48*a*b**3*c**2*d**2*x - 24*a*b**3*c*d**3*x**2 + 16*a*b**3*d**4*x**3 - 12*b**4*c**3*d*x + 6*b**4*c**2*d**2*x**2 - 4*b**4*c*d**3*x**3 + 3*b**4*d* *4*x**4)/(12*d**5)