Optimal. Leaf size=335 \[ -\frac{\text{PolyLog}\left (2,\frac{2 \left (-e \left (b-\sqrt{b^2-4 a c}\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (-e \sqrt{b^2-4 a c}+b e-2 c d+2 c\right )}+1\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{PolyLog}\left (2,\frac{2 \left (-e \left (\sqrt{b^2-4 a c}+b\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (e \left (\sqrt{b^2-4 a c}+b\right )+2 c (1-d)\right )}+1\right )}{2 \sqrt{b^2-4 a c}}+\frac{\coth ^{-1}(d+e x) \log \left (\frac{2 e \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (b-\sqrt{b^2-4 a c}\right )+2 c (1-d)\right )}\right )}{\sqrt{b^2-4 a c}}-\frac{\coth ^{-1}(d+e x) \log \left (\frac{2 e \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (\sqrt{b^2-4 a c}+b\right )+2 c (1-d)\right )}\right )}{\sqrt{b^2-4 a c}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.748577, antiderivative size = 335, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.421, Rules used = {618, 206, 6728, 6112, 5921, 2402, 2315, 2447} \[ -\frac{\text{PolyLog}\left (2,\frac{2 \left (-e \left (b-\sqrt{b^2-4 a c}\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (-e \sqrt{b^2-4 a c}+b e-2 c d+2 c\right )}+1\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{PolyLog}\left (2,\frac{2 \left (-e \left (\sqrt{b^2-4 a c}+b\right )-2 c (d+e x)+2 c d\right )}{(d+e x+1) \left (e \left (\sqrt{b^2-4 a c}+b\right )+2 c (1-d)\right )}+1\right )}{2 \sqrt{b^2-4 a c}}+\frac{\coth ^{-1}(d+e x) \log \left (\frac{2 e \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (b-\sqrt{b^2-4 a c}\right )+2 c (1-d)\right )}\right )}{\sqrt{b^2-4 a c}}-\frac{\coth ^{-1}(d+e x) \log \left (\frac{2 e \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{(d+e x+1) \left (e \left (\sqrt{b^2-4 a c}+b\right )+2 c (1-d)\right )}\right )}{\sqrt{b^2-4 a c}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 618
Rule 206
Rule 6728
Rule 6112
Rule 5921
Rule 2402
Rule 2315
Rule 2447
Rubi steps
\begin{align*} \int \frac{\coth ^{-1}(d+e x)}{a+b x+c x^2} \, dx &=\int \left (\frac{2 c \coth ^{-1}(d+e x)}{\sqrt{b^2-4 a c} \left (b-\sqrt{b^2-4 a c}+2 c x\right )}-\frac{2 c \coth ^{-1}(d+e x)}{\sqrt{b^2-4 a c} \left (b+\sqrt{b^2-4 a c}+2 c x\right )}\right ) \, dx\\ &=\frac{(2 c) \int \frac{\coth ^{-1}(d+e x)}{b-\sqrt{b^2-4 a c}+2 c x} \, dx}{\sqrt{b^2-4 a c}}-\frac{(2 c) \int \frac{\coth ^{-1}(d+e x)}{b+\sqrt{b^2-4 a c}+2 c x} \, dx}{\sqrt{b^2-4 a c}}\\ &=\frac{(2 c) \operatorname{Subst}\left (\int \frac{\coth ^{-1}(x)}{\frac{-2 c d+\left (b-\sqrt{b^2-4 a c}\right ) e}{e}+\frac{2 c x}{e}} \, dx,x,d+e x\right )}{\sqrt{b^2-4 a c} e}-\frac{(2 c) \operatorname{Subst}\left (\int \frac{\coth ^{-1}(x)}{\frac{-2 c d+\left (b+\sqrt{b^2-4 a c}\right ) e}{e}+\frac{2 c x}{e}} \, dx,x,d+e x\right )}{\sqrt{b^2-4 a c} e}\\ &=\frac{\coth ^{-1}(d+e x) \log \left (\frac{2 e \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt{b^2-4 a c} e\right ) (1+d+e x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\coth ^{-1}(d+e x) \log \left (\frac{2 e \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt{b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\operatorname{Subst}\left (\int \frac{\log \left (\frac{2 \left (\frac{-2 c d+\left (b-\sqrt{b^2-4 a c}\right ) e}{e}+\frac{2 c x}{e}\right )}{\left (\frac{2 c}{e}+\frac{-2 c d+\left (b-\sqrt{b^2-4 a c}\right ) e}{e}\right ) (1+x)}\right )}{1-x^2} \, dx,x,d+e x\right )}{\sqrt{b^2-4 a c}}+\frac{\operatorname{Subst}\left (\int \frac{\log \left (\frac{2 \left (\frac{-2 c d+\left (b+\sqrt{b^2-4 a c}\right ) e}{e}+\frac{2 c x}{e}\right )}{\left (\frac{2 c}{e}+\frac{-2 c d+\left (b+\sqrt{b^2-4 a c}\right ) e}{e}\right ) (1+x)}\right )}{1-x^2} \, dx,x,d+e x\right )}{\sqrt{b^2-4 a c}}\\ &=\frac{\coth ^{-1}(d+e x) \log \left (\frac{2 e \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt{b^2-4 a c} e\right ) (1+d+e x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\coth ^{-1}(d+e x) \log \left (\frac{2 e \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt{b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{\sqrt{b^2-4 a c}}-\frac{\text{Li}_2\left (1-\frac{2 e \left (b-\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c-2 c d+b e-\sqrt{b^2-4 a c} e\right ) (1+d+e x)}\right )}{2 \sqrt{b^2-4 a c}}+\frac{\text{Li}_2\left (1-\frac{2 e \left (b+\sqrt{b^2-4 a c}+2 c x\right )}{\left (2 c (1-d)+\left (b+\sqrt{b^2-4 a c}\right ) e\right ) (1+d+e x)}\right )}{2 \sqrt{b^2-4 a c}}\\ \end{align*}
Mathematica [A] time = 0.898204, size = 596, normalized size = 1.78 \[ \frac{-\text{PolyLog}\left (2,\frac{e \left (\sqrt{b^2-4 a c}-b-2 c x\right )}{e \left (\sqrt{b^2-4 a c}-b\right )+2 c (d+1)}\right )+\text{PolyLog}\left (2,\frac{e \left (-\sqrt{b^2-4 a c}+b+2 c x\right )}{-e \sqrt{b^2-4 a c}+b e-2 c d+2 c}\right )-\text{PolyLog}\left (2,\frac{e \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{e \left (\sqrt{b^2-4 a c}+b\right )-2 c (d-1)}\right )+\text{PolyLog}\left (2,\frac{e \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{e \left (\sqrt{b^2-4 a c}+b\right )-2 c (d+1)}\right )+\log \left (-\sqrt{b^2-4 a c}+b+2 c x\right ) \log \left (\frac{2 c (d+e x-1)}{e \left (\sqrt{b^2-4 a c}-b\right )+2 c (d-1)}\right )-\log \left (\sqrt{b^2-4 a c}+b+2 c x\right ) \log \left (\frac{2 c (d+e x-1)}{2 c (d-1)-e \left (\sqrt{b^2-4 a c}+b\right )}\right )-\log \left (\frac{d+e x-1}{d+e x}\right ) \log \left (-\sqrt{b^2-4 a c}+b+2 c x\right )+\log \left (\frac{d+e x-1}{d+e x}\right ) \log \left (\sqrt{b^2-4 a c}+b+2 c x\right )-\log \left (-\sqrt{b^2-4 a c}+b+2 c x\right ) \log \left (\frac{2 c (d+e x+1)}{e \left (\sqrt{b^2-4 a c}-b\right )+2 c (d+1)}\right )+\log \left (\sqrt{b^2-4 a c}+b+2 c x\right ) \log \left (\frac{2 c (d+e x+1)}{2 c (d+1)-e \left (\sqrt{b^2-4 a c}+b\right )}\right )+\log \left (\frac{d+e x+1}{d+e x}\right ) \log \left (-\sqrt{b^2-4 a c}+b+2 c x\right )-\log \left (\frac{d+e x+1}{d+e x}\right ) \log \left (\sqrt{b^2-4 a c}+b+2 c x\right )}{2 \sqrt{b^2-4 a c}} \]
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.586, size = 2098, normalized size = 6.3 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\operatorname{arcoth}\left (e x + d\right )}{c x^{2} + b x + a}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\operatorname{arcoth}\left (e x + d\right )}{c x^{2} + b x + a}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]