Optimal. Leaf size=131 \[ \frac{2 \sqrt{x^2+1} \sqrt{a x}}{x+1}+\frac{\sqrt{a} (x+1) \sqrt{\frac{x^2+1}{(x+1)^2}} F\left (2 \tan ^{-1}\left (\frac{\sqrt{a x}}{\sqrt{a}}\right )|\frac{1}{2}\right )}{\sqrt{x^2+1}}-\frac{2 \sqrt{a} (x+1) \sqrt{\frac{x^2+1}{(x+1)^2}} E\left (2 \tan ^{-1}\left (\frac{\sqrt{a x}}{\sqrt{a}}\right )|\frac{1}{2}\right )}{\sqrt{x^2+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0818356, antiderivative size = 131, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.235, Rules used = {329, 305, 220, 1196} \[ \frac{2 \sqrt{x^2+1} \sqrt{a x}}{x+1}+\frac{\sqrt{a} (x+1) \sqrt{\frac{x^2+1}{(x+1)^2}} F\left (2 \tan ^{-1}\left (\frac{\sqrt{a x}}{\sqrt{a}}\right )|\frac{1}{2}\right )}{\sqrt{x^2+1}}-\frac{2 \sqrt{a} (x+1) \sqrt{\frac{x^2+1}{(x+1)^2}} E\left (2 \tan ^{-1}\left (\frac{\sqrt{a x}}{\sqrt{a}}\right )|\frac{1}{2}\right )}{\sqrt{x^2+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 329
Rule 305
Rule 220
Rule 1196
Rubi steps
\begin{align*} \int \frac{\sqrt{a x}}{\sqrt{1+x^2}} \, dx &=\frac{2 \operatorname{Subst}\left (\int \frac{x^2}{\sqrt{1+\frac{x^4}{a^2}}} \, dx,x,\sqrt{a x}\right )}{a}\\ &=2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^4}{a^2}}} \, dx,x,\sqrt{a x}\right )-2 \operatorname{Subst}\left (\int \frac{1-\frac{x^2}{a}}{\sqrt{1+\frac{x^4}{a^2}}} \, dx,x,\sqrt{a x}\right )\\ &=\frac{2 \sqrt{a x} \sqrt{1+x^2}}{1+x}-\frac{2 \sqrt{a} (1+x) \sqrt{\frac{1+x^2}{(1+x)^2}} E\left (2 \tan ^{-1}\left (\frac{\sqrt{a x}}{\sqrt{a}}\right )|\frac{1}{2}\right )}{\sqrt{1+x^2}}+\frac{\sqrt{a} (1+x) \sqrt{\frac{1+x^2}{(1+x)^2}} F\left (2 \tan ^{-1}\left (\frac{\sqrt{a x}}{\sqrt{a}}\right )|\frac{1}{2}\right )}{\sqrt{1+x^2}}\\ \end{align*}
Mathematica [C] time = 0.005063, size = 27, normalized size = 0.21 \[ \frac{2}{3} x \sqrt{a x} \, _2F_1\left (\frac{1}{2},\frac{3}{4};\frac{7}{4};-x^2\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.018, size = 81, normalized size = 0.6 \begin{align*}{\frac{\sqrt{2}}{x}\sqrt{ax}\sqrt{-i \left ( x+i \right ) }\sqrt{-i \left ( -x+i \right ) }\sqrt{ix} \left ( 2\,{\it EllipticE} \left ( \sqrt{-i \left ( x+i \right ) },1/2\,\sqrt{2} \right ) -{\it EllipticF} \left ( \sqrt{-i \left ( x+i \right ) },{\frac{\sqrt{2}}{2}} \right ) \right ){\frac{1}{\sqrt{{x}^{2}+1}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a x}}{\sqrt{x^{2} + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{a x}}{\sqrt{x^{2} + 1}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] time = 1.03496, size = 36, normalized size = 0.27 \begin{align*} \frac{\sqrt{a} x^{\frac{3}{2}} \Gamma \left (\frac{3}{4}\right ){{}_{2}F_{1}\left (\begin{matrix} \frac{1}{2}, \frac{3}{4} \\ \frac{7}{4} \end{matrix}\middle |{x^{2} e^{i \pi }} \right )}}{2 \Gamma \left (\frac{7}{4}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\sqrt{a x}}{\sqrt{x^{2} + 1}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]