Optimal. Leaf size=44 \[ \frac {1}{2} \sqrt {1+x} \sqrt {3+2 x}-\frac {\sinh ^{-1}\left (\sqrt {2} \sqrt {1+x}\right )}{2 \sqrt {2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.267, Rules used = {1978, 52, 56,
221} \begin {gather*} \frac {1}{2} \sqrt {x+1} \sqrt {2 x+3}-\frac {\sinh ^{-1}\left (\sqrt {2} \sqrt {x+1}\right )}{2 \sqrt {2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 56
Rule 221
Rule 1978
Rubi steps
\begin {align*} \int \sqrt {\frac {1+x}{3+2 x}} \, dx &=\int \frac {\sqrt {1+x}}{\sqrt {3+2 x}} \, dx\\ &=\frac {1}{2} \sqrt {1+x} \sqrt {3+2 x}-\frac {1}{4} \int \frac {1}{\sqrt {1+x} \sqrt {3+2 x}} \, dx\\ &=\frac {1}{2} \sqrt {1+x} \sqrt {3+2 x}-\frac {1}{2} \text {Subst}\left (\int \frac {1}{\sqrt {1+2 x^2}} \, dx,x,\sqrt {1+x}\right )\\ &=\frac {1}{2} \sqrt {1+x} \sqrt {3+2 x}-\frac {\sinh ^{-1}\left (\sqrt {2} \sqrt {1+x}\right )}{2 \sqrt {2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.12, size = 75, normalized size = 1.70 \begin {gather*} \frac {\sqrt {\frac {1+x}{3+2 x}} \left (\sqrt {1+x} (3+2 x)-\sqrt {6+4 x} \tanh ^{-1}\left (\frac {\sqrt {2+2 x}}{-1+\sqrt {3+2 x}}\right )\right )}{2 \sqrt {1+x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Mathics [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {cought exception: maximum recursion depth exceeded while calling a Python object} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(74\) vs.
\(2(30)=60\).
time = 0.08, size = 75, normalized size = 1.70
method | result | size |
default | \(-\frac {\sqrt {\frac {1+x}{3+2 x}}\, \left (3+2 x \right ) \left (\ln \left (\frac {5 \sqrt {2}}{4}+x \sqrt {2}+\sqrt {2 x^{2}+5 x +3}\right ) \sqrt {2}-4 \sqrt {2 x^{2}+5 x +3}\right )}{8 \sqrt {\left (3+2 x \right ) \left (1+x \right )}}\) | \(75\) |
risch | \(\frac {\left (3+2 x \right ) \sqrt {\frac {1+x}{3+2 x}}}{2}-\frac {\ln \left (\frac {\left (\frac {5}{2}+2 x \right ) \sqrt {2}}{2}+\sqrt {2 x^{2}+5 x +3}\right ) \sqrt {2}\, \sqrt {\frac {1+x}{3+2 x}}\, \sqrt {\left (3+2 x \right ) \left (1+x \right )}}{8 \left (1+x \right )}\) | \(80\) |
trager | \(3 \left (\frac {1}{2}+\frac {x}{3}\right ) \sqrt {-\frac {-1-x}{3+2 x}}-\frac {\RootOf \left (\textit {\_Z}^{2}-2\right ) \ln \left (8 \sqrt {-\frac {-1-x}{3+2 x}}\, x +4 \RootOf \left (\textit {\_Z}^{2}-2\right ) x +12 \sqrt {-\frac {-1-x}{3+2 x}}+5 \RootOf \left (\textit {\_Z}^{2}-2\right )\right )}{8}\) | \(89\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 80 vs.
\(2 (30) = 60\).
time = 0.33, size = 80, normalized size = 1.82 \begin {gather*} \frac {1}{8} \, \sqrt {2} \log \left (-\frac {\sqrt {2} - 2 \, \sqrt {\frac {x + 1}{2 \, x + 3}}}{\sqrt {2} + 2 \, \sqrt {\frac {x + 1}{2 \, x + 3}}}\right ) - \frac {\sqrt {\frac {x + 1}{2 \, x + 3}}}{2 \, {\left (\frac {2 \, {\left (x + 1\right )}}{2 \, x + 3} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.30, size = 55, normalized size = 1.25 \begin {gather*} \frac {1}{2} \, {\left (2 \, x + 3\right )} \sqrt {\frac {x + 1}{2 \, x + 3}} + \frac {1}{8} \, \sqrt {2} \log \left (2 \, \sqrt {2} {\left (2 \, x + 3\right )} \sqrt {\frac {x + 1}{2 \, x + 3}} - 4 \, x - 5\right ) \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 \sqrt {\frac {x + 1}{2 x + 3}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 61 vs.
\(2 (30) = 60\).
time = 0.01, size = 74, normalized size = 1.68 \begin {gather*} \frac {1}{2} \sqrt {2 x^{2}+5 x+3} \mathrm {sign}\left (2 x+3\right )+\frac {\mathrm {sign}\left (2 x+3\right ) \ln \left |2 \sqrt {2} \left (-\sqrt {2} x+\sqrt {2 x^{2}+5 x+3}\right )-5\right |}{4 \sqrt {2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.21, size = 57, normalized size = 1.30 \begin {gather*} -\frac {\sqrt {2}\,\mathrm {atanh}\left (\sqrt {2}\,\sqrt {\frac {x+1}{2\,x+3}}\right )}{4}-\frac {\sqrt {\frac {x+1}{2\,x+3}}}{2\,\left (\frac {2\,x+2}{2\,x+3}-1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________