Integrand size = 22, antiderivative size = 65 \[ \int (b d+2 c d x)^m \left (a+b x+c x^2\right ) \, dx=-\frac {\left (b^2-4 a c\right ) (b d+2 c d x)^{1+m}}{8 c^2 d (1+m)}+\frac {(b d+2 c d x)^{3+m}}{8 c^2 d^3 (3+m)} \] Output:
-1/8*(-4*a*c+b^2)*(2*c*d*x+b*d)^(1+m)/c^2/d/(1+m)+1/8*(2*c*d*x+b*d)^(3+m)/ c^2/d^3/(3+m)
Time = 0.09 (sec) , antiderivative size = 64, normalized size of antiderivative = 0.98 \[ \int (b d+2 c d x)^m \left (a+b x+c x^2\right ) \, dx=\frac {(b+2 c x) (d (b+2 c x))^m \left (-b^2+2 b c (1+m) x+2 c \left (a (3+m)+c (1+m) x^2\right )\right )}{4 c^2 (1+m) (3+m)} \] Input:
Integrate[(b*d + 2*c*d*x)^m*(a + b*x + c*x^2),x]
Output:
((b + 2*c*x)*(d*(b + 2*c*x))^m*(-b^2 + 2*b*c*(1 + m)*x + 2*c*(a*(3 + m) + c*(1 + m)*x^2)))/(4*c^2*(1 + m)*(3 + m))
Time = 0.20 (sec) , antiderivative size = 65, 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.091, Rules used = {1107, 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 \left (a+b x+c x^2\right ) (b d+2 c d x)^m \, dx\) |
\(\Big \downarrow \) 1107 |
\(\displaystyle \int \left (\frac {\left (4 a c-b^2\right ) (b d+2 c d x)^m}{4 c}+\frac {(b d+2 c d x)^{m+2}}{4 c d^2}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {(b d+2 c d x)^{m+3}}{8 c^2 d^3 (m+3)}-\frac {\left (b^2-4 a c\right ) (b d+2 c d x)^{m+1}}{8 c^2 d (m+1)}\) |
Input:
Int[(b*d + 2*c*d*x)^m*(a + b*x + c*x^2),x]
Output:
-1/8*((b^2 - 4*a*c)*(b*d + 2*c*d*x)^(1 + m))/(c^2*d*(1 + m)) + (b*d + 2*c* d*x)^(3 + m)/(8*c^2*d^3*(3 + m))
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] /; F reeQ[{a, b, c, d, e, m}, x] && EqQ[2*c*d - b*e, 0] && IGtQ[p, 0] && !(EqQ[ m, 3] && NeQ[p, 1])
Time = 0.54 (sec) , antiderivative size = 76, normalized size of antiderivative = 1.17
method | result | size |
gosper | \(\frac {\left (2 c d x +b d \right )^{m} \left (2 c^{2} m \,x^{2}+2 b c m x +2 c^{2} x^{2}+2 a c m +2 c b x +6 a c -b^{2}\right ) \left (2 c x +b \right )}{4 c^{2} \left (m^{2}+4 m +3\right )}\) | \(76\) |
orering | \(\frac {\left (2 c d x +b d \right )^{m} \left (2 c^{2} m \,x^{2}+2 b c m x +2 c^{2} x^{2}+2 a c m +2 c b x +6 a c -b^{2}\right ) \left (2 c x +b \right )}{4 c^{2} \left (m^{2}+4 m +3\right )}\) | \(76\) |
risch | \(\frac {\left (4 c^{3} x^{3} m +6 b \,c^{2} x^{2} m +4 c^{3} x^{3}+4 a \,c^{2} m x +2 b^{2} c m x +6 b \,c^{2} x^{2}+2 a b c m +12 a \,c^{2} x +6 a b c -b^{3}\right ) \left (d \left (2 c x +b \right )\right )^{m}}{4 c^{2} \left (3+m \right ) \left (1+m \right )}\) | \(102\) |
norman | \(\frac {c \,x^{3} {\mathrm e}^{m \ln \left (2 c d x +b d \right )}}{3+m}+\frac {3 b \,x^{2} {\mathrm e}^{m \ln \left (2 c d x +b d \right )}}{2 \left (3+m \right )}+\frac {b \left (2 a c m +6 a c -b^{2}\right ) {\mathrm e}^{m \ln \left (2 c d x +b d \right )}}{4 c^{2} \left (m^{2}+4 m +3\right )}+\frac {\left (2 a c m +b^{2} m +6 a c \right ) x \,{\mathrm e}^{m \ln \left (2 c d x +b d \right )}}{2 c \left (m^{2}+4 m +3\right )}\) | \(137\) |
parallelrisch | \(\frac {4 x^{3} \left (d \left (2 c x +b \right )\right )^{m} c^{3} m +4 x^{3} \left (d \left (2 c x +b \right )\right )^{m} c^{3}+6 x^{2} \left (d \left (2 c x +b \right )\right )^{m} b \,c^{2} m +6 x^{2} \left (d \left (2 c x +b \right )\right )^{m} b \,c^{2}+4 x \left (d \left (2 c x +b \right )\right )^{m} a \,c^{2} m +2 x \left (d \left (2 c x +b \right )\right )^{m} b^{2} c m +12 x \left (d \left (2 c x +b \right )\right )^{m} a \,c^{2}+2 \left (d \left (2 c x +b \right )\right )^{m} a b c m +6 \left (d \left (2 c x +b \right )\right )^{m} a b c -\left (d \left (2 c x +b \right )\right )^{m} b^{3}}{4 c^{2} \left (m^{2}+4 m +3\right )}\) | \(192\) |
Input:
int((2*c*d*x+b*d)^m*(c*x^2+b*x+a),x,method=_RETURNVERBOSE)
Output:
1/4*(2*c*d*x+b*d)^m*(2*c^2*m*x^2+2*b*c*m*x+2*c^2*x^2+2*a*c*m+2*b*c*x+6*a*c -b^2)*(2*c*x+b)/c^2/(m^2+4*m+3)
Time = 0.09 (sec) , antiderivative size = 106, normalized size of antiderivative = 1.63 \[ \int (b d+2 c d x)^m \left (a+b x+c x^2\right ) \, dx=\frac {{\left (2 \, a b c m + 4 \, {\left (c^{3} m + c^{3}\right )} x^{3} - b^{3} + 6 \, a b c + 6 \, {\left (b c^{2} m + b c^{2}\right )} x^{2} + 2 \, {\left (6 \, a c^{2} + {\left (b^{2} c + 2 \, a c^{2}\right )} m\right )} x\right )} {\left (2 \, c d x + b d\right )}^{m}}{4 \, {\left (c^{2} m^{2} + 4 \, c^{2} m + 3 \, c^{2}\right )}} \] Input:
integrate((2*c*d*x+b*d)^m*(c*x^2+b*x+a),x, algorithm="fricas")
Output:
1/4*(2*a*b*c*m + 4*(c^3*m + c^3)*x^3 - b^3 + 6*a*b*c + 6*(b*c^2*m + b*c^2) *x^2 + 2*(6*a*c^2 + (b^2*c + 2*a*c^2)*m)*x)*(2*c*d*x + b*d)^m/(c^2*m^2 + 4 *c^2*m + 3*c^2)
Leaf count of result is larger than twice the leaf count of optimal. 707 vs. \(2 (56) = 112\).
Time = 0.42 (sec) , antiderivative size = 707, normalized size of antiderivative = 10.88 \[ \int (b d+2 c d x)^m \left (a+b x+c x^2\right ) \, dx=\begin {cases} \left (b d\right )^{m} \left (a x + \frac {b x^{2}}{2}\right ) & \text {for}\: c = 0 \\- \frac {4 a c}{16 b^{2} c^{2} d^{3} + 64 b c^{3} d^{3} x + 64 c^{4} d^{3} x^{2}} + \frac {2 b^{2} \log {\left (\frac {b}{2 c} + x \right )}}{16 b^{2} c^{2} d^{3} + 64 b c^{3} d^{3} x + 64 c^{4} d^{3} x^{2}} + \frac {b^{2}}{16 b^{2} c^{2} d^{3} + 64 b c^{3} d^{3} x + 64 c^{4} d^{3} x^{2}} + \frac {8 b c x \log {\left (\frac {b}{2 c} + x \right )}}{16 b^{2} c^{2} d^{3} + 64 b c^{3} d^{3} x + 64 c^{4} d^{3} x^{2}} + \frac {8 c^{2} x^{2} \log {\left (\frac {b}{2 c} + x \right )}}{16 b^{2} c^{2} d^{3} + 64 b c^{3} d^{3} x + 64 c^{4} d^{3} x^{2}} & \text {for}\: m = -3 \\\frac {a \log {\left (\frac {b}{2 c} + x \right )}}{2 c d} - \frac {b^{2} \log {\left (\frac {b}{2 c} + x \right )}}{8 c^{2} d} + \frac {b x}{4 c d} + \frac {x^{2}}{4 d} & \text {for}\: m = -1 \\\frac {2 a b c m \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} + \frac {6 a b c \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} + \frac {4 a c^{2} m x \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} + \frac {12 a c^{2} x \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} - \frac {b^{3} \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} + \frac {2 b^{2} c m x \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} + \frac {6 b c^{2} m x^{2} \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} + \frac {6 b c^{2} x^{2} \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} + \frac {4 c^{3} m x^{3} \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} + \frac {4 c^{3} x^{3} \left (b d + 2 c d x\right )^{m}}{4 c^{2} m^{2} + 16 c^{2} m + 12 c^{2}} & \text {otherwise} \end {cases} \] Input:
integrate((2*c*d*x+b*d)**m*(c*x**2+b*x+a),x)
Output:
Piecewise(((b*d)**m*(a*x + b*x**2/2), Eq(c, 0)), (-4*a*c/(16*b**2*c**2*d** 3 + 64*b*c**3*d**3*x + 64*c**4*d**3*x**2) + 2*b**2*log(b/(2*c) + x)/(16*b* *2*c**2*d**3 + 64*b*c**3*d**3*x + 64*c**4*d**3*x**2) + b**2/(16*b**2*c**2* d**3 + 64*b*c**3*d**3*x + 64*c**4*d**3*x**2) + 8*b*c*x*log(b/(2*c) + x)/(1 6*b**2*c**2*d**3 + 64*b*c**3*d**3*x + 64*c**4*d**3*x**2) + 8*c**2*x**2*log (b/(2*c) + x)/(16*b**2*c**2*d**3 + 64*b*c**3*d**3*x + 64*c**4*d**3*x**2), Eq(m, -3)), (a*log(b/(2*c) + x)/(2*c*d) - b**2*log(b/(2*c) + x)/(8*c**2*d) + b*x/(4*c*d) + x**2/(4*d), Eq(m, -1)), (2*a*b*c*m*(b*d + 2*c*d*x)**m/(4* c**2*m**2 + 16*c**2*m + 12*c**2) + 6*a*b*c*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 16*c**2*m + 12*c**2) + 4*a*c**2*m*x*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 1 6*c**2*m + 12*c**2) + 12*a*c**2*x*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 16*c** 2*m + 12*c**2) - b**3*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 16*c**2*m + 12*c** 2) + 2*b**2*c*m*x*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 16*c**2*m + 12*c**2) + 6*b*c**2*m*x**2*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 16*c**2*m + 12*c**2) + 6*b*c**2*x**2*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 16*c**2*m + 12*c**2) + 4*c **3*m*x**3*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 16*c**2*m + 12*c**2) + 4*c**3 *x**3*(b*d + 2*c*d*x)**m/(4*c**2*m**2 + 16*c**2*m + 12*c**2), True))
Leaf count of result is larger than twice the leaf count of optimal. 167 vs. \(2 (61) = 122\).
Time = 0.05 (sec) , antiderivative size = 167, normalized size of antiderivative = 2.57 \[ \int (b d+2 c d x)^m \left (a+b x+c x^2\right ) \, dx=\frac {{\left (4 \, c^{2} d^{m} {\left (m + 1\right )} x^{2} + 2 \, b c d^{m} m x - b^{2} d^{m}\right )} {\left (2 \, c x + b\right )}^{m} b}{4 \, {\left (m^{2} + 3 \, m + 2\right )} c^{2}} + \frac {{\left (4 \, {\left (m^{2} + 3 \, m + 2\right )} c^{3} d^{m} x^{3} + 2 \, {\left (m^{2} + m\right )} b c^{2} d^{m} x^{2} - 2 \, b^{2} c d^{m} m x + b^{3} d^{m}\right )} {\left (2 \, c x + b\right )}^{m}}{4 \, {\left (m^{3} + 6 \, m^{2} + 11 \, m + 6\right )} c^{2}} + \frac {{\left (2 \, c d x + b d\right )}^{m + 1} a}{2 \, c d {\left (m + 1\right )}} \] Input:
integrate((2*c*d*x+b*d)^m*(c*x^2+b*x+a),x, algorithm="maxima")
Output:
1/4*(4*c^2*d^m*(m + 1)*x^2 + 2*b*c*d^m*m*x - b^2*d^m)*(2*c*x + b)^m*b/((m^ 2 + 3*m + 2)*c^2) + 1/4*(4*(m^2 + 3*m + 2)*c^3*d^m*x^3 + 2*(m^2 + m)*b*c^2 *d^m*x^2 - 2*b^2*c*d^m*m*x + b^3*d^m)*(2*c*x + b)^m/((m^3 + 6*m^2 + 11*m + 6)*c^2) + 1/2*(2*c*d*x + b*d)^(m + 1)*a/(c*d*(m + 1))
Leaf count of result is larger than twice the leaf count of optimal. 209 vs. \(2 (61) = 122\).
Time = 0.38 (sec) , antiderivative size = 209, normalized size of antiderivative = 3.22 \[ \int (b d+2 c d x)^m \left (a+b x+c x^2\right ) \, dx=\frac {4 \, {\left (2 \, c d x + b d\right )}^{m} c^{3} m x^{3} + 6 \, {\left (2 \, c d x + b d\right )}^{m} b c^{2} m x^{2} + 4 \, {\left (2 \, c d x + b d\right )}^{m} c^{3} x^{3} + 2 \, {\left (2 \, c d x + b d\right )}^{m} b^{2} c m x + 4 \, {\left (2 \, c d x + b d\right )}^{m} a c^{2} m x + 6 \, {\left (2 \, c d x + b d\right )}^{m} b c^{2} x^{2} + 2 \, {\left (2 \, c d x + b d\right )}^{m} a b c m + 12 \, {\left (2 \, c d x + b d\right )}^{m} a c^{2} x - {\left (2 \, c d x + b d\right )}^{m} b^{3} + 6 \, {\left (2 \, c d x + b d\right )}^{m} a b c}{4 \, {\left (c^{2} m^{2} + 4 \, c^{2} m + 3 \, c^{2}\right )}} \] Input:
integrate((2*c*d*x+b*d)^m*(c*x^2+b*x+a),x, algorithm="giac")
Output:
1/4*(4*(2*c*d*x + b*d)^m*c^3*m*x^3 + 6*(2*c*d*x + b*d)^m*b*c^2*m*x^2 + 4*( 2*c*d*x + b*d)^m*c^3*x^3 + 2*(2*c*d*x + b*d)^m*b^2*c*m*x + 4*(2*c*d*x + b* d)^m*a*c^2*m*x + 6*(2*c*d*x + b*d)^m*b*c^2*x^2 + 2*(2*c*d*x + b*d)^m*a*b*c *m + 12*(2*c*d*x + b*d)^m*a*c^2*x - (2*c*d*x + b*d)^m*b^3 + 6*(2*c*d*x + b *d)^m*a*b*c)/(c^2*m^2 + 4*c^2*m + 3*c^2)
Time = 5.81 (sec) , antiderivative size = 120, normalized size of antiderivative = 1.85 \[ \int (b d+2 c d x)^m \left (a+b x+c x^2\right ) \, dx={\left (b\,d+2\,c\,d\,x\right )}^m\,\left (\frac {b\,\left (-b^2+6\,a\,c+2\,a\,c\,m\right )}{4\,c^2\,\left (m^2+4\,m+3\right )}+\frac {x\,\left (12\,a\,c^2+4\,a\,c^2\,m+2\,b^2\,c\,m\right )}{4\,c^2\,\left (m^2+4\,m+3\right )}+\frac {3\,b\,x^2\,\left (m+1\right )}{2\,\left (m^2+4\,m+3\right )}+\frac {c\,x^3\,\left (m+1\right )}{m^2+4\,m+3}\right ) \] Input:
int((b*d + 2*c*d*x)^m*(a + b*x + c*x^2),x)
Output:
(b*d + 2*c*d*x)^m*((b*(6*a*c - b^2 + 2*a*c*m))/(4*c^2*(4*m + m^2 + 3)) + ( x*(12*a*c^2 + 4*a*c^2*m + 2*b^2*c*m))/(4*c^2*(4*m + m^2 + 3)) + (3*b*x^2*( m + 1))/(2*(4*m + m^2 + 3)) + (c*x^3*(m + 1))/(4*m + m^2 + 3))
Time = 0.20 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.57 \[ \int (b d+2 c d x)^m \left (a+b x+c x^2\right ) \, dx=\frac {\left (2 c d x +b d \right )^{m} \left (4 c^{3} m \,x^{3}+6 b \,c^{2} m \,x^{2}+4 c^{3} x^{3}+4 a \,c^{2} m x +2 b^{2} c m x +6 b \,c^{2} x^{2}+2 a b c m +12 a \,c^{2} x +6 a b c -b^{3}\right )}{4 c^{2} \left (m^{2}+4 m +3\right )} \] Input:
int((2*c*d*x+b*d)^m*(c*x^2+b*x+a),x)
Output:
((b*d + 2*c*d*x)**m*(2*a*b*c*m + 6*a*b*c + 4*a*c**2*m*x + 12*a*c**2*x - b* *3 + 2*b**2*c*m*x + 6*b*c**2*m*x**2 + 6*b*c**2*x**2 + 4*c**3*m*x**3 + 4*c* *3*x**3))/(4*c**2*(m**2 + 4*m + 3))