Integrand size = 26, antiderivative size = 292 \[ \int \frac {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx=\frac {e x^{1+n} \sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}} \operatorname {AppellF1}\left (1+\frac {1}{n},\frac {1}{2},\frac {1}{2},2+\frac {1}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{(1+n) \sqrt {a+b x^n+c x^{2 n}}}+\frac {d x \sqrt {1+\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {1+\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}} \operatorname {AppellF1}\left (\frac {1}{n},\frac {1}{2},\frac {1}{2},1+\frac {1}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{\sqrt {a+b x^n+c x^{2 n}}} \] Output:
e*x^(1+n)*(1+2*c*x^n/(b-(-4*a*c+b^2)^(1/2)))^(1/2)*(1+2*c*x^n/(b+(-4*a*c+b ^2)^(1/2)))^(1/2)*AppellF1(1+1/n,1/2,1/2,2+1/n,-2*c*x^n/(b-(-4*a*c+b^2)^(1 /2)),-2*c*x^n/(b+(-4*a*c+b^2)^(1/2)))/(1+n)/(a+b*x^n+c*x^(2*n))^(1/2)+d*x* (1+2*c*x^n/(b-(-4*a*c+b^2)^(1/2)))^(1/2)*(1+2*c*x^n/(b+(-4*a*c+b^2)^(1/2)) )^(1/2)*AppellF1(1/n,1/2,1/2,1+1/n,-2*c*x^n/(b-(-4*a*c+b^2)^(1/2)),-2*c*x^ n/(b+(-4*a*c+b^2)^(1/2)))/(a+b*x^n+c*x^(2*n))^(1/2)
Time = 0.52 (sec) , antiderivative size = 245, normalized size of antiderivative = 0.84 \[ \int \frac {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx=\frac {x \sqrt {\frac {b-\sqrt {b^2-4 a c}+2 c x^n}{b-\sqrt {b^2-4 a c}}} \sqrt {\frac {b+\sqrt {b^2-4 a c}+2 c x^n}{b+\sqrt {b^2-4 a c}}} \left (e x^n \operatorname {AppellF1}\left (1+\frac {1}{n},\frac {1}{2},\frac {1}{2},2+\frac {1}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}},\frac {2 c x^n}{-b+\sqrt {b^2-4 a c}}\right )+d (1+n) \operatorname {AppellF1}\left (\frac {1}{n},\frac {1}{2},\frac {1}{2},1+\frac {1}{n},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}},\frac {2 c x^n}{-b+\sqrt {b^2-4 a c}}\right )\right )}{(1+n) \sqrt {a+x^n \left (b+c x^n\right )}} \] Input:
Integrate[(d + e*x^n)/Sqrt[a + b*x^n + c*x^(2*n)],x]
Output:
(x*Sqrt[(b - Sqrt[b^2 - 4*a*c] + 2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])]*Sqrt[(b + Sqrt[b^2 - 4*a*c] + 2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])]*(e*x^n*AppellF1[1 + n^(-1), 1/2, 1/2, 2 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c* x^n)/(-b + Sqrt[b^2 - 4*a*c])] + d*(1 + n)*AppellF1[n^(-1), 1/2, 1/2, 1 + n^(-1), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c]), (2*c*x^n)/(-b + Sqrt[b^2 - 4*a *c])]))/((1 + n)*Sqrt[a + x^n*(b + c*x^n)])
Time = 0.48 (sec) , antiderivative size = 292, 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.077, Rules used = {1762, 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 {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx\) |
\(\Big \downarrow \) 1762 |
\(\displaystyle \int \left (\frac {d}{\sqrt {a+b x^n+c x^{2 n}}}+\frac {e x^n}{\sqrt {a+b x^n+c x^{2 n}}}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {d x \sqrt {\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}+1} \sqrt {\frac {2 c x^n}{\sqrt {b^2-4 a c}+b}+1} \operatorname {AppellF1}\left (\frac {1}{n},\frac {1}{2},\frac {1}{2},1+\frac {1}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{\sqrt {a+b x^n+c x^{2 n}}}+\frac {e x^{n+1} \sqrt {\frac {2 c x^n}{b-\sqrt {b^2-4 a c}}+1} \sqrt {\frac {2 c x^n}{\sqrt {b^2-4 a c}+b}+1} \operatorname {AppellF1}\left (1+\frac {1}{n},\frac {1}{2},\frac {1}{2},2+\frac {1}{n},-\frac {2 c x^n}{b-\sqrt {b^2-4 a c}},-\frac {2 c x^n}{b+\sqrt {b^2-4 a c}}\right )}{(n+1) \sqrt {a+b x^n+c x^{2 n}}}\) |
Input:
Int[(d + e*x^n)/Sqrt[a + b*x^n + c*x^(2*n)],x]
Output:
(e*x^(1 + n)*Sqrt[1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])]*Sqrt[1 + (2*c*x^n )/(b + Sqrt[b^2 - 4*a*c])]*AppellF1[1 + n^(-1), 1/2, 1/2, 2 + n^(-1), (-2* c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])])/((1 + n)*Sqrt[a + b*x^n + c*x^(2*n)]) + (d*x*Sqrt[1 + (2*c*x^n)/(b - Sqrt[b^2 - 4*a*c])]*Sqrt[1 + (2*c*x^n)/(b + Sqrt[b^2 - 4*a*c])]*AppellF1[n^(-1), 1/2 , 1/2, 1 + n^(-1), (-2*c*x^n)/(b - Sqrt[b^2 - 4*a*c]), (-2*c*x^n)/(b + Sqr t[b^2 - 4*a*c])])/Sqrt[a + b*x^n + c*x^(2*n)]
Int[((d_) + (e_.)*(x_)^(n_))*((a_) + (b_.)*(x_)^(n_) + (c_.)*(x_)^(n2_))^(p _), x_Symbol] :> Int[ExpandIntegrand[(d + e*x^n)*(a + b*x^n + c*x^(2*n))^p, x], x] /; FreeQ[{a, b, c, d, e, n}, x] && EqQ[n2, 2*n] && NeQ[b^2 - 4*a*c, 0]
\[\int \frac {d +e \,x^{n}}{\sqrt {a +b \,x^{n}+c \,x^{2 n}}}d x\]
Input:
int((d+e*x^n)/(a+b*x^n+c*x^(2*n))^(1/2),x)
Output:
int((d+e*x^n)/(a+b*x^n+c*x^(2*n))^(1/2),x)
Exception generated. \[ \int \frac {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx=\text {Exception raised: TypeError} \] Input:
integrate((d+e*x^n)/(a+b*x^n+c*x^(2*n))^(1/2),x, algorithm="fricas")
Output:
Exception raised: TypeError >> Error detected within library code: inte grate: implementation incomplete (constant residues)
\[ \int \frac {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx=\int \frac {d + e x^{n}}{\sqrt {a + b x^{n} + c x^{2 n}}}\, dx \] Input:
integrate((d+e*x**n)/(a+b*x**n+c*x**(2*n))**(1/2),x)
Output:
Integral((d + e*x**n)/sqrt(a + b*x**n + c*x**(2*n)), x)
\[ \int \frac {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx=\int { \frac {e x^{n} + d}{\sqrt {c x^{2 \, n} + b x^{n} + a}} \,d x } \] Input:
integrate((d+e*x^n)/(a+b*x^n+c*x^(2*n))^(1/2),x, algorithm="maxima")
Output:
integrate((e*x^n + d)/sqrt(c*x^(2*n) + b*x^n + a), x)
\[ \int \frac {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx=\int { \frac {e x^{n} + d}{\sqrt {c x^{2 \, n} + b x^{n} + a}} \,d x } \] Input:
integrate((d+e*x^n)/(a+b*x^n+c*x^(2*n))^(1/2),x, algorithm="giac")
Output:
integrate((e*x^n + d)/sqrt(c*x^(2*n) + b*x^n + a), x)
Timed out. \[ \int \frac {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx=\int \frac {d+e\,x^n}{\sqrt {a+b\,x^n+c\,x^{2\,n}}} \,d x \] Input:
int((d + e*x^n)/(a + b*x^n + c*x^(2*n))^(1/2),x)
Output:
int((d + e*x^n)/(a + b*x^n + c*x^(2*n))^(1/2), x)
\[ \int \frac {d+e x^n}{\sqrt {a+b x^n+c x^{2 n}}} \, dx=\left (\int \frac {\sqrt {x^{2 n} c +x^{n} b +a}}{x^{2 n} c +x^{n} b +a}d x \right ) d +\left (\int \frac {x^{n} \sqrt {x^{2 n} c +x^{n} b +a}}{x^{2 n} c +x^{n} b +a}d x \right ) e \] Input:
int((d+e*x^n)/(a+b*x^n+c*x^(2*n))^(1/2),x)
Output:
int(sqrt(x**(2*n)*c + x**n*b + a)/(x**(2*n)*c + x**n*b + a),x)*d + int((x* *n*sqrt(x**(2*n)*c + x**n*b + a))/(x**(2*n)*c + x**n*b + a),x)*e