Integrand size = 34, antiderivative size = 93 \[ \int \frac {(g x)^n \left (a d+(b d+a e) x+b e x^2\right )^p}{(d+e x)^2} \, dx=\frac {(g x)^{1+n} \left (1+\frac {b x}{a}\right )^{-p} \left (1+\frac {e x}{d}\right )^{-p} \left (a d+(b d+a e) x+b e x^2\right )^p \operatorname {AppellF1}\left (1+n,-p,2-p,2+n,-\frac {b x}{a},-\frac {e x}{d}\right )}{d^2 g (1+n)} \] Output:
(g*x)^(1+n)*(a*d+(a*e+b*d)*x+b*e*x^2)^p*AppellF1(1+n,-p,2-p,2+n,-b*x/a,-e* x/d)/d^2/g/(1+n)/((1+b*x/a)^p)/((1+e*x/d)^p)
Time = 0.40 (sec) , antiderivative size = 81, normalized size of antiderivative = 0.87 \[ \int \frac {(g x)^n \left (a d+(b d+a e) x+b e x^2\right )^p}{(d+e x)^2} \, dx=\frac {x (g x)^n \left (1+\frac {b x}{a}\right )^{-p} ((a+b x) (d+e x))^p \left (1+\frac {e x}{d}\right )^{-p} \operatorname {AppellF1}\left (1+n,-p,2-p,2+n,-\frac {b x}{a},-\frac {e x}{d}\right )}{d^2 (1+n)} \] Input:
Integrate[((g*x)^n*(a*d + (b*d + a*e)*x + b*e*x^2)^p)/(d + e*x)^2,x]
Output:
(x*(g*x)^n*((a + b*x)*(d + e*x))^p*AppellF1[1 + n, -p, 2 - p, 2 + n, -((b* x)/a), -((e*x)/d)])/(d^2*(1 + n)*(1 + (b*x)/a)^p*(1 + (e*x)/d)^p)
Time = 0.41 (sec) , antiderivative size = 93, 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 = {1268, 152, 152, 150}
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 {(g x)^n \left (x (a e+b d)+a d+b e x^2\right )^p}{(d+e x)^2} \, dx\) |
\(\Big \downarrow \) 1268 |
\(\displaystyle (a+b x)^{-p} (d+e x)^{-p} \left (x (a e+b d)+a d+b e x^2\right )^p \int (g x)^n (a+b x)^p (d+e x)^{p-2}dx\) |
\(\Big \downarrow \) 152 |
\(\displaystyle \left (\frac {b x}{a}+1\right )^{-p} (d+e x)^{-p} \left (x (a e+b d)+a d+b e x^2\right )^p \int (g x)^n \left (\frac {b x}{a}+1\right )^p (d+e x)^{p-2}dx\) |
\(\Big \downarrow \) 152 |
\(\displaystyle \frac {\left (\frac {b x}{a}+1\right )^{-p} \left (\frac {e x}{d}+1\right )^{-p} \left (x (a e+b d)+a d+b e x^2\right )^p \int (g x)^n \left (\frac {b x}{a}+1\right )^p \left (\frac {e x}{d}+1\right )^{p-2}dx}{d^2}\) |
\(\Big \downarrow \) 150 |
\(\displaystyle \frac {(g x)^{n+1} \left (\frac {b x}{a}+1\right )^{-p} \left (\frac {e x}{d}+1\right )^{-p} \left (x (a e+b d)+a d+b e x^2\right )^p \operatorname {AppellF1}\left (n+1,-p,2-p,n+2,-\frac {b x}{a},-\frac {e x}{d}\right )}{d^2 g (n+1)}\) |
Input:
Int[((g*x)^n*(a*d + (b*d + a*e)*x + b*e*x^2)^p)/(d + e*x)^2,x]
Output:
((g*x)^(1 + n)*(a*d + (b*d + a*e)*x + b*e*x^2)^p*AppellF1[1 + n, -p, 2 - p , 2 + n, -((b*x)/a), -((e*x)/d)])/(d^2*g*(1 + n)*(1 + (b*x)/a)^p*(1 + (e*x )/d)^p)
Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_)*((e_) + (f_.)*(x_))^(p_), x_ ] :> Simp[c^n*e^p*((b*x)^(m + 1)/(b*(m + 1)))*AppellF1[m + 1, -n, -p, m + 2 , (-d)*(x/c), (-f)*(x/e)], x] /; FreeQ[{b, c, d, e, f, m, n, p}, x] && !In tegerQ[m] && !IntegerQ[n] && GtQ[c, 0] && (IntegerQ[p] || GtQ[e, 0])
Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_)*((e_) + (f_.)*(x_))^(p_), x_ ] :> Simp[c^IntPart[n]*((c + d*x)^FracPart[n]/(1 + d*(x/c))^FracPart[n]) Int[(b*x)^m*(1 + d*(x/c))^n*(e + f*x)^p, x], x] /; FreeQ[{b, c, d, e, f, m, n, p}, x] && !IntegerQ[m] && !IntegerQ[n] && !GtQ[c, 0]
Int[((d_) + (e_.)*(x_))^(m_.)*((f_.) + (g_.)*(x_))^(n_.)*((a_.) + (b_.)*(x_ ) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Simp[(a + b*x + c*x^2)^FracPart[p]/((d + e*x)^FracPart[p]*(a/d + (c*x)/e)^FracPart[p]) Int[(d + e*x)^(m + p)*(f + g*x)^n*(a/d + (c/e)*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n}, x ] && EqQ[c*d^2 - b*d*e + a*e^2, 0]
\[\int \frac {\left (g x \right )^{n} \left (a d +\left (a e +b d \right ) x +b e \,x^{2}\right )^{p}}{\left (e x +d \right )^{2}}d x\]
Input:
int((g*x)^n*(a*d+(a*e+b*d)*x+b*e*x^2)^p/(e*x+d)^2,x)
Output:
int((g*x)^n*(a*d+(a*e+b*d)*x+b*e*x^2)^p/(e*x+d)^2,x)
\[ \int \frac {(g x)^n \left (a d+(b d+a e) x+b e x^2\right )^p}{(d+e x)^2} \, dx=\int { \frac {{\left (b e x^{2} + a d + {\left (b d + a e\right )} x\right )}^{p} \left (g x\right )^{n}}{{\left (e x + d\right )}^{2}} \,d x } \] Input:
integrate((g*x)^n*(a*d+(a*e+b*d)*x+b*e*x^2)^p/(e*x+d)^2,x, algorithm="fric as")
Output:
integral((b*e*x^2 + a*d + (b*d + a*e)*x)^p*(g*x)^n/(e^2*x^2 + 2*d*e*x + d^ 2), x)
Timed out. \[ \int \frac {(g x)^n \left (a d+(b d+a e) x+b e x^2\right )^p}{(d+e x)^2} \, dx=\text {Timed out} \] Input:
integrate((g*x)**n*(a*d+(a*e+b*d)*x+b*e*x**2)**p/(e*x+d)**2,x)
Output:
Timed out
\[ \int \frac {(g x)^n \left (a d+(b d+a e) x+b e x^2\right )^p}{(d+e x)^2} \, dx=\int { \frac {{\left (b e x^{2} + a d + {\left (b d + a e\right )} x\right )}^{p} \left (g x\right )^{n}}{{\left (e x + d\right )}^{2}} \,d x } \] Input:
integrate((g*x)^n*(a*d+(a*e+b*d)*x+b*e*x^2)^p/(e*x+d)^2,x, algorithm="maxi ma")
Output:
integrate((b*e*x^2 + a*d + (b*d + a*e)*x)^p*(g*x)^n/(e*x + d)^2, x)
\[ \int \frac {(g x)^n \left (a d+(b d+a e) x+b e x^2\right )^p}{(d+e x)^2} \, dx=\int { \frac {{\left (b e x^{2} + a d + {\left (b d + a e\right )} x\right )}^{p} \left (g x\right )^{n}}{{\left (e x + d\right )}^{2}} \,d x } \] Input:
integrate((g*x)^n*(a*d+(a*e+b*d)*x+b*e*x^2)^p/(e*x+d)^2,x, algorithm="giac ")
Output:
integrate((b*e*x^2 + a*d + (b*d + a*e)*x)^p*(g*x)^n/(e*x + d)^2, x)
Timed out. \[ \int \frac {(g x)^n \left (a d+(b d+a e) x+b e x^2\right )^p}{(d+e x)^2} \, dx=\int \frac {{\left (g\,x\right )}^n\,{\left (b\,e\,x^2+\left (a\,e+b\,d\right )\,x+a\,d\right )}^p}{{\left (d+e\,x\right )}^2} \,d x \] Input:
int(((g*x)^n*(a*d + x*(a*e + b*d) + b*e*x^2)^p)/(d + e*x)^2,x)
Output:
int(((g*x)^n*(a*d + x*(a*e + b*d) + b*e*x^2)^p)/(d + e*x)^2, x)
\[ \int \frac {(g x)^n \left (a d+(b d+a e) x+b e x^2\right )^p}{(d+e x)^2} \, dx=\text {too large to display} \] Input:
int((g*x)^n*(a*d+(a*e+b*d)*x+b*e*x^2)^p/(e*x+d)^2,x)
Output:
(g**n*(x**n*(a*d + a*e*x + b*d*x + b*e*x**2)**p*a - int((x**n*(a*d + a*e*x + b*d*x + b*e*x**2)**p*x)/(a**2*d**2*e*n + a**2*d**2*e*p - a**2*d**2*e + 2*a**2*d*e**2*n*x + 2*a**2*d*e**2*p*x - 2*a**2*d*e**2*x + a**2*e**3*n*x**2 + a**2*e**3*p*x**2 - a**2*e**3*x**2 + a*b*d**3*n + a*b*d**3*p + 3*a*b*d** 2*e*n*x + 3*a*b*d**2*e*p*x - a*b*d**2*e*x + 3*a*b*d*e**2*n*x**2 + 3*a*b*d* e**2*p*x**2 - 2*a*b*d*e**2*x**2 + a*b*e**3*n*x**3 + a*b*e**3*p*x**3 - a*b* e**3*x**3 + b**2*d**3*n*x + b**2*d**3*p*x + 2*b**2*d**2*e*n*x**2 + 2*b**2* d**2*e*p*x**2 + b**2*d*e**2*n*x**3 + b**2*d*e**2*p*x**3),x)*a**2*b*d*e**2* n*p - int((x**n*(a*d + a*e*x + b*d*x + b*e*x**2)**p*x)/(a**2*d**2*e*n + a* *2*d**2*e*p - a**2*d**2*e + 2*a**2*d*e**2*n*x + 2*a**2*d*e**2*p*x - 2*a**2 *d*e**2*x + a**2*e**3*n*x**2 + a**2*e**3*p*x**2 - a**2*e**3*x**2 + a*b*d** 3*n + a*b*d**3*p + 3*a*b*d**2*e*n*x + 3*a*b*d**2*e*p*x - a*b*d**2*e*x + 3* a*b*d*e**2*n*x**2 + 3*a*b*d*e**2*p*x**2 - 2*a*b*d*e**2*x**2 + a*b*e**3*n*x **3 + a*b*e**3*p*x**3 - a*b*e**3*x**3 + b**2*d**3*n*x + b**2*d**3*p*x + 2* b**2*d**2*e*n*x**2 + 2*b**2*d**2*e*p*x**2 + b**2*d*e**2*n*x**3 + b**2*d*e* *2*p*x**3),x)*a**2*b*d*e**2*p**2 + int((x**n*(a*d + a*e*x + b*d*x + b*e*x* *2)**p*x)/(a**2*d**2*e*n + a**2*d**2*e*p - a**2*d**2*e + 2*a**2*d*e**2*n*x + 2*a**2*d*e**2*p*x - 2*a**2*d*e**2*x + a**2*e**3*n*x**2 + a**2*e**3*p*x* *2 - a**2*e**3*x**2 + a*b*d**3*n + a*b*d**3*p + 3*a*b*d**2*e*n*x + 3*a*b*d **2*e*p*x - a*b*d**2*e*x + 3*a*b*d*e**2*n*x**2 + 3*a*b*d*e**2*p*x**2 - ...