Optimal. Leaf size=330 \[ -\frac {d^2 e-b d f^2+a e f^2}{\left (2 d e-b f^2\right )^2 \left (d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )^2}-\frac {2 f^2 \left (4 a e^2-b^2 f^2\right )}{\left (2 d e-b f^2\right )^3 \left (d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )}-\frac {2 e f^2 \left (4 a e^2-b^2 f^2\right )}{\left (2 d e-b f^2\right )^3 \left (b f^2+2 e \left (e x+f \sqrt {a+\frac {x \left (b f^2+e^2 x\right )}{f^2}}\right )\right )}+\frac {6 e f^2 \left (4 a e^2-b^2 f^2\right ) \log \left (d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )}{\left (2 d e-b f^2\right )^4}-\frac {6 e f^2 \left (4 a e^2-b^2 f^2\right ) \log \left (b f^2+2 e \left (e x+f \sqrt {a+\frac {x \left (b f^2+e^2 x\right )}{f^2}}\right )\right )}{\left (2 d e-b f^2\right )^4} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.21, antiderivative size = 330, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {2141, 907}
\begin {gather*} -\frac {2 f^2 \left (4 a e^2-b^2 f^2\right )}{\left (2 d e-b f^2\right )^3 \left (f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}+d+e x\right )}+\frac {6 e f^2 \left (4 a e^2-b^2 f^2\right ) \log \left (f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}+d+e x\right )}{\left (2 d e-b f^2\right )^4}-\frac {2 e f^2 \left (4 a e^2-b^2 f^2\right )}{\left (2 d e-b f^2\right )^3 \left (2 e \left (f \sqrt {a+\frac {x \left (b f^2+e^2 x\right )}{f^2}}+e x\right )+b f^2\right )}-\frac {6 e f^2 \left (4 a e^2-b^2 f^2\right ) \log \left (2 e \left (f \sqrt {a+\frac {x \left (b f^2+e^2 x\right )}{f^2}}+e x\right )+b f^2\right )}{\left (2 d e-b f^2\right )^4}-\frac {a e f^2-b d f^2+d^2 e}{\left (2 d e-b f^2\right )^2 \left (f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}+d+e x\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 907
Rule 2141
Rubi steps
\begin {align*} \int \frac {1}{\left (d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )^3} \, dx &=2 \text {Subst}\left (\int \frac {d^2 e-(b d-a e) f^2-\left (2 d e-b f^2\right ) x+e x^2}{x^3 \left (-2 d e+b f^2+2 e x\right )^2} \, dx,x,d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )\\ &=2 \text {Subst}\left (\int \left (\frac {d^2 e-b d f^2+a e f^2}{\left (2 d e-b f^2\right )^2 x^3}+\frac {4 a e^2 f^2-b^2 f^4}{\left (2 d e-b f^2\right )^3 x^2}+\frac {3 \left (4 a e^3 f^2-b^2 e f^4\right )}{\left (2 d e-b f^2\right )^4 x}+\frac {2 \left (4 a e^4 f^2-b^2 e^2 f^4\right )}{\left (2 d e-b f^2\right )^3 \left (2 d e-b f^2-2 e x\right )^2}+\frac {6 \left (4 a e^4 f^2-b^2 e^2 f^4\right )}{\left (2 d e-b f^2\right )^4 \left (2 d e-b f^2-2 e x\right )}\right ) \, dx,x,d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )\\ &=-\frac {d^2 e-b d f^2+a e f^2}{\left (2 d e-b f^2\right )^2 \left (d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )^2}-\frac {2 f^2 \left (4 a e^2-b^2 f^2\right )}{\left (2 d e-b f^2\right )^3 \left (d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )}-\frac {2 e f^2 \left (4 a e^2-b^2 f^2\right )}{\left (2 d e-b f^2\right )^3 \left (b f^2+2 e \left (e x+f \sqrt {a+\frac {x \left (b f^2+e^2 x\right )}{f^2}}\right )\right )}+\frac {6 e f^2 \left (4 a e^2-b^2 f^2\right ) \log \left (d+e x+f \sqrt {a+b x+\frac {e^2 x^2}{f^2}}\right )}{\left (2 d e-b f^2\right )^4}-\frac {6 e f^2 \left (4 a e^2-b^2 f^2\right ) \log \left (b f^2+2 e \left (e x+f \sqrt {a+\frac {x \left (b f^2+e^2 x\right )}{f^2}}\right )\right )}{\left (2 d e-b f^2\right )^4}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 10.55, size = 300, normalized size = 0.91 \begin {gather*} -\frac {\frac {\left (-2 d e+b f^2\right )^2 \left (d^2 e-b d f^2+a e f^2\right )}{\left (d+e x+f \sqrt {a+x \left (b+\frac {e^2 x}{f^2}\right )}\right )^2}+\frac {2 f^2 \left (-2 d e+b f^2\right ) \left (-4 a e^2+b^2 f^2\right )}{d+e x+f \sqrt {a+x \left (b+\frac {e^2 x}{f^2}\right )}}+\frac {2 e f^2 \left (2 d e-b f^2\right ) \left (4 a e^2-b^2 f^2\right )}{b f^2+2 e \left (e x+f \sqrt {a+x \left (b+\frac {e^2 x}{f^2}\right )}\right )}-6 e f^2 \left (4 a e^2-b^2 f^2\right ) \log \left (d+e x+f \sqrt {a+x \left (b+\frac {e^2 x}{f^2}\right )}\right )+6 e f^2 \left (4 a e^2-b^2 f^2\right ) \log \left (-b f^2-2 e \left (e x+f \sqrt {a+x \left (b+\frac {e^2 x}{f^2}\right )}\right )\right )}{\left (-2 d e+b f^2\right )^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(295125\) vs.
\(2(320)=640\).
time = 0.14, size = 295126, normalized size = 894.32
method | result | size |
default | \(\text {Expression too large to display}\) | \(295126\) |
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 [B] Leaf count of result is larger than twice the leaf count of optimal. 1942 vs.
\(2 (319) = 638\).
time = 26.98, size = 1942, normalized size = 5.88 \begin {gather*} \frac {3 \, b^{4} d f^{8} x + 3 \, a b^{3} d f^{8} - b^{3} d^{3} f^{6} + 32 \, d^{3} x^{3} e^{6} - 8 \, {\left (6 \, b d^{2} f^{2} x^{3} - {\left (a d^{2} f^{2} + 5 \, d^{4}\right )} x^{2}\right )} e^{5} + 8 \, {\left (3 \, b^{2} d f^{4} x^{3} - {\left (a b d f^{4} + 7 \, b d^{3} f^{2}\right )} x^{2} - {\left (7 \, a^{2} d f^{4} + a d^{3} f^{2} - 2 \, d^{5}\right )} x\right )} e^{4} - 2 \, {\left (2 \, b^{3} f^{6} x^{3} - 10 \, a^{3} f^{6} + 12 \, a^{2} d^{2} f^{4} + 6 \, a d^{4} f^{2} - {\left (a b^{2} f^{6} + 11 \, b^{2} d^{2} f^{4}\right )} x^{2} - 2 \, {\left (7 \, a^{2} b f^{6} + 11 \, a b d^{2} f^{4} - 6 \, b d^{4} f^{2}\right )} x\right )} e^{3} - 2 \, {\left (5 \, a^{2} b d f^{6} - 16 \, a b d^{3} f^{4} - b d^{5} f^{2} + 5 \, {\left (a b^{2} d f^{6} - b^{2} d^{3} f^{4}\right )} x\right )} e^{2} - {\left (b^{4} f^{8} x^{2} + 4 \, a^{2} b^{2} f^{8} + 4 \, a b^{2} d^{2} f^{6} + 4 \, b^{2} d^{4} f^{4} + {\left (5 \, a b^{3} f^{8} + 7 \, b^{3} d^{2} f^{6}\right )} x\right )} e + 3 \, {\left (16 \, a d^{2} f^{2} x^{2} e^{5} - 16 \, {\left (a b d f^{4} x^{2} + {\left (a^{2} d f^{4} - a d^{3} f^{2}\right )} x\right )} e^{4} + 4 \, {\left (a^{3} f^{6} - 2 \, a^{2} d^{2} f^{4} + a d^{4} f^{2} + {\left (a b^{2} f^{6} - b^{2} d^{2} f^{4}\right )} x^{2} + 2 \, {\left (a^{2} b f^{6} - a b d^{2} f^{4}\right )} x\right )} e^{3} + 4 \, {\left (b^{3} d f^{6} x^{2} + {\left (a b^{2} d f^{6} - b^{2} d^{3} f^{4}\right )} x\right )} e^{2} - {\left (b^{4} f^{8} x^{2} + a^{2} b^{2} f^{8} - 2 \, a b^{2} d^{2} f^{6} + b^{2} d^{4} f^{4} + 2 \, {\left (a b^{3} f^{8} - b^{3} d^{2} f^{6}\right )} x\right )} e\right )} \log \left (b^{2} d f^{4} + 8 \, d x^{2} e^{4} - 4 \, {\left (b f^{2} x^{2} + a f^{2} x\right )} e^{3} + 4 \, {\left (2 \, b d f^{2} x + a d f^{2}\right )} e^{2} - {\left (3 \, b^{2} f^{4} x + 4 \, a b f^{4}\right )} e + {\left (b^{2} f^{5} - 4 \, b d f^{3} e - 8 \, d f x e^{3} + 4 \, {\left (b f^{3} x + a f^{3}\right )} e^{2}\right )} \sqrt {\frac {b f^{2} x + a f^{2} + x^{2} e^{2}}{f^{2}}}\right ) + 3 \, {\left (16 \, a d^{2} f^{2} x^{2} e^{5} - 16 \, {\left (a b d f^{4} x^{2} + {\left (a^{2} d f^{4} - a d^{3} f^{2}\right )} x\right )} e^{4} + 4 \, {\left (a^{3} f^{6} - 2 \, a^{2} d^{2} f^{4} + a d^{4} f^{2} + {\left (a b^{2} f^{6} - b^{2} d^{2} f^{4}\right )} x^{2} + 2 \, {\left (a^{2} b f^{6} - a b d^{2} f^{4}\right )} x\right )} e^{3} + 4 \, {\left (b^{3} d f^{6} x^{2} + {\left (a b^{2} d f^{6} - b^{2} d^{3} f^{4}\right )} x\right )} e^{2} - {\left (b^{4} f^{8} x^{2} + a^{2} b^{2} f^{8} - 2 \, a b^{2} d^{2} f^{6} + b^{2} d^{4} f^{4} + 2 \, {\left (a b^{3} f^{8} - b^{3} d^{2} f^{6}\right )} x\right )} e\right )} \log \left (-b f^{2} x - a f^{2} + 2 \, d x e + d^{2}\right ) - 3 \, {\left (16 \, a d^{2} f^{2} x^{2} e^{5} - 16 \, {\left (a b d f^{4} x^{2} + {\left (a^{2} d f^{4} - a d^{3} f^{2}\right )} x\right )} e^{4} + 4 \, {\left (a^{3} f^{6} - 2 \, a^{2} d^{2} f^{4} + a d^{4} f^{2} + {\left (a b^{2} f^{6} - b^{2} d^{2} f^{4}\right )} x^{2} + 2 \, {\left (a^{2} b f^{6} - a b d^{2} f^{4}\right )} x\right )} e^{3} + 4 \, {\left (b^{3} d f^{6} x^{2} + {\left (a b^{2} d f^{6} - b^{2} d^{3} f^{4}\right )} x\right )} e^{2} - {\left (b^{4} f^{8} x^{2} + a^{2} b^{2} f^{8} - 2 \, a b^{2} d^{2} f^{6} + b^{2} d^{4} f^{4} + 2 \, {\left (a b^{3} f^{8} - b^{3} d^{2} f^{6}\right )} x\right )} e\right )} \log \left (-x e + f \sqrt {\frac {b f^{2} x + a f^{2} + x^{2} e^{2}}{f^{2}}} - d\right ) - 2 \, {\left (b^{4} f^{9} x + a b^{3} f^{9} + 16 \, d^{3} f x^{2} e^{5} - 12 \, {\left (2 \, b d^{2} f^{3} x^{2} + {\left (3 \, a d^{2} f^{3} - d^{4} f\right )} x\right )} e^{4} + 4 \, {\left (3 \, b^{2} d f^{5} x^{2} + 3 \, a^{2} d f^{5} - 5 \, a d^{3} f^{3} + {\left (9 \, a b d f^{5} - 2 \, b d^{3} f^{3}\right )} x\right )} e^{3} - {\left (2 \, b^{3} f^{7} x^{2} + 6 \, a^{2} b f^{7} - 12 \, a b d^{2} f^{5} - 6 \, b d^{4} f^{3} + 3 \, {\left (3 \, a b^{2} f^{7} - b^{2} d^{2} f^{5}\right )} x\right )} e^{2} - 3 \, {\left (b^{3} d f^{7} x + a b^{2} d f^{7} + b^{2} d^{3} f^{5}\right )} e\right )} \sqrt {\frac {b f^{2} x + a f^{2} + x^{2} e^{2}}{f^{2}}}}{b^{6} f^{12} x^{2} + a^{2} b^{4} f^{12} - 2 \, a b^{4} d^{2} f^{10} + b^{4} d^{4} f^{8} + 64 \, d^{6} x^{2} e^{6} + 2 \, {\left (a b^{5} f^{12} - b^{5} d^{2} f^{10}\right )} x - 64 \, {\left (3 \, b d^{5} f^{2} x^{2} + {\left (a d^{5} f^{2} - d^{7}\right )} x\right )} e^{5} + 16 \, {\left (15 \, b^{2} d^{4} f^{4} x^{2} + a^{2} d^{4} f^{4} - 2 \, a d^{6} f^{2} + d^{8} + 10 \, {\left (a b d^{4} f^{4} - b d^{6} f^{2}\right )} x\right )} e^{4} - 32 \, {\left (5 \, b^{3} d^{3} f^{6} x^{2} + a^{2} b d^{3} f^{6} - 2 \, a b d^{5} f^{4} + b d^{7} f^{2} + 5 \, {\left (a b^{2} d^{3} f^{6} - b^{2} d^{5} f^{4}\right )} x\right )} e^{3} + 4 \, {\left (15 \, b^{4} d^{2} f^{8} x^{2} + 6 \, a^{2} b^{2} d^{2} f^{8} - 12 \, a b^{2} d^{4} f^{6} + 6 \, b^{2} d^{6} f^{4} + 20 \, {\left (a b^{3} d^{2} f^{8} - b^{3} d^{4} f^{6}\right )} x\right )} e^{2} - 4 \, {\left (3 \, b^{5} d f^{10} x^{2} + 2 \, a^{2} b^{3} d f^{10} - 4 \, a b^{3} d^{3} f^{8} + 2 \, b^{3} d^{5} f^{6} + 5 \, {\left (a b^{4} d f^{10} - b^{4} d^{3} f^{8}\right )} x\right )} e} \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 (d + e x + f \sqrt {a + b x + \frac {e^{2} x^{2}}{f^{2}}}\right )^{3}}\, 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. 3015 vs.
\(2 (319) = 638\).
time = 11.77, size = 3015, normalized size = 9.14 \begin {gather*} \text {Too large to display} \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 \frac {1}{{\left (d+e\,x+f\,\sqrt {a+b\,x+\frac {e^2\,x^2}{f^2}}\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________