Optimal. Leaf size=144 \[ \frac {\sqrt {\sqrt {a+4}+1} \left (\frac {(x-1)^2}{1-\sqrt {a+4}}+1\right ) F\left (\tan ^{-1}\left (\frac {x-1}{\sqrt {\sqrt {a+4}+1}}\right )|-\frac {2 \sqrt {a+4}}{1-\sqrt {a+4}}\right )}{\sqrt {\frac {\frac {(x-1)^2}{1-\sqrt {a+4}}+1}{\frac {(x-1)^2}{\sqrt {a+4}+1}+1}} \sqrt {a-(x-1)^4-2 (x-1)^2+3}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.10, antiderivative size = 144, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.125, Rules used = {1106, 1104, 418} \[ \frac {\sqrt {\sqrt {a+4}+1} \left (\frac {(x-1)^2}{1-\sqrt {a+4}}+1\right ) F\left (\tan ^{-1}\left (\frac {x-1}{\sqrt {\sqrt {a+4}+1}}\right )|-\frac {2 \sqrt {a+4}}{1-\sqrt {a+4}}\right )}{\sqrt {\frac {\frac {(x-1)^2}{1-\sqrt {a+4}}+1}{\frac {(x-1)^2}{\sqrt {a+4}+1}+1}} \sqrt {a-(x-1)^4-2 (x-1)^2+3}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 418
Rule 1104
Rule 1106
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+8 x-8 x^2+4 x^3-x^4}} \, dx &=\operatorname {Subst}\left (\int \frac {1}{\sqrt {3+a-2 x^2-x^4}} \, dx,x,-1+x\right )\\ &=\frac {\left (\sqrt {1-\frac {2 (-1+x)^2}{-2-2 \sqrt {4+a}}} \sqrt {1-\frac {2 (-1+x)^2}{-2+2 \sqrt {4+a}}}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {1-\frac {2 x^2}{-2-2 \sqrt {4+a}}} \sqrt {1-\frac {2 x^2}{-2+2 \sqrt {4+a}}}} \, dx,x,-1+x\right )}{\sqrt {3+a-2 (-1+x)^2-(-1+x)^4}}\\ &=-\frac {\sqrt {1+\sqrt {4+a}} \left (1+\frac {(1-x)^2}{1-\sqrt {4+a}}\right ) F\left (\tan ^{-1}\left (\frac {1-x}{\sqrt {1+\sqrt {4+a}}}\right )|-\frac {2 \sqrt {4+a}}{1-\sqrt {4+a}}\right )}{\sqrt {\frac {1+\frac {(1-x)^2}{1-\sqrt {4+a}}}{1+\frac {(1-x)^2}{1+\sqrt {4+a}}}} \sqrt {3+a-2 (1-x)^2-(1-x)^4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 1.49, size = 540, normalized size = 3.75 \[ \frac {2 \left (\sqrt {-\sqrt {a+4}-1}-x+1\right ) \sqrt {\frac {\sqrt {-\sqrt {a+4}-1} \left (\sqrt {\sqrt {a+4}-1}-x+1\right )}{\left (\sqrt {-\sqrt {a+4}-1}+\sqrt {\sqrt {a+4}-1}\right ) \left (\sqrt {-\sqrt {a+4}-1}-x+1\right )}} \left (\sqrt {-\sqrt {a+4}-1}+x-1\right ) \sqrt {\frac {\sqrt {-\sqrt {a+4}-1} \left (\sqrt {\sqrt {a+4}-1}+x-1\right )}{\left (\sqrt {\sqrt {a+4}-1}-\sqrt {-\sqrt {a+4}-1}\right ) \left (\sqrt {-\sqrt {a+4}-1}-x+1\right )}} F\left (\sin ^{-1}\left (\sqrt {\frac {\left (\sqrt {-\sqrt {a+4}-1}-\sqrt {\sqrt {a+4}-1}\right ) \left (x+\sqrt {-\sqrt {a+4}-1}-1\right )}{\left (\sqrt {-\sqrt {a+4}-1}+\sqrt {\sqrt {a+4}-1}\right ) \left (-x+\sqrt {-\sqrt {a+4}-1}+1\right )}}\right )|\frac {\left (\sqrt {-\sqrt {a+4}-1}+\sqrt {\sqrt {a+4}-1}\right )^2}{\left (\sqrt {-\sqrt {a+4}-1}-\sqrt {\sqrt {a+4}-1}\right )^2}\right )}{\sqrt {-\sqrt {a+4}-1} \sqrt {\frac {\left (\sqrt {-\sqrt {a+4}-1}-\sqrt {\sqrt {a+4}-1}\right ) \left (\sqrt {-\sqrt {a+4}-1}+x-1\right )}{\left (\sqrt {-\sqrt {a+4}-1}+\sqrt {\sqrt {a+4}-1}\right ) \left (\sqrt {-\sqrt {a+4}-1}-x+1\right )}} \sqrt {a-x \left (x^3-4 x^2+8 x-8\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.42, size = 0, normalized size = 0.00 \[ {\rm integral}\left (-\frac {\sqrt {-x^{4} + 4 \, x^{3} - 8 \, x^{2} + a + 8 \, x}}{x^{4} - 4 \, x^{3} + 8 \, x^{2} - a - 8 \, x}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {-x^{4} + 4 \, x^{3} - 8 \, x^{2} + a + 8 \, x}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.03, size = 530, normalized size = 3.68 \[ -\frac {\left (\sqrt {-1-\sqrt {a +4}}+\sqrt {-1+\sqrt {a +4}}\right ) \sqrt {\frac {\left (-\sqrt {-1-\sqrt {a +4}}+\sqrt {-1+\sqrt {a +4}}\right ) \left (x -1-\sqrt {-1+\sqrt {a +4}}\right )}{\left (-\sqrt {-1-\sqrt {a +4}}-\sqrt {-1+\sqrt {a +4}}\right ) \left (x -1+\sqrt {-1+\sqrt {a +4}}\right )}}\, \left (x -1+\sqrt {-1+\sqrt {a +4}}\right )^{2} \sqrt {-\frac {2 \sqrt {-1+\sqrt {a +4}}\, \left (x -1-\sqrt {-1-\sqrt {a +4}}\right )}{\left (\sqrt {-1-\sqrt {a +4}}-\sqrt {-1+\sqrt {a +4}}\right ) \left (x -1+\sqrt {-1+\sqrt {a +4}}\right )}}\, \sqrt {-\frac {2 \sqrt {-1+\sqrt {a +4}}\, \left (x -1+\sqrt {-1-\sqrt {a +4}}\right )}{\left (-\sqrt {-1-\sqrt {a +4}}-\sqrt {-1+\sqrt {a +4}}\right ) \left (x -1+\sqrt {-1+\sqrt {a +4}}\right )}}\, \EllipticF \left (\sqrt {\frac {\left (-\sqrt {-1-\sqrt {a +4}}+\sqrt {-1+\sqrt {a +4}}\right ) \left (x -1-\sqrt {-1+\sqrt {a +4}}\right )}{\left (-\sqrt {-1-\sqrt {a +4}}-\sqrt {-1+\sqrt {a +4}}\right ) \left (x -1+\sqrt {-1+\sqrt {a +4}}\right )}}, \sqrt {\frac {\left (-\sqrt {-1-\sqrt {a +4}}-\sqrt {-1+\sqrt {a +4}}\right ) \left (\sqrt {-1-\sqrt {a +4}}+\sqrt {-1+\sqrt {a +4}}\right )}{\left (-\sqrt {-1-\sqrt {a +4}}+\sqrt {-1+\sqrt {a +4}}\right ) \left (\sqrt {-1-\sqrt {a +4}}-\sqrt {-1+\sqrt {a +4}}\right )}}\right )}{\left (-\sqrt {-1-\sqrt {a +4}}+\sqrt {-1+\sqrt {a +4}}\right ) \sqrt {-1+\sqrt {a +4}}\, \sqrt {-\left (x -1-\sqrt {-1+\sqrt {a +4}}\right ) \left (x -1+\sqrt {-1+\sqrt {a +4}}\right ) \left (x -1-\sqrt {-1-\sqrt {a +4}}\right ) \left (x -1+\sqrt {-1-\sqrt {a +4}}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {-x^{4} + 4 \, x^{3} - 8 \, x^{2} + a + 8 \, x}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {1}{\sqrt {-x^4+4\,x^3-8\,x^2+8\,x+a}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {1}{\sqrt {a - x^{4} + 4 x^{3} - 8 x^{2} + 8 x}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________