Integrand size = 29, antiderivative size = 272 \[ \int \frac {x^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=-\frac {c \left (e-\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) x^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+\frac {1}{n},2+\frac {1}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}\right )}{\left (b-\sqrt {b^2-4 a c}\right ) \left (c d^2-b d e+a e^2\right ) (1+n)}-\frac {c \left (e+\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) x^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+\frac {1}{n},2+\frac {1}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{\left (b+\sqrt {b^2-4 a c}\right ) \left (c d^2-b d e+a e^2\right ) (1+n)}+\frac {e^2 x^{1+n} \operatorname {Hypergeometric2F1}\left (1,1+\frac {1}{n},2+\frac {1}{n},-\frac {e x^n}{d}\right )}{d \left (c d^2-b d e+a e^2\right ) (1+n)} \] Output:
-c*(e-(-b*e+2*c*d)/(-4*a*c+b^2)^(1/2))*x^(1+n)*hypergeom([1, 1+1/n],[2+1/n ],-2*c*x^n/(b-(-4*a*c+b^2)^(1/2)))/(b-(-4*a*c+b^2)^(1/2))/(a*e^2-b*d*e+c*d ^2)/(1+n)-c*(e+(-b*e+2*c*d)/(-4*a*c+b^2)^(1/2))*x^(1+n)*hypergeom([1, 1+1/ n],[2+1/n],-2*c*x^n/(b+(-4*a*c+b^2)^(1/2)))/(b+(-4*a*c+b^2)^(1/2))/(a*e^2- b*d*e+c*d^2)/(1+n)+e^2*x^(1+n)*hypergeom([1, 1+1/n],[2+1/n],-e*x^n/d)/d/(a *e^2-b*d*e+c*d^2)/(1+n)
Time = 0.67 (sec) , antiderivative size = 215, normalized size of antiderivative = 0.79 \[ \int \frac {x^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\frac {x^{1+n} \left (-\frac {c \left (e+\frac {-2 c d+b e}{\sqrt {b^2-4 a c}}\right ) \operatorname {Hypergeometric2F1}\left (1,1+\frac {1}{n},2+\frac {1}{n},\frac {2 c x^n}{-b+\sqrt {b^2-4 a c}}\right )}{b-\sqrt {b^2-4 a c}}-\frac {c \left (e+\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) \operatorname {Hypergeometric2F1}\left (1,1+\frac {1}{n},2+\frac {1}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{b+\sqrt {b^2-4 a c}}+\frac {e^2 \operatorname {Hypergeometric2F1}\left (1,1+\frac {1}{n},2+\frac {1}{n},-\frac {e x^n}{d}\right )}{d}\right )}{\left (c d^2+e (-b d+a e)\right ) (1+n)} \] Input:
Integrate[x^n/((d + e*x^n)*(a + b*x^n + c*x^(2*n))),x]
Output:
(x^(1 + n)*(-((c*(e + (-2*c*d + b*e)/Sqrt[b^2 - 4*a*c])*Hypergeometric2F1[ 1, 1 + n^(-1), 2 + n^(-1), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a*c])])/(b - Sqrt[ b^2 - 4*a*c])) - (c*(e + (2*c*d - b*e)/Sqrt[b^2 - 4*a*c])*Hypergeometric2F 1[1, 1 + n^(-1), 2 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/(b + Sqr t[b^2 - 4*a*c]) + (e^2*Hypergeometric2F1[1, 1 + n^(-1), 2 + n^(-1), -((e*x ^n)/d)])/d))/((c*d^2 + e*(-(b*d) + a*e))*(1 + n))
Time = 0.43 (sec) , antiderivative size = 247, normalized size of antiderivative = 0.91, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.103, Rules used = {1880, 1009, 778}
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^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx\) |
\(\Big \downarrow \) 1880 |
\(\displaystyle \frac {2 c \int \frac {x^n}{\left (2 c x^n+b-\sqrt {b^2-4 a c}\right ) \left (e x^n+d\right )}dx}{\sqrt {b^2-4 a c}}-\frac {2 c \int \frac {x^n}{\left (2 c x^n+b+\sqrt {b^2-4 a c}\right ) \left (e x^n+d\right )}dx}{\sqrt {b^2-4 a c}}\) |
\(\Big \downarrow \) 1009 |
\(\displaystyle \frac {2 c \left (\frac {d \int \frac {1}{e x^n+d}dx}{2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}-\frac {\left (b-\sqrt {b^2-4 a c}\right ) \int \frac {1}{2 c x^n+b-\sqrt {b^2-4 a c}}dx}{2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}\right )}{\sqrt {b^2-4 a c}}-\frac {2 c \left (\frac {d \int \frac {1}{e x^n+d}dx}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}-\frac {\left (\sqrt {b^2-4 a c}+b\right ) \int \frac {1}{2 c x^n+b+\sqrt {b^2-4 a c}}dx}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}\right )}{\sqrt {b^2-4 a c}}\) |
\(\Big \downarrow \) 778 |
\(\displaystyle \frac {2 c \left (\frac {x \operatorname {Hypergeometric2F1}\left (1,\frac {1}{n},1+\frac {1}{n},-\frac {e x^n}{d}\right )}{2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}-\frac {x \operatorname {Hypergeometric2F1}\left (1,\frac {1}{n},1+\frac {1}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}\right )}{2 c d-e \left (b-\sqrt {b^2-4 a c}\right )}\right )}{\sqrt {b^2-4 a c}}-\frac {2 c \left (\frac {x \operatorname {Hypergeometric2F1}\left (1,\frac {1}{n},1+\frac {1}{n},-\frac {e x^n}{d}\right )}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}-\frac {x \operatorname {Hypergeometric2F1}\left (1,\frac {1}{n},1+\frac {1}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}\right )}{\sqrt {b^2-4 a c}}\) |
Input:
Int[x^n/((d + e*x^n)*(a + b*x^n + c*x^(2*n))),x]
Output:
(2*c*(-((x*Hypergeometric2F1[1, n^(-1), 1 + n^(-1), (-2*c*x^n)/(b - Sqrt[b ^2 - 4*a*c])])/(2*c*d - (b - Sqrt[b^2 - 4*a*c])*e)) + (x*Hypergeometric2F1 [1, n^(-1), 1 + n^(-1), -((e*x^n)/d)])/(2*c*d - (b - Sqrt[b^2 - 4*a*c])*e) ))/Sqrt[b^2 - 4*a*c] - (2*c*(-((x*Hypergeometric2F1[1, n^(-1), 1 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e)) + (x*Hypergeometric2F1[1, n^(-1), 1 + n^(-1), -((e*x^n)/d)])/(2*c*d - (b + Sqrt[b^2 - 4*a*c])*e)))/Sqrt[b^2 - 4*a*c]
Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*x*Hypergeometric2F 1[-p, 1/n, 1/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, n, p}, x] && !IGtQ[p , 0] && !IntegerQ[1/n] && !ILtQ[Simplify[1/n + p], 0] && (IntegerQ[p] || GtQ[a, 0])
Int[(x_)^(m_)/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol ] :> Simp[-a/(b*c - a*d) Int[x^(m - n)/(a + b*x^n), x], x] + Simp[c/(b*c - a*d) Int[x^(m - n)/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, m, n}, x] && NeQ[b*c - a*d, 0] && (EqQ[m, n] || EqQ[m, 2*n - 1])
Int[(((f_.)*(x_))^(m_.)*((d_) + (e_.)*(x_)^(n_))^(q_))/((a_) + (c_.)*(x_)^( n2_.) + (b_.)*(x_)^(n_)), x_Symbol] :> With[{r = Rt[b^2 - 4*a*c, 2]}, Simp[ 2*(c/r) Int[(f*x)^m*((d + e*x^n)^q/(b - r + 2*c*x^n)), x], x] - Simp[2*(c /r) Int[(f*x)^m*((d + e*x^n)^q/(b + r + 2*c*x^n)), x], x]] /; FreeQ[{a, b , c, d, e, f, m, n, q}, x] && EqQ[n2, 2*n] && NeQ[b^2 - 4*a*c, 0] && !Rati onalQ[n]
\[\int \frac {x^{n}}{\left (d +e \,x^{n}\right ) \left (a +b \,x^{n}+c \,x^{2 n}\right )}d x\]
Input:
int(x^n/(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x)
Output:
int(x^n/(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x)
\[ \int \frac {x^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\int { \frac {x^{n}}{{\left (c x^{2 \, n} + b x^{n} + a\right )} {\left (e x^{n} + d\right )}} \,d x } \] Input:
integrate(x^n/(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x, algorithm="fricas")
Output:
integral(x^n/(b*e*x^(2*n) + a*d + (c*e*x^n + c*d)*x^(2*n) + (b*d + a*e)*x^ n), x)
Exception generated. \[ \int \frac {x^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\text {Exception raised: HeuristicGCDFailed} \] Input:
integrate(x**n/(d+e*x**n)/(a+b*x**n+c*x**(2*n)),x)
Output:
Exception raised: HeuristicGCDFailed >> no luck
\[ \int \frac {x^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\int { \frac {x^{n}}{{\left (c x^{2 \, n} + b x^{n} + a\right )} {\left (e x^{n} + d\right )}} \,d x } \] Input:
integrate(x^n/(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x, algorithm="maxima")
Output:
integrate(x^n/((c*x^(2*n) + b*x^n + a)*(e*x^n + d)), x)
\[ \int \frac {x^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\int { \frac {x^{n}}{{\left (c x^{2 \, n} + b x^{n} + a\right )} {\left (e x^{n} + d\right )}} \,d x } \] Input:
integrate(x^n/(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x, algorithm="giac")
Output:
integrate(x^n/((c*x^(2*n) + b*x^n + a)*(e*x^n + d)), x)
Timed out. \[ \int \frac {x^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\int \frac {x^n}{\left (d+e\,x^n\right )\,\left (a+b\,x^n+c\,x^{2\,n}\right )} \,d x \] Input:
int(x^n/((d + e*x^n)*(a + b*x^n + c*x^(2*n))),x)
Output:
int(x^n/((d + e*x^n)*(a + b*x^n + c*x^(2*n))), x)
\[ \int \frac {x^n}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\int \frac {x^{n}}{x^{3 n} c e +x^{2 n} b e +x^{2 n} c d +x^{n} a e +x^{n} b d +a d}d x \] Input:
int(x^n/(d+e*x^n)/(a+b*x^n+c*x^(2*n)),x)
Output:
int(x**n/(x**(3*n)*c*e + x**(2*n)*b*e + x**(2*n)*c*d + x**n*a*e + x**n*b*d + a*d),x)