Optimal. Leaf size=50 \[ -\frac {1}{b \sqrt {a+b x^2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a-b}}\right )}{\sqrt {a-b}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.06, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.161, Rules used = {6, 571, 78, 63, 208} \[ -\frac {1}{b \sqrt {a+b x^2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a-b}}\right )}{\sqrt {a-b}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6
Rule 63
Rule 78
Rule 208
Rule 571
Rubi steps
\begin {align*} \int \frac {x \left (1+a+x^2+b x^2\right )}{\left (1+x^2\right ) \left (a+b x^2\right )^{3/2}} \, dx &=\int \frac {x \left (1+a+(1+b) x^2\right )}{\left (1+x^2\right ) \left (a+b x^2\right )^{3/2}} \, dx\\ &=\frac {1}{2} \operatorname {Subst}\left (\int \frac {1+a+(1+b) x}{(1+x) (a+b x)^{3/2}} \, dx,x,x^2\right )\\ &=-\frac {1}{b \sqrt {a+b x^2}}+\frac {1}{2} \operatorname {Subst}\left (\int \frac {1}{(1+x) \sqrt {a+b x}} \, dx,x,x^2\right )\\ &=-\frac {1}{b \sqrt {a+b x^2}}+\frac {\operatorname {Subst}\left (\int \frac {1}{1-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+b x^2}\right )}{b}\\ &=-\frac {1}{b \sqrt {a+b x^2}}-\frac {\tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a-b}}\right )}{\sqrt {a-b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 71, normalized size = 1.42 \[ \frac {b \sqrt {a-b} \sqrt {a+b x^2} \tanh ^{-1}\left (\frac {\sqrt {a+b x^2}}{\sqrt {a-b}}\right )+a-b}{b (b-a) \sqrt {a+b x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.48, size = 268, normalized size = 5.36 \[ \left [\frac {{\left (b^{2} x^{2} + a b\right )} \sqrt {a - b} \log \left (\frac {b^{2} x^{4} + 2 \, {\left (4 \, a b - 3 \, b^{2}\right )} x^{2} - 4 \, {\left (b x^{2} + 2 \, a - b\right )} \sqrt {b x^{2} + a} \sqrt {a - b} + 8 \, a^{2} - 8 \, a b + b^{2}}{x^{4} + 2 \, x^{2} + 1}\right ) - 4 \, \sqrt {b x^{2} + a} {\left (a - b\right )}}{4 \, {\left (a^{2} b - a b^{2} + {\left (a b^{2} - b^{3}\right )} x^{2}\right )}}, -\frac {{\left (b^{2} x^{2} + a b\right )} \sqrt {-a + b} \arctan \left (-\frac {{\left (b x^{2} + 2 \, a - b\right )} \sqrt {b x^{2} + a} \sqrt {-a + b}}{2 \, {\left ({\left (a b - b^{2}\right )} x^{2} + a^{2} - a b\right )}}\right ) + 2 \, \sqrt {b x^{2} + a} {\left (a - b\right )}}{2 \, {\left (a^{2} b - a b^{2} + {\left (a b^{2} - b^{3}\right )} x^{2}\right )}}\right ] \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.38, size = 41, normalized size = 0.82 \[ \frac {\arctan \left (\frac {\sqrt {b x^{2} + a}}{\sqrt {-a + b}}\right )}{\sqrt {-a + b}} - \frac {1}{\sqrt {b x^{2} + a} b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [B] time = 0.02, size = 133, normalized size = 2.66 \[ \frac {a \arctan \left (\frac {\sqrt {b \,x^{2}+a}}{\sqrt {-a +b}}\right )}{\left (a -b \right ) \sqrt {-a +b}}-\frac {b \arctan \left (\frac {\sqrt {b \,x^{2}+a}}{\sqrt {-a +b}}\right )}{\left (a -b \right ) \sqrt {-a +b}}+\frac {a}{\left (a -b \right ) \sqrt {b \,x^{2}+a}}-\frac {b}{\left (a -b \right ) \sqrt {b \,x^{2}+a}}-\frac {1}{\sqrt {b \,x^{2}+a}\, b}-\frac {1}{\sqrt {b \,x^{2}+a}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: ValueError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 4.52, size = 96, normalized size = 1.92 \[ \frac {1}{\sqrt {b\,x^2+a}\,\left (a-b\right )}-\frac {a}{\sqrt {b\,x^2+a}\,\left (a\,b-b^2\right )}-\frac {a\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a-b}}\right )}{{\left (a-b\right )}^{3/2}}+\frac {b\,\mathrm {atanh}\left (\frac {\sqrt {b\,x^2+a}}{\sqrt {a-b}}\right )}{{\left (a-b\right )}^{3/2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 79.83, size = 37, normalized size = 0.74 \[ \frac {\operatorname {atan}{\left (\frac {\sqrt {a + b x^{2}}}{\sqrt {- a + b}} \right )}}{\sqrt {- a + b}} - \frac {1}{b \sqrt {a + b x^{2}}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________