Integrand size = 42, antiderivative size = 197 \[ \int \frac {\left (-d+c x^2\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{d+c x^2} \, dx=-\frac {b^2}{a \sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\frac {\left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}{3 a}-a d \text {RootSum}\left [b^4 c-2 b^2 c \text {$\#$1}^4+4 a^2 d \text {$\#$1}^4+c \text {$\#$1}^8\&,\frac {-b^2 \log \left (\sqrt {a x+\sqrt {b^2+a^2 x^2}}-\text {$\#$1}\right )-\log \left (\sqrt {a x+\sqrt {b^2+a^2 x^2}}-\text {$\#$1}\right ) \text {$\#$1}^4}{b^2 c \text {$\#$1}-2 a^2 d \text {$\#$1}-c \text {$\#$1}^5}\&\right ] \]
Time = 0.30 (sec) , antiderivative size = 194, normalized size of antiderivative = 0.98 \[ \int \frac {\left (-d+c x^2\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{d+c x^2} \, dx=\frac {-\frac {3 b^2}{\sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}-3 a^2 d \text {RootSum}\left [b^4 c-2 b^2 c \text {$\#$1}^4+4 a^2 d \text {$\#$1}^4+c \text {$\#$1}^8\&,\frac {b^2 \log \left (\sqrt {a x+\sqrt {b^2+a^2 x^2}}-\text {$\#$1}\right )+\log \left (\sqrt {a x+\sqrt {b^2+a^2 x^2}}-\text {$\#$1}\right ) \text {$\#$1}^4}{-b^2 c \text {$\#$1}+2 a^2 d \text {$\#$1}+c \text {$\#$1}^5}\&\right ]}{3 a} \]
((-3*b^2)/Sqrt[a*x + Sqrt[b^2 + a^2*x^2]] + (a*x + Sqrt[b^2 + a^2*x^2])^(3 /2) - 3*a^2*d*RootSum[b^4*c - 2*b^2*c*#1^4 + 4*a^2*d*#1^4 + c*#1^8 & , (b^ 2*Log[Sqrt[a*x + Sqrt[b^2 + a^2*x^2]] - #1] + Log[Sqrt[a*x + Sqrt[b^2 + a^ 2*x^2]] - #1]*#1^4)/(-(b^2*c*#1) + 2*a^2*d*#1 + c*#1^5) & ])/(3*a)
Leaf count is larger than twice the leaf count of optimal. \(1288\) vs. \(2(197)=394\).
Time = 4.04 (sec) , antiderivative size = 1288, normalized size of antiderivative = 6.54, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.048, 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 {\sqrt {\sqrt {a^2 x^2+b^2}+a x} \left (c x^2-d\right )}{c x^2+d} \, dx\) |
\(\Big \downarrow \) 7276 |
\(\displaystyle \int \left (\sqrt {\sqrt {a^2 x^2+b^2}+a x}-\frac {2 d \sqrt {\sqrt {a^2 x^2+b^2}+a x}}{c x^2+d}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {b^2}{a \sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\frac {\left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}{3 a}+\frac {\sqrt {2} \sqrt {\sqrt {-b^2} (-c)^{3/2}+a c \sqrt {d}} \sqrt {d} \arctan \left (\frac {\sqrt {-c} \left (\sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}}-\sqrt {2} \sqrt [4]{-c} \sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )}{\sqrt {\sqrt {-b^2} (-c)^{3/2}+a c \sqrt {d}}}\right )}{(-c)^{5/4}}-\frac {\sqrt {2} \sqrt {\sqrt {-b^2} (-c)^{3/2}+a c \sqrt {d}} \sqrt {d} \arctan \left (\frac {\sqrt {-c} \left (\sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}}+\sqrt {2} \sqrt [4]{-c} \sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )}{\sqrt {\sqrt {-b^2} (-c)^{3/2}+a c \sqrt {d}}}\right )}{(-c)^{5/4}}-\frac {\sqrt {2} \sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}} \sqrt {d} \arctan \left (\frac {\sqrt {\sqrt {-b^2} (-c)^{3/2}+a c \sqrt {d}}-\sqrt {2} (-c)^{3/4} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{\sqrt {-c} \sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}}}\right )}{(-c)^{3/4}}+\frac {\sqrt {2} \sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}} \sqrt {d} \arctan \left (\frac {\sqrt {2} \sqrt {a x+\sqrt {b^2+a^2 x^2}} (-c)^{3/4}+\sqrt {\sqrt {-b^2} (-c)^{3/2}+a c \sqrt {d}}}{\sqrt {-c} \sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}}}\right )}{(-c)^{3/4}}+\frac {\sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}} \sqrt {d} \log \left (\sqrt [4]{-c} \left (a x+\sqrt {b^2+a^2 x^2}\right )-\sqrt {2} \sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}} \sqrt {a x+\sqrt {b^2+a^2 x^2}}+\sqrt {-b^2} \sqrt [4]{-c}\right )}{\sqrt {2} (-c)^{3/4}}-\frac {\sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}} \sqrt {d} \log \left (\sqrt [4]{-c} \left (a x+\sqrt {b^2+a^2 x^2}\right )+\sqrt {2} \sqrt {\sqrt {d} a+\sqrt {-b^2} \sqrt {-c}} \sqrt {a x+\sqrt {b^2+a^2 x^2}}+\sqrt {-b^2} \sqrt [4]{-c}\right )}{\sqrt {2} (-c)^{3/4}}-\frac {\sqrt {\sqrt {-b^2} (-c)^{3/2}+a c \sqrt {d}} \sqrt {d} \log \left ((-c)^{3/4} \left (a x+\sqrt {b^2+a^2 x^2}\right )-\sqrt {2} \sqrt {\sqrt {-b^2} (-c)^{3/2}+a c \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2]*Sqrt[-c] + a*S qrt[d]])])/(-c)^(3/4) + (Sqrt[2]*Sqrt[Sqrt[-b^2]*Sqrt[-c] + a*Sqrt[d]]*Sqr t[d]*ArcTan[(Sqrt[Sqrt[-b^2]*(-c)^(3/2) + a*c*Sqrt[d]] + Sqrt[2]*(-c)^(3/4 )*Sqrt[a*x + Sqrt[b^2 + a^2*x^2]])/(Sqrt[-c]*Sqrt[Sqrt[-b^2]*Sqrt[-c] + a* Sqrt[d]])])/(-c)^(3/4) + (Sqrt[Sqrt[-b^2]*Sqrt[-c] + a*Sqrt[d]]*Sqrt[d]*Lo g[Sqrt[-b^2]*(-c)^(1/4) - Sqrt[2]*Sqrt[Sqrt[-b^2]*Sqrt[-c] + a*Sqrt[d]]*Sq rt[a*x + Sqrt[b^2 + a^2*x^2]] + (-c)^(1/4)*(a*x + Sqrt[b^2 + a^2*x^2])])/( Sqrt[2]*(-c)^(3/4)) - (Sqrt[Sqrt[-b^2]*Sqrt[-c] + a*Sqrt[d]]*Sqrt[d]*Log[S qrt[-b^2]*(-c)^(1/4) + Sqrt[2]*Sqrt[Sqrt[-b^2]*Sqrt[-c] + a*Sqrt[d]]*Sqrt[ a*x + Sqrt[b^2 + a^2*x^2]] + (-c)^(1/4)*(a*x + Sqrt[b^2 + a^2*x^2])])/(Sqr t[2]*(-c)^(3/4)) - (Sqrt[Sqrt[-b^2]*(-c)^(3/2) + a*c*Sqrt[d]]*Sqrt[d]*L...
3.25.35.3.1 Defintions of rubi rules used
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 = 38, normalized size of antiderivative = 0.19
\[\int \frac {\left (c \,x^{2}-d \right ) \sqrt {a x +\sqrt {a^{2} x^{2}+b^{2}}}}{c \,x^{2}+d}d x\]
Result contains higher order function than in optimal. Order 3 vs. order 1.
Time = 0.32 (sec) , antiderivative size = 1783, normalized size of antiderivative = 9.05 \[ \int \frac {\left (-d+c x^2\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{d+c x^2} \, dx=\text {Too large to display} \]
1/3*(3*a*sqrt(-sqrt((b^2*c*d^2 - 2*a^2*d^3 + 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3))*log(16*sqrt(a*x + sqrt(a^2*x^2 + b^2))*a*b^2*d^4 + 16 *(a^2*c*d^3 + c^4*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))*sqrt(-sqrt((b^2*c* d^2 - 2*a^2*d^3 + 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3))*sqrt(( b^2*c*d^2 - 2*a^2*d^3 + 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3)) - 3*a*sqrt(-sqrt((b^2*c*d^2 - 2*a^2*d^3 + 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4 *d^6)/c^6))/c^3))*log(16*sqrt(a*x + sqrt(a^2*x^2 + b^2))*a*b^2*d^4 - 16*(a ^2*c*d^3 + c^4*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))*sqrt(-sqrt((b^2*c*d^2 - 2*a^2*d^3 + 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3))*sqrt((b^2 *c*d^2 - 2*a^2*d^3 + 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3)) + 3 *a*sqrt(-sqrt((b^2*c*d^2 - 2*a^2*d^3 - 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^ 6)/c^6))/c^3))*log(16*sqrt(a*x + sqrt(a^2*x^2 + b^2))*a*b^2*d^4 + 16*(a^2* c*d^3 - c^4*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))*sqrt(-sqrt((b^2*c*d^2 - 2*a^2*d^3 - 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3))*sqrt((b^2*c* d^2 - 2*a^2*d^3 - 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3)) - 3*a* sqrt(-sqrt((b^2*c*d^2 - 2*a^2*d^3 - 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/ c^6))/c^3))*log(16*sqrt(a*x + sqrt(a^2*x^2 + b^2))*a*b^2*d^4 - 16*(a^2*c*d ^3 - c^4*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))*sqrt(-sqrt((b^2*c*d^2 - 2*a ^2*d^3 - 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3))*sqrt((b^2*c*d^2 - 2*a^2*d^3 - 2*c^3*sqrt(-(a^2*b^2*c*d^5 - a^4*d^6)/c^6))/c^3)) - 3*a*...
Not integrable
Time = 2.28 (sec) , antiderivative size = 34, normalized size of antiderivative = 0.17 \[ \int \frac {\left (-d+c x^2\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{d+c x^2} \, dx=\int \frac {\sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} \left (c x^{2} - d\right )}{c x^{2} + d}\, dx \]
Not integrable
Time = 0.31 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.20 \[ \int \frac {\left (-d+c x^2\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{d+c x^2} \, dx=\int { \frac {{\left (c x^{2} - d\right )} \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}}{c x^{2} + d} \,d x } \]
Not integrable
Time = 0.52 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.20 \[ \int \frac {\left (-d+c x^2\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{d+c x^2} \, dx=\int { \frac {{\left (c x^{2} - d\right )} \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}}{c x^{2} + d} \,d x } \]
Not integrable
Time = 7.07 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.20 \[ \int \frac {\left (-d+c x^2\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{d+c x^2} \, dx=\int -\frac {\sqrt {a\,x+\sqrt {a^2\,x^2+b^2}}\,\left (d-c\,x^2\right )}{c\,x^2+d} \,d x \]