Optimal. Leaf size=191 \[ -\frac {b \tanh ^{-1}\left (\frac {\sqrt {b^2 e+a^2 f} \sqrt {c+d x^2}}{\sqrt {b^2 c+a^2 d} \sqrt {e+f x^2}}\right )}{\sqrt {b^2 c+a^2 d} \sqrt {b^2 e+a^2 f}}+\frac {\sqrt {-c} \sqrt {1+\frac {d x^2}{c}} \sqrt {1+\frac {f x^2}{e}} \Pi \left (-\frac {b^2 c}{a^2 d};\sin ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {-c}}\right )|\frac {c f}{d e}\right )}{a \sqrt {d} \sqrt {c+d x^2} \sqrt {e+f x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.34, antiderivative size = 191, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 6, integrand size = 30, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {2138, 552, 551,
585, 95, 214} \begin {gather*} \frac {\sqrt {-c} \sqrt {\frac {d x^2}{c}+1} \sqrt {\frac {f x^2}{e}+1} \Pi \left (-\frac {b^2 c}{a^2 d};\text {ArcSin}\left (\frac {\sqrt {d} x}{\sqrt {-c}}\right )|\frac {c f}{d e}\right )}{a \sqrt {d} \sqrt {c+d x^2} \sqrt {e+f x^2}}-\frac {b \tanh ^{-1}\left (\frac {\sqrt {c+d x^2} \sqrt {a^2 f+b^2 e}}{\sqrt {e+f x^2} \sqrt {a^2 d+b^2 c}}\right )}{\sqrt {a^2 d+b^2 c} \sqrt {a^2 f+b^2 e}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 95
Rule 214
Rule 551
Rule 552
Rule 585
Rule 2138
Rubi steps
\begin {align*} \int \frac {1}{(a+b x) \sqrt {c+d x^2} \sqrt {e+f x^2}} \, dx &=a \int \frac {1}{\left (a^2-b^2 x^2\right ) \sqrt {c+d x^2} \sqrt {e+f x^2}} \, dx-b \int \frac {x}{\left (a^2-b^2 x^2\right ) \sqrt {c+d x^2} \sqrt {e+f x^2}} \, dx\\ &=-\left (\frac {1}{2} b \text {Subst}\left (\int \frac {1}{\left (a^2-b^2 x\right ) \sqrt {c+d x} \sqrt {e+f x}} \, dx,x,x^2\right )\right )+\frac {\left (a \sqrt {1+\frac {d x^2}{c}}\right ) \int \frac {1}{\left (a^2-b^2 x^2\right ) \sqrt {1+\frac {d x^2}{c}} \sqrt {e+f x^2}} \, dx}{\sqrt {c+d x^2}}\\ &=-\left (b \text {Subst}\left (\int \frac {1}{b^2 c+a^2 d-\left (b^2 e+a^2 f\right ) x^2} \, dx,x,\frac {\sqrt {c+d x^2}}{\sqrt {e+f x^2}}\right )\right )+\frac {\left (a \sqrt {1+\frac {d x^2}{c}} \sqrt {1+\frac {f x^2}{e}}\right ) \int \frac {1}{\left (a^2-b^2 x^2\right ) \sqrt {1+\frac {d x^2}{c}} \sqrt {1+\frac {f x^2}{e}}} \, dx}{\sqrt {c+d x^2} \sqrt {e+f x^2}}\\ &=-\frac {b \tanh ^{-1}\left (\frac {\sqrt {b^2 e+a^2 f} \sqrt {c+d x^2}}{\sqrt {b^2 c+a^2 d} \sqrt {e+f x^2}}\right )}{\sqrt {b^2 c+a^2 d} \sqrt {b^2 e+a^2 f}}+\frac {\sqrt {-c} \sqrt {1+\frac {d x^2}{c}} \sqrt {1+\frac {f x^2}{e}} \Pi \left (-\frac {b^2 c}{a^2 d};\sin ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {-c}}\right )|\frac {c f}{d e}\right )}{a \sqrt {d} \sqrt {c+d x^2} \sqrt {e+f x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 3.93, size = 772, normalized size = 4.04 \begin {gather*} \frac {2 \sqrt {d} \left (\sqrt {c}+i \sqrt {d} x\right ) \sqrt {\frac {\left (\sqrt {d} \sqrt {e}-\sqrt {c} \sqrt {f}\right ) \left (i \sqrt {c}+\sqrt {d} x\right )}{\left (\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right ) \left (-i \sqrt {c}+\sqrt {d} x\right )}} \left (\sqrt {e}+i \sqrt {f} x\right ) \sqrt {\frac {\sqrt {c} \sqrt {d} \left (i \sqrt {e}+\sqrt {f} x\right )}{\left (-\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right ) \left (-i \sqrt {c}+\sqrt {d} x\right )}} \left (\left (b \sqrt {c}+i a \sqrt {d}\right ) F\left (\sin ^{-1}\left (\sqrt {\frac {\left (\sqrt {d} \sqrt {e}-\sqrt {c} \sqrt {f}\right ) \left (i \sqrt {c}+\sqrt {d} x\right )}{\left (\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right ) \left (-i \sqrt {c}+\sqrt {d} x\right )}}\right )|\frac {\left (\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right )^2}{\left (\sqrt {d} \sqrt {e}-\sqrt {c} \sqrt {f}\right )^2}\right )-2 b \sqrt {c} \Pi \left (\frac {\left (b \sqrt {c}-i a \sqrt {d}\right ) \left (\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right )}{\left (b \sqrt {c}+i a \sqrt {d}\right ) \left (-\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right )};\sin ^{-1}\left (\sqrt {\frac {\left (\sqrt {d} \sqrt {e}-\sqrt {c} \sqrt {f}\right ) \left (i \sqrt {c}+\sqrt {d} x\right )}{\left (\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right ) \left (-i \sqrt {c}+\sqrt {d} x\right )}}\right )|\frac {\left (\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right )^2}{\left (\sqrt {d} \sqrt {e}-\sqrt {c} \sqrt {f}\right )^2}\right )\right )}{\left (b \sqrt {c}-i a \sqrt {d}\right ) \left (b \sqrt {c}+i a \sqrt {d}\right ) \left (-\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right ) \sqrt {\frac {\sqrt {c} \sqrt {d} \left (\sqrt {e}+i \sqrt {f} x\right )}{\left (\sqrt {d} \sqrt {e}+\sqrt {c} \sqrt {f}\right ) \left (\sqrt {c}+i \sqrt {d} x\right )}} \sqrt {c+d x^2} \sqrt {e+f 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. \(338\) vs.
\(2(164)=328\).
time = 0.25, size = 339, normalized size = 1.77
method | result | size |
elliptic | \(\frac {\sqrt {\left (d \,x^{2}+c \right ) \left (f \,x^{2}+e \right )}\, \left (-\frac {\arctanh \left (\frac {\frac {\left (c f +d e \right ) a^{2}}{b^{2}}+2 c e +\left (c f +d e \right ) x^{2}+\frac {2 d f \,x^{2} a^{2}}{b^{2}}}{2 \sqrt {\frac {d f \,a^{4}}{b^{4}}+\frac {\left (c f +d e \right ) a^{2}}{b^{2}}+c e}\, \sqrt {d f \,x^{4}+c \,x^{2} f +d e \,x^{2}+c e}}\right )}{2 \sqrt {\frac {d f \,a^{4}}{b^{4}}+\frac {\left (c f +d e \right ) a^{2}}{b^{2}}+c e}}+\frac {b \sqrt {1+\frac {d \,x^{2}}{c}}\, \sqrt {1+\frac {f \,x^{2}}{e}}\, \EllipticPi \left (x \sqrt {-\frac {d}{c}}, -\frac {b^{2} c}{d \,a^{2}}, \frac {\sqrt {-\frac {f}{e}}}{\sqrt {-\frac {d}{c}}}\right )}{\sqrt {-\frac {d}{c}}\, a \sqrt {d f \,x^{4}+c \,x^{2} f +d e \,x^{2}+c e}}\right )}{\sqrt {d \,x^{2}+c}\, \sqrt {f \,x^{2}+e}\, b}\) | \(272\) |
default | \(\frac {\left (2 b \sqrt {\frac {d \,x^{2}+c}{c}}\, \sqrt {\frac {f \,x^{2}+e}{e}}\, \EllipticPi \left (x \sqrt {-\frac {d}{c}}, -\frac {b^{2} c}{d \,a^{2}}, \frac {\sqrt {-\frac {f}{e}}}{\sqrt {-\frac {d}{c}}}\right ) \sqrt {\frac {a^{4} d f +a^{2} b^{2} c f +a^{2} b^{2} d e +b^{4} c e}{b^{4}}}-\arctanh \left (\frac {2 a^{2} d f \,x^{2}+b^{2} c f \,x^{2}+b^{2} d e \,x^{2}+a^{2} c f +d e \,a^{2}+2 b^{2} c e}{2 b^{2} \sqrt {\frac {a^{4} d f +a^{2} b^{2} c f +a^{2} b^{2} d e +b^{4} c e}{b^{4}}}\, \sqrt {\left (d \,x^{2}+c \right ) \left (f \,x^{2}+e \right )}}\right ) \sqrt {-\frac {d}{c}}\, a \sqrt {\left (d \,x^{2}+c \right ) \left (f \,x^{2}+e \right )}\right ) \sqrt {f \,x^{2}+e}\, \sqrt {d \,x^{2}+c}}{2 b a \sqrt {\frac {a^{4} d f +a^{2} b^{2} c f +a^{2} b^{2} d e +b^{4} c e}{b^{4}}}\, \sqrt {-\frac {d}{c}}\, \left (d f \,x^{4}+c \,x^{2} f +d e \,x^{2}+c e \right )}\) | \(339\) |
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 [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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {1}{\left (a + b x\right ) \sqrt {c + d x^{2}} \sqrt {e + f x^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \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}{\sqrt {d\,x^2+c}\,\sqrt {f\,x^2+e}\,\left (a+b\,x\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________