Optimal. Leaf size=131 \[ \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}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 131, normalized size of antiderivative = 1.00, 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 = {335, 311, 226,
1210} \begin {gather*} \frac {\sqrt {a} (x+1) \sqrt {\frac {x^2+1}{(x+1)^2}} F\left (2 \text {ArcTan}\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 \text {ArcTan}\left (\frac {\sqrt {a x}}{\sqrt {a}}\right )|\frac {1}{2}\right )}{\sqrt {x^2+1}}+\frac {2 \sqrt {x^2+1} \sqrt {a x}}{x+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 226
Rule 311
Rule 335
Rule 1210
Rubi steps
\begin {align*} \int \frac {\sqrt {a x}}{\sqrt {1+x^2}} \, dx &=\frac {2 \text {Subst}\left (\int \frac {x^2}{\sqrt {1+\frac {x^4}{a^2}}} \, dx,x,\sqrt {a x}\right )}{a}\\ &=2 \text {Subst}\left (\int \frac {1}{\sqrt {1+\frac {x^4}{a^2}}} \, dx,x,\sqrt {a x}\right )-2 \text {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] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 10.03, size = 27, normalized size = 0.21 \begin {gather*} \frac {2}{3} x \sqrt {a x} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};-x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.20, size = 81, normalized size = 0.62
method | result | size |
meijerg | \(\frac {2 \sqrt {a x}\, x \hypergeom \left (\left [\frac {1}{2}, \frac {3}{4}\right ], \left [\frac {7}{4}\right ], -x^{2}\right )}{3}\) | \(20\) |
default | \(\frac {\sqrt {a x}\, \sqrt {-i \left (x +i\right )}\, \sqrt {2}\, \sqrt {-i \left (-x +i\right )}\, \sqrt {i x}\, \left (2 \EllipticE \left (\sqrt {-i \left (x +i\right )}, \frac {\sqrt {2}}{2}\right )-\EllipticF \left (\sqrt {-i \left (x +i\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {x^{2}+1}\, x}\) | \(81\) |
elliptic | \(\frac {i \sqrt {a x}\, \sqrt {a x \left (x^{2}+1\right )}\, \sqrt {-i \left (x +i\right )}\, \sqrt {2}\, \sqrt {i \left (x -i\right )}\, \sqrt {i x}\, \left (-2 i \EllipticE \left (\sqrt {-i \left (x +i\right )}, \frac {\sqrt {2}}{2}\right )+i \EllipticF \left (\sqrt {-i \left (x +i\right )}, \frac {\sqrt {2}}{2}\right )\right )}{\sqrt {x^{2}+1}\, x \sqrt {a \,x^{3}+a x}}\) | \(104\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.08, size = 12, normalized size = 0.09 \begin {gather*} -2 \, \sqrt {a} {\rm weierstrassZeta}\left (-4, 0, {\rm weierstrassPInverse}\left (-4, 0, x\right )\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 0.49, size = 36, normalized size = 0.27 \begin {gather*} \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 {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {a\,x}}{\sqrt {x^2+1}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________