### 3.1825 $$\int \frac{a+b x}{(a c+(b c+a d) x+b d x^2)^3} \, dx$$

Optimal. Leaf size=110 $-\frac{b^2}{(a+b x) (b c-a d)^3}-\frac{3 b^2 d \log (a+b x)}{(b c-a d)^4}+\frac{3 b^2 d \log (c+d x)}{(b c-a d)^4}-\frac{2 b d}{(c+d x) (b c-a d)^3}-\frac{d}{2 (c+d x)^2 (b c-a d)^2}$

[Out]

-(b^2/((b*c - a*d)^3*(a + b*x))) - d/(2*(b*c - a*d)^2*(c + d*x)^2) - (2*b*d)/((b*c - a*d)^3*(c + d*x)) - (3*b^
2*d*Log[a + b*x])/(b*c - a*d)^4 + (3*b^2*d*Log[c + d*x])/(b*c - a*d)^4

________________________________________________________________________________________

Rubi [A]  time = 0.0764191, antiderivative size = 110, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 27, $$\frac{\text{number of rules}}{\text{integrand size}}$$ = 0.074, Rules used = {626, 44} $-\frac{b^2}{(a+b x) (b c-a d)^3}-\frac{3 b^2 d \log (a+b x)}{(b c-a d)^4}+\frac{3 b^2 d \log (c+d x)}{(b c-a d)^4}-\frac{2 b d}{(c+d x) (b c-a d)^3}-\frac{d}{2 (c+d x)^2 (b c-a d)^2}$

Antiderivative was successfully veriﬁed.

[In]

Int[(a + b*x)/(a*c + (b*c + a*d)*x + b*d*x^2)^3,x]

[Out]

-(b^2/((b*c - a*d)^3*(a + b*x))) - d/(2*(b*c - a*d)^2*(c + d*x)^2) - (2*b*d)/((b*c - a*d)^3*(c + d*x)) - (3*b^
2*d*Log[a + b*x])/(b*c - a*d)^4 + (3*b^2*d*Log[c + d*x])/(b*c - a*d)^4

Rule 626

