Optimal. Leaf size=69 \[ \frac {\left (c+d x^2\right ) \sqrt {a+\frac {b}{c+d x^2}}}{2 d}+\frac {b \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{c+d x^2}}}{\sqrt {a}}\right )}{2 \sqrt {a} d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.04, antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.263, Rules used = {1605, 248, 43,
65, 214} \begin {gather*} \frac {\left (c+d x^2\right ) \sqrt {a+\frac {b}{c+d x^2}}}{2 d}+\frac {b \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{c+d x^2}}}{\sqrt {a}}\right )}{2 \sqrt {a} d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 43
Rule 65
Rule 214
Rule 248
Rule 1605
Rubi steps
\begin {align*} \int x \sqrt {a+\frac {b}{c+d x^2}} \, dx &=\frac {\text {Subst}\left (\int \sqrt {a+\frac {b}{x}} \, dx,x,c+d x^2\right )}{2 d}\\ &=-\frac {\text {Subst}\left (\int \frac {\sqrt {a+b x}}{x^2} \, dx,x,\frac {1}{c+d x^2}\right )}{2 d}\\ &=\frac {\left (c+d x^2\right ) \sqrt {a+\frac {b}{c+d x^2}}}{2 d}-\frac {b \text {Subst}\left (\int \frac {1}{x \sqrt {a+b x}} \, dx,x,\frac {1}{c+d x^2}\right )}{4 d}\\ &=\frac {\left (c+d x^2\right ) \sqrt {a+\frac {b}{c+d x^2}}}{2 d}-\frac {\text {Subst}\left (\int \frac {1}{-\frac {a}{b}+\frac {x^2}{b}} \, dx,x,\sqrt {a+\frac {b}{c+d x^2}}\right )}{2 d}\\ &=\frac {\left (c+d x^2\right ) \sqrt {a+\frac {b}{c+d x^2}}}{2 d}+\frac {b \tanh ^{-1}\left (\frac {\sqrt {a+\frac {b}{c+d x^2}}}{\sqrt {a}}\right )}{2 \sqrt {a} d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 85, normalized size = 1.23 \begin {gather*} \frac {\left (c+d x^2\right ) \sqrt {\frac {b+a c+a d x^2}{c+d x^2}}}{2 d}+\frac {b \tanh ^{-1}\left (\frac {\sqrt {\frac {b+a c+a d x^2}{c+d x^2}}}{\sqrt {a}}\right )}{2 \sqrt {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. \(179\) vs.
\(2(57)=114\).
time = 0.09, size = 180, normalized size = 2.61
method | result | size |
derivativedivides | \(\frac {\sqrt {\frac {a \left (d \,x^{2}+c \right )+b}{d \,x^{2}+c}}\, \left (d \,x^{2}+c \right ) \left (2 \sqrt {a \left (d \,x^{2}+c \right )^{2}+b \left (d \,x^{2}+c \right )}\, \sqrt {a}+b \ln \left (\frac {2 \sqrt {a \left (d \,x^{2}+c \right )^{2}+b \left (d \,x^{2}+c \right )}\, \sqrt {a}+2 a \left (d \,x^{2}+c \right )+b}{2 \sqrt {a}}\right )\right )}{4 d \sqrt {\left (d \,x^{2}+c \right ) \left (a \left (d \,x^{2}+c \right )+b \right )}\, \sqrt {a}}\) | \(137\) |
risch | \(\frac {\left (d \,x^{2}+c \right ) \sqrt {\frac {a d \,x^{2}+a c +b}{d \,x^{2}+c}}}{2 d}+\frac {b \ln \left (\frac {a c d +\frac {1}{2} b d +a \,d^{2} x^{2}}{\sqrt {a \,d^{2}}}+\sqrt {c^{2} a +b c +\left (2 a c d +b d \right ) x^{2}+a \,d^{2} x^{4}}\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 )}}{4 \sqrt {a \,d^{2}}\, \left (a d \,x^{2}+a c +b \right )}\) | \(163\) |
default | \(\frac {\sqrt {\frac {a d \,x^{2}+a c +b}{d \,x^{2}+c}}\, \left (d \,x^{2}+c \right ) \left (b \ln \left (\frac {2 a \,d^{2} x^{2}+2 a c d +2 \sqrt {a \,d^{2} x^{4}+2 a c d \,x^{2}+b d \,x^{2}+c^{2} a +b c}\, \sqrt {a \,d^{2}}+b d}{2 \sqrt {a \,d^{2}}}\right ) d +2 \sqrt {a \,d^{2} x^{4}+2 a c d \,x^{2}+b d \,x^{2}+c^{2} a +b c}\, \sqrt {a \,d^{2}}\right )}{4 \sqrt {\left (d \,x^{2}+c \right ) \left (a d \,x^{2}+a c +b \right )}\, d \sqrt {a \,d^{2}}}\) | \(180\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 126 vs.
\(2 (57) = 114\).
time = 0.50, size = 126, normalized size = 1.83 \begin {gather*} -\frac {b \sqrt {\frac {a d x^{2} + a c + b}{d x^{2} + c}}}{2 \, {\left (a d - \frac {{\left (a d x^{2} + a c + b\right )} d}{d x^{2} + c}\right )}} - \frac {b \log \left (-\frac {\sqrt {a} - \sqrt {\frac {a d x^{2} + a c + b}{d x^{2} + c}}}{\sqrt {a} + \sqrt {\frac {a d x^{2} + a c + b}{d x^{2} + c}}}\right )}{4 \, \sqrt {a} d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.38, size = 267, normalized size = 3.87 \begin {gather*} \left [\frac {\sqrt {a} b \log \left (8 \, a^{2} d^{2} x^{4} + 8 \, a^{2} c^{2} + 8 \, {\left (2 \, a^{2} c + a b\right )} d x^{2} + 8 \, a b c + b^{2} + 4 \, {\left (2 \, a d^{2} x^{4} + {\left (4 \, a c + b\right )} d x^{2} + 2 \, a c^{2} + b c\right )} \sqrt {a} \sqrt {\frac {a d x^{2} + a c + b}{d x^{2} + c}}\right ) + 4 \, {\left (a d x^{2} + a c\right )} \sqrt {\frac {a d x^{2} + a c + b}{d x^{2} + c}}}{8 \, a d}, -\frac {\sqrt {-a} b \arctan \left (\frac {{\left (2 \, a d x^{2} + 2 \, a c + b\right )} \sqrt {-a} \sqrt {\frac {a d x^{2} + a c + b}{d x^{2} + c}}}{2 \, {\left (a^{2} d x^{2} + a^{2} c + a b\right )}}\right ) - 2 \, {\left (a d x^{2} + a c\right )} \sqrt {\frac {a d x^{2} + a c + b}{d x^{2} + c}}}{4 \, a d}\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 x \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 [B] Leaf count of result is larger than twice the leaf count of optimal. 127 vs.
\(2 (57) = 114\).
time = 4.43, size = 127, normalized size = 1.84 \begin {gather*} -\frac {1}{4} \, {\left (\frac {b \log \left ({\left | -8 \, a^{\frac {3}{2}} c d - 8 \, {\left (\sqrt {a d^{2}} x^{2} - \sqrt {a d^{2} x^{4} + 2 \, a c d x^{2} + b d x^{2} + a c^{2} + b c}\right )} a {\left | d \right |} - 4 \, \sqrt {a} b d \right |}\right )}{\sqrt {a} {\left | d \right |}} - \frac {2 \, \sqrt {a d^{2} x^{4} + 2 \, a c d x^{2} + b d x^{2} + a c^{2} + b c}}{d}\right )} \mathrm {sgn}\left (d x^{2} + c\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.01, size = 120, normalized size = 1.74 \begin {gather*} \frac {\sqrt {\frac {b\,\left (d\,x^2+c\right )+a\,{\left (d\,x^2+c\right )}^2}{{\left (d\,x^2+c\right )}^2}}\,\left (d\,x^2+c\right )\,\left (\frac {b\,\ln \left (\frac {\frac {b}{2}+a\,\left (d\,x^2+c\right )+\sqrt {a}\,\sqrt {b\,\left (d\,x^2+c\right )+a\,{\left (d\,x^2+c\right )}^2}}{\sqrt {a}}\right )}{\sqrt {a}\,\sqrt {b\,\left (d\,x^2+c\right )+a\,{\left (d\,x^2+c\right )}^2}}+2\right )}{4\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________