Optimal. Leaf size=282 \[ \frac {(b-a c) x \sqrt {\frac {b+a c+a d x^2}{c+d x^2}}}{3 a d}+\frac {x \left (c+d x^2\right ) \sqrt {\frac {b+a c+a d x^2}{c+d x^2}}}{3 d}-\frac {\sqrt {c} (b-a c) \sqrt {\frac {b+a c+a d x^2}{c+d x^2}} E\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b}{b+a c}\right )}{3 a d^{3/2} \sqrt {\frac {c \left (b+a c+a d x^2\right )}{(b+a c) \left (c+d x^2\right )}}}-\frac {c^{3/2} \sqrt {\frac {b+a c+a d x^2}{c+d x^2}} F\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b}{b+a c}\right )}{3 d^{3/2} \sqrt {\frac {c \left (b+a c+a d x^2\right )}{(b+a c) \left (c+d x^2\right )}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.21, antiderivative size = 282, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {1985, 1986,
489, 545, 429, 506, 422} \begin {gather*} -\frac {c^{3/2} \sqrt {\frac {a c+a d x^2+b}{c+d x^2}} F\left (\text {ArcTan}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b}{b+a c}\right )}{3 d^{3/2} \sqrt {\frac {c \left (a c+a d x^2+b\right )}{(a c+b) \left (c+d x^2\right )}}}-\frac {\sqrt {c} (b-a c) \sqrt {\frac {a c+a d x^2+b}{c+d x^2}} E\left (\text {ArcTan}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b}{b+a c}\right )}{3 a d^{3/2} \sqrt {\frac {c \left (a c+a d x^2+b\right )}{(a c+b) \left (c+d x^2\right )}}}+\frac {x (b-a c) \sqrt {\frac {a c+a d x^2+b}{c+d x^2}}}{3 a d}+\frac {x \left (c+d x^2\right ) \sqrt {\frac {a c+a d x^2+b}{c+d x^2}}}{3 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 422
Rule 429
Rule 489
Rule 506
Rule 545
Rule 1985
Rule 1986
Rubi steps
\begin {align*} \int x^2 \sqrt {a+\frac {b}{c+d x^2}} \, dx &=\frac {\left (\sqrt {c+d x^2} \sqrt {a+\frac {b}{c+d x^2}}\right ) \int \frac {x^2 \sqrt {b+a \left (c+d x^2\right )}}{\sqrt {c+d x^2}} \, dx}{\sqrt {b+a \left (c+d x^2\right )}}\\ &=\frac {\left (\sqrt {c+d x^2} \sqrt {a+\frac {b}{c+d x^2}}\right ) \int \frac {x^2 \sqrt {b+a c+a d x^2}}{\sqrt {c+d x^2}} \, dx}{\sqrt {b+a \left (c+d x^2\right )}}\\ &=\frac {x \left (c+d x^2\right ) \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}}}{3 d \sqrt {b+a \left (c+d x^2\right )}}-\frac {\left (\sqrt {c+d x^2} \sqrt {a+\frac {b}{c+d x^2}}\right ) \int \frac {c (b+a c)-(b-a c) d x^2}{\sqrt {c+d x^2} \sqrt {b+a c+a d x^2}} \, dx}{3 d \sqrt {b+a \left (c+d x^2\right )}}\\ &=\frac {x \left (c+d x^2\right ) \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}}}{3 d \sqrt {b+a \left (c+d x^2\right )}}+\frac {\left ((b-a c) \sqrt {c+d x^2} \sqrt {a+\frac {b}{c+d x^2}}\right ) \int \frac {x^2}{\sqrt {c+d x^2} \sqrt {b+a c+a d x^2}} \, dx}{3 \sqrt {b+a \left (c+d x^2\right )}}-\frac {\left (c (b+a c) \sqrt {c+d x^2} \sqrt {a+\frac {b}{c+d x^2}}\right ) \int \frac {1}{\sqrt {c+d x^2} \sqrt {b+a c+a d x^2}} \, dx}{3 d \sqrt {b+a \left (c+d x^2\right )}}\\ &=\frac {(b-a c) x \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}}}{3 a d \sqrt {b+a \left (c+d x^2\right )}}+\frac {x \left (c+d x^2\right ) \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}}}{3 d \sqrt {b+a \left (c+d x^2\right )}}-\frac {c^{3/2} \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}} F\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b}{b+a c}\right )}{3 d^{3/2} \sqrt {\frac {c \left (b+a c+a d x^2\right )}{(b+a c) \left (c+d x^2\right )}} \sqrt {b+a \left (c+d x^2\right )}}-\frac {\left (c (b-a c) \sqrt {c+d x^2} \sqrt {a+\frac {b}{c+d x^2}}\right ) \int \frac {\sqrt {b+a c+a d x^2}}{\left (c+d x^2\right )^{3/2}} \, dx}{3 a d \sqrt {b+a \left (c+d x^2\right )}}\\ &=\frac {(b-a c) x \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}}}{3 a d \sqrt {b+a \left (c+d x^2\right )}}+\frac {x \left (c+d x^2\right ) \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}}}{3 d \sqrt {b+a \left (c+d x^2\right )}}-\frac {\sqrt {c} (b-a c) \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}} E\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b}{b+a c}\right )}{3 a d^{3/2} \sqrt {\frac {c \left (b+a c+a d x^2\right )}{(b+a c) \left (c+d x^2\right )}} \sqrt {b+a \left (c+d x^2\right )}}-\frac {c^{3/2} \sqrt {b+a c+a d x^2} \sqrt {a+\frac {b}{c+d x^2}} F\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|\frac {b}{b+a c}\right )}{3 d^{3/2} \sqrt {\frac {c \left (b+a c+a d x^2\right )}{(b+a c) \left (c+d x^2\right )}} \sqrt {b+a \left (c+d x^2\right )}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 10.39, size = 250, normalized size = 0.89 \begin {gather*} \frac {\sqrt {\frac {b+a c+a d x^2}{c+d x^2}} \left (\sqrt {\frac {a d}{b+a c}} x \left (c+d x^2\right ) \left (b+a c+a d x^2\right )+i c (-b+a c) \sqrt {\frac {b+a c+a d x^2}{b+a c}} \sqrt {1+\frac {d x^2}{c}} E\left (i \sinh ^{-1}\left (\sqrt {\frac {a d}{b+a c}} x\right )|1+\frac {b}{a c}\right )+2 i b c \sqrt {\frac {b+a c+a d x^2}{b+a c}} \sqrt {1+\frac {d x^2}{c}} F\left (i \sinh ^{-1}\left (\sqrt {\frac {a d}{b+a c}} x\right )|1+\frac {b}{a c}\right )\right )}{3 d \sqrt {\frac {a d}{b+a c}} \left (b+a \left (c+d x^2\right )\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 406, normalized size = 1.44
method | result | size |
default | \(\frac {\left (\sqrt {-\frac {a d}{a c +b}}\, a \,d^{2} x^{5}+2 \sqrt {-\frac {a d}{a c +b}}\, a c d \,x^{3}+\sqrt {-\frac {a d}{a c +b}}\, b d \,x^{3}-\sqrt {\frac {a d \,x^{2}+a c +b}{a c +b}}\, \sqrt {\frac {d \,x^{2}+c}{c}}\, \EllipticE \left (x \sqrt {-\frac {a d}{a c +b}}, \sqrt {\frac {a c +b}{a c}}\right ) a \,c^{2}+\sqrt {-\frac {a d}{a c +b}}\, a \,c^{2} x -2 \sqrt {\frac {a d \,x^{2}+a c +b}{a c +b}}\, \sqrt {\frac {d \,x^{2}+c}{c}}\, \EllipticF \left (x \sqrt {-\frac {a d}{a c +b}}, \sqrt {\frac {a c +b}{a c}}\right ) b c +\sqrt {\frac {a d \,x^{2}+a c +b}{a c +b}}\, \sqrt {\frac {d \,x^{2}+c}{c}}\, \EllipticE \left (x \sqrt {-\frac {a d}{a c +b}}, \sqrt {\frac {a c +b}{a c}}\right ) b c +\sqrt {-\frac {a d}{a c +b}}\, b c x \right ) \left (d \,x^{2}+c \right ) \sqrt {\frac {a d \,x^{2}+a c +b}{d \,x^{2}+c}}}{3 d \sqrt {a \,d^{2} x^{4}+2 a c d \,x^{2}+b d \,x^{2}+c^{2} a +b c}\, \sqrt {-\frac {a d}{a c +b}}\, \sqrt {\left (d \,x^{2}+c \right ) \left (a d \,x^{2}+a c +b \right )}}\) | \(406\) |
risch | \(\frac {x \left (d \,x^{2}+c \right ) \sqrt {\frac {a d \,x^{2}+a c +b}{d \,x^{2}+c}}}{3 d}-\frac {\left (-\frac {2 \left (a c d -b d \right ) \left (c^{2} a +b c \right ) \sqrt {1+\frac {a d \,x^{2}}{a c +b}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \left (\EllipticF \left (x \sqrt {-\frac {a d}{a c +b}}, \sqrt {-1+\frac {2 a c d +b d}{d c a}}\right )-\EllipticE \left (x \sqrt {-\frac {a d}{a c +b}}, \sqrt {-1+\frac {2 a c d +b d}{d c a}}\right )\right )}{\sqrt {-\frac {a d}{a c +b}}\, \sqrt {a \,d^{2} x^{4}+2 a c d \,x^{2}+b d \,x^{2}+c^{2} a +b c}\, \left (2 a c d +2 b d \right )}+\frac {c^{2} a \sqrt {1+\frac {a d \,x^{2}}{a c +b}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \EllipticF \left (x \sqrt {-\frac {a d}{a c +b}}, \sqrt {-1+\frac {2 a c d +b d}{d c a}}\right )}{\sqrt {-\frac {a d}{a c +b}}\, \sqrt {a \,d^{2} x^{4}+2 a c d \,x^{2}+b d \,x^{2}+c^{2} a +b c}}+\frac {b c \sqrt {1+\frac {a d \,x^{2}}{a c +b}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \EllipticF \left (x \sqrt {-\frac {a d}{a c +b}}, \sqrt {-1+\frac {2 a c d +b d}{d c a}}\right )}{\sqrt {-\frac {a d}{a c +b}}\, \sqrt {a \,d^{2} x^{4}+2 a c d \,x^{2}+b d \,x^{2}+c^{2} a +b c}}\right ) \sqrt {\frac {a d \,x^{2}+a c +b}{d \,x^{2}+c}}\, \sqrt {\left (d \,x^{2}+c \right ) \left (a d \,x^{2}+a c +b \right )}}{3 d \left (a d \,x^{2}+a c +b \right )}\) | \(525\) |
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(-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]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x^{2} \sqrt {\frac {a c + a d x^{2} + b}{c + d 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.00 \begin {gather*} \int x^2\,\sqrt {a+\frac {b}{d\,x^2+c}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________