Optimal. Leaf size=115 \[ -\frac{a+b \coth ^{-1}(c+d x)}{f (e+f x)}-\frac{b d \log (-c-d x+1)}{2 f (-c f+d e+f)}+\frac{b d \log (c+d x+1)}{2 f (-c f+d e-f)}-\frac{b d \log (e+f x)}{(-c f+d e+f) (d e-(c+1) f)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.168724, antiderivative size = 115, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 5, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.278, Rules used = {6110, 1982, 705, 31, 632} \[ -\frac{a+b \coth ^{-1}(c+d x)}{f (e+f x)}-\frac{b d \log (-c-d x+1)}{2 f (-c f+d e+f)}+\frac{b d \log (c+d x+1)}{2 f (-c f+d e-f)}-\frac{b d \log (e+f x)}{(-c f+d e+f) (d e-(c+1) f)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 6110
Rule 1982
Rule 705
Rule 31
Rule 632
Rubi steps
\begin{align*} \int \frac{a+b \coth ^{-1}(c+d x)}{(e+f x)^2} \, dx &=-\frac{a+b \coth ^{-1}(c+d x)}{f (e+f x)}+\frac{(b d) \int \frac{1}{(e+f x) \left (1-(c+d x)^2\right )} \, dx}{f}\\ &=-\frac{a+b \coth ^{-1}(c+d x)}{f (e+f x)}+\frac{(b d) \int \frac{1}{(e+f x) \left (1-c^2-2 c d x-d^2 x^2\right )} \, dx}{f}\\ &=-\frac{a+b \coth ^{-1}(c+d x)}{f (e+f x)}+\frac{(b d) \int \frac{-d^2 e+2 c d f+d^2 f x}{1-c^2-2 c d x-d^2 x^2} \, dx}{f \left (-d^2 e^2+2 c d e f+\left (1-c^2\right ) f^2\right )}+\frac{(b d f) \int \frac{1}{e+f x} \, dx}{-d^2 e^2+2 c d e f+\left (1-c^2\right ) f^2}\\ &=-\frac{a+b \coth ^{-1}(c+d x)}{f (e+f x)}-\frac{b d \log (e+f x)}{(d e-f-c f) (d e+f-c f)}-\frac{\left (b d^3\right ) \int \frac{1}{-d-c d-d^2 x} \, dx}{2 f (d e-f-c f)}+\frac{\left (b d^3\right ) \int \frac{1}{d-c d-d^2 x} \, dx}{2 f (d e+f-c f)}\\ &=-\frac{a+b \coth ^{-1}(c+d x)}{f (e+f x)}-\frac{b d \log (1-c-d x)}{2 f (d e+f-c f)}+\frac{b d \log (1+c+d x)}{2 f (d e-f-c f)}-\frac{b d \log (e+f x)}{(d e-f-c f) (d e+f-c f)}\\ \end{align*}
Mathematica [A] time = 0.200933, size = 125, normalized size = 1.09 \[ \frac{1}{2} \left (-\frac{2 a}{f (e+f x)}-\frac{2 b d \log (e+f x)}{\left (c^2-1\right ) f^2-2 c d e f+d^2 e^2}+\frac{b d \log (-c-d x+1)}{f ((c-1) f-d e)}-\frac{b d \log (c+d x+1)}{f (c f-d e+f)}-\frac{2 b \coth ^{-1}(c+d x)}{f (e+f x)}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.043, size = 141, normalized size = 1.2 \begin{align*} -{\frac{ad}{ \left ( dfx+de \right ) f}}-{\frac{bd{\rm arccoth} \left (dx+c\right )}{ \left ( dfx+de \right ) f}}+{\frac{bd\ln \left ( dx+c-1 \right ) }{f \left ( 2\,cf-2\,de-2\,f \right ) }}-{\frac{bd\ln \left ( dx+c+1 \right ) }{f \left ( 2\,cf-2\,de+2\,f \right ) }}-{\frac{bd\ln \left ( \left ( dx+c \right ) f-cf+de \right ) }{ \left ( cf-de-f \right ) \left ( cf-de+f \right ) }} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.996587, size = 163, normalized size = 1.42 \begin{align*} \frac{1}{2} \,{\left (d{\left (\frac{\log \left (d x + c + 1\right )}{d e f -{\left (c + 1\right )} f^{2}} - \frac{\log \left (d x + c - 1\right )}{d e f -{\left (c - 1\right )} f^{2}} - \frac{2 \, \log \left (f x + e\right )}{d^{2} e^{2} - 2 \, c d e f +{\left (c^{2} - 1\right )} f^{2}}\right )} - \frac{2 \, \operatorname{arcoth}\left (d x + c\right )}{f^{2} x + e f}\right )} b - \frac{a}{f^{2} x + e f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.11053, size = 583, normalized size = 5.07 \begin{align*} -\frac{2 \, a d^{2} e^{2} - 4 \, a c d e f + 2 \,{\left (a c^{2} - a\right )} f^{2} -{\left (b d^{2} e^{2} -{\left (b c - b\right )} d e f +{\left (b d^{2} e f -{\left (b c - b\right )} d f^{2}\right )} x\right )} \log \left (d x + c + 1\right ) +{\left (b d^{2} e^{2} -{\left (b c + b\right )} d e f +{\left (b d^{2} e f -{\left (b c + b\right )} d f^{2}\right )} x\right )} \log \left (d x + c - 1\right ) + 2 \,{\left (b d f^{2} x + b d e f\right )} \log \left (f x + e\right ) +{\left (b d^{2} e^{2} - 2 \, b c d e f +{\left (b c^{2} - b\right )} f^{2}\right )} \log \left (\frac{d x + c + 1}{d x + c - 1}\right )}{2 \,{\left (d^{2} e^{3} f - 2 \, c d e^{2} f^{2} +{\left (c^{2} - 1\right )} e f^{3} +{\left (d^{2} e^{2} f^{2} - 2 \, c d e f^{3} +{\left (c^{2} - 1\right )} f^{4}\right )} 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{b \operatorname{arcoth}\left (d x + c\right ) + a}{{\left (f x + e\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]