Optimal. Leaf size=193 \[ 4 a \text {RootSum}\left [b^2-2 b c^2+c^4+a^2 c \text {$\#$1}+4 b c \text {$\#$1}^2-4 c^3 \text {$\#$1}^2-a^2 \text {$\#$1}^3-2 b \text {$\#$1}^4+6 c^2 \text {$\#$1}^4-4 c \text {$\#$1}^6+\text {$\#$1}^8\& ,\frac {c \log \left (\sqrt {c+\sqrt {b+a x}}-\text {$\#$1}\right ) \text {$\#$1}-\log \left (\sqrt {c+\sqrt {b+a x}}-\text {$\#$1}\right ) \text {$\#$1}^3}{-a^2 c-8 b c \text {$\#$1}+8 c^3 \text {$\#$1}+3 a^2 \text {$\#$1}^2+8 b \text {$\#$1}^3-24 c^2 \text {$\#$1}^3+24 c \text {$\#$1}^5-8 \text {$\#$1}^7}\& \right ] \]
[Out]
________________________________________________________________________________________
Rubi [F]
time = 0.56, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps
used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {}
\begin {gather*} \int \frac {1}{x^2-\sqrt {b+a x} \sqrt {c+\sqrt {b+a x}}} \, dx \end {gather*}
Verification is not applicable to the result.
[In]
[Out]
Rubi steps
\begin {align*} \int \frac {1}{x^2-\sqrt {b+a x} \sqrt {c+\sqrt {b+a x}}} \, dx &=(2 a) \text {Subst}\left (\int \frac {x}{b^2-2 b x^2+x^4-a^2 x \sqrt {c+x}} \, dx,x,\sqrt {b+a x}\right )\\ &=(4 a) \text {Subst}\left (\int \frac {x \left (-c+x^2\right )}{b^2-2 b \left (c-x^2\right )^2+\left (c-x^2\right )^4-a^2 x \left (-c+x^2\right )} \, dx,x,\sqrt {c+\sqrt {b+a x}}\right )\\ &=(4 a) \text {Subst}\left (\int \left (\frac {c x}{-b^2 \left (1+\frac {-2 b c^2+c^4}{b^2}\right )-a^2 c x-4 b c \left (1-\frac {c^2}{b}\right ) x^2+a^2 x^3+2 b \left (1-\frac {3 c^2}{b}\right ) x^4+4 c x^6-x^8}+\frac {x^3}{b^2 \left (1+\frac {-2 b c^2+c^4}{b^2}\right )+a^2 c x+4 b c \left (1-\frac {c^2}{b}\right ) x^2-a^2 x^3-2 b \left (1-\frac {3 c^2}{b}\right ) x^4-4 c x^6+x^8}\right ) \, dx,x,\sqrt {c+\sqrt {b+a x}}\right )\\ &=(4 a) \text {Subst}\left (\int \frac {x^3}{b^2 \left (1+\frac {-2 b c^2+c^4}{b^2}\right )+a^2 c x+4 b c \left (1-\frac {c^2}{b}\right ) x^2-a^2 x^3-2 b \left (1-\frac {3 c^2}{b}\right ) x^4-4 c x^6+x^8} \, dx,x,\sqrt {c+\sqrt {b+a x}}\right )+(4 a c) \text {Subst}\left (\int \frac {x}{-b^2 \left (1+\frac {-2 b c^2+c^4}{b^2}\right )-a^2 c x-4 b c \left (1-\frac {c^2}{b}\right ) x^2+a^2 x^3+2 b \left (1-\frac {3 c^2}{b}\right ) x^4+4 c x^6-x^8} \, dx,x,\sqrt {c+\sqrt {b+a x}}\right )\\ &=(4 a) \text {Subst}\left (\int \frac {x^3}{b^2-2 b \left (c-x^2\right )^2+\left (c-x^2\right ) \left (c^3+a^2 x-3 c^2 x^2+3 c x^4-x^6\right )} \, dx,x,\sqrt {c+\sqrt {b+a x}}\right )+(4 a c) \text {Subst}\left (\int \frac {x}{-b^2+2 b \left (c-x^2\right )^2-\left (c-x^2\right ) \left (c^3+a^2 x-3 c^2 x^2+3 c x^4-x^6\right )} \, dx,x,\sqrt {c+\sqrt {b+a x}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.00, size = 193, normalized size = 1.00 \begin {gather*} 4 a \text {RootSum}\left [b^2-2 b c^2+c^4+a^2 c \text {$\#$1}+4 b c \text {$\#$1}^2-4 c^3 \text {$\#$1}^2-a^2 \text {$\#$1}^3-2 b \text {$\#$1}^4+6 c^2 \text {$\#$1}^4-4 c \text {$\#$1}^6+\text {$\#$1}^8\&,\frac {c \log \left (\sqrt {c+\sqrt {b+a x}}-\text {$\#$1}\right ) \text {$\#$1}-\log \left (\sqrt {c+\sqrt {b+a x}}-\text {$\#$1}\right ) \text {$\#$1}^3}{-a^2 c-8 b c \text {$\#$1}+8 c^3 \text {$\#$1}+3 a^2 \text {$\#$1}^2+8 b \text {$\#$1}^3-24 c^2 \text {$\#$1}^3+24 c \text {$\#$1}^5-8 \text {$\#$1}^7}\&\right ] \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains higher order function than in optimal. Order 9 vs. order
1.
time = 1.21, size = 7120, normalized size = 36.89
method | result | size |
derivativedivides | \(-4 a \left (\munderset {\textit {\_R} =\RootOf \left (\textit {\_Z}^{8}-4 c \,\textit {\_Z}^{6}+\left (6 c^{2}-2 b \right ) \textit {\_Z}^{4}-a^{2} \textit {\_Z}^{3}+\left (-4 c^{3}+4 b c \right ) \textit {\_Z}^{2}+a^{2} c \textit {\_Z} +c^{4}-2 b \,c^{2}+b^{2}\right )}{\sum }\frac {\left (-\textit {\_R}^{3}+\textit {\_R} c \right ) \ln \left (\sqrt {c +\sqrt {a x +b}}-\textit {\_R} \right )}{8 \textit {\_R}^{7}-24 \textit {\_R}^{5} c +24 \textit {\_R}^{3} c^{2}-8 \textit {\_R}^{3} b -3 \textit {\_R}^{2} a^{2}-8 \textit {\_R} \,c^{3}+8 \textit {\_R} b c +c \,a^{2}}\right )\) | \(149\) |
default | \(\text {Expression too large to display}\) | \(7120\) |
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(-1)] Timed out
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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{x^{2} - \sqrt {c + \sqrt {a x + b}} \sqrt {a x + b}}\, 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 {1}{\sqrt {c+\sqrt {b+a\,x}}\,\sqrt {b+a\,x}-x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________