Optimal. Leaf size=175 \[ \frac {b (2 b c-a d) x \sqrt {a+b x^2}}{2 c d^2}-\frac {(b c-a d) x \left (a+b x^2\right )^{3/2}}{2 c d \left (c+d x^2\right )}-\frac {b^{3/2} (4 b c-5 a d) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 d^3}+\frac {(b c-a d)^{3/2} (4 b c+a d) \tanh ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {c} \sqrt {a+b x^2}}\right )}{2 c^{3/2} d^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 175, 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 = {424, 542, 537,
223, 212, 385, 214} \begin {gather*} -\frac {b^{3/2} (4 b c-5 a d) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 d^3}+\frac {(b c-a d)^{3/2} (a d+4 b c) \tanh ^{-1}\left (\frac {x \sqrt {b c-a d}}{\sqrt {c} \sqrt {a+b x^2}}\right )}{2 c^{3/2} d^3}+\frac {b x \sqrt {a+b x^2} (2 b c-a d)}{2 c d^2}-\frac {x \left (a+b x^2\right )^{3/2} (b c-a d)}{2 c d \left (c+d x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 214
Rule 223
Rule 385
Rule 424
Rule 537
Rule 542
Rubi steps
\begin {align*} \int \frac {\left (a+b x^2\right )^{5/2}}{\left (c+d x^2\right )^2} \, dx &=-\frac {(b c-a d) x \left (a+b x^2\right )^{3/2}}{2 c d \left (c+d x^2\right )}+\frac {\int \frac {\sqrt {a+b x^2} \left (a (b c+a d)+2 b (2 b c-a d) x^2\right )}{c+d x^2} \, dx}{2 c d}\\ &=\frac {b (2 b c-a d) x \sqrt {a+b x^2}}{2 c d^2}-\frac {(b c-a d) x \left (a+b x^2\right )^{3/2}}{2 c d \left (c+d x^2\right )}+\frac {\int \frac {-2 a \left (2 b^2 c^2-2 a b c d-a^2 d^2\right )-2 b^2 c (4 b c-5 a d) x^2}{\sqrt {a+b x^2} \left (c+d x^2\right )} \, dx}{4 c d^2}\\ &=\frac {b (2 b c-a d) x \sqrt {a+b x^2}}{2 c d^2}-\frac {(b c-a d) x \left (a+b x^2\right )^{3/2}}{2 c d \left (c+d x^2\right )}-\frac {\left (b^2 (4 b c-5 a d)\right ) \int \frac {1}{\sqrt {a+b x^2}} \, dx}{2 d^3}+\frac {\left ((b c-a d)^2 (4 b c+a d)\right ) \int \frac {1}{\sqrt {a+b x^2} \left (c+d x^2\right )} \, dx}{2 c d^3}\\ &=\frac {b (2 b c-a d) x \sqrt {a+b x^2}}{2 c d^2}-\frac {(b c-a d) x \left (a+b x^2\right )^{3/2}}{2 c d \left (c+d x^2\right )}-\frac {\left (b^2 (4 b c-5 a d)\right ) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )}{2 d^3}+\frac {\left ((b c-a d)^2 (4 b c+a d)\right ) \text {Subst}\left (\int \frac {1}{c-(b c-a d) x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )}{2 c d^3}\\ &=\frac {b (2 b c-a d) x \sqrt {a+b x^2}}{2 c d^2}-\frac {(b c-a d) x \left (a+b x^2\right )^{3/2}}{2 c d \left (c+d x^2\right )}-\frac {b^{3/2} (4 b c-5 a d) \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 d^3}+\frac {(b c-a d)^{3/2} (4 b c+a d) \tanh ^{-1}\left (\frac {\sqrt {b c-a d} x}{\sqrt {c} \sqrt {a+b x^2}}\right )}{2 c^{3/2} d^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.66, size = 187, normalized size = 1.07 \begin {gather*} \frac {\frac {d x \sqrt {a+b x^2} \left (-2 a b c d+a^2 d^2+b^2 c \left (2 c+d x^2\right )\right )}{c \left (c+d x^2\right )}+\frac {\sqrt {-b c+a d} \left (4 b^2 c^2-3 a b c d-a^2 d^2\right ) \tan ^{-1}\left (\frac {-d x \sqrt {a+b x^2}+\sqrt {b} \left (c+d x^2\right )}{\sqrt {c} \sqrt {-b c+a d}}\right )}{c^{3/2}}+b^{3/2} (4 b c-5 a d) \log \left (-\sqrt {b} x+\sqrt {a+b x^2}\right )}{2 d^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(5229\) vs.
\(2(147)=294\).
time = 0.13, size = 5230, normalized size = 29.89
method | result | size |
risch | \(\text {Expression too large to display}\) | \(3386\) |
default | \(\text {Expression too large to display}\) | \(5230\) |
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 [A]
time = 0.97, size = 1236, normalized size = 7.06 \begin {gather*} \left [-\frac {2 \, {\left (4 \, b^{2} c^{3} - 5 \, a b c^{2} d + {\left (4 \, b^{2} c^{2} d - 5 \, a b c d^{2}\right )} x^{2}\right )} \sqrt {b} \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) + {\left (4 \, b^{2} c^{3} - 3 \, a b c^{2} d - a^{2} c d^{2} + {\left (4 \, b^{2} c^{2} d - 3 \, a b c d^{2} - a^{2} d^{3}\right )} x^{2}\right )} \sqrt {\frac {b c - a d}{c}} \log \left (\frac {{\left (8 \, b^{2} c^{2} - 8 \, a b c d + a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} + 2 \, {\left (4 \, a b c^{2} - 3 \, a^{2} c d\right )} x^{2} - 4 \, {\left (a c^{2} x + {\left (2 \, b c^{2} - a c d\right )} x^{3}\right )} \sqrt {b x^{2} + a} \sqrt {\frac {b c - a d}{c}}}{d^{2} x^{4} + 2 \, c d x^{2} + c^{2}}\right ) - 4 \, {\left (b^{2} c d^{2} x^{3} + {\left (2 \, b^{2} c^{2} d - 2 \, a b c d^{2} + a^{2} d^{3}\right )} x\right )} \sqrt {b x^{2} + a}}{8 \, {\left (c d^{4} x^{2} + c^{2} d^{3}\right )}}, \frac {4 \, {\left (4 \, b^{2} c^{3} - 5 \, a b c^{2} d + {\left (4 \, b^{2} c^{2} d - 5 \, a b c d^{2}\right )} x^{2}\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) - {\left (4 \, b^{2} c^{3} - 3 \, a b c^{2} d - a^{2} c d^{2} + {\left (4 \, b^{2} c^{2} d - 3 \, a b c d^{2} - a^{2} d^{3}\right )} x^{2}\right )} \sqrt {\frac {b c - a d}{c}} \log \left (\frac {{\left (8 \, b^{2} c^{2} - 8 \, a b c d + a^{2} d^{2}\right )} x^{4} + a^{2} c^{2} + 2 \, {\left (4 \, a b c^{2} - 3 \, a^{2} c d\right )} x^{2} - 4 \, {\left (a c^{2} x + {\left (2 \, b c^{2} - a c d\right )} x^{3}\right )} \sqrt {b x^{2} + a} \sqrt {\frac {b c - a d}{c}}}{d^{2} x^{4} + 2 \, c d x^{2} + c^{2}}\right ) + 4 \, {\left (b^{2} c d^{2} x^{3} + {\left (2 \, b^{2} c^{2} d - 2 \, a b c d^{2} + a^{2} d^{3}\right )} x\right )} \sqrt {b x^{2} + a}}{8 \, {\left (c d^{4} x^{2} + c^{2} d^{3}\right )}}, -\frac {{\left (4 \, b^{2} c^{3} - 3 \, a b c^{2} d - a^{2} c d^{2} + {\left (4 \, b^{2} c^{2} d - 3 \, a b c d^{2} - a^{2} d^{3}\right )} x^{2}\right )} \sqrt {-\frac {b c - a d}{c}} \arctan \left (\frac {{\left ({\left (2 \, b c - a d\right )} x^{2} + a c\right )} \sqrt {b x^{2} + a} \sqrt {-\frac {b c - a d}{c}}}{2 \, {\left ({\left (b^{2} c - a b d\right )} x^{3} + {\left (a b c - a^{2} d\right )} x\right )}}\right ) + {\left (4 \, b^{2} c^{3} - 5 \, a b c^{2} d + {\left (4 \, b^{2} c^{2} d - 5 \, a b c d^{2}\right )} x^{2}\right )} \sqrt {b} \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) - 2 \, {\left (b^{2} c d^{2} x^{3} + {\left (2 \, b^{2} c^{2} d - 2 \, a b c d^{2} + a^{2} d^{3}\right )} x\right )} \sqrt {b x^{2} + a}}{4 \, {\left (c d^{4} x^{2} + c^{2} d^{3}\right )}}, \frac {2 \, {\left (4 \, b^{2} c^{3} - 5 \, a b c^{2} d + {\left (4 \, b^{2} c^{2} d - 5 \, a b c d^{2}\right )} x^{2}\right )} \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) - {\left (4 \, b^{2} c^{3} - 3 \, a b c^{2} d - a^{2} c d^{2} + {\left (4 \, b^{2} c^{2} d - 3 \, a b c d^{2} - a^{2} d^{3}\right )} x^{2}\right )} \sqrt {-\frac {b c - a d}{c}} \arctan \left (\frac {{\left ({\left (2 \, b c - a d\right )} x^{2} + a c\right )} \sqrt {b x^{2} + a} \sqrt {-\frac {b c - a d}{c}}}{2 \, {\left ({\left (b^{2} c - a b d\right )} x^{3} + {\left (a b c - a^{2} d\right )} x\right )}}\right ) + 2 \, {\left (b^{2} c d^{2} x^{3} + {\left (2 \, b^{2} c^{2} d - 2 \, a b c d^{2} + a^{2} d^{3}\right )} x\right )} \sqrt {b x^{2} + a}}{4 \, {\left (c d^{4} x^{2} + c^{2} d^{3}\right )}}\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 \frac {\left (a + b x^{2}\right )^{\frac {5}{2}}}{\left (c + d x^{2}\right )^{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. 405 vs.
\(2 (147) = 294\).
time = 0.57, size = 405, normalized size = 2.31 \begin {gather*} \frac {\sqrt {b x^{2} + a} b^{2} x}{2 \, d^{2}} + \frac {{\left (4 \, b^{\frac {5}{2}} c - 5 \, a b^{\frac {3}{2}} d\right )} \log \left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2}\right )}{4 \, d^{3}} - \frac {{\left (4 \, b^{\frac {7}{2}} c^{3} - 7 \, a b^{\frac {5}{2}} c^{2} d + 2 \, a^{2} b^{\frac {3}{2}} c d^{2} + a^{3} \sqrt {b} d^{3}\right )} \arctan \left (\frac {{\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} d + 2 \, b c - a d}{2 \, \sqrt {-b^{2} c^{2} + a b c d}}\right )}{2 \, \sqrt {-b^{2} c^{2} + a b c d} c d^{3}} + \frac {2 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} b^{\frac {7}{2}} c^{3} - 5 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} a b^{\frac {5}{2}} c^{2} d + 4 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} a^{2} b^{\frac {3}{2}} c d^{2} - {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} a^{3} \sqrt {b} d^{3} + a^{2} b^{\frac {5}{2}} c^{2} d - 2 \, a^{3} b^{\frac {3}{2}} c d^{2} + a^{4} \sqrt {b} d^{3}}{{\left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{4} d + 4 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} b c - 2 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} a d + a^{2} d\right )} c d^{3}} \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 {{\left (b\,x^2+a\right )}^{5/2}}{{\left (d\,x^2+c\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________