Int[((d_) + (e_.)*(x_))^(m_.)*((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[(d + e*x)^(m + p)*(a
/d + (c*x)/e)^p, x] /; FreeQ[{a, b, c, d, e, m}, x] && NeQ[b^2 - 4*a*c, 0] && EqQ[c*d^2 - b*d*e + a*e^2, 0] &&
IntegerQ[p]

Rule 44

Int[((a_) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*
x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && L
tQ[m + n + 2, 0])

Rubi steps

\begin{align*} \int \frac{a+b x}{\left (a c+(b c+a d) x+b d x^2\right )^3} \, dx &=\int \frac{1}{(a+b x)^2 (c+d x)^3} \, dx\\ &=\int \left (\frac{b^3}{(b c-a d)^3 (a+b x)^2}-\frac{3 b^3 d}{(b c-a d)^4 (a+b x)}+\frac{d^2}{(b c-a d)^2 (c+d x)^3}+\frac{2 b d^2}{(b c-a d)^3 (c+d x)^2}+\frac{3 b^2 d^2}{(b c-a d)^4 (c+d x)}\right ) \, dx\\ &=-\frac{b^2}{(b c-a d)^3 (a+b x)}-\frac{d}{2 (b c-a d)^2 (c+d x)^2}-\frac{2 b d}{(b c-a d)^3 (c+d x)}-\frac{3 b^2 d \log (a+b x)}{(b c-a d)^4}+\frac{3 b^2 d \log (c+d x)}{(b c-a d)^4}\\ \end{align*}

Mathematica [A]  time = 0.0950963, size = 97, normalized size = 0.88 $-\frac{\frac{2 b^2 (b c-a d)}{a+b x}+6 b^2 d \log (a+b x)+\frac{4 b d (b c-a d)}{c+d x}+\frac{d (b c-a d)^2}{(c+d x)^2}-6 b^2 d \log (c+d x)}{2 (b c-a d)^4}$

Antiderivative was successfully veriﬁed.

[In]

Integrate[(a + b*x)/(a*c + (b*c + a*d)*x + b*d*x^2)^3,x]

[Out]

-((2*b^2*(b*c - a*d))/(a + b*x) + (d*(b*c - a*d)^2)/(c + d*x)^2 + (4*b*d*(b*c - a*d))/(c + d*x) + 6*b^2*d*Log[
a + b*x] - 6*b^2*d*Log[c + d*x])/(2*(b*c - a*d)^4)

________________________________________________________________________________________

Maple [A]  time = 0.053, size = 108, normalized size = 1. \begin{align*} -{\frac{d}{2\, \left ( ad-bc \right ) ^{2} \left ( dx+c \right ) ^{2}}}+3\,{\frac{{b}^{2}d\ln \left ( dx+c \right ) }{ \left ( ad-bc \right ) ^{4}}}+2\,{\frac{bd}{ \left ( ad-bc \right ) ^{3} \left ( dx+c \right ) }}+{\frac{{b}^{2}}{ \left ( ad-bc \right ) ^{3} \left ( bx+a \right ) }}-3\,{\frac{{b}^{2}d\ln \left ( bx+a \right ) }{ \left ( ad-bc \right ) ^{4}}} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

int((b*x+a)/(a*c+(a*d+b*c)*x+b*d*x^2)^3,x)

[Out]

-1/2*d/(a*d-b*c)^2/(d*x+c)^2+3*d/(a*d-b*c)^4*b^2*ln(d*x+c)+2*d/(a*d-b*c)^3*b/(d*x+c)+b^2/(a*d-b*c)^3/(b*x+a)-3
*d/(a*d-b*c)^4*b^2*ln(b*x+a)

________________________________________________________________________________________

Maxima [B]  time = 1.30531, size = 521, normalized size = 4.74 \begin{align*} -\frac{3 \, b^{2} d \log \left (b x + a\right )}{b^{4} c^{4} - 4 \, a b^{3} c^{3} d + 6 \, a^{2} b^{2} c^{2} d^{2} - 4 \, a^{3} b c d^{3} + a^{4} d^{4}} + \frac{3 \, b^{2} d \log \left (d x + c\right )}{b^{4} c^{4} - 4 \, a b^{3} c^{3} d + 6 \, a^{2} b^{2} c^{2} d^{2} - 4 \, a^{3} b c d^{3} + a^{4} d^{4}} - \frac{6 \, b^{2} d^{2} x^{2} + 2 \, b^{2} c^{2} + 5 \, a b c d - a^{2} d^{2} + 3 \,{\left (3 \, b^{2} c d + a b d^{2}\right )} x}{2 \,{\left (a b^{3} c^{5} - 3 \, a^{2} b^{2} c^{4} d + 3 \, a^{3} b c^{3} d^{2} - a^{4} c^{2} d^{3} +{\left (b^{4} c^{3} d^{2} - 3 \, a b^{3} c^{2} d^{3} + 3 \, a^{2} b^{2} c d^{4} - a^{3} b d^{5}\right )} x^{3} +{\left (2 \, b^{4} c^{4} d - 5 \, a b^{3} c^{3} d^{2} + 3 \, a^{2} b^{2} c^{2} d^{3} + a^{3} b c d^{4} - a^{4} d^{5}\right )} x^{2} +{\left (b^{4} c^{5} - a b^{3} c^{4} d - 3 \, a^{2} b^{2} c^{3} d^{2} + 5 \, a^{3} b c^{2} d^{3} - 2 \, a^{4} c d^{4}\right )} x\right )}} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)/(a*c+(a*d+b*c)*x+b*d*x^2)^3,x, algorithm="maxima")

[Out]

-3*b^2*d*log(b*x + a)/(b^4*c^4 - 4*a*b^3*c^3*d + 6*a^2*b^2*c^2*d^2 - 4*a^3*b*c*d^3 + a^4*d^4) + 3*b^2*d*log(d*
x + c)/(b^4*c^4 - 4*a*b^3*c^3*d + 6*a^2*b^2*c^2*d^2 - 4*a^3*b*c*d^3 + a^4*d^4) - 1/2*(6*b^2*d^2*x^2 + 2*b^2*c^
2 + 5*a*b*c*d - a^2*d^2 + 3*(3*b^2*c*d + a*b*d^2)*x)/(a*b^3*c^5 - 3*a^2*b^2*c^4*d + 3*a^3*b*c^3*d^2 - a^4*c^2*
d^3 + (b^4*c^3*d^2 - 3*a*b^3*c^2*d^3 + 3*a^2*b^2*c*d^4 - a^3*b*d^5)*x^3 + (2*b^4*c^4*d - 5*a*b^3*c^3*d^2 + 3*a
^2*b^2*c^2*d^3 + a^3*b*c*d^4 - a^4*d^5)*x^2 + (b^4*c^5 - a*b^3*c^4*d - 3*a^2*b^2*c^3*d^2 + 5*a^3*b*c^2*d^3 - 2
*a^4*c*d^4)*x)

________________________________________________________________________________________

Fricas [B]  time = 1.65349, size = 991, normalized size = 9.01 \begin{align*} -\frac{2 \, b^{3} c^{3} + 3 \, a b^{2} c^{2} d - 6 \, a^{2} b c d^{2} + a^{3} d^{3} + 6 \,{\left (b^{3} c d^{2} - a b^{2} d^{3}\right )} x^{2} + 3 \,{\left (3 \, b^{3} c^{2} d - 2 \, a b^{2} c d^{2} - a^{2} b d^{3}\right )} x + 6 \,{\left (b^{3} d^{3} x^{3} + a b^{2} c^{2} d +{\left (2 \, b^{3} c d^{2} + a b^{2} d^{3}\right )} x^{2} +{\left (b^{3} c^{2} d + 2 \, a b^{2} c d^{2}\right )} x\right )} \log \left (b x + a\right ) - 6 \,{\left (b^{3} d^{3} x^{3} + a b^{2} c^{2} d +{\left (2 \, b^{3} c d^{2} + a b^{2} d^{3}\right )} x^{2} +{\left (b^{3} c^{2} d + 2 \, a b^{2} c d^{2}\right )} x\right )} \log \left (d x + c\right )}{2 \,{\left (a b^{4} c^{6} - 4 \, a^{2} b^{3} c^{5} d + 6 \, a^{3} b^{2} c^{4} d^{2} - 4 \, a^{4} b c^{3} d^{3} + a^{5} c^{2} d^{4} +{\left (b^{5} c^{4} d^{2} - 4 \, a b^{4} c^{3} d^{3} + 6 \, a^{2} b^{3} c^{2} d^{4} - 4 \, a^{3} b^{2} c d^{5} + a^{4} b d^{6}\right )} x^{3} +{\left (2 \, b^{5} c^{5} d - 7 \, a b^{4} c^{4} d^{2} + 8 \, a^{2} b^{3} c^{3} d^{3} - 2 \, a^{3} b^{2} c^{2} d^{4} - 2 \, a^{4} b c d^{5} + a^{5} d^{6}\right )} x^{2} +{\left (b^{5} c^{6} - 2 \, a b^{4} c^{5} d - 2 \, a^{2} b^{3} c^{4} d^{2} + 8 \, a^{3} b^{2} c^{3} d^{3} - 7 \, a^{4} b c^{2} d^{4} + 2 \, a^{5} c d^{5}\right )} x\right )}} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)/(a*c+(a*d+b*c)*x+b*d*x^2)^3,x, algorithm="fricas")

