Integrand size = 38, antiderivative size = 167 \[ \int \frac {1+a x^2}{\left (-1+a x^2\right ) \sqrt {a x+\sqrt {b+a^2 x^2}}} \, dx=-\frac {b}{3 a \left (a x+\sqrt {b+a^2 x^2}\right )^{3/2}}+\frac {\sqrt {a x+\sqrt {b+a^2 x^2}}}{a}+\text {RootSum}\left [b^2-4 a \text {$\#$1}^4-2 b \text {$\#$1}^4+\text {$\#$1}^8\&,\frac {-b \log \left (\sqrt {a x+\sqrt {b+a^2 x^2}}-\text {$\#$1}\right )-\log \left (\sqrt {a x+\sqrt {b+a^2 x^2}}-\text {$\#$1}\right ) \text {$\#$1}^4}{2 a \text {$\#$1}^3+b \text {$\#$1}^3-\text {$\#$1}^7}\&\right ] \] Output:
Unintegrable
Time = 0.21 (sec) , antiderivative size = 161, normalized size of antiderivative = 0.96 \[ \int \frac {1+a x^2}{\left (-1+a x^2\right ) \sqrt {a x+\sqrt {b+a^2 x^2}}} \, dx=\frac {2 \left (b+3 a x \left (a x+\sqrt {b+a^2 x^2}\right )\right )}{3 a \left (a x+\sqrt {b+a^2 x^2}\right )^{3/2}}+\text {RootSum}\left [b^2-4 a \text {$\#$1}^4-2 b \text {$\#$1}^4+\text {$\#$1}^8\&,\frac {b \log \left (\sqrt {a x+\sqrt {b+a^2 x^2}}-\text {$\#$1}\right )+\log \left (\sqrt {a x+\sqrt {b+a^2 x^2}}-\text {$\#$1}\right ) \text {$\#$1}^4}{-2 a \text {$\#$1}^3-b \text {$\#$1}^3+\text {$\#$1}^7}\&\right ] \] Input:
Integrate[(1 + a*x^2)/((-1 + a*x^2)*Sqrt[a*x + Sqrt[b + a^2*x^2]]),x]
Output:
(2*(b + 3*a*x*(a*x + Sqrt[b + a^2*x^2])))/(3*a*(a*x + Sqrt[b + a^2*x^2])^( 3/2)) + RootSum[b^2 - 4*a*#1^4 - 2*b*#1^4 + #1^8 & , (b*Log[Sqrt[a*x + Sqr t[b + a^2*x^2]] - #1] + Log[Sqrt[a*x + Sqrt[b + a^2*x^2]] - #1]*#1^4)/(-2* a*#1^3 - b*#1^3 + #1^7) & ]
Time = 1.51 (sec) , antiderivative size = 319, normalized size of antiderivative = 1.91, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.053, Rules used = {7276, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {a x^2+1}{\left (a x^2-1\right ) \sqrt {\sqrt {a^2 x^2+b}+a x}} \, dx\) |
\(\Big \downarrow \) 7276 |
\(\displaystyle \int \left (\frac {2}{\left (a x^2-1\right ) \sqrt {\sqrt {a^2 x^2+b}+a x}}+\frac {1}{\sqrt {\sqrt {a^2 x^2+b}+a x}}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {2 \arctan \left (\frac {\sqrt {\sqrt {a^2 x^2+b}+a x}}{\sqrt {\sqrt {a}-\sqrt {a+b}}}\right )}{\sqrt {a} \sqrt {\sqrt {a}-\sqrt {a+b}}}-\frac {2 \arctan \left (\frac {\sqrt {\sqrt {a^2 x^2+b}+a x}}{\sqrt {\sqrt {a+b}+\sqrt {a}}}\right )}{\sqrt {a} \sqrt {\sqrt {a+b}+\sqrt {a}}}-\frac {2 \text {arctanh}\left (\frac {\sqrt {\sqrt {a^2 x^2+b}+a x}}{\sqrt {\sqrt {a}-\sqrt {a+b}}}\right )}{\sqrt {a} \sqrt {\sqrt {a}-\sqrt {a+b}}}-\frac {2 \text {arctanh}\left (\frac {\sqrt {\sqrt {a^2 x^2+b}+a x}}{\sqrt {\sqrt {a+b}+\sqrt {a}}}\right )}{\sqrt {a} \sqrt {\sqrt {a+b}+\sqrt {a}}}-\frac {b}{3 a \left (\sqrt {a^2 x^2+b}+a x\right )^{3/2}}+\frac {\sqrt {\sqrt {a^2 x^2+b}+a x}}{a}\) |
Input:
Int[(1 + a*x^2)/((-1 + a*x^2)*Sqrt[a*x + Sqrt[b + a^2*x^2]]),x]
Output:
-1/3*b/(a*(a*x + Sqrt[b + a^2*x^2])^(3/2)) + Sqrt[a*x + Sqrt[b + a^2*x^2]] /a - (2*ArcTan[Sqrt[a*x + Sqrt[b + a^2*x^2]]/Sqrt[Sqrt[a] - Sqrt[a + b]]]) /(Sqrt[a]*Sqrt[Sqrt[a] - Sqrt[a + b]]) - (2*ArcTan[Sqrt[a*x + Sqrt[b + a^2 *x^2]]/Sqrt[Sqrt[a] + Sqrt[a + b]]])/(Sqrt[a]*Sqrt[Sqrt[a] + Sqrt[a + b]]) - (2*ArcTanh[Sqrt[a*x + Sqrt[b + a^2*x^2]]/Sqrt[Sqrt[a] - Sqrt[a + b]]])/ (Sqrt[a]*Sqrt[Sqrt[a] - Sqrt[a + b]]) - (2*ArcTanh[Sqrt[a*x + Sqrt[b + a^2 *x^2]]/Sqrt[Sqrt[a] + Sqrt[a + b]]])/(Sqrt[a]*Sqrt[Sqrt[a] + Sqrt[a + b]])
Int[(u_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> With[{v = RationalFunctionE xpand[u/(a + b*x^n), x]}, Int[v, x] /; SumQ[v]] /; FreeQ[{a, b}, x] && IGtQ [n, 0]
Not integrable
Time = 0.03 (sec) , antiderivative size = 34, normalized size of antiderivative = 0.20
\[\int \frac {a \,x^{2}+1}{\left (a \,x^{2}-1\right ) \sqrt {a x +\sqrt {a^{2} x^{2}+b}}}d x\]
Input:
int((a*x^2+1)/(a*x^2-1)/(a*x+(a^2*x^2+b)^(1/2))^(1/2),x)
Output:
int((a*x^2+1)/(a*x^2-1)/(a*x+(a^2*x^2+b)^(1/2))^(1/2),x)
Result contains higher order function than in optimal. Order 3 vs. order 1.
Time = 0.12 (sec) , antiderivative size = 1046, normalized size of antiderivative = 6.26 \[ \int \frac {1+a x^2}{\left (-1+a x^2\right ) \sqrt {a x+\sqrt {b+a^2 x^2}}} \, dx =\text {Too large to display} \] Input:
integrate((a*x^2+1)/(a*x^2-1)/(a*x+(a^2*x^2+b)^(1/2))^(1/2),x, algorithm=" fricas")
Output:
1/3*(3*a*b*sqrt(-sqrt((2*a^2*b^2*sqrt((a + b)/(a^3*b^4)) + 2*a + b)/(a^2*b ^2)))*log(8*(a^2*b^2*sqrt((a + b)/(a^3*b^4)) - a)*sqrt(-sqrt((2*a^2*b^2*sq rt((a + b)/(a^3*b^4)) + 2*a + b)/(a^2*b^2))) + 8*sqrt(a*x + sqrt(a^2*x^2 + b))) - 3*a*b*sqrt(-sqrt((2*a^2*b^2*sqrt((a + b)/(a^3*b^4)) + 2*a + b)/(a^ 2*b^2)))*log(-8*(a^2*b^2*sqrt((a + b)/(a^3*b^4)) - a)*sqrt(-sqrt((2*a^2*b^ 2*sqrt((a + b)/(a^3*b^4)) + 2*a + b)/(a^2*b^2))) + 8*sqrt(a*x + sqrt(a^2*x ^2 + b))) - 3*a*b*sqrt(-sqrt(-(2*a^2*b^2*sqrt((a + b)/(a^3*b^4)) - 2*a - b )/(a^2*b^2)))*log(8*(a^2*b^2*sqrt((a + b)/(a^3*b^4)) + a)*sqrt(-sqrt(-(2*a ^2*b^2*sqrt((a + b)/(a^3*b^4)) - 2*a - b)/(a^2*b^2))) + 8*sqrt(a*x + sqrt( a^2*x^2 + b))) + 3*a*b*sqrt(-sqrt(-(2*a^2*b^2*sqrt((a + b)/(a^3*b^4)) - 2* a - b)/(a^2*b^2)))*log(-8*(a^2*b^2*sqrt((a + b)/(a^3*b^4)) + a)*sqrt(-sqrt (-(2*a^2*b^2*sqrt((a + b)/(a^3*b^4)) - 2*a - b)/(a^2*b^2))) + 8*sqrt(a*x + sqrt(a^2*x^2 + b))) + 3*a*b*((2*a^2*b^2*sqrt((a + b)/(a^3*b^4)) + 2*a + b )/(a^2*b^2))^(1/4)*log(8*(a^2*b^2*sqrt((a + b)/(a^3*b^4)) - a)*((2*a^2*b^2 *sqrt((a + b)/(a^3*b^4)) + 2*a + b)/(a^2*b^2))^(1/4) + 8*sqrt(a*x + sqrt(a ^2*x^2 + b))) - 3*a*b*((2*a^2*b^2*sqrt((a + b)/(a^3*b^4)) + 2*a + b)/(a^2* b^2))^(1/4)*log(-8*(a^2*b^2*sqrt((a + b)/(a^3*b^4)) - a)*((2*a^2*b^2*sqrt( (a + b)/(a^3*b^4)) + 2*a + b)/(a^2*b^2))^(1/4) + 8*sqrt(a*x + sqrt(a^2*x^2 + b))) - 3*a*b*(-(2*a^2*b^2*sqrt((a + b)/(a^3*b^4)) - 2*a - b)/(a^2*b^2)) ^(1/4)*log(8*(a^2*b^2*sqrt((a + b)/(a^3*b^4)) + a)*(-(2*a^2*b^2*sqrt((a...
Not integrable
Time = 2.46 (sec) , antiderivative size = 32, normalized size of antiderivative = 0.19 \[ \int \frac {1+a x^2}{\left (-1+a x^2\right ) \sqrt {a x+\sqrt {b+a^2 x^2}}} \, dx=\int \frac {a x^{2} + 1}{\sqrt {a x + \sqrt {a^{2} x^{2} + b}} \left (a x^{2} - 1\right )}\, dx \] Input:
integrate((a*x**2+1)/(a*x**2-1)/(a*x+(a**2*x**2+b)**(1/2))**(1/2),x)
Output:
Integral((a*x**2 + 1)/(sqrt(a*x + sqrt(a**2*x**2 + b))*(a*x**2 - 1)), x)
Not integrable
Time = 0.15 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.22 \[ \int \frac {1+a x^2}{\left (-1+a x^2\right ) \sqrt {a x+\sqrt {b+a^2 x^2}}} \, dx=\int { \frac {a x^{2} + 1}{{\left (a x^{2} - 1\right )} \sqrt {a x + \sqrt {a^{2} x^{2} + b}}} \,d x } \] Input:
integrate((a*x^2+1)/(a*x^2-1)/(a*x+(a^2*x^2+b)^(1/2))^(1/2),x, algorithm=" maxima")
Output:
integrate((a*x^2 + 1)/((a*x^2 - 1)*sqrt(a*x + sqrt(a^2*x^2 + b))), x)
Not integrable
Time = 2.64 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.22 \[ \int \frac {1+a x^2}{\left (-1+a x^2\right ) \sqrt {a x+\sqrt {b+a^2 x^2}}} \, dx=\int { \frac {a x^{2} + 1}{{\left (a x^{2} - 1\right )} \sqrt {a x + \sqrt {a^{2} x^{2} + b}}} \,d x } \] Input:
integrate((a*x^2+1)/(a*x^2-1)/(a*x+(a^2*x^2+b)^(1/2))^(1/2),x, algorithm=" giac")
Output:
integrate((a*x^2 + 1)/((a*x^2 - 1)*sqrt(a*x + sqrt(a^2*x^2 + b))), x)
Not integrable
Time = 8.77 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.22 \[ \int \frac {1+a x^2}{\left (-1+a x^2\right ) \sqrt {a x+\sqrt {b+a^2 x^2}}} \, dx=\int \frac {a\,x^2+1}{\sqrt {\sqrt {a^2\,x^2+b}+a\,x}\,\left (a\,x^2-1\right )} \,d x \] Input:
int((a*x^2 + 1)/(((b + a^2*x^2)^(1/2) + a*x)^(1/2)*(a*x^2 - 1)),x)
Output:
int((a*x^2 + 1)/(((b + a^2*x^2)^(1/2) + a*x)^(1/2)*(a*x^2 - 1)), x)
Not integrable
Time = 200.03 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.22 \[ \int \frac {1+a x^2}{\left (-1+a x^2\right ) \sqrt {a x+\sqrt {b+a^2 x^2}}} \, dx=\int \frac {a \,x^{2}+1}{\left (a \,x^{2}-1\right ) \sqrt {a x +\sqrt {a^{2} x^{2}+b}}}d x \] Input:
int((a*x^2+1)/(a*x^2-1)/(a*x+(a^2*x^2+b)^(1/2))^(1/2),x)
Output:
int((a*x^2+1)/(a*x^2-1)/(a*x+(a^2*x^2+b)^(1/2))^(1/2),x)