Optimal. Leaf size=112 \[ -\frac {\sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} \sqrt {e}}+\frac {\sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {b} \sqrt {e}}\right )}{\sqrt {b} \sqrt {e}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 112, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {1981, 1980,
400, 214} \begin {gather*} \frac {\sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {b} \sqrt {e}}\right )}{\sqrt {b} \sqrt {e}}-\frac {\sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} \sqrt {e}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 400
Rule 1980
Rule 1981
Rubi steps
\begin {align*} \int \frac {1}{x \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}} \, dx &=((b c-a d) e) \text {Subst}\left (\int \frac {1}{\left (-a e+c x^2\right ) \left (b e-d x^2\right )} \, dx,x,\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}\right )\\ &=c \text {Subst}\left (\int \frac {1}{-a e+c x^2} \, dx,x,\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}\right )+d \text {Subst}\left (\int \frac {1}{b e-d x^2} \, dx,x,\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}\right )\\ &=-\frac {\sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {a} \sqrt {e}}\right )}{\sqrt {a} \sqrt {e}}+\frac {\sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {b} \sqrt {e}}\right )}{\sqrt {b} \sqrt {e}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.46, size = 147, normalized size = 1.31 \begin {gather*} \frac {\sqrt {a+b x^2} \left (-\sqrt {b} \sqrt {c} \tanh ^{-1}\left (\frac {\sqrt {c} \sqrt {a+b x^2}}{\sqrt {a} \sqrt {c+d x^2}}\right )+\sqrt {a} \sqrt {d} \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x^2}}{\sqrt {b} \sqrt {c+d x^2}}\right )\right )}{\sqrt {a} \sqrt {b} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \sqrt {c+d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(178\) vs.
\(2(84)=168\).
time = 0.05, size = 179, normalized size = 1.60
method | result | size |
default | \(\frac {\left (b \,x^{2}+a \right ) \left (d \ln \left (\frac {2 b d \,x^{2}+2 \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}\, \sqrt {b d}+a d +b c}{2 \sqrt {b d}}\right ) \sqrt {a c}-c \ln \left (\frac {a d \,x^{2}+b c \,x^{2}+2 \sqrt {a c}\, \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}+2 a c}{x^{2}}\right ) \sqrt {b d}\right )}{2 \sqrt {\frac {e \left (b \,x^{2}+a \right )}{d \,x^{2}+c}}\, \sqrt {\left (d \,x^{2}+c \right ) \left (b \,x^{2}+a \right )}\, \sqrt {b d}\, \sqrt {a c}}\) | \(179\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 140, normalized size = 1.25 \begin {gather*} \frac {1}{2} \, {\left (\frac {c \log \left (\frac {c \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} - \sqrt {a c}}{c \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} + \sqrt {a c}}\right )}{\sqrt {a c}} - \frac {d \log \left (\frac {d \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} - \sqrt {b d}}{d \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} + \sqrt {b d}}\right )}{\sqrt {b d}}\right )} e^{\left (-\frac {1}{2}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.46, size = 821, normalized size = 7.33 \begin {gather*} \left [\frac {1}{4} \, {\left (\sqrt {\frac {d}{b}} \log \left (8 \, b^{2} d^{2} x^{4} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x^{2} + 4 \, {\left (2 \, b^{2} d^{2} x^{4} + b^{2} c^{2} + a b c d + {\left (3 \, b^{2} c d + a b d^{2}\right )} x^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} \sqrt {\frac {d}{b}}\right ) + \sqrt {\frac {c}{a}} \log \left (\frac {{\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{4} + 8 \, a^{2} c^{2} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x^{2} - 4 \, {\left ({\left (a b c d + a^{2} d^{2}\right )} x^{4} + 2 \, a^{2} c^{2} + {\left (a b c^{2} + 3 \, a^{2} c d\right )} x^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} \sqrt {\frac {c}{a}}}{x^{4}}\right )\right )} e^{\left (-\frac {1}{2}\right )}, -\frac {1}{4} \, {\left (2 \, \sqrt {-\frac {d}{b}} \arctan \left (\frac {{\left (2 \, b d x^{2} + b c + a d\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} \sqrt {-\frac {d}{b}}}{2 \, {\left (b d x^{2} + a d\right )}}\right ) - \sqrt {\frac {c}{a}} \log \left (\frac {{\left (b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2}\right )} x^{4} + 8 \, a^{2} c^{2} + 8 \, {\left (a b c^{2} + a^{2} c d\right )} x^{2} - 4 \, {\left ({\left (a b c d + a^{2} d^{2}\right )} x^{4} + 2 \, a^{2} c^{2} + {\left (a b c^{2} + 3 \, a^{2} c d\right )} x^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} \sqrt {\frac {c}{a}}}{x^{4}}\right )\right )} e^{\left (-\frac {1}{2}\right )}, \frac {1}{4} \, {\left (2 \, \sqrt {-\frac {c}{a}} \arctan \left (\frac {{\left ({\left (b c + a d\right )} x^{2} + 2 \, a c\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} \sqrt {-\frac {c}{a}}}{2 \, {\left (b c x^{2} + a c\right )}}\right ) + \sqrt {\frac {d}{b}} \log \left (8 \, b^{2} d^{2} x^{4} + b^{2} c^{2} + 6 \, a b c d + a^{2} d^{2} + 8 \, {\left (b^{2} c d + a b d^{2}\right )} x^{2} + 4 \, {\left (2 \, b^{2} d^{2} x^{4} + b^{2} c^{2} + a b c d + {\left (3 \, b^{2} c d + a b d^{2}\right )} x^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} \sqrt {\frac {d}{b}}\right )\right )} e^{\left (-\frac {1}{2}\right )}, \frac {1}{2} \, {\left (\sqrt {-\frac {c}{a}} \arctan \left (\frac {{\left ({\left (b c + a d\right )} x^{2} + 2 \, a c\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} \sqrt {-\frac {c}{a}}}{2 \, {\left (b c x^{2} + a c\right )}}\right ) - \sqrt {-\frac {d}{b}} \arctan \left (\frac {{\left (2 \, b d x^{2} + b c + a d\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}} \sqrt {-\frac {d}{b}}}{2 \, {\left (b d x^{2} + a d\right )}}\right )\right )} e^{\left (-\frac {1}{2}\right )}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{x\,\sqrt {\frac {e\,\left (b\,x^2+a\right )}{d\,x^2+c}}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________