[Out]

-1/2*(2*b^3*c^3 + 3*a*b^2*c^2*d - 6*a^2*b*c*d^2 + a^3*d^3 + 6*(b^3*c*d^2 - a*b^2*d^3)*x^2 + 3*(3*b^3*c^2*d - 2
*a*b^2*c*d^2 - a^2*b*d^3)*x + 6*(b^3*d^3*x^3 + a*b^2*c^2*d + (2*b^3*c*d^2 + a*b^2*d^3)*x^2 + (b^3*c^2*d + 2*a*
b^2*c*d^2)*x)*log(b*x + a) - 6*(b^3*d^3*x^3 + a*b^2*c^2*d + (2*b^3*c*d^2 + a*b^2*d^3)*x^2 + (b^3*c^2*d + 2*a*b
^2*c*d^2)*x)*log(d*x + c))/(a*b^4*c^6 - 4*a^2*b^3*c^5*d + 6*a^3*b^2*c^4*d^2 - 4*a^4*b*c^3*d^3 + a^5*c^2*d^4 +
(b^5*c^4*d^2 - 4*a*b^4*c^3*d^3 + 6*a^2*b^3*c^2*d^4 - 4*a^3*b^2*c*d^5 + a^4*b*d^6)*x^3 + (2*b^5*c^5*d - 7*a*b^4
*c^4*d^2 + 8*a^2*b^3*c^3*d^3 - 2*a^3*b^2*c^2*d^4 - 2*a^4*b*c*d^5 + a^5*d^6)*x^2 + (b^5*c^6 - 2*a*b^4*c^5*d - 2
*a^2*b^3*c^4*d^2 + 8*a^3*b^2*c^3*d^3 - 7*a^4*b*c^2*d^4 + 2*a^5*c*d^5)*x)

