Optimal. Leaf size=54 \[ \frac {1}{6} \tan ^{-1}\left (\frac {1}{4} \sqrt {-5+x} \sqrt {3+x}\right )+\frac {\tanh ^{-1}\left (\frac {\sqrt {5} \sqrt {3+x}}{\sqrt {-5+x}}\right )}{3 \sqrt {5}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {1600, 184, 94,
209, 95, 212} \begin {gather*} \frac {1}{6} \text {ArcTan}\left (\frac {1}{4} \sqrt {x-5} \sqrt {x+3}\right )+\frac {\tanh ^{-1}\left (\frac {\sqrt {5} \sqrt {x+3}}{\sqrt {x-5}}\right )}{3 \sqrt {5}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 94
Rule 95
Rule 184
Rule 209
Rule 212
Rule 1600
Rubi steps
\begin {align*} \int \frac {\sqrt {-5+x} \sqrt {3+x}}{(-1+x) \left (-25+x^2\right )} \, dx &=\int \frac {\sqrt {3+x}}{\sqrt {-5+x} (-1+x) (5+x)} \, dx\\ &=\frac {1}{3} \int \frac {1}{\sqrt {-5+x} \sqrt {3+x} (5+x)} \, dx+\frac {2}{3} \int \frac {1}{\sqrt {-5+x} (-1+x) \sqrt {3+x}} \, dx\\ &=\frac {2}{3} \text {Subst}\left (\int \frac {1}{2-10 x^2} \, dx,x,\frac {\sqrt {3+x}}{\sqrt {-5+x}}\right )+\frac {2}{3} \text {Subst}\left (\int \frac {1}{16+x^2} \, dx,x,\sqrt {-5+x} \sqrt {3+x}\right )\\ &=\frac {1}{6} \tan ^{-1}\left (\frac {1}{4} \sqrt {-5+x} \sqrt {3+x}\right )+\frac {\tanh ^{-1}\left (\frac {\sqrt {5} \sqrt {3+x}}{\sqrt {-5+x}}\right )}{3 \sqrt {5}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.08, size = 47, normalized size = 0.87 \begin {gather*} \frac {1}{15} \left (-5 \tan ^{-1}\left (\frac {1}{\sqrt {\frac {-5+x}{3+x}}}\right )+\sqrt {5} \tanh ^{-1}\left (\frac {\sqrt {5}}{\sqrt {\frac {-5+x}{3+x}}}\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 64, normalized size = 1.19
method | result | size |
default | \(\frac {\sqrt {x -5}\, \sqrt {3+x}\, \left (\sqrt {5}\, \arctanh \left (\frac {\left (5+3 x \right ) \sqrt {5}}{5 \sqrt {x^{2}-2 x -15}}\right )-5 \arctan \left (\frac {4}{\sqrt {x^{2}-2 x -15}}\right )\right )}{30 \sqrt {x^{2}-2 x -15}}\) | \(64\) |
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 [A]
time = 0.40, size = 65, normalized size = 1.20 \begin {gather*} \frac {1}{30} \, \sqrt {5} \log \left (\frac {\sqrt {x + 3} \sqrt {x - 5} {\left (3 \, \sqrt {5} + 5\right )} + \sqrt {5} {\left (3 \, x + 5\right )} + 9 \, x + 15}{x + 5}\right ) + \frac {1}{3} \, \arctan \left (\frac {1}{4} \, \sqrt {x + 3} \sqrt {x - 5} - \frac {1}{4} \, x + \frac {1}{4}\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 \frac {\sqrt {x + 3}}{\sqrt {x - 5} \left (x - 1\right ) \left (x + 5\right )}\, 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. 74 vs.
\(2 (36) = 72\).
time = 0.47, size = 74, normalized size = 1.37 \begin {gather*} -\frac {1}{30} \, \sqrt {5} \log \left (\frac {{\left (\sqrt {x + 3} - \sqrt {x - 5}\right )}^{2} - 4 \, \sqrt {5} + 12}{{\left (\sqrt {x + 3} - \sqrt {x - 5}\right )}^{2} + 4 \, \sqrt {5} + 12}\right ) - \frac {1}{3} \, \arctan \left (\frac {1}{8} \, {\left (\sqrt {x + 3} - \sqrt {x - 5}\right )}^{2}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.61, size = 95, normalized size = 1.76 \begin {gather*} \frac {\mathrm {atan}\left (\frac {\sqrt {x+3}\,\sqrt {x-5}-2\,\sqrt {2}\,\sqrt {x-5}}{x-2\,\sqrt {2}\,\sqrt {x+3}+3}\right )}{3}-\frac {\sqrt {5}\,\mathrm {atanh}\left (-\frac {\sqrt {5}\,\sqrt {x+3}\,\sqrt {x-5}-2\,\sqrt {2}\,\sqrt {5}\,\sqrt {x-5}}{5\,x-10\,\sqrt {2}\,\sqrt {x+3}+15}\right )}{15} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________