Optimal. Leaf size=169 \[ -\frac {(b c+3 a d) \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \left (c+d x^2\right )}{8 b^2 d e}+\frac {\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \left (c+d x^2\right )^2}{4 b d e}-\frac {(b c-a d) (b c+3 a 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 )}{8 b^{5/2} d^{3/2} \sqrt {e}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.192, Rules used = {1981, 1980,
393, 205, 214} \begin {gather*} -\frac {(b c-a d) (3 a d+b c) \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{\sqrt {b} \sqrt {e}}\right )}{8 b^{5/2} d^{3/2} \sqrt {e}}-\frac {\left (c+d x^2\right ) (3 a d+b c) \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{8 b^2 d e}+\frac {\left (c+d x^2\right )^2 \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}}{4 b d e} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 205
Rule 214
Rule 393
Rule 1980
Rule 1981
Rubi steps
\begin {align*} \int \frac {x^3}{\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}} \, dx &=((b c-a d) e) \text {Subst}\left (\int \frac {-a e+c x^2}{\left (b e-d x^2\right )^3} \, dx,x,\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}\right )\\ &=\frac {\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \left (c+d x^2\right )^2}{4 b d e}-\frac {((b c-a d) (b c+3 a d) e) \text {Subst}\left (\int \frac {1}{\left (b e-d x^2\right )^2} \, dx,x,\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}}\right )}{4 b d}\\ &=-\frac {(b c+3 a d) \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \left (c+d x^2\right )}{8 b^2 d e}+\frac {\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \left (c+d x^2\right )^2}{4 b d e}-\frac {((b c-a d) (b c+3 a 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 )}{8 b^2 d}\\ &=-\frac {(b c+3 a d) \sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \left (c+d x^2\right )}{8 b^2 d e}+\frac {\sqrt {\frac {e \left (a+b x^2\right )}{c+d x^2}} \left (c+d x^2\right )^2}{4 b d e}-\frac {(b c-a d) (b c+3 a 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 )}{8 b^{5/2} d^{3/2} \sqrt {e}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.92, size = 161, normalized size = 0.95 \begin {gather*} \frac {\sqrt {b} \sqrt {d} \left (a+b x^2\right ) \sqrt {c+d x^2} \left (-3 a d+b \left (c+2 d x^2\right )\right )-\left (b^2 c^2+2 a b c d-3 a^2 d^2\right ) \sqrt {a+b x^2} \tanh ^{-1}\left (\frac {\sqrt {d} \sqrt {a+b x^2}}{\sqrt {b} \sqrt {c+d x^2}}\right )}{8 b^{5/2} d^{3/2} \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. \(340\) vs.
\(2(145)=290\).
time = 0.07, size = 341, normalized size = 2.02
method | result | size |
risch | \(-\frac {\left (-2 b d \,x^{2}+3 a d -b c \right ) \left (b \,x^{2}+a \right )}{8 b^{2} d \sqrt {\frac {e \left (b \,x^{2}+a \right )}{d \,x^{2}+c}}}+\frac {\left (\frac {3 d \ln \left (\frac {\frac {1}{2} a d e +\frac {1}{2} b c e +d e b \,x^{2}}{\sqrt {d e b}}+\sqrt {d e b \,x^{4}+\left (a d e +b c e \right ) x^{2}+a c e}\right ) a^{2}}{16 b^{2} \sqrt {d e b}}-\frac {\ln \left (\frac {\frac {1}{2} a d e +\frac {1}{2} b c e +d e b \,x^{2}}{\sqrt {d e b}}+\sqrt {d e b \,x^{4}+\left (a d e +b c e \right ) x^{2}+a c e}\right ) a c}{8 b \sqrt {d e b}}-\frac {\ln \left (\frac {\frac {1}{2} a d e +\frac {1}{2} b c e +d e b \,x^{2}}{\sqrt {d e b}}+\sqrt {d e b \,x^{4}+\left (a d e +b c e \right ) x^{2}+a c e}\right ) c^{2}}{16 d \sqrt {d e b}}\right ) \sqrt {\left (d \,x^{2}+c \right ) e \left (b \,x^{2}+a \right )}}{\sqrt {\frac {e \left (b \,x^{2}+a \right )}{d \,x^{2}+c}}\, \left (d \,x^{2}+c \right )}\) | \(306\) |
default | \(-\frac {\left (b \,x^{2}+a \right ) \left (-4 \sqrt {b d}\, \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}\, b d \,x^{2}-3 d^{2} \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 ) a^{2}+2 \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 ) a c b 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 ) b^{2} c^{2}+6 \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}\, \sqrt {b d}\, a d -2 \sqrt {b d}\, \sqrt {b d \,x^{4}+a d \,x^{2}+b c \,x^{2}+a c}\, b c \right )}{16 \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 )}\, b^{2} d \sqrt {b d}}\) | \(341\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 249, normalized size = 1.47 \begin {gather*} \frac {1}{16} \, {\left (\frac {2 \, {\left ({\left (b^{2} c^{2} d + 2 \, a b c d^{2} - 3 \, a^{2} d^{3}\right )} \left (\frac {b x^{2} + a}{d x^{2} + c}\right )^{\frac {3}{2}} + {\left (b^{3} c^{2} - 6 \, a b^{2} c d + 5 \, a^{2} b d^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}}\right )}}{b^{4} d - \frac {2 \, {\left (b x^{2} + a\right )} b^{3} d^{2}}{d x^{2} + c} + \frac {{\left (b x^{2} + a\right )}^{2} b^{2} d^{3}}{{\left (d x^{2} + c\right )}^{2}}} + \frac {{\left (b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2}\right )} \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} b^{2} 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.37, size = 388, normalized size = 2.30 \begin {gather*} \left [-\frac {{\left ({\left (b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2}\right )} \sqrt {b d} \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 d^{2} x^{4} + b c^{2} + a c d + {\left (3 \, b c d + a d^{2}\right )} x^{2}\right )} \sqrt {b d} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}}\right ) - 4 \, {\left (2 \, b^{2} d^{3} x^{4} + b^{2} c^{2} d - 3 \, a b c d^{2} + 3 \, {\left (b^{2} c d^{2} - a b d^{3}\right )} x^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}}\right )} e^{\left (-\frac {1}{2}\right )}}{32 \, b^{3} d^{2}}, \frac {{\left ({\left (b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2}\right )} \sqrt {-b d} \arctan \left (\frac {{\left (2 \, b d x^{2} + b c + a d\right )} \sqrt {-b d} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}}}{2 \, {\left (b^{2} d x^{2} + a b d\right )}}\right ) + 2 \, {\left (2 \, b^{2} d^{3} x^{4} + b^{2} c^{2} d - 3 \, a b c d^{2} + 3 \, {\left (b^{2} c d^{2} - a b d^{3}\right )} x^{2}\right )} \sqrt {\frac {b x^{2} + a}{d x^{2} + c}}\right )} e^{\left (-\frac {1}{2}\right )}}{16 \, b^{3} d^{2}}\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 [A]
time = 5.55, size = 153, normalized size = 0.91 \begin {gather*} \frac {{\left (2 \, \sqrt {b d x^{4} + b c x^{2} + a d x^{2} + a c} {\left (\frac {2 \, x^{2}}{b} + \frac {b c - 3 \, a d}{b^{2} d}\right )} + \frac {{\left (b^{2} c^{2} + 2 \, a b c d - 3 \, a^{2} d^{2}\right )} \log \left ({\left | -b c - a d - 2 \, {\left (\sqrt {b d} x^{2} - \sqrt {b d x^{4} + b c x^{2} + a d x^{2} + a c}\right )} \sqrt {b d} \right |}\right )}{\sqrt {b d} b^{2} d}\right )} e^{\left (-\frac {1}{2}\right )}}{16 \, \mathrm {sgn}\left (d x^{2} + c\right )} \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 {x^3}{\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]
________________________________________________________________________________________