Optimal. Leaf size=49 \[ \frac {\tanh ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {c} \sqrt {a+b x^2}}\right )}{\sqrt {c} \sqrt {b c-a d}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 49, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {385, 214}
\begin {gather*} \frac {\tanh ^{-1}\left (\frac {x \sqrt {b c-a d}}{\sqrt {c} \sqrt {a+b x^2}}\right )}{\sqrt {c} \sqrt {b c-a d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 385
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+b x^2} \left (c+d x^2\right )} \, dx &=\text {Subst}\left (\int \frac {1}{c-(b c-a d) x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )\\ &=\frac {\tanh ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {c} \sqrt {a+b x^2}}\right )}{\sqrt {c} \sqrt {b c-a d}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 67, normalized size = 1.37 \begin {gather*} -\frac {\tan ^{-1}\left (\frac {-d x \sqrt {a+b x^2}+\sqrt {b} \left (c+d x^2\right )}{\sqrt {c} \sqrt {-b c+a d}}\right )}{\sqrt {c} \sqrt {-b c+a d}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(299\) vs.
\(2(39)=78\).
time = 0.06, size = 300, normalized size = 6.12
method | result | size |
default | \(-\frac {\ln \left (\frac {\frac {2 a d -2 b c}{d}+\frac {2 b \sqrt {-c d}\, \left (x -\frac {\sqrt {-c d}}{d}\right )}{d}+2 \sqrt {\frac {a d -b c}{d}}\, \sqrt {\left (x -\frac {\sqrt {-c d}}{d}\right )^{2} b +\frac {2 b \sqrt {-c d}\, \left (x -\frac {\sqrt {-c d}}{d}\right )}{d}+\frac {a d -b c}{d}}}{x -\frac {\sqrt {-c d}}{d}}\right )}{2 \sqrt {-c d}\, \sqrt {\frac {a d -b c}{d}}}+\frac {\ln \left (\frac {\frac {2 a d -2 b c}{d}-\frac {2 b \sqrt {-c d}\, \left (x +\frac {\sqrt {-c d}}{d}\right )}{d}+2 \sqrt {\frac {a d -b c}{d}}\, \sqrt {\left (x +\frac {\sqrt {-c d}}{d}\right )^{2} b -\frac {2 b \sqrt {-c d}\, \left (x +\frac {\sqrt {-c d}}{d}\right )}{d}+\frac {a d -b c}{d}}}{x +\frac {\sqrt {-c d}}{d}}\right )}{2 \sqrt {-c d}\, \sqrt {\frac {a d -b c}{d}}}\) | \(300\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 107 vs.
\(2 (39) = 78\).
time = 0.55, size = 241, normalized size = 4.92 \begin {gather*} \left [\frac {\log \left (\frac {{\left (8 \, b^{2} c^{2} - 8 \, a b c d + a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} + 2 \, {\left (4 \, a b c^{2} - 3 \, a^{2} c d\right )} x^{2} + 4 \, {\left ({\left (2 \, b c - a d\right )} x^{3} + a c x\right )} \sqrt {b c^{2} - a c d} \sqrt {b x^{2} + a}}{d^{2} x^{4} + 2 \, c d x^{2} + c^{2}}\right )}{4 \, \sqrt {b c^{2} - a c d}}, -\frac {\sqrt {-b c^{2} + a c d} \arctan \left (\frac {\sqrt {-b c^{2} + a c d} {\left ({\left (2 \, b c - a d\right )} x^{2} + a c\right )} \sqrt {b x^{2} + a}}{2 \, {\left ({\left (b^{2} c^{2} - a b c d\right )} x^{3} + {\left (a b c^{2} - a^{2} c d\right )} x\right )}}\right )}{2 \, {\left (b c^{2} - a c d\right )}}\right ] \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}{\sqrt {a + b x^{2}} \left (c + d x^{2}\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.71, size = 70, normalized size = 1.43 \begin {gather*} -\frac {\sqrt {b} \arctan \left (\frac {{\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} d + 2 \, b c - a d}{2 \, \sqrt {-b^{2} c^{2} + a b c d}}\right )}{\sqrt {-b^{2} c^{2} + a b c d}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \left \{\begin {array}{cl} \frac {\mathrm {atan}\left (\frac {x\,\sqrt {a\,d-b\,c}}{\sqrt {c}\,\sqrt {b\,x^2+a}}\right )}{\sqrt {c\,\left (a\,d-b\,c\right )}} & \text {\ if\ \ }0<a\,d-b\,c\\ \frac {\ln \left (\frac {\sqrt {c\,\left (b\,x^2+a\right )}+x\,\sqrt {b\,c-a\,d}}{\sqrt {c\,\left (b\,x^2+a\right )}-x\,\sqrt {b\,c-a\,d}}\right )}{2\,\sqrt {-c\,\left (a\,d-b\,c\right )}} & \text {\ if\ \ }a\,d-b\,c<0\\ \int \frac {1}{\sqrt {b\,x^2+a}\,\left (d\,x^2+c\right )} \,d x & \text {\ if\ \ }a\,d-b\,c\notin \mathbb {R}\vee a\,d=b\,c \end {array}\right . \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________