\(\int \frac {x^m (d+e x^n)}{a+b x^n+c x^{2 n}} \, dx\) [170]

Optimal result
Mathematica [A] (warning: unable to verify)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [F]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 27, antiderivative size = 186 \[ \int \frac {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx=\frac {\left (e+\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) x^{1+m} \operatorname {Hypergeometric2F1}\left (1,\frac {1+m}{n},\frac {1+m+n}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}\right )}{\left (b-\sqrt {b^2-4 a c}\right ) (1+m)}+\frac {\left (e-\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) x^{1+m} \operatorname {Hypergeometric2F1}\left (1,\frac {1+m}{n},\frac {1+m+n}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{\left (b+\sqrt {b^2-4 a c}\right ) (1+m)} \] Output:

(e+(-b*e+2*c*d)/(-4*a*c+b^2)^(1/2))*x^(1+m)*hypergeom([1, (1+m)/n],[(1+m+n 
)/n],-2*c*x^n/(b-(-4*a*c+b^2)^(1/2)))/(b-(-4*a*c+b^2)^(1/2))/(1+m)+(e-(-b* 
e+2*c*d)/(-4*a*c+b^2)^(1/2))*x^(1+m)*hypergeom([1, (1+m)/n],[(1+m+n)/n],-2 
*c*x^n/(b+(-4*a*c+b^2)^(1/2)))/(b+(-4*a*c+b^2)^(1/2))/(1+m)
 

Mathematica [A] (warning: unable to verify)

Time = 1.08 (sec) , antiderivative size = 317, normalized size of antiderivative = 1.70 \[ \int \frac {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx=\frac {2^{-\frac {1+m+n}{n}} x^{1+m} \left (2^{\frac {1+m+n}{n}} \sqrt {b^2-4 a c} d-\left (b d+\sqrt {b^2-4 a c} d-2 a e\right ) \left (\frac {c x^n}{b-\sqrt {b^2-4 a c}+2 c x^n}\right )^{-\frac {1+m}{n}} \operatorname {Hypergeometric2F1}\left (-\frac {1+m}{n},-\frac {1+m}{n},1-\frac {1+m}{n},\frac {b-\sqrt {b^2-4 a c}}{b-\sqrt {b^2-4 a c}+2 c x^n}\right )-\left (-b d+\sqrt {b^2-4 a c} d+2 a e\right ) \left (\frac {c x^n}{b+\sqrt {b^2-4 a c}+2 c x^n}\right )^{-\frac {1+m}{n}} \operatorname {Hypergeometric2F1}\left (-\frac {1+m}{n},-\frac {1+m}{n},1-\frac {1+m}{n},\frac {b+\sqrt {b^2-4 a c}}{b+\sqrt {b^2-4 a c}+2 c x^n}\right )\right )}{a \sqrt {b^2-4 a c} (1+m)} \] Input:

Integrate[(x^m*(d + e*x^n))/(a + b*x^n + c*x^(2*n)),x]
 

Output:

(x^(1 + m)*(2^((1 + m + n)/n)*Sqrt[b^2 - 4*a*c]*d - ((b*d + Sqrt[b^2 - 4*a 
*c]*d - 2*a*e)*Hypergeometric2F1[-((1 + m)/n), -((1 + m)/n), 1 - (1 + m)/n 
, (b - Sqrt[b^2 - 4*a*c])/(b - Sqrt[b^2 - 4*a*c] + 2*c*x^n)])/((c*x^n)/(b 
- Sqrt[b^2 - 4*a*c] + 2*c*x^n))^((1 + m)/n) - ((-(b*d) + Sqrt[b^2 - 4*a*c] 
*d + 2*a*e)*Hypergeometric2F1[-((1 + m)/n), -((1 + m)/n), 1 - (1 + m)/n, ( 
b + Sqrt[b^2 - 4*a*c])/(b + Sqrt[b^2 - 4*a*c] + 2*c*x^n)])/((c*x^n)/(b + S 
qrt[b^2 - 4*a*c] + 2*c*x^n))^((1 + m)/n)))/(2^((1 + m + n)/n)*a*Sqrt[b^2 - 
 4*a*c]*(1 + m))
 

Rubi [A] (verified)

Time = 0.38 (sec) , antiderivative size = 186, 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.074, Rules used = {1884, 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 {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx\)

\(\Big \downarrow \) 1884

\(\displaystyle \int \left (\frac {x^m \left (\frac {2 c d-b e}{\sqrt {b^2-4 a c}}+e\right )}{-\sqrt {b^2-4 a c}+b+2 c x^n}+\frac {x^m \left (e-\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right )}{\sqrt {b^2-4 a c}+b+2 c x^n}\right )dx\)

\(\Big \downarrow \) 2009

\(\displaystyle \frac {x^{m+1} \left (\frac {2 c d-b e}{\sqrt {b^2-4 a c}}+e\right ) \operatorname {Hypergeometric2F1}\left (1,\frac {m+1}{n},\frac {m+n+1}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}\right )}{(m+1) \left (b-\sqrt {b^2-4 a c}\right )}+\frac {x^{m+1} \left (e-\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) \operatorname {Hypergeometric2F1}\left (1,\frac {m+1}{n},\frac {m+n+1}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{(m+1) \left (\sqrt {b^2-4 a c}+b\right )}\)

Input:

Int[(x^m*(d + e*x^n))/(a + b*x^n + c*x^(2*n)),x]
 

Output:

((e + (2*c*d - b*e)/Sqrt[b^2 - 4*a*c])*x^(1 + m)*Hypergeometric2F1[1, (1 + 
 m)/n, (1 + m + n)/n, (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])])/((b - Sqrt[b^2 
- 4*a*c])*(1 + m)) + ((e - (2*c*d - b*e)/Sqrt[b^2 - 4*a*c])*x^(1 + m)*Hype 
rgeometric2F1[1, (1 + m)/n, (1 + m + n)/n, (-2*c*x^n)/(b + Sqrt[b^2 - 4*a* 
c])])/((b + Sqrt[b^2 - 4*a*c])*(1 + m))
 

Defintions of rubi rules used

rule 1884
Int[((f_.)*(x_))^(m_.)*((a_) + (c_.)*(x_)^(n2_.) + (b_.)*(x_)^(n_))^(p_.)*( 
(d_) + (e_.)*(x_)^(n_))^(q_.), x_Symbol] :> Int[ExpandIntegrand[(f*x)^m*(d 
+ e*x^n)^q*(a + b*x^n + c*x^(2*n))^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, 
 n, p, q}, x] && EqQ[n2, 2*n] && NeQ[b^2 - 4*a*c, 0] &&  !RationalQ[n] && ( 
IGtQ[p, 0] || IGtQ[q, 0])
 

rule 2009
Int[u_, x_Symbol] :> Simp[IntSum[u, x], x] /; SumQ[u]
 
Maple [F]

\[\int \frac {x^{m} \left (d +e \,x^{n}\right )}{a +b \,x^{n}+c \,x^{2 n}}d x\]

Input:

int(x^m*(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x)
 

Output:

int(x^m*(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x)
 

Fricas [F]

\[ \int \frac {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx=\int { \frac {{\left (e x^{n} + d\right )} x^{m}}{c x^{2 \, n} + b x^{n} + a} \,d x } \] Input:

integrate(x^m*(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x, algorithm="fricas")
 

Output:

integral((e*x^m*x^n + d*x^m)/(c*x^(2*n) + b*x^n + a), x)
 

Sympy [F]

\[ \int \frac {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx=\int \frac {x^{m} \left (d + e x^{n}\right )}{a + b x^{n} + c x^{2 n}}\, dx \] Input:

integrate(x**m*(d+e*x**n)/(a+b*x**n+c*x**(2*n)),x)
 

Output:

Integral(x**m*(d + e*x**n)/(a + b*x**n + c*x**(2*n)), x)
 

Maxima [F]

\[ \int \frac {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx=\int { \frac {{\left (e x^{n} + d\right )} x^{m}}{c x^{2 \, n} + b x^{n} + a} \,d x } \] Input:

integrate(x^m*(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x, algorithm="maxima")
 

Output:

integrate((e*x^n + d)*x^m/(c*x^(2*n) + b*x^n + a), x)
 

Giac [F]

\[ \int \frac {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx=\int { \frac {{\left (e x^{n} + d\right )} x^{m}}{c x^{2 \, n} + b x^{n} + a} \,d x } \] Input:

integrate(x^m*(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x, algorithm="giac")
 

Output:

integrate((e*x^n + d)*x^m/(c*x^(2*n) + b*x^n + a), x)
 

Mupad [F(-1)]

Timed out. \[ \int \frac {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx=\int \frac {x^m\,\left (d+e\,x^n\right )}{a+b\,x^n+c\,x^{2\,n}} \,d x \] Input:

int((x^m*(d + e*x^n))/(a + b*x^n + c*x^(2*n)),x)
 

Output:

int((x^m*(d + e*x^n))/(a + b*x^n + c*x^(2*n)), x)
 

Reduce [F]

\[ \int \frac {x^m \left (d+e x^n\right )}{a+b x^n+c x^{2 n}} \, dx=\left (\int \frac {x^{m +n}}{x^{2 n} c +x^{n} b +a}d x \right ) e +\left (\int \frac {x^{m}}{x^{2 n} c +x^{n} b +a}d x \right ) d \] Input:

int(x^m*(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x)
 

Output:

int(x**(m + n)/(x**(2*n)*c + x**n*b + a),x)*e + int(x**m/(x**(2*n)*c + x** 
n*b + a),x)*d