Integrand size = 47, antiderivative size = 168 \[ \int \frac {a x+\sqrt {b^2+a^2 x^2}}{b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=-\frac {b x}{2}+\frac {\left (3 b^2+a x\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{3 a}+\sqrt {b^2+a^2 x^2} \left (-\frac {b}{2 a}+\frac {\sqrt {a x+\sqrt {b^2+a^2 x^2}}}{3 a}\right )+\frac {b \log \left (a x+\sqrt {b^2+a^2 x^2}\right )}{2 a}+\frac {\left (-b-b^3\right ) \log \left (b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )}{a} \]
-1/2*b*x+1/3*(a*x+3*b^2)*(a*x+(a^2*x^2+b^2)^(1/2))^(1/2)/a+(a^2*x^2+b^2)^( 1/2)*(-1/2*b/a+1/3*(a*x+(a^2*x^2+b^2)^(1/2))^(1/2)/a)+1/2*b*ln(a*x+(a^2*x^ 2+b^2)^(1/2))/a+(-b^3-b)*ln(b+(a*x+(a^2*x^2+b^2)^(1/2))^(1/2))/a
Time = 0.26 (sec) , antiderivative size = 148, normalized size of antiderivative = 0.88 \[ \int \frac {a x+\sqrt {b^2+a^2 x^2}}{b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\frac {-3 a b x+2 \left (3 b^2+a x\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}+\sqrt {b^2+a^2 x^2} \left (-3 b+2 \sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )+3 b \log \left (a x+\sqrt {b^2+a^2 x^2}\right )-6 \left (b+b^3\right ) \log \left (b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )}{6 a} \]
(-3*a*b*x + 2*(3*b^2 + a*x)*Sqrt[a*x + Sqrt[b^2 + a^2*x^2]] + Sqrt[b^2 + a ^2*x^2]*(-3*b + 2*Sqrt[a*x + Sqrt[b^2 + a^2*x^2]]) + 3*b*Log[a*x + Sqrt[b^ 2 + a^2*x^2]] - 6*(b + b^3)*Log[b + Sqrt[a*x + Sqrt[b^2 + a^2*x^2]]])/(6*a )
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 {a^2 x^2+b^2}+a x}{\sqrt {\sqrt {a^2 x^2+b^2}+a x}+b} \, dx\) |
\(\Big \downarrow \) 7293 |
\(\displaystyle \int \left (\frac {a x}{\sqrt {\sqrt {a^2 x^2+b^2}+a x}+b}+\frac {\sqrt {a^2 x^2+b^2}}{\sqrt {\sqrt {a^2 x^2+b^2}+a x}+b}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {b^2}{4 a \sqrt {a x+\sqrt {b^2+a^2 x^2}}}-\frac {x b}{4}-\frac {\text {arctanh}\left (\frac {a x}{\sqrt {b^2+a^2 x^2}}\right ) b}{4 a}+\frac {\left (1+\frac {1}{b^2}\right ) \left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}{12 a}+\frac {\left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}{12 a}+\left (1-\frac {1}{b^2}\right ) \int \frac {\sqrt {b^2+a^2 x^2} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{-b^2+2 a x+1}dx-\frac {b^2+1}{4 a \sqrt {a x+\sqrt {b^2+a^2 x^2}}}+\frac {1}{4 a \sqrt {a x+\sqrt {b^2+a^2 x^2}}}-\frac {\left (b^2+1\right ) x}{4 b}+\frac {x}{4 b}-\frac {\left (1-b^2\right )^2 \text {arctanh}\left (\frac {a x}{\sqrt {b^2+a^2 x^2}}\right )}{8 a b}+\frac {\left (2 b^2+1\right ) \text {arctanh}\left (\frac {a x}{\sqrt {b^2+a^2 x^2}}\right )}{8 a b}+\frac {\left (1-b^4\right ) \text {arctanh}\left (\frac {a x}{\sqrt {b^2+a^2 x^2}}\right )}{8 a b}-\frac {\text {arctanh}\left (\frac {a x}{\sqrt {b^2+a^2 x^2}}\right )}{8 a b}+\frac {\left (b^2+1\right )^2 \text {arctanh}\left (\frac {2 b^2-a \left (1-b^2\right ) x}{\left (b^2+1\right ) \sqrt {b^2+a^2 x^2}}\right )}{8 a b}-\frac {\left (1-b^4\right ) \text {arctanh}\left (\frac {2 b^2-a \left (1-b^2\right ) x}{\left (b^2+1\right ) \sqrt {b^2+a^2 x^2}}\right )}{8 a b}-\frac {\left (b^2+1\right )^2 \text {arctanh}\left (\frac {\sqrt {a x+\sqrt {b^2+a^2 x^2}}}{b}\right )}{4 a b}+\frac {\left (1-b^4\right ) \text {arctanh}\left (\frac {\sqrt {a x+\sqrt {b^2+a^2 x^2}}}{b}\right )}{4 a b}-\frac {\left (b^2+1\right )^2 \log \left (-b^2+2 a x+1\right )}{8 a b}+\frac {\left (1-b^4\right ) \log \left (-b^2+2 a x+1\right )}{8 a b}+\frac {\left (1-b^2\right ) \sqrt {b^2+a^2 x^2}}{4 a b}-\frac {\left (b^2+1\right ) \sqrt {b^2+a^2 x^2}}{4 a b}-\frac {x \sqrt {b^2+a^2 x^2}}{4 b}-\frac {(1-a x) \sqrt {b^2+a^2 x^2}}{4 a b}+\frac {\sqrt {b^2+a^2 x^2}}{4 a b}-\frac {\left (a x+\sqrt {b^2+a^2 x^2}\right )^{3/2}}{12 a b^2}-\frac {\left (b^2+1\right )^2 \arctan \left (\sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )}{4 a b^2}+\frac {\left (1-b^4\right ) \arctan \left (\sqrt {a x+\sqrt {b^2+a^2 x^2}}\right )}{4 a b^2}-\frac {\int \frac {\sqrt {b^2+a^2 x^2} \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{b^2-2 a x-1}dx}{b^2}+\frac {\left (b^2+1\right )^2 \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{4 a b^2}-\frac {\left (1-b^4\right ) \sqrt {a x+\sqrt {b^2+a^2 x^2}}}{4 a b^2}\) |
3.23.51.3.1 Defintions of rubi rules used
\[\int \frac {a x +\sqrt {a^{2} x^{2}+b^{2}}}{b +\sqrt {a x +\sqrt {a^{2} x^{2}+b^{2}}}}d x\]
Time = 0.26 (sec) , antiderivative size = 122, normalized size of antiderivative = 0.73 \[ \int \frac {a x+\sqrt {b^2+a^2 x^2}}{b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=-\frac {3 \, a b x + 6 \, {\left (b^{3} + b\right )} \log \left (b + \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}\right ) - 6 \, b \log \left (\sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}\right ) - 2 \, {\left (3 \, b^{2} + a x + \sqrt {a^{2} x^{2} + b^{2}}\right )} \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}} + 3 \, \sqrt {a^{2} x^{2} + b^{2}} b}{6 \, a} \]
integrate((a*x+(a^2*x^2+b^2)^(1/2))/(b+(a*x+(a^2*x^2+b^2)^(1/2))^(1/2)),x, algorithm="fricas")
-1/6*(3*a*b*x + 6*(b^3 + b)*log(b + sqrt(a*x + sqrt(a^2*x^2 + b^2))) - 6*b *log(sqrt(a*x + sqrt(a^2*x^2 + b^2))) - 2*(3*b^2 + a*x + sqrt(a^2*x^2 + b^ 2))*sqrt(a*x + sqrt(a^2*x^2 + b^2)) + 3*sqrt(a^2*x^2 + b^2)*b)/a
\[ \int \frac {a x+\sqrt {b^2+a^2 x^2}}{b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\int \frac {a x + \sqrt {a^{2} x^{2} + b^{2}}}{b + \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}}\, dx \]
\[ \int \frac {a x+\sqrt {b^2+a^2 x^2}}{b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\int { \frac {a x + \sqrt {a^{2} x^{2} + b^{2}}}{b + \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}} \,d x } \]
integrate((a*x+(a^2*x^2+b^2)^(1/2))/(b+(a*x+(a^2*x^2+b^2)^(1/2))^(1/2)),x, algorithm="maxima")
1/4*a*x^2/b + 1/2*integrate(sqrt(a^2*x^2 + b^2), x)/b - integrate(-1/2*(a* b^2*x - 2*a^2*x^2 - b^2 + sqrt(a^2*x^2 + b^2)*(b^2 - 2*a*x))/(b^3 + a*b*x + 2*sqrt(a*x + sqrt(a^2*x^2 + b^2))*b^2 + sqrt(a^2*x^2 + b^2)*b), x)
\[ \int \frac {a x+\sqrt {b^2+a^2 x^2}}{b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\int { \frac {a x + \sqrt {a^{2} x^{2} + b^{2}}}{b + \sqrt {a x + \sqrt {a^{2} x^{2} + b^{2}}}} \,d x } \]
Timed out. \[ \int \frac {a x+\sqrt {b^2+a^2 x^2}}{b+\sqrt {a x+\sqrt {b^2+a^2 x^2}}} \, dx=\int \frac {a\,x+\sqrt {a^2\,x^2+b^2}}{b+\sqrt {a\,x+\sqrt {a^2\,x^2+b^2}}} \,d x \]