________________________________________________________________________________________

Sympy [B]  time = 3.53382, size = 632, normalized size = 5.75 \begin{align*} \frac{3 b^{2} d \log{\left (x + \frac{- \frac{3 a^{5} b^{2} d^{6}}{\left (a d - b c\right )^{4}} + \frac{15 a^{4} b^{3} c d^{5}}{\left (a d - b c\right )^{4}} - \frac{30 a^{3} b^{4} c^{2} d^{4}}{\left (a d - b c\right )^{4}} + \frac{30 a^{2} b^{5} c^{3} d^{3}}{\left (a d - b c\right )^{4}} - \frac{15 a b^{6} c^{4} d^{2}}{\left (a d - b c\right )^{4}} + 3 a b^{2} d^{2} + \frac{3 b^{7} c^{5} d}{\left (a d - b c\right )^{4}} + 3 b^{3} c d}{6 b^{3} d^{2}} \right )}}{\left (a d - b c\right )^{4}} - \frac{3 b^{2} d \log{\left (x + \frac{\frac{3 a^{5} b^{2} d^{6}}{\left (a d - b c\right )^{4}} - \frac{15 a^{4} b^{3} c d^{5}}{\left (a d - b c\right )^{4}} + \frac{30 a^{3} b^{4} c^{2} d^{4}}{\left (a d - b c\right )^{4}} - \frac{30 a^{2} b^{5} c^{3} d^{3}}{\left (a d - b c\right )^{4}} + \frac{15 a b^{6} c^{4} d^{2}}{\left (a d - b c\right )^{4}} + 3 a b^{2} d^{2} - \frac{3 b^{7} c^{5} d}{\left (a d - b c\right )^{4}} + 3 b^{3} c d}{6 b^{3} d^{2}} \right )}}{\left (a d - b c\right )^{4}} + \frac{- a^{2} d^{2} + 5 a b c d + 2 b^{2} c^{2} + 6 b^{2} d^{2} x^{2} + x \left (3 a b d^{2} + 9 b^{2} c d\right )}{2 a^{4} c^{2} d^{3} - 6 a^{3} b c^{3} d^{2} + 6 a^{2} b^{2} c^{4} d - 2 a b^{3} c^{5} + x^{3} \left (2 a^{3} b d^{5} - 6 a^{2} b^{2} c d^{4} + 6 a b^{3} c^{2} d^{3} - 2 b^{4} c^{3} d^{2}\right ) + x^{2} \left (2 a^{4} d^{5} - 2 a^{3} b c d^{4} - 6 a^{2} b^{2} c^{2} d^{3} + 10 a b^{3} c^{3} d^{2} - 4 b^{4} c^{4} d\right ) + x \left (4 a^{4} c d^{4} - 10 a^{3} b c^{2} d^{3} + 6 a^{2} b^{2} c^{3} d^{2} + 2 a b^{3} c^{4} d - 2 b^{4} c^{5}\right )} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)/(a*c+(a*d+b*c)*x+b*d*x**2)**3,x)

[Out]

