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

Optimal result
Mathematica [A] (verified)
Rubi [A] (verified)
Maple [F]
Fricas [F]
Sympy [F(-2)]
Maxima [F]
Giac [F]
Mupad [F(-1)]
Reduce [F]

Optimal result

Integrand size = 31, antiderivative size = 284 \[ \int \frac {x^{-3 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-3 n} \operatorname {Hypergeometric2F1}\left (1,-3+\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-3 n)}-\frac {c \left (e+\frac {2 c d-b e}{\sqrt {b^2-4 a c}}\right ) x^{1-3 n} \operatorname {Hypergeometric2F1}\left (1,-3+\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-3 n)}+\frac {e^2 x^{1-3 n} \operatorname {Hypergeometric2F1}\left (1,-3+\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-3 n)} \] Output:

-c*(e-(-b*e+2*c*d)/(-4*a*c+b^2)^(1/2))*x^(1-3*n)*hypergeom([1, -3+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-3*n)-c*(e+(-b*e+2*c*d)/(-4*a*c+b^2)^(1/2))*x^(1-3*n)*hypergeom( 
[1, -3+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-3*n)+e^2*x^(1-3*n)*hypergeom([1, -3+1/n],[-2+1/n 
],-e*x^n/d)/d/(a*e^2-b*d*e+c*d^2)/(1-3*n)
 

Mathematica [A] (verified)

Time = 1.71 (sec) , antiderivative size = 220, normalized size of antiderivative = 0.77 \[ \int \frac {x^{-3 n}}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=-\frac {x^{1-3 n} \left (-\frac {c \left (e+\frac {-2 c d+b e}{\sqrt {b^2-4 a c}}\right ) \operatorname {Hypergeometric2F1}\left (1,-3+\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,-3+\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,-3+\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+3 n)} \] Input:

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

Output:

-((x^(1 - 3*n)*(-((c*(e + (-2*c*d + b*e)/Sqrt[b^2 - 4*a*c])*Hypergeometric 
2F1[1, -3 + 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])*Hypergeome 
tric2F1[1, -3 + n^(-1), -2 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/ 
(b + Sqrt[b^2 - 4*a*c]) + (e^2*Hypergeometric2F1[1, -3 + n^(-1), -2 + n^(- 
1), -((e*x^n)/d)])/d))/((c*d^2 + e*(-(b*d) + a*e))*(-1 + 3*n)))
 

Rubi [A] (verified)

Time = 0.50 (sec) , antiderivative size = 353, normalized size of antiderivative = 1.24, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {1880, 1010, 888}

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^{-3 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^{-3 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^{-3 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 \) 1010

\(\displaystyle \frac {2 c \left (\frac {2 c \int \frac {x^{-3 n}}{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 )}-\frac {e \int \frac {x^{-3 n}}{e x^n+d}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 {2 c \int \frac {x^{-3 n}}{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 )}-\frac {e \int \frac {x^{-3 n}}{e x^n+d}dx}{2 c d-e \left (\sqrt {b^2-4 a c}+b\right )}\right )}{\sqrt {b^2-4 a c}}\)

\(\Big \downarrow \) 888

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

Input:

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

Output:

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

Defintions of rubi rules used

rule 888
Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p 
*((c*x)^(m + 1)/(c*(m + 1)))*Hypergeometric2F1[-p, (m + 1)/n, (m + 1)/n + 1 
, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] && (ILt 
Q[p, 0] || GtQ[a, 0])
 

rule 1010
Int[((e_.)*(x_))^(m_.)/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), 
 x_Symbol] :> Simp[b/(b*c - a*d)   Int[(e*x)^m/(a + b*x^n), x], x] - Simp[d 
/(b*c - a*d)   Int[(e*x)^m/(c + d*x^n), x], x] /; FreeQ[{a, b, c, d, e, n, 
m}, x] && NeQ[b*c - a*d, 0]
 

rule 1880
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]
 
Maple [F]

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

Input:

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

Output:

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

Fricas [F]

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

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

Output:

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

Sympy [F(-2)]

Exception generated. \[ \int \frac {x^{-3 n}}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\text {Exception raised: HeuristicGCDFailed} \] Input:

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

Output:

Exception raised: HeuristicGCDFailed >> no luck
 

Maxima [F]

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

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

Output:

-e^5*integrate(1/(c*d^6 - b*d^5*e + a*d^4*e^2 + (c*d^5*e - b*d^4*e^2 + a*d 
^3*e^3)*x^n), x) - ((2*n^2 - 3*n + 1)*a^2*d^2*x/x^(3*n) - ((3*n^2 - 4*n + 
1)*a*b*d^2 + (3*n^2 - 4*n + 1)*a^2*d*e)*x/x^(2*n) + ((6*n^2 - 5*n + 1)*b^2 
*d^2 + (6*n^2 - 5*n + 1)*a^2*e^2 - ((6*n^2 - 5*n + 1)*c*d^2 - (6*n^2 - 5*n 
 + 1)*b*d*e)*a)*x/x^n)/((6*n^3 - 11*n^2 + 6*n - 1)*a^3*d^3) - integrate((b 
^3*c*d - b^4*e - a^2*c^2*e - (2*b*c^2*d - 3*b^2*c*e)*a + (b^2*c^2*d - b^3* 
c*e - (c^3*d - 2*b*c^2*e)*a)*x^n)/(a^5*e^2 + (c*d^2 - b*d*e)*a^4 + (a^4*c* 
e^2 + (c^2*d^2 - b*c*d*e)*a^3)*x^(2*n) + (a^4*b*e^2 + (b*c*d^2 - b^2*d*e)* 
a^3)*x^n), x)
 

Giac [F]

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

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

Output:

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

Mupad [F(-1)]

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

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

Output:

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

Reduce [F]

\[ \int \frac {x^{-3 n}}{\left (d+e x^n\right ) \left (a+b x^n+c x^{2 n}\right )} \, dx=\text {too large to display} \] Input:

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

Output:

(6*x**(3*n)*int(x**(2*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)*b*c*e**2*n**3 - 11*x**(3*n)*int(x**(2*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)*b*c* 
e**2*n**2 + 6*x**(3*n)*int(x**(2*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)*b*c*e**2*n - x**(3*n)*int(x**(2*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) 
*b*c*e**2 + 6*x**(3*n)*int(x**(2*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)*c**2*d*e*n**3 - 11*x**(3*n)*int(x**( 
2*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)*c**2*d*e*n**2 + 6*x**(3*n)*int(x**(2*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)*c**2*d*e*n - x**(3*n)*int 
(x**(2*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)*c**2*d*e + 6*x**(3*n)*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)*a*c*e**2*n**3 - 11*x**(3*n)*i 
nt(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)*a*c*e**2*n**2 + 6*x**(3*n)*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)*a*c*e**2*n - x**(3*n)*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)*a*c*e**2 + 6*x**(3*n)*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)*b**2*e**2*n**3 - 11*x**(3*n)*in...