Optimal. Leaf size=561 \[ \frac {2 \sqrt {c_3 c_6-c_2 c_7} \tan ^{-1}\left (\frac {\sqrt {c_3 c_6-c_2 c_7} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {-\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5-c_3 c_4 c_6+c_2 c_4 c_7}}\right )}{c_7 \sqrt {-\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5-c_3 c_4 c_6+c_2 c_4 c_7}}+\frac {2 \sqrt {c_3 c_6-c_2 c_7} \tan ^{-1}\left (\frac {\sqrt {c_3 c_6-c_2 c_7} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5-c_3 c_4 c_6+c_2 c_4 c_7}}\right )}{c_7 \sqrt {\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5-c_3 c_4 c_6+c_2 c_4 c_7}}+\frac {2 \sqrt [4]{c_3} \tanh ^{-1}\left (\frac {\sqrt [4]{c_3} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_3} c_4-\sqrt {c_1} c_5}}\right )}{\sqrt {\sqrt {c_3} c_4-\sqrt {c_1} c_5} c_7}+\frac {2 \sqrt [4]{c_3} \tanh ^{-1}\left (\frac {\sqrt [4]{c_3} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_3} c_4+\sqrt {c_1} c_5}}\right )}{\sqrt {\sqrt {c_3} c_4+\sqrt {c_1} c_5} c_7} \]
________________________________________________________________________________________
Rubi [A] time = 5.67, antiderivative size = 561, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 4, integrand size = 41, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.098, Rules used = {6741, 6728, 1166, 208} \begin {gather*} \frac {2 \sqrt [4]{c_3} \tanh ^{-1}\left (\frac {\sqrt [4]{c_3} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_3} c_4-\sqrt {c_1} c_5}}\right )}{\sqrt {\sqrt {c_3} c_4-\sqrt {c_1} c_5} c_7}-\frac {2 \sqrt {c_3 c_6-c_2 c_7} \tanh ^{-1}\left (\frac {\sqrt {c_3 c_6-c_2 c_7} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {-\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5+c_3 c_4 c_6-c_2 c_4 c_7}}\right )}{c_7 \sqrt {-\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5+c_3 c_4 c_6-c_2 c_4 c_7}}-\frac {2 \sqrt {c_3 c_6-c_2 c_7} \tanh ^{-1}\left (\frac {\sqrt {c_3 c_6-c_2 c_7} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5+c_3 c_4 c_6-c_2 c_4 c_7}}\right )}{c_7 \sqrt {\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5+c_3 c_4 c_6-c_2 c_4 c_7}}+\frac {2 \sqrt [4]{c_3} \tanh ^{-1}\left (\frac {\sqrt [4]{c_3} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_3} c_4+\sqrt {c_1} c_5}}\right )}{\sqrt {\sqrt {c_3} c_4+\sqrt {c_1} c_5} c_7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 208
Rule 1166
Rule 6728
Rule 6741
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5} (c_6+x c_7)} \, dx &=(2 (c_1 c_2-c_0 c_3)) \operatorname {Subst}\left (\int \frac {x}{\left (c_1-x^2 c_3\right ) \sqrt {c_4+x c_5} \left (c_1 c_6-c_0 c_7+x^2 (-c_3 c_6+c_2 c_7)\right )} \, dx,x,\sqrt {\frac {c_0+x c_1}{c_2+x c_3}}\right )\\ &=\frac {(4 (c_1 c_2-c_0 c_3)) \operatorname {Subst}\left (\int \frac {x^2-c_4}{\left (c_1-\frac {c_3 \left (x^2-c_4\right ){}^2}{c_5{}^2}\right ) \left (c_1 c_6-c_0 c_7-\frac {\left (x^2-c_4\right ){}^2 (c_3 c_6-c_2 c_7)}{c_5{}^2}\right )} \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_5{}^2}\\ &=\frac {(4 (c_1 c_2-c_0 c_3)) \operatorname {Subst}\left (\int \frac {x^2-c_4}{\left (c_1-\frac {x^4 c_3}{c_5{}^2}+\frac {2 x^2 c_3 c_4}{c_5{}^2}-\frac {c_3 c_4{}^2}{c_5{}^2}\right ) \left (c_1 c_6-\frac {c_3 c_4{}^2 c_6}{c_5{}^2}-c_0 c_7+\frac {c_2 c_4{}^2 c_7}{c_5{}^2}-\frac {x^4 (c_3 c_6-c_2 c_7)}{c_5{}^2}+\frac {2 x^2 c_4 (c_3 c_6-c_2 c_7)}{c_5{}^2}\right )} \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_5{}^2}\\ &=\frac {(4 (c_1 c_2-c_0 c_3)) \operatorname {Subst}\left (\int \left (\frac {c_3 \left (x^2-c_4\right ) c_5{}^2}{(c_1 c_2-c_0 c_3) \left (-x^4 c_3+2 x^2 c_3 c_4-c_3 c_4{}^2+c_1 c_5{}^2\right ) c_7}+\frac {\left (x^2-c_4\right ) c_5{}^2 (c_3 c_6-c_2 c_7)}{(c_1 c_2-c_0 c_3) c_7 \left (c_3 c_4{}^2 c_6-c_1 c_5{}^2 c_6-\left (c_2 c_4{}^2-c_0 c_5{}^2\right ) c_7+x^4 (c_3 c_6-c_2 c_7)-2 x^2 c_4 (c_3 c_6-c_2 c_7)\right )}\right ) \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_5{}^2}\\ &=\frac {(4 c_3) \operatorname {Subst}\left (\int \frac {x^2-c_4}{-x^4 c_3+2 x^2 c_3 c_4-c_3 c_4{}^2+c_1 c_5{}^2} \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_7}+\frac {(4 (c_3 c_6-c_2 c_7)) \operatorname {Subst}\left (\int \frac {x^2-c_4}{c_3 c_4{}^2 c_6-c_1 c_5{}^2 c_6-\left (c_2 c_4{}^2-c_0 c_5{}^2\right ) c_7+x^4 (c_3 c_6-c_2 c_7)-2 x^2 c_4 (c_3 c_6-c_2 c_7)} \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_7}\\ &=\frac {(2 c_3) \operatorname {Subst}\left (\int \frac {1}{-x^2 c_3+c_3 c_4-\sqrt {c_1} \sqrt {c_3} c_5} \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_7}+\frac {(2 c_3) \operatorname {Subst}\left (\int \frac {1}{-x^2 c_3+c_3 c_4+\sqrt {c_1} \sqrt {c_3} c_5} \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_7}+\frac {(2 (c_3 c_6-c_2 c_7)) \operatorname {Subst}\left (\int \frac {1}{-c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}+x^2 (c_3 c_6-c_2 c_7)-c_4 (c_3 c_6-c_2 c_7)} \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_7}+\frac {(2 (c_3 c_6-c_2 c_7)) \operatorname {Subst}\left (\int \frac {1}{c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}+x^2 (c_3 c_6-c_2 c_7)-c_4 (c_3 c_6-c_2 c_7)} \, dx,x,\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}\right )}{c_7}\\ &=\frac {2 \tanh ^{-1}\left (\frac {\sqrt [4]{c_3} \sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}}{\sqrt {\sqrt {c_3} c_4-\sqrt {c_1} c_5}}\right ) \sqrt [4]{c_3}}{\sqrt {\sqrt {c_3} c_4-\sqrt {c_1} c_5} c_7}+\frac {2 \tanh ^{-1}\left (\frac {\sqrt [4]{c_3} \sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}}{\sqrt {\sqrt {c_3} c_4+\sqrt {c_1} c_5}}\right ) \sqrt [4]{c_3}}{\sqrt {\sqrt {c_3} c_4+\sqrt {c_1} c_5} c_7}-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5} \sqrt {c_3 c_6-c_2 c_7}}{\sqrt {c_3 c_4 c_6-c_2 c_4 c_7-c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}}}\right ) \sqrt {c_3 c_6-c_2 c_7}}{c_7 \sqrt {c_3 c_4 c_6-c_2 c_4 c_7-c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}}}-\frac {2 \tanh ^{-1}\left (\frac {\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5} \sqrt {c_3 c_6-c_2 c_7}}{\sqrt {c_3 c_4 c_6-c_2 c_4 c_7+c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}}}\right ) \sqrt {c_3 c_6-c_2 c_7}}{c_7 \sqrt {c_3 c_4 c_6-c_2 c_4 c_7+c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 3.35, size = 535, normalized size = 0.95 \begin {gather*} \frac {2 \left (\frac {\sqrt [4]{c_3} \tanh ^{-1}\left (\frac {\sqrt [4]{c_3} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_3} c_4-\sqrt {c_1} c_5}}\right )}{\sqrt {\sqrt {c_3} c_4-\sqrt {c_1} c_5}}+\sqrt {c_3 c_6-c_2 c_7} \left (-\frac {\tanh ^{-1}\left (\frac {\sqrt {c_3 c_6-c_2 c_7} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {-\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5+c_3 c_4 c_6-c_2 c_4 c_7}}\right )}{\sqrt {-\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5+c_3 c_4 c_6-c_2 c_4 c_7}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {c_3 c_6-c_2 c_7} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5+c_3 c_4 c_6-c_2 c_4 c_7}}\right )}{\sqrt {\sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7} c_5+c_3 c_4 c_6-c_2 c_4 c_7}}\right )+\frac {\sqrt [4]{c_3} \tanh ^{-1}\left (\frac {\sqrt [4]{c_3} \sqrt {c_5 \sqrt {\frac {c_1 x+c_0}{c_3 x+c_2}}+c_4}}{\sqrt {\sqrt {c_3} c_4+\sqrt {c_1} c_5}}\right )}{\sqrt {\sqrt {c_3} c_4+\sqrt {c_1} c_5}}\right )}{c_7} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 3.15, size = 645, normalized size = 1.15 \begin {gather*} -\frac {2 \tan ^{-1}\left (\frac {\sqrt {-c_3 c_4+\sqrt {c_1} \sqrt {c_3} c_5} \sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}}{\sqrt {c_3} c_4-\sqrt {c_1} c_5}\right ) \sqrt {-\sqrt {c_3} \left (\sqrt {c_3} c_4-\sqrt {c_1} c_5\right )}}{\left (\sqrt {c_3} c_4-\sqrt {c_1} c_5\right ) c_7}-\frac {2 \tan ^{-1}\left (\frac {\sqrt {-c_3 c_4-\sqrt {c_1} \sqrt {c_3} c_5} \sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5}}{\sqrt {c_3} c_4+\sqrt {c_1} c_5}\right ) \sqrt {-\sqrt {c_3} \left (\sqrt {c_3} c_4+\sqrt {c_1} c_5\right )}}{\left (\sqrt {c_3} c_4+\sqrt {c_1} c_5\right ) c_7}+\frac {2 \tan ^{-1}\left (\frac {\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5} \sqrt {c_3 c_6-c_2 c_7}}{\sqrt {-c_3 c_4 c_6+c_2 c_4 c_7-c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}}}\right ) \sqrt {c_3 c_6-c_2 c_7}}{c_7 \sqrt {-c_3 c_4 c_6+c_2 c_4 c_7-c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}}}+\frac {2 \tan ^{-1}\left (\frac {\sqrt {c_4+\sqrt {\frac {c_0+x c_1}{c_2+x c_3}} c_5} \sqrt {c_3 c_6-c_2 c_7}}{\sqrt {-c_3 c_4 c_6+c_2 c_4 c_7+c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}}}\right ) \sqrt {c_3 c_6-c_2 c_7}}{c_7 \sqrt {-c_3 c_4 c_6+c_2 c_4 c_7+c_5 \sqrt {c_1 c_6-c_0 c_7} \sqrt {c_3 c_6-c_2 c_7}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [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]
________________________________________________________________________________________
maple [F] time = 0.07, size = 0, normalized size = 0.00 \[\int \frac {1}{\sqrt {\textit {\_C4} +\sqrt {\frac {\textit {\_C1} x +\textit {\_C0}}{\textit {\_C3} x +\textit {\_C2}}}\, \textit {\_C5}}\, \left (\textit {\_C7} x +\textit {\_C6} \right )}\, dx\]
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*} \int \frac {1}{{\left (\_{C_{7}} x + \_{C_{6}}\right )} \sqrt {\_{C_{5}} \sqrt {\frac {\_{C_{1}} x + \_{C_{0}}}{\_{C_{3}} x + \_{C_{2}}}} + \_{C_{4}}}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{\sqrt {_{\mathrm {C4}}+_{\mathrm {C5}}\,\sqrt {\frac {_{\mathrm {C0}}+_{\mathrm {C1}}\,x}{_{\mathrm {C2}}+_{\mathrm {C3}}\,x}}}\,\left (_{\mathrm {C6}}+_{\mathrm {C7}}\,x\right )} \,d x \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 {1}{\sqrt {_C4 + _C5 \sqrt {\frac {_C0}{_C2 + _C3 x} + \frac {_C1 x}{_C2 + _C3 x}}} \left (_C6 + _C7 x\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________