3*b**2*d*log(x + (-3*a**5*b**2*d**6/(a*d - b*c)**4 + 15*a**4*b**3*c*d**5/(a*d - b*c)**4 - 30*a**3*b**4*c**2*d*
*4/(a*d - b*c)**4 + 30*a**2*b**5*c**3*d**3/(a*d - b*c)**4 - 15*a*b**6*c**4*d**2/(a*d - b*c)**4 + 3*a*b**2*d**2
+ 3*b**7*c**5*d/(a*d - b*c)**4 + 3*b**3*c*d)/(6*b**3*d**2))/(a*d - b*c)**4 - 3*b**2*d*log(x + (3*a**5*b**2*d*
*6/(a*d - b*c)**4 - 15*a**4*b**3*c*d**5/(a*d - b*c)**4 + 30*a**3*b**4*c**2*d**4/(a*d - b*c)**4 - 30*a**2*b**5*
c**3*d**3/(a*d - b*c)**4 + 15*a*b**6*c**4*d**2/(a*d - b*c)**4 + 3*a*b**2*d**2 - 3*b**7*c**5*d/(a*d - b*c)**4 +
3*b**3*c*d)/(6*b**3*d**2))/(a*d - b*c)**4 + (-a**2*d**2 + 5*a*b*c*d + 2*b**2*c**2 + 6*b**2*d**2*x**2 + x*(3*a
*b*d**2 + 9*b**2*c*d))/(2*a**4*c**2*d**3 - 6*a**3*b*c**3*d**2 + 6*a**2*b**2*c**4*d - 2*a*b**3*c**5 + x**3*(2*a
**3*b*d**5 - 6*a**2*b**2*c*d**4 + 6*a*b**3*c**2*d**3 - 2*b**4*c**3*d**2) + x**2*(2*a**4*d**5 - 2*a**3*b*c*d**4
- 6*a**2*b**2*c**2*d**3 + 10*a*b**3*c**3*d**2 - 4*b**4*c**4*d) + x*(4*a**4*c*d**4 - 10*a**3*b*c**2*d**3 + 6*a
**2*b**2*c**3*d**2 + 2*a*b**3*c**4*d - 2*b**4*c**5))

________________________________________________________________________________________

Giac [B]  time = 1.2279, size = 343, normalized size = 3.12 \begin{align*} -\frac{3 \, b^{3} d \log \left ({\left | b x + a \right |}\right )}{b^{5} c^{4} - 4 \, a b^{4} c^{3} d + 6 \, a^{2} b^{3} c^{2} d^{2} - 4 \, a^{3} b^{2} c d^{3} + a^{4} b d^{4}} + \frac{3 \, b^{2} d^{2} \log \left ({\left | d x + c \right |}\right )}{b^{4} c^{4} d - 4 \, a b^{3} c^{3} d^{2} + 6 \, a^{2} b^{2} c^{2} d^{3} - 4 \, a^{3} b c d^{4} + a^{4} d^{5}} - \frac{2 \, b^{3} c^{3} + 3 \, a b^{2} c^{2} d - 6 \, a^{2} b c d^{2} + a^{3} d^{3} + 6 \,{\left (b^{3} c d^{2} - a b^{2} d^{3}\right )} x^{2} + 3 \,{\left (3 \, b^{3} c^{2} d - 2 \, a b^{2} c d^{2} - a^{2} b d^{3}\right )} x}{2 \,{\left (b c - a d\right )}^{4}{\left (b x + a\right )}{\left (d x + c\right )}^{2}} \end{align*}

Veriﬁcation of antiderivative is not currently implemented for this CAS.

[In]

integrate((b*x+a)/(a*c+(a*d+b*c)*x+b*d*x^2)^3,x, algorithm="giac")

[Out]

-3*b^3*d*log(abs(b*x + a))/(b^5*c^4 - 4*a*b^4*c^3*d + 6*a^2*b^3*c^2*d^2 - 4*a^3*b^2*c*d^3 + a^4*b*d^4) + 3*b^2
*d^2*log(abs(d*x + c))/(b^4*c^4*d - 4*a*b^3*c^3*d^2 + 6*a^2*b^2*c^2*d^3 - 4*a^3*b*c*d^4 + a^4*d^5) - 1/2*(2*b^
3*c^3 + 3*a*b^2*c^2*d - 6*a^2*b*c*d^2 + a^3*d^3 + 6*(b^3*c*d^2 - a*b^2*d^3)*x^2 + 3*(3*b^3*c^2*d - 2*a*b^2*c*d
^2 - a^2*b*d^3)*x)/((b*c - a*d)^4*(b*x + a)*(d*x + c)^2)