Optimal. Leaf size=34 \[ \frac {2 x^{1-n} \sqrt {x^n+1} \sqrt {a x^{2 n}}}{n+2} \]
[Out]
________________________________________________________________________________________
Rubi [C] time = 0.03, antiderivative size = 80, normalized size of antiderivative = 2.35, number of steps used = 5, number of rules used = 3, integrand size = 54, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {15, 364, 245} \[ \frac {2 x^{1-n} \sqrt {a x^{2 n}} \, _2F_1\left (\frac {1}{2},\frac {1}{n};1+\frac {1}{n};-x^n\right )}{n+2}+\frac {x \sqrt {a x^{2 n}} \, _2F_1\left (\frac {1}{2},1+\frac {1}{n};2+\frac {1}{n};-x^n\right )}{n+1} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 15
Rule 245
Rule 364
Rubi steps
\begin {align*} \int \left (\frac {\sqrt {a x^{2 n}}}{\sqrt {1+x^n}}+\frac {2 x^{-n} \sqrt {a x^{2 n}}}{(2+n) \sqrt {1+x^n}}\right ) \, dx &=\frac {2 \int \frac {x^{-n} \sqrt {a x^{2 n}}}{\sqrt {1+x^n}} \, dx}{2+n}+\int \frac {\sqrt {a x^{2 n}}}{\sqrt {1+x^n}} \, dx\\ &=\left (x^{-n} \sqrt {a x^{2 n}}\right ) \int \frac {x^n}{\sqrt {1+x^n}} \, dx+\frac {\left (2 x^{-n} \sqrt {a x^{2 n}}\right ) \int \frac {1}{\sqrt {1+x^n}} \, dx}{2+n}\\ &=\frac {x \sqrt {a x^{2 n}} \, _2F_1\left (\frac {1}{2},1+\frac {1}{n};2+\frac {1}{n};-x^n\right )}{1+n}+\frac {2 x^{1-n} \sqrt {a x^{2 n}} \, _2F_1\left (\frac {1}{2},\frac {1}{n};1+\frac {1}{n};-x^n\right )}{2+n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 33, normalized size = 0.97 \[ \frac {2 a x^{n+1} \sqrt {x^n+1}}{(n+2) \sqrt {a x^{2 n}}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: TypeError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a x^{2 \, n}}}{\sqrt {x^{n} + 1}} + \frac {2 \, \sqrt {a x^{2 \, n}}}{{\left (n + 2\right )} \sqrt {x^{n} + 1} x^{n}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 30, normalized size = 0.88 \[ \frac {2 \sqrt {x^{n}+1}\, \sqrt {a \,x^{2 n}}\, x \,x^{-n}}{n +2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.51, size = 18, normalized size = 0.53 \[ \frac {2 \, \sqrt {a} \sqrt {x^{n} + 1} x}{n + 2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.89, size = 43, normalized size = 1.26 \[ \frac {\sqrt {a\,x^{2\,n}}\,\left (\frac {2\,x}{n+2}+\frac {2\,x^{n+1}}{n+2}\right )}{x^n\,\sqrt {x^n+1}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \frac {\int \frac {2 \sqrt {a x^{2 n}}}{\sqrt {x^{n} + 1}}\, dx + \int \frac {n \sqrt {a x^{2 n}}}{\sqrt {x^{n} + 1}}\, dx + \int \frac {2 x^{- n} \sqrt {a x^{2 n}}}{\sqrt {x^{n} + 1}}\, dx}{n + 2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________