Optimal. Leaf size=130 \[ -\frac {b \text {b1}-a \text {c1}+(\text {b1} c-b \text {c1}) x}{4 \left (b^2-a c\right ) \left (a+2 b x+c x^2\right )^2}+\frac {3 (\text {b1} c-b \text {c1}) (b+c x)}{8 \left (b^2-a c\right )^2 \left (a+2 b x+c x^2\right )}-\frac {3 c (\text {b1} c-b \text {c1}) \tanh ^{-1}\left (\frac {b+c x}{\sqrt {b^2-a c}}\right )}{8 \left (b^2-a c\right )^{5/2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 130, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {652, 628, 632,
212} \begin {gather*} \frac {3 (b+c x) (\text {b1} c-b \text {c1})}{8 \left (b^2-a c\right )^2 \left (a+2 b x+c x^2\right )}-\frac {-a \text {c1}+x (\text {b1} c-b \text {c1})+b \text {b1}}{4 \left (b^2-a c\right ) \left (a+2 b x+c x^2\right )^2}-\frac {3 c (\text {b1} c-b \text {c1}) \tanh ^{-1}\left (\frac {b+c x}{\sqrt {b^2-a c}}\right )}{8 \left (b^2-a c\right )^{5/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 628
Rule 632
Rule 652
Rubi steps
\begin {align*} \int \frac {\text {b1}+\text {c1} x}{\left (a+2 b x+c x^2\right )^3} \, dx &=-\frac {b \text {b1}-a \text {c1}+(\text {b1} c-b \text {c1}) x}{4 \left (b^2-a c\right ) \left (a+2 b x+c x^2\right )^2}-\frac {(3 (\text {b1} c-b \text {c1})) \int \frac {1}{\left (a+2 b x+c x^2\right )^2} \, dx}{4 \left (b^2-a c\right )}\\ &=-\frac {b \text {b1}-a \text {c1}+(\text {b1} c-b \text {c1}) x}{4 \left (b^2-a c\right ) \left (a+2 b x+c x^2\right )^2}+\frac {3 (\text {b1} c-b \text {c1}) (b+c x)}{8 \left (b^2-a c\right )^2 \left (a+2 b x+c x^2\right )}+\frac {(3 c (\text {b1} c-b \text {c1})) \int \frac {1}{a+2 b x+c x^2} \, dx}{8 \left (b^2-a c\right )^2}\\ &=-\frac {b \text {b1}-a \text {c1}+(\text {b1} c-b \text {c1}) x}{4 \left (b^2-a c\right ) \left (a+2 b x+c x^2\right )^2}+\frac {3 (\text {b1} c-b \text {c1}) (b+c x)}{8 \left (b^2-a c\right )^2 \left (a+2 b x+c x^2\right )}-\frac {(3 c (\text {b1} c-b \text {c1})) \text {Subst}\left (\int \frac {1}{4 \left (b^2-a c\right )-x^2} \, dx,x,2 b+2 c x\right )}{4 \left (b^2-a c\right )^2}\\ &=-\frac {b \text {b1}-a \text {c1}+(\text {b1} c-b \text {c1}) x}{4 \left (b^2-a c\right ) \left (a+2 b x+c x^2\right )^2}+\frac {3 (\text {b1} c-b \text {c1}) (b+c x)}{8 \left (b^2-a c\right )^2 \left (a+2 b x+c x^2\right )}-\frac {3 c (\text {b1} c-b \text {c1}) \tanh ^{-1}\left (\frac {b+c x}{\sqrt {b^2-a c}}\right )}{8 \left (b^2-a c\right )^{5/2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 127, normalized size = 0.98 \begin {gather*} \frac {\frac {2 \left (b^2-a c\right ) (-b \text {b1}+a \text {c1}-\text {b1} c x+b \text {c1} x)}{(a+x (2 b+c x))^2}+\frac {3 (\text {b1} c-b \text {c1}) (b+c x)}{a+x (2 b+c x)}+\frac {3 c (\text {b1} c-b \text {c1}) \tan ^{-1}\left (\frac {b+c x}{\sqrt {-b^2+a c}}\right )}{\sqrt {-b^2+a c}}}{8 \left (b^2-a c\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.11, size = 155, normalized size = 1.19
method | result | size |
default | \(\frac {\left (-2 b \mathit {c1} +2 \mathit {b1} c \right ) x +2 b \mathit {b1} -2 a \mathit {c1}}{2 \left (4 a c -4 b^{2}\right ) \left (c \,x^{2}+2 b x +a \right )^{2}}+\frac {3 \left (-2 b \mathit {c1} +2 \mathit {b1} c \right ) \left (\frac {2 c x +2 b}{\left (4 a c -4 b^{2}\right ) \left (c \,x^{2}+2 b x +a \right )}+\frac {2 c \arctan \left (\frac {2 c x +2 b}{2 \sqrt {a c -b^{2}}}\right )}{\left (4 a c -4 b^{2}\right ) \sqrt {a c -b^{2}}}\right )}{2 \left (4 a c -4 b^{2}\right )}\) | \(155\) |
risch | \(\frac {-\frac {3 c^{2} \left (b \mathit {c1} -\mathit {b1} c \right ) x^{3}}{8 \left (a^{2} c^{2}-2 a \,b^{2} c +b^{4}\right )}-\frac {9 b c \left (b \mathit {c1} -\mathit {b1} c \right ) x^{2}}{8 \left (a^{2} c^{2}-2 a \,b^{2} c +b^{4}\right )}-\frac {\left (5 a c +4 b^{2}\right ) \left (b \mathit {c1} -\mathit {b1} c \right ) x}{8 \left (a^{2} c^{2}-2 a \,b^{2} c +b^{4}\right )}-\frac {2 a^{2} c \mathit {c1} +a \,b^{2} \mathit {c1} -5 a b \mathit {b1} c +2 b^{3} \mathit {b1}}{8 \left (a^{2} c^{2}-2 a \,b^{2} c +b^{4}\right )}}{\left (c \,x^{2}+2 b x +a \right )^{2}}-\frac {3 c \ln \left (\left (a^{2} c^{3}-2 a \,b^{2} c^{2}+b^{4} c \right ) x -\left (-a c +b^{2}\right )^{\frac {5}{2}}+a^{2} b \,c^{2}-2 a \,b^{3} c +b^{5}\right ) b \mathit {c1}}{16 \left (-a c +b^{2}\right )^{\frac {5}{2}}}+\frac {3 c^{2} \ln \left (\left (a^{2} c^{3}-2 a \,b^{2} c^{2}+b^{4} c \right ) x -\left (-a c +b^{2}\right )^{\frac {5}{2}}+a^{2} b \,c^{2}-2 a \,b^{3} c +b^{5}\right ) \mathit {b1}}{16 \left (-a c +b^{2}\right )^{\frac {5}{2}}}+\frac {3 c \ln \left (\left (-a^{2} c^{3}+2 a \,b^{2} c^{2}-b^{4} c \right ) x -\left (-a c +b^{2}\right )^{\frac {5}{2}}-a^{2} b \,c^{2}+2 a \,b^{3} c -b^{5}\right ) b \mathit {c1}}{16 \left (-a c +b^{2}\right )^{\frac {5}{2}}}-\frac {3 c^{2} \ln \left (\left (-a^{2} c^{3}+2 a \,b^{2} c^{2}-b^{4} c \right ) x -\left (-a c +b^{2}\right )^{\frac {5}{2}}-a^{2} b \,c^{2}+2 a \,b^{3} c -b^{5}\right ) \mathit {b1}}{16 \left (-a c +b^{2}\right )^{\frac {5}{2}}}\) | \(473\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \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. 539 vs.
\(2 (120) = 240\).
time = 0.43, size = 1104, normalized size = 8.49 \begin {gather*} \left [-\frac {4 \, b^{5} b_{1} - 14 \, a b^{3} b_{1} c + 10 \, a^{2} b b_{1} c^{2} - 6 \, {\left (b^{2} b_{1} c^{3} - a b_{1} c^{4} - {\left (b^{3} c^{2} - a b c^{3}\right )} c_{1}\right )} x^{3} - 18 \, {\left (b^{3} b_{1} c^{2} - a b b_{1} c^{3} - {\left (b^{4} c - a b^{2} c^{2}\right )} c_{1}\right )} x^{2} + 3 \, {\left (a^{2} b_{1} c^{2} - a^{2} b c c_{1} + {\left (b_{1} c^{4} - b c^{3} c_{1}\right )} x^{4} + 4 \, {\left (b b_{1} c^{3} - b^{2} c^{2} c_{1}\right )} x^{3} + 2 \, {\left (2 \, b^{2} b_{1} c^{2} + a b_{1} c^{3} - {\left (2 \, b^{3} c + a b c^{2}\right )} c_{1}\right )} x^{2} + 4 \, {\left (a b b_{1} c^{2} - a b^{2} c c_{1}\right )} x\right )} \sqrt {b^{2} - a c} \log \left (\frac {c^{2} x^{2} + 2 \, b c x + 2 \, b^{2} - a c + 2 \, \sqrt {b^{2} - a c} {\left (c x + b\right )}}{c x^{2} + 2 \, b x + a}\right ) + 2 \, {\left (a b^{4} + a^{2} b^{2} c - 2 \, a^{3} c^{2}\right )} c_{1} - 2 \, {\left (4 \, b^{4} b_{1} c + a b^{2} b_{1} c^{2} - 5 \, a^{2} b_{1} c^{3} - {\left (4 \, b^{5} + a b^{3} c - 5 \, a^{2} b c^{2}\right )} c_{1}\right )} x}{16 \, {\left (a^{2} b^{6} - 3 \, a^{3} b^{4} c + 3 \, a^{4} b^{2} c^{2} - a^{5} c^{3} + {\left (b^{6} c^{2} - 3 \, a b^{4} c^{3} + 3 \, a^{2} b^{2} c^{4} - a^{3} c^{5}\right )} x^{4} + 4 \, {\left (b^{7} c - 3 \, a b^{5} c^{2} + 3 \, a^{2} b^{3} c^{3} - a^{3} b c^{4}\right )} x^{3} + 2 \, {\left (2 \, b^{8} - 5 \, a b^{6} c + 3 \, a^{2} b^{4} c^{2} + a^{3} b^{2} c^{3} - a^{4} c^{4}\right )} x^{2} + 4 \, {\left (a b^{7} - 3 \, a^{2} b^{5} c + 3 \, a^{3} b^{3} c^{2} - a^{4} b c^{3}\right )} x\right )}}, -\frac {2 \, b^{5} b_{1} - 7 \, a b^{3} b_{1} c + 5 \, a^{2} b b_{1} c^{2} - 3 \, {\left (b^{2} b_{1} c^{3} - a b_{1} c^{4} - {\left (b^{3} c^{2} - a b c^{3}\right )} c_{1}\right )} x^{3} - 9 \, {\left (b^{3} b_{1} c^{2} - a b b_{1} c^{3} - {\left (b^{4} c - a b^{2} c^{2}\right )} c_{1}\right )} x^{2} + 3 \, {\left (a^{2} b_{1} c^{2} - a^{2} b c c_{1} + {\left (b_{1} c^{4} - b c^{3} c_{1}\right )} x^{4} + 4 \, {\left (b b_{1} c^{3} - b^{2} c^{2} c_{1}\right )} x^{3} + 2 \, {\left (2 \, b^{2} b_{1} c^{2} + a b_{1} c^{3} - {\left (2 \, b^{3} c + a b c^{2}\right )} c_{1}\right )} x^{2} + 4 \, {\left (a b b_{1} c^{2} - a b^{2} c c_{1}\right )} x\right )} \sqrt {-b^{2} + a c} \arctan \left (-\frac {\sqrt {-b^{2} + a c} {\left (c x + b\right )}}{b^{2} - a c}\right ) + {\left (a b^{4} + a^{2} b^{2} c - 2 \, a^{3} c^{2}\right )} c_{1} - {\left (4 \, b^{4} b_{1} c + a b^{2} b_{1} c^{2} - 5 \, a^{2} b_{1} c^{3} - {\left (4 \, b^{5} + a b^{3} c - 5 \, a^{2} b c^{2}\right )} c_{1}\right )} x}{8 \, {\left (a^{2} b^{6} - 3 \, a^{3} b^{4} c + 3 \, a^{4} b^{2} c^{2} - a^{5} c^{3} + {\left (b^{6} c^{2} - 3 \, a b^{4} c^{3} + 3 \, a^{2} b^{2} c^{4} - a^{3} c^{5}\right )} x^{4} + 4 \, {\left (b^{7} c - 3 \, a b^{5} c^{2} + 3 \, a^{2} b^{3} c^{3} - a^{3} b c^{4}\right )} x^{3} + 2 \, {\left (2 \, b^{8} - 5 \, a b^{6} c + 3 \, a^{2} b^{4} c^{2} + a^{3} b^{2} c^{3} - a^{4} c^{4}\right )} x^{2} + 4 \, {\left (a b^{7} - 3 \, a^{2} b^{5} c + 3 \, a^{3} b^{3} c^{2} - a^{4} b c^{3}\right )} x\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 622 vs.
\(2 (117) = 234\).
time = 0.99, size = 622, normalized size = 4.78 \begin {gather*} \frac {3 c \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) \log {\left (x + \frac {- 3 a^{3} c^{4} \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) + 9 a^{2} b^{2} c^{3} \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) - 9 a b^{4} c^{2} \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) + 3 b^{6} c \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) + 3 b^{2} c c_{1} - 3 b b_{1} c^{2}}{3 b c^{2} c_{1} - 3 b_{1} c^{3}} \right )}}{16} - \frac {3 c \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) \log {\left (x + \frac {3 a^{3} c^{4} \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) - 9 a^{2} b^{2} c^{3} \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) + 9 a b^{4} c^{2} \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) - 3 b^{6} c \sqrt {- \frac {1}{\left (a c - b^{2}\right )^{5}}} \left (b c_{1} - b_{1} c\right ) + 3 b^{2} c c_{1} - 3 b b_{1} c^{2}}{3 b c^{2} c_{1} - 3 b_{1} c^{3}} \right )}}{16} + \frac {- 2 a^{2} c c_{1} - a b^{2} c_{1} + 5 a b b_{1} c - 2 b^{3} b_{1} + x^{3} \left (- 3 b c^{2} c_{1} + 3 b_{1} c^{3}\right ) + x^{2} \left (- 9 b^{2} c c_{1} + 9 b b_{1} c^{2}\right ) + x \left (- 5 a b c c_{1} + 5 a b_{1} c^{2} - 4 b^{3} c_{1} + 4 b^{2} b_{1} c\right )}{8 a^{4} c^{2} - 16 a^{3} b^{2} c + 8 a^{2} b^{4} + x^{4} \cdot \left (8 a^{2} c^{4} - 16 a b^{2} c^{3} + 8 b^{4} c^{2}\right ) + x^{3} \cdot \left (32 a^{2} b c^{3} - 64 a b^{3} c^{2} + 32 b^{5} c\right ) + x^{2} \cdot \left (16 a^{3} c^{3} - 48 a b^{4} c + 32 b^{6}\right ) + x \left (32 a^{3} b c^{2} - 64 a^{2} b^{3} c + 32 a b^{5}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.18, size = 194, normalized size = 1.49 \begin {gather*} \frac {3 \, {\left (b_{1} c^{2} - b c c_{1}\right )} \arctan \left (\frac {c x + b}{\sqrt {-b^{2} + a c}}\right )}{8 \, {\left (b^{4} - 2 \, a b^{2} c + a^{2} c^{2}\right )} \sqrt {-b^{2} + a c}} + \frac {3 \, b_{1} c^{3} x^{3} - 3 \, b c^{2} c_{1} x^{3} + 9 \, b b_{1} c^{2} x^{2} - 9 \, b^{2} c c_{1} x^{2} + 4 \, b^{2} b_{1} c x + 5 \, a b_{1} c^{2} x - 4 \, b^{3} c_{1} x - 5 \, a b c c_{1} x - 2 \, b^{3} b_{1} + 5 \, a b b_{1} c - a b^{2} c_{1} - 2 \, a^{2} c c_{1}}{8 \, {\left (b^{4} - 2 \, a b^{2} c + a^{2} c^{2}\right )} {\left (c x^{2} + 2 \, b x + a\right )}^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.50, size = 360, normalized size = 2.77 \begin {gather*} \frac {3\,c\,\mathrm {atan}\left (\frac {8\,\left (\frac {3\,c^2\,x\,\left (b\,c_{1}-b_{1}\,c\right )}{8\,{\left (a\,c-b^2\right )}^{5/2}}+\frac {3\,c\,\left (b\,c_{1}-b_{1}\,c\right )\,\left (16\,a^2\,b\,c^2-32\,a\,b^3\,c+16\,b^5\right )}{128\,{\left (a\,c-b^2\right )}^{5/2}\,\left (a^2\,c^2-2\,a\,b^2\,c+b^4\right )}\right )\,\left (a^2\,c^2-2\,a\,b^2\,c+b^4\right )}{3\,b_{1}\,c^2-3\,b\,c\,c_{1}}\right )\,\left (b\,c_{1}-b_{1}\,c\right )}{8\,{\left (a\,c-b^2\right )}^{5/2}}-\frac {\frac {2\,c\,c_{1}\,a^2+c_{1}\,a\,b^2-5\,b_{1}\,c\,a\,b+2\,b_{1}\,b^3}{8\,\left (a^2\,c^2-2\,a\,b^2\,c+b^4\right )}+\frac {x\,\left (4\,b^2+5\,a\,c\right )\,\left (b\,c_{1}-b_{1}\,c\right )}{8\,\left (a^2\,c^2-2\,a\,b^2\,c+b^4\right )}+\frac {3\,c^2\,x^3\,\left (b\,c_{1}-b_{1}\,c\right )}{8\,\left (a^2\,c^2-2\,a\,b^2\,c+b^4\right )}+\frac {9\,b\,c\,x^2\,\left (b\,c_{1}-b_{1}\,c\right )}{8\,\left (a^2\,c^2-2\,a\,b^2\,c+b^4\right )}}{a^2+x^2\,\left (4\,b^2+2\,a\,c\right )+c^2\,x^4+4\,a\,b\,x+4\,b\,c\,x^3} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________