Integrand size = 34, antiderivative size = 283 \[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-1-m-n} \, dx=\frac {B (a+b x)^{1+m} (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^{-m-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} \operatorname {AppellF1}\left (1+m,-n,m+n,2+m,-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b f (1+m)}-\frac {(B e-A f) (a+b x)^{1+m} (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^{-m-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} \operatorname {AppellF1}\left (1+m,-n,1+m+n,2+m,-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{f (b e-a f) (1+m)} \] Output:
B*(b*x+a)^(1+m)*(d*x+c)^n*(f*x+e)^(-m-n)*(b*(f*x+e)/(-a*f+b*e))^(m+n)*Appe llF1(1+m,-n,m+n,2+m,-d*(b*x+a)/(-a*d+b*c),-f*(b*x+a)/(-a*f+b*e))/b/f/(1+m) /((b*(d*x+c)/(-a*d+b*c))^n)-(-A*f+B*e)*(b*x+a)^(1+m)*(d*x+c)^n*(f*x+e)^(-m -n)*(b*(f*x+e)/(-a*f+b*e))^(m+n)*AppellF1(1+m,-n,1+m+n,2+m,-d*(b*x+a)/(-a* d+b*c),-f*(b*x+a)/(-a*f+b*e))/f/(-a*f+b*e)/(1+m)/((b*(d*x+c)/(-a*d+b*c))^n )
Time = 0.29 (sec) , antiderivative size = 208, normalized size of antiderivative = 0.73 \[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-1-m-n} \, dx=\frac {(a+b x)^{1+m} (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} (e+f x)^{1-m-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{-1+m+n} \left (B (b e-a f) \operatorname {AppellF1}\left (1+m,-n,m+n,2+m,\frac {d (a+b x)}{-b c+a d},\frac {f (a+b x)}{-b e+a f}\right )+b (-B e+A f) \operatorname {AppellF1}\left (1+m,-n,1+m+n,2+m,\frac {d (a+b x)}{-b c+a d},\frac {f (a+b x)}{-b e+a f}\right )\right )}{f (b e-a f)^2 (1+m)} \] Input:
Integrate[(a + b*x)^m*(A + B*x)*(c + d*x)^n*(e + f*x)^(-1 - m - n),x]
Output:
((a + b*x)^(1 + m)*(c + d*x)^n*(e + f*x)^(1 - m - n)*((b*(e + f*x))/(b*e - a*f))^(-1 + m + n)*(B*(b*e - a*f)*AppellF1[1 + m, -n, m + n, 2 + m, (d*(a + b*x))/(-(b*c) + a*d), (f*(a + b*x))/(-(b*e) + a*f)] + b*(-(B*e) + A*f)* AppellF1[1 + m, -n, 1 + m + n, 2 + m, (d*(a + b*x))/(-(b*c) + a*d), (f*(a + b*x))/(-(b*e) + a*f)]))/(f*(b*e - a*f)^2*(1 + m)*((b*(c + d*x))/(b*c - a *d))^n)
Time = 0.42 (sec) , antiderivative size = 283, 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.118, Rules used = {177, 157, 156, 155}
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 (A+B x) (a+b x)^m (c+d x)^n (e+f x)^{-m-n-1} \, dx\) |
\(\Big \downarrow \) 177 |
\(\displaystyle \frac {B \int (a+b x)^m (c+d x)^n (e+f x)^{-m-n}dx}{f}-\frac {(B e-A f) \int (a+b x)^m (c+d x)^n (e+f x)^{-m-n-1}dx}{f}\) |
\(\Big \downarrow \) 157 |
\(\displaystyle \frac {B (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \int (a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n (e+f x)^{-m-n}dx}{f}-\frac {(B e-A f) (c+d x)^n \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \int (a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n (e+f x)^{-m-n-1}dx}{f}\) |
\(\Big \downarrow \) 156 |
\(\displaystyle \frac {B (c+d x)^n (e+f x)^{-m-n} \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} \int (a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n \left (\frac {b e}{b e-a f}+\frac {b f x}{b e-a f}\right )^{-m-n}dx}{f}-\frac {b (B e-A f) (c+d x)^n (e+f x)^{-m-n} \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} \int (a+b x)^m \left (\frac {b c}{b c-a d}+\frac {b d x}{b c-a d}\right )^n \left (\frac {b e}{b e-a f}+\frac {b f x}{b e-a f}\right )^{-m-n-1}dx}{f (b e-a f)}\) |
\(\Big \downarrow \) 155 |
\(\displaystyle \frac {B (a+b x)^{m+1} (c+d x)^n (e+f x)^{-m-n} \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} \operatorname {AppellF1}\left (m+1,-n,m+n,m+2,-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{b f (m+1)}-\frac {(a+b x)^{m+1} (B e-A f) (c+d x)^n (e+f x)^{-m-n} \left (\frac {b (c+d x)}{b c-a d}\right )^{-n} \left (\frac {b (e+f x)}{b e-a f}\right )^{m+n} \operatorname {AppellF1}\left (m+1,-n,m+n+1,m+2,-\frac {d (a+b x)}{b c-a d},-\frac {f (a+b x)}{b e-a f}\right )}{f (m+1) (b e-a f)}\) |
Input:
Int[(a + b*x)^m*(A + B*x)*(c + d*x)^n*(e + f*x)^(-1 - m - n),x]
Output:
(B*(a + b*x)^(1 + m)*(c + d*x)^n*(e + f*x)^(-m - n)*((b*(e + f*x))/(b*e - a*f))^(m + n)*AppellF1[1 + m, -n, m + n, 2 + m, -((d*(a + b*x))/(b*c - a*d )), -((f*(a + b*x))/(b*e - a*f))])/(b*f*(1 + m)*((b*(c + d*x))/(b*c - a*d) )^n) - ((B*e - A*f)*(a + b*x)^(1 + m)*(c + d*x)^n*(e + f*x)^(-m - n)*((b*( e + f*x))/(b*e - a*f))^(m + n)*AppellF1[1 + m, -n, 1 + m + n, 2 + m, -((d* (a + b*x))/(b*c - a*d)), -((f*(a + b*x))/(b*e - a*f))])/(f*(b*e - a*f)*(1 + m)*((b*(c + d*x))/(b*c - a*d))^n)
Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_)) ^(p_), x_] :> Simp[((a + b*x)^(m + 1)/(b*(m + 1)*Simplify[b/(b*c - a*d)]^n* Simplify[b/(b*e - a*f)]^p))*AppellF1[m + 1, -n, -p, m + 2, (-d)*((a + b*x)/ (b*c - a*d)), (-f)*((a + b*x)/(b*e - a*f))], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && !IntegerQ[m] && !IntegerQ[n] && !IntegerQ[p] && GtQ[Sim plify[b/(b*c - a*d)], 0] && GtQ[Simplify[b/(b*e - a*f)], 0] && !(GtQ[Simpl ify[d/(d*a - c*b)], 0] && GtQ[Simplify[d/(d*e - c*f)], 0] && SimplerQ[c + d *x, a + b*x]) && !(GtQ[Simplify[f/(f*a - e*b)], 0] && GtQ[Simplify[f/(f*c - e*d)], 0] && SimplerQ[e + f*x, a + b*x])
Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_)) ^(p_), x_] :> Simp[(e + f*x)^FracPart[p]/(Simplify[b/(b*e - a*f)]^IntPart[p ]*(b*((e + f*x)/(b*e - a*f)))^FracPart[p]) Int[(a + b*x)^m*(c + d*x)^n*Si mp[b*(e/(b*e - a*f)) + b*f*(x/(b*e - a*f)), x]^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && !IntegerQ[m] && !IntegerQ[n] && !IntegerQ[p] & & GtQ[Simplify[b/(b*c - a*d)], 0] && !GtQ[Simplify[b/(b*e - a*f)], 0]
Int[((a_) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_)) ^(p_), x_] :> Simp[(c + d*x)^FracPart[n]/(Simplify[b/(b*c - a*d)]^IntPart[n ]*(b*((c + d*x)/(b*c - a*d)))^FracPart[n]) Int[(a + b*x)^m*Simp[b*(c/(b*c - a*d)) + b*d*(x/(b*c - a*d)), x]^n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && !IntegerQ[m] && !IntegerQ[n] && !IntegerQ[p] & & !GtQ[Simplify[b/(b*c - a*d)], 0] && !SimplerQ[c + d*x, a + b*x] && !Si mplerQ[e + f*x, a + b*x]
Int[((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_.)*(x_) )^(p_)*((g_.) + (h_.)*(x_)), x_] :> Simp[h/b Int[(a + b*x)^(m + 1)*(c + d *x)^n*(e + f*x)^p, x], x] + Simp[(b*g - a*h)/b Int[(a + b*x)^m*(c + d*x)^ n*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, h, m, n, p}, x] && (Su mSimplerQ[m, 1] || ( !SumSimplerQ[n, 1] && !SumSimplerQ[p, 1]))
\[\int \left (b x +a \right )^{m} \left (B x +A \right ) \left (x d +c \right )^{n} \left (f x +e \right )^{-1-m -n}d x\]
Input:
int((b*x+a)^m*(B*x+A)*(d*x+c)^n*(f*x+e)^(-1-m-n),x)
Output:
int((b*x+a)^m*(B*x+A)*(d*x+c)^n*(f*x+e)^(-1-m-n),x)
\[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-1-m-n} \, dx=\int { {\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n - 1} \,d x } \] Input:
integrate((b*x+a)^m*(B*x+A)*(d*x+c)^n*(f*x+e)^(-1-m-n),x, algorithm="frica s")
Output:
integral((B*x + A)*(b*x + a)^m*(d*x + c)^n*(f*x + e)^(-m - n - 1), x)
Timed out. \[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-1-m-n} \, dx=\text {Timed out} \] Input:
integrate((b*x+a)**m*(B*x+A)*(d*x+c)**n*(f*x+e)**(-1-m-n),x)
Output:
Timed out
\[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-1-m-n} \, dx=\int { {\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n - 1} \,d x } \] Input:
integrate((b*x+a)^m*(B*x+A)*(d*x+c)^n*(f*x+e)^(-1-m-n),x, algorithm="maxim a")
Output:
integrate((B*x + A)*(b*x + a)^m*(d*x + c)^n*(f*x + e)^(-m - n - 1), x)
\[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-1-m-n} \, dx=\int { {\left (B x + A\right )} {\left (b x + a\right )}^{m} {\left (d x + c\right )}^{n} {\left (f x + e\right )}^{-m - n - 1} \,d x } \] Input:
integrate((b*x+a)^m*(B*x+A)*(d*x+c)^n*(f*x+e)^(-1-m-n),x, algorithm="giac" )
Output:
integrate((B*x + A)*(b*x + a)^m*(d*x + c)^n*(f*x + e)^(-m - n - 1), x)
Timed out. \[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-1-m-n} \, dx=\int \frac {\left (A+B\,x\right )\,{\left (a+b\,x\right )}^m\,{\left (c+d\,x\right )}^n}{{\left (e+f\,x\right )}^{m+n+1}} \,d x \] Input:
int(((A + B*x)*(a + b*x)^m*(c + d*x)^n)/(e + f*x)^(m + n + 1),x)
Output:
int(((A + B*x)*(a + b*x)^m*(c + d*x)^n)/(e + f*x)^(m + n + 1), x)
\[ \int (a+b x)^m (A+B x) (c+d x)^n (e+f x)^{-1-m-n} \, dx=\left (\int \frac {\left (d x +c \right )^{n} \left (b x +a \right )^{m} x}{\left (f x +e \right )^{m +n} e +\left (f x +e \right )^{m +n} f x}d x \right ) b +\left (\int \frac {\left (d x +c \right )^{n} \left (b x +a \right )^{m}}{\left (f x +e \right )^{m +n} e +\left (f x +e \right )^{m +n} f x}d x \right ) a \] Input:
int((b*x+a)^m*(B*x+A)*(d*x+c)^n*(f*x+e)^(-1-m-n),x)
Output:
int(((c + d*x)**n*(a + b*x)**m*x)/((e + f*x)**(m + n)*e + (e + f*x)**(m + n)*f*x),x)*b + int(((c + d*x)**n*(a + b*x)**m)/((e + f*x)**(m + n)*e + (e + f*x)**(m + n)*f*x),x)*a