Optimal. Leaf size=131 \[ \frac {x \sqrt {2+3 x^2}}{3 \sqrt {1+x^2}}-\frac {\sqrt {2} \sqrt {2+3 x^2} E\left (\tan ^{-1}(x)|-\frac {1}{2}\right )}{3 \sqrt {1+x^2} \sqrt {\frac {2+3 x^2}{1+x^2}}}+\frac {\sqrt {2+3 x^2} F\left (\tan ^{-1}(x)|-\frac {1}{2}\right )}{\sqrt {2} \sqrt {1+x^2} \sqrt {\frac {2+3 x^2}{1+x^2}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 131, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {433, 429, 506,
422} \begin {gather*} \frac {\sqrt {3 x^2+2} F\left (\text {ArcTan}(x)\left |-\frac {1}{2}\right .\right )}{\sqrt {2} \sqrt {x^2+1} \sqrt {\frac {3 x^2+2}{x^2+1}}}-\frac {\sqrt {2} \sqrt {3 x^2+2} E\left (\text {ArcTan}(x)\left |-\frac {1}{2}\right .\right )}{3 \sqrt {x^2+1} \sqrt {\frac {3 x^2+2}{x^2+1}}}+\frac {\sqrt {3 x^2+2} x}{3 \sqrt {x^2+1}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 422
Rule 429
Rule 433
Rule 506
Rubi steps
\begin {align*} \int \frac {\sqrt {1+x^2}}{\sqrt {2+3 x^2}} \, dx &=\int \frac {1}{\sqrt {1+x^2} \sqrt {2+3 x^2}} \, dx+\int \frac {x^2}{\sqrt {1+x^2} \sqrt {2+3 x^2}} \, dx\\ &=\frac {x \sqrt {2+3 x^2}}{3 \sqrt {1+x^2}}+\frac {\sqrt {2+3 x^2} F\left (\tan ^{-1}(x)|-\frac {1}{2}\right )}{\sqrt {2} \sqrt {1+x^2} \sqrt {\frac {2+3 x^2}{1+x^2}}}-\frac {1}{3} \int \frac {\sqrt {2+3 x^2}}{\left (1+x^2\right )^{3/2}} \, dx\\ &=\frac {x \sqrt {2+3 x^2}}{3 \sqrt {1+x^2}}-\frac {\sqrt {2} \sqrt {2+3 x^2} E\left (\tan ^{-1}(x)|-\frac {1}{2}\right )}{3 \sqrt {1+x^2} \sqrt {\frac {2+3 x^2}{1+x^2}}}+\frac {\sqrt {2+3 x^2} F\left (\tan ^{-1}(x)|-\frac {1}{2}\right )}{\sqrt {2} \sqrt {1+x^2} \sqrt {\frac {2+3 x^2}{1+x^2}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.28, size = 27, normalized size = 0.21 \begin {gather*} -\frac {i E\left (i \sinh ^{-1}\left (\sqrt {\frac {3}{2}} x\right )|\frac {2}{3}\right )}{\sqrt {3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 30, normalized size = 0.23
method | result | size |
default | \(-\frac {i \left (\EllipticF \left (i x , \frac {\sqrt {6}}{2}\right )+2 \EllipticE \left (i x , \frac {\sqrt {6}}{2}\right )\right ) \sqrt {2}}{6}\) | \(30\) |
elliptic | \(\frac {\sqrt {\left (3 x^{2}+2\right ) \left (x^{2}+1\right )}\, \left (-\frac {i \sqrt {x^{2}+1}\, \sqrt {6 x^{2}+4}\, \EllipticF \left (i x , \frac {\sqrt {6}}{2}\right )}{2 \sqrt {3 x^{4}+5 x^{2}+2}}+\frac {i \sqrt {x^{2}+1}\, \sqrt {6 x^{2}+4}\, \left (\EllipticF \left (i x , \frac {\sqrt {6}}{2}\right )-\EllipticE \left (i x , \frac {\sqrt {6}}{2}\right )\right )}{3 \sqrt {3 x^{4}+5 x^{2}+2}}\right )}{\sqrt {3 x^{2}+2}\, \sqrt {x^{2}+1}}\) | \(133\) |
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 [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {x^{2} + 1}}{\sqrt {3 x^{2} + 2}}\, dx \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 {x^2+1}}{\sqrt {3\,x^2+2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________