3.2.34 \(\int \frac {a+b \cot ^{-1}(c+d x)}{(e+f x)^2} \, dx\) [134]

Optimal. Leaf size=153 \[ -\frac {a+b \cot ^{-1}(c+d x)}{f (e+f x)}-\frac {b d (d e-c f) \text {ArcTan}(c+d x)}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}-\frac {b d \log (e+f x)}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac {b d \log \left (1+c^2+2 c d x+d^2 x^2\right )}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )} \]

[Out]

(-a-b*arccot(d*x+c))/f/(f*x+e)-b*d*(-c*f+d*e)*arctan(d*x+c)/f/(d^2*e^2-2*c*d*e*f+(c^2+1)*f^2)-b*d*ln(f*x+e)/(d
^2*e^2-2*c*d*e*f+(c^2+1)*f^2)+1/2*b*d*ln(d^2*x^2+2*c*d*x+c^2+1)/(d^2*e^2-2*c*d*e*f+(c^2+1)*f^2)

________________________________________________________________________________________

Rubi [A]
time = 0.09, antiderivative size = 153, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {5154, 2007, 719, 31, 648, 632, 210, 642} \begin {gather*} -\frac {a+b \cot ^{-1}(c+d x)}{f (e+f x)}-\frac {b d \text {ArcTan}(c+d x) (d e-c f)}{f \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )}+\frac {b d \log \left (c^2+2 c d x+d^2 x^2+1\right )}{2 \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )}-\frac {b d \log (e+f x)}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

-((a + b*ArcCot[c + d*x])/(f*(e + f*x))) - (b*d*(d*e - c*f)*ArcTan[c + d*x])/(f*(d^2*e^2 - 2*c*d*e*f + (1 + c^
2)*f^2)) - (b*d*Log[e + f*x])/(d^2*e^2 - 2*c*d*e*f + (1 + c^2)*f^2) + (b*d*Log[1 + c^2 + 2*c*d*x + d^2*x^2])/(
2*(d^2*e^2 - 2*c*d*e*f + (1 + c^2)*f^2))

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 210

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^(-1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])
], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (LtQ[a, 0] || LtQ[b, 0])

Rule 632

Int[((a_.) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> Dist[-2, Subst[Int[1/Simp[b^2 - 4*a*c - x^2, x], x]
, x, b + 2*c*x], x] /; FreeQ[{a, b, c}, x] && NeQ[b^2 - 4*a*c, 0]

Rule 642

Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Simp[d*(Log[RemoveContent[a + b*x +
c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]

Rule 648

Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> Dist[(2*c*d - b*e)/(2*c), Int[1/(a +
 b*x + c*x^2), x], x] + Dist[e/(2*c), Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x] &
& NeQ[2*c*d - b*e, 0] && NeQ[b^2 - 4*a*c, 0] &&  !NiceSqrtQ[b^2 - 4*a*c]

Rule 719

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

Rule 2007

Int[(u_)^(m_.)*(v_)^(p_.), x_Symbol] :> Int[ExpandToSum[u, x]^m*ExpandToSum[v, x]^p, x] /; FreeQ[{m, p}, x] &&
 LinearQ[u, x] && QuadraticQ[v, x] &&  !(LinearMatchQ[u, x] && QuadraticMatchQ[v, x])

Rule 5154

Int[((a_.) + ArcCot[(c_) + (d_.)*(x_)]*(b_.))^(p_.)*((e_.) + (f_.)*(x_))^(m_), x_Symbol] :> Simp[(e + f*x)^(m
+ 1)*((a + b*ArcCot[c + d*x])^p/(f*(m + 1))), x] + Dist[b*d*(p/(f*(m + 1))), Int[(e + f*x)^(m + 1)*((a + b*Arc
Cot[c + d*x])^(p - 1)/(1 + (c + d*x)^2)), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && IGtQ[p, 0] && ILtQ[m, -1]

Rubi steps

\begin {align*} \int \frac {a+b \cot ^{-1}(c+d x)}{(e+f x)^2} \, dx &=-\frac {a+b \cot ^{-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 \cot ^{-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 \cot ^{-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 \cot ^{-1}(c+d x)}{f (e+f x)}-\frac {b d \log (e+f x)}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac {(b d) \int \frac {2 c d+2 d^2 x}{1+c^2+2 c d x+d^2 x^2} \, dx}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}-\frac {\left (b d^2 (d e-c f)\right ) \int \frac {1}{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 {a+b \cot ^{-1}(c+d x)}{f (e+f x)}-\frac {b d \log (e+f x)}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac {b d \log \left (1+c^2+2 c d x+d^2 x^2\right )}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}+\frac {\left (2 b d^2 (d e-c f)\right ) \text {Subst}\left (\int \frac {1}{-4 d^2-x^2} \, dx,x,2 c d+2 d^2 x\right )}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}\\ &=-\frac {a+b \cot ^{-1}(c+d x)}{f (e+f x)}-\frac {b d (d e-c f) \tan ^{-1}(c+d x)}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}-\frac {b d \log (e+f x)}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac {b d \log \left (1+c^2+2 c d x+d^2 x^2\right )}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 0.15, size = 118, normalized size = 0.77 \begin {gather*} \frac {-\frac {a+b \cot ^{-1}(c+d x)}{e+f x}+\frac {b d ((i d e+f-i c f) \log (i-c-d x)+(-i d e+f+i c f) \log (i+c+d x)-2 f \log (d (e+f x)))}{2 \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}}{f} \end {gather*}

Antiderivative was successfully verified.

[In]

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

[Out]

(-((a + b*ArcCot[c + d*x])/(e + f*x)) + (b*d*((I*d*e + f - I*c*f)*Log[I - c - d*x] + ((-I)*d*e + f + I*c*f)*Lo
g[I + c + d*x] - 2*f*Log[d*(e + f*x)]))/(2*(d^2*e^2 - 2*c*d*e*f + (1 + c^2)*f^2)))/f

________________________________________________________________________________________

Maple [A]
time = 0.21, size = 235, normalized size = 1.54

method result size
derivativedivides \(\frac {\frac {a \,d^{2}}{\left (c f -d e -f \left (d x +c \right )\right ) f}+\frac {b \,d^{2} \mathrm {arccot}\left (d x +c \right )}{\left (c f -d e -f \left (d x +c \right )\right ) f}-\frac {b \,d^{2} \ln \left (c f -d e -f \left (d x +c \right )\right )}{c^{2} f^{2}-2 c d e f +d^{2} e^{2}+f^{2}}+\frac {b \,d^{2} \ln \left (1+\left (d x +c \right )^{2}\right )}{2 c^{2} f^{2}-4 c d e f +2 d^{2} e^{2}+2 f^{2}}+\frac {b \,d^{2} \arctan \left (d x +c \right ) c}{c^{2} f^{2}-2 c d e f +d^{2} e^{2}+f^{2}}-\frac {b \,d^{3} \arctan \left (d x +c \right ) e}{f \left (c^{2} f^{2}-2 c d e f +d^{2} e^{2}+f^{2}\right )}}{d}\) \(235\)
default \(\frac {\frac {a \,d^{2}}{\left (c f -d e -f \left (d x +c \right )\right ) f}+\frac {b \,d^{2} \mathrm {arccot}\left (d x +c \right )}{\left (c f -d e -f \left (d x +c \right )\right ) f}-\frac {b \,d^{2} \ln \left (c f -d e -f \left (d x +c \right )\right )}{c^{2} f^{2}-2 c d e f +d^{2} e^{2}+f^{2}}+\frac {b \,d^{2} \ln \left (1+\left (d x +c \right )^{2}\right )}{2 c^{2} f^{2}-4 c d e f +2 d^{2} e^{2}+2 f^{2}}+\frac {b \,d^{2} \arctan \left (d x +c \right ) c}{c^{2} f^{2}-2 c d e f +d^{2} e^{2}+f^{2}}-\frac {b \,d^{3} \arctan \left (d x +c \right ) e}{f \left (c^{2} f^{2}-2 c d e f +d^{2} e^{2}+f^{2}\right )}}{d}\) \(235\)
risch \(-\frac {i b \ln \left (1+i \left (d x +c \right )\right )}{2 f \left (f x +e \right )}-\frac {2 \ln \left (f x +e \right ) b d \,f^{2} x +2 \ln \left (f x +e \right ) b d e f +i \ln \left (\left (-c d f +d^{2} e +3 i d f \right ) x +2 i c f +i d e -c^{2} f +c d e -3 f \right ) b \,d^{2} e^{2}-\ln \left (\left (-c d f +d^{2} e +3 i d f \right ) x +2 i c f +i d e -c^{2} f +c d e -3 f \right ) b d \,f^{2} x -\ln \left (\left (-c d f +d^{2} e +3 i d f \right ) x +2 i c f +i d e -c^{2} f +c d e -3 f \right ) b d e f -\ln \left (\left (c d f -d^{2} e +3 i d f \right ) x +2 i c f +i d e +c^{2} f -c d e +3 f \right ) b d \,f^{2} x -\ln \left (\left (c d f -d^{2} e +3 i d f \right ) x +2 i c f +i d e +c^{2} f -c d e +3 f \right ) b d e f -i \ln \left (\left (c d f -d^{2} e +3 i d f \right ) x +2 i c f +i d e +c^{2} f -c d e +3 f \right ) b \,d^{2} e^{2}-i b \,c^{2} f^{2} \ln \left (1-i \left (d x +c \right )\right )-i b \,d^{2} e^{2} \ln \left (1-i \left (d x +c \right )\right )-4 a c d e f +2 a \,f^{2}+2 a \,c^{2} f^{2}+2 a \,d^{2} e^{2}-i b \,f^{2} \ln \left (1-i \left (d x +c \right )\right )+\pi b \,f^{2}+\pi b \,d^{2} e^{2}+\pi b \,c^{2} f^{2}+2 i b c d e f \ln \left (1-i \left (d x +c \right )\right )-i \ln \left (\left (-c d f +d^{2} e +3 i d f \right ) x +2 i c f +i d e -c^{2} f +c d e -3 f \right ) b c d e f -i \ln \left (\left (c d f -d^{2} e +3 i d f \right ) x +2 i c f +i d e +c^{2} f -c d e +3 f \right ) b \,d^{2} e f x -i \ln \left (\left (-c d f +d^{2} e +3 i d f \right ) x +2 i c f +i d e -c^{2} f +c d e -3 f \right ) b c d \,f^{2} x +i \ln \left (\left (-c d f +d^{2} e +3 i d f \right ) x +2 i c f +i d e -c^{2} f +c d e -3 f \right ) b \,d^{2} e f x +i \ln \left (\left (c d f -d^{2} e +3 i d f \right ) x +2 i c f +i d e +c^{2} f -c d e +3 f \right ) b c d \,f^{2} x +i \ln \left (\left (c d f -d^{2} e +3 i d f \right ) x +2 i c f +i d e +c^{2} f -c d e +3 f \right ) b c d e f -2 \pi b c d e f}{2 \left (f x +e \right ) \left (c f -d e +i f \right ) \left (c f -d e -i f \right ) f}\) \(856\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*arccot(d*x+c))/(f*x+e)^2,x,method=_RETURNVERBOSE)

[Out]

1/d*(a*d^2/(c*f-d*e-f*(d*x+c))/f+b*d^2/(c*f-d*e-f*(d*x+c))/f*arccot(d*x+c)-b*d^2/(c^2*f^2-2*c*d*e*f+d^2*e^2+f^
2)*ln(c*f-d*e-f*(d*x+c))+1/2*b*d^2/(c^2*f^2-2*c*d*e*f+d^2*e^2+f^2)*ln(1+(d*x+c)^2)+b*d^2/(c^2*f^2-2*c*d*e*f+d^
2*e^2+f^2)*arctan(d*x+c)*c-b*d^3/f/(c^2*f^2-2*c*d*e*f+d^2*e^2+f^2)*arctan(d*x+c)*e)

________________________________________________________________________________________

Maxima [A]
time = 0.47, size = 186, normalized size = 1.22 \begin {gather*} -\frac {1}{2} \, {\left (d {\left (\frac {2 \, {\left (c d f - d^{2} e\right )} \arctan \left (\frac {d^{2} x + c d}{d}\right )}{{\left (2 \, c d f^{2} e - {\left (c^{2} + 1\right )} f^{3} - d^{2} f e^{2}\right )} d} + \frac {\log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{2 \, c d f e - {\left (c^{2} + 1\right )} f^{2} - d^{2} e^{2}} - \frac {2 \, \log \left (f x + e\right )}{2 \, c d f e - {\left (c^{2} + 1\right )} f^{2} - d^{2} e^{2}}\right )} + \frac {2 \, \operatorname {arccot}\left (d x + c\right )}{f^{2} x + f e}\right )} b - \frac {a}{f^{2} x + f e} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*(d*(2*(c*d*f - d^2*e)*arctan((d^2*x + c*d)/d)/((2*c*d*f^2*e - (c^2 + 1)*f^3 - d^2*f*e^2)*d) + log(d^2*x^2
 + 2*c*d*x + c^2 + 1)/(2*c*d*f*e - (c^2 + 1)*f^2 - d^2*e^2) - 2*log(f*x + e)/(2*c*d*f*e - (c^2 + 1)*f^2 - d^2*
e^2)) + 2*arccot(d*x + c)/(f^2*x + f*e))*b - a/(f^2*x + f*e)

________________________________________________________________________________________

Fricas [A]
time = 3.60, size = 229, normalized size = 1.50 \begin {gather*} \frac {4 \, a c d f e - 2 \, a d^{2} e^{2} - 2 \, {\left (a c^{2} + a\right )} f^{2} + 2 \, {\left (2 \, b c d f e - b d^{2} e^{2} - {\left (b c^{2} + b\right )} f^{2}\right )} \operatorname {arccot}\left (d x + c\right ) + 2 \, {\left (b c d f^{2} x - b d^{2} e^{2} - {\left (b d^{2} f x - b c d f\right )} e\right )} \arctan \left (d x + c\right ) + {\left (b d f^{2} x + b d f e\right )} \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right ) - 2 \, {\left (b d f^{2} x + b d f e\right )} \log \left (f x + e\right )}{2 \, {\left ({\left (c^{2} + 1\right )} f^{4} x + d^{2} f e^{3} + {\left (d^{2} f^{2} x - 2 \, c d f^{2}\right )} e^{2} - {\left (2 \, c d f^{3} x - {\left (c^{2} + 1\right )} f^{3}\right )} e\right )}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

1/2*(4*a*c*d*f*e - 2*a*d^2*e^2 - 2*(a*c^2 + a)*f^2 + 2*(2*b*c*d*f*e - b*d^2*e^2 - (b*c^2 + b)*f^2)*arccot(d*x
+ c) + 2*(b*c*d*f^2*x - b*d^2*e^2 - (b*d^2*f*x - b*c*d*f)*e)*arctan(d*x + c) + (b*d*f^2*x + b*d*f*e)*log(d^2*x
^2 + 2*c*d*x + c^2 + 1) - 2*(b*d*f^2*x + b*d*f*e)*log(f*x + e))/((c^2 + 1)*f^4*x + d^2*f*e^3 + (d^2*f^2*x - 2*
c*d*f^2)*e^2 - (2*c*d*f^3*x - (c^2 + 1)*f^3)*e)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*acot(d*x+c))/(f*x+e)**2,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 1264 vs. \(2 (151) = 302\).
time = 0.77, size = 1264, normalized size = 8.26 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-1/2*(2*b*d*e*arctan(1/(d*x + c))*tan(1/2*arctan(1/(d*x + c)))^2 - 2*b*c*f*arctan(1/(d*x + c))*tan(1/2*arctan(
1/(d*x + c)))^2 + 2*b*d*e*log(4*(4*d^2*e^2*tan(1/2*arctan(1/(d*x + c)))^2 - 8*c*d*e*f*tan(1/2*arctan(1/(d*x +
c)))^2 + 4*c^2*f^2*tan(1/2*arctan(1/(d*x + c)))^2 - 4*d*e*f*tan(1/2*arctan(1/(d*x + c)))^3 + 4*c*f^2*tan(1/2*a
rctan(1/(d*x + c)))^3 + f^2*tan(1/2*arctan(1/(d*x + c)))^4 + 4*d*e*f*tan(1/2*arctan(1/(d*x + c))) - 4*c*f^2*ta
n(1/2*arctan(1/(d*x + c))) - 2*f^2*tan(1/2*arctan(1/(d*x + c)))^2 + f^2)/(tan(1/2*arctan(1/(d*x + c)))^4 + 2*t
an(1/2*arctan(1/(d*x + c)))^2 + 1))*tan(1/2*arctan(1/(d*x + c))) - 2*b*c*f*log(4*(4*d^2*e^2*tan(1/2*arctan(1/(
d*x + c)))^2 - 8*c*d*e*f*tan(1/2*arctan(1/(d*x + c)))^2 + 4*c^2*f^2*tan(1/2*arctan(1/(d*x + c)))^2 - 4*d*e*f*t
an(1/2*arctan(1/(d*x + c)))^3 + 4*c*f^2*tan(1/2*arctan(1/(d*x + c)))^3 + f^2*tan(1/2*arctan(1/(d*x + c)))^4 +
4*d*e*f*tan(1/2*arctan(1/(d*x + c))) - 4*c*f^2*tan(1/2*arctan(1/(d*x + c))) - 2*f^2*tan(1/2*arctan(1/(d*x + c)
))^2 + f^2)/(tan(1/2*arctan(1/(d*x + c)))^4 + 2*tan(1/2*arctan(1/(d*x + c)))^2 + 1))*tan(1/2*arctan(1/(d*x + c
))) + 2*a*d*e*tan(1/2*arctan(1/(d*x + c)))^2 - 2*a*c*f*tan(1/2*arctan(1/(d*x + c)))^2 - b*f*log(4*(4*d^2*e^2*t
an(1/2*arctan(1/(d*x + c)))^2 - 8*c*d*e*f*tan(1/2*arctan(1/(d*x + c)))^2 + 4*c^2*f^2*tan(1/2*arctan(1/(d*x + c
)))^2 - 4*d*e*f*tan(1/2*arctan(1/(d*x + c)))^3 + 4*c*f^2*tan(1/2*arctan(1/(d*x + c)))^3 + f^2*tan(1/2*arctan(1
/(d*x + c)))^4 + 4*d*e*f*tan(1/2*arctan(1/(d*x + c))) - 4*c*f^2*tan(1/2*arctan(1/(d*x + c))) - 2*f^2*tan(1/2*a
rctan(1/(d*x + c)))^2 + f^2)/(tan(1/2*arctan(1/(d*x + c)))^4 + 2*tan(1/2*arctan(1/(d*x + c)))^2 + 1))*tan(1/2*
arctan(1/(d*x + c)))^2 - 2*b*d*e*arctan(1/(d*x + c)) + 2*b*c*f*arctan(1/(d*x + c)) + 4*b*f*arctan(1/(d*x + c))
*tan(1/2*arctan(1/(d*x + c))) - 2*a*d*e + 2*a*c*f + b*f*log(4*(4*d^2*e^2*tan(1/2*arctan(1/(d*x + c)))^2 - 8*c*
d*e*f*tan(1/2*arctan(1/(d*x + c)))^2 + 4*c^2*f^2*tan(1/2*arctan(1/(d*x + c)))^2 - 4*d*e*f*tan(1/2*arctan(1/(d*
x + c)))^3 + 4*c*f^2*tan(1/2*arctan(1/(d*x + c)))^3 + f^2*tan(1/2*arctan(1/(d*x + c)))^4 + 4*d*e*f*tan(1/2*arc
tan(1/(d*x + c))) - 4*c*f^2*tan(1/2*arctan(1/(d*x + c))) - 2*f^2*tan(1/2*arctan(1/(d*x + c)))^2 + f^2)/(tan(1/
2*arctan(1/(d*x + c)))^4 + 2*tan(1/2*arctan(1/(d*x + c)))^2 + 1)) + 4*a*f*tan(1/2*arctan(1/(d*x + c))))*d/(2*d
^3*e^3*tan(1/2*arctan(1/(d*x + c))) - 6*c*d^2*e^2*f*tan(1/2*arctan(1/(d*x + c))) + 6*c^2*d*e*f^2*tan(1/2*arcta
n(1/(d*x + c))) - 2*c^3*f^3*tan(1/2*arctan(1/(d*x + c))) - d^2*e^2*f*tan(1/2*arctan(1/(d*x + c)))^2 + 2*c*d*e*
f^2*tan(1/2*arctan(1/(d*x + c)))^2 - c^2*f^3*tan(1/2*arctan(1/(d*x + c)))^2 + d^2*e^2*f - 2*c*d*e*f^2 + c^2*f^
3 + 2*d*e*f^2*tan(1/2*arctan(1/(d*x + c))) - 2*c*f^3*tan(1/2*arctan(1/(d*x + c))) - f^3*tan(1/2*arctan(1/(d*x
+ c)))^2 + f^3)

________________________________________________________________________________________

Mupad [B]
time = 2.08, size = 128, normalized size = 0.84 \begin {gather*} -\frac {a}{x\,f^2+e\,f}-\frac {b\,\mathrm {acot}\left (c+d\,x\right )}{f\,\left (e+f\,x\right )}-\frac {b\,d\,\ln \left (e+f\,x\right )}{d^2\,e^2-2\,c\,d\,e\,f+\left (c^2+1\right )\,f^2}+\frac {b\,d\,\ln \left (c+d\,x-\mathrm {i}\right )\,1{}\mathrm {i}}{2\,f\,\left (d\,e-c\,f+f\,1{}\mathrm {i}\right )}+\frac {b\,d\,\ln \left (c+d\,x+1{}\mathrm {i}\right )}{2\,f\,\left (f-c\,f\,1{}\mathrm {i}+d\,e\,1{}\mathrm {i}\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*acot(c + d*x))/(e + f*x)^2,x)

[Out]

(b*d*log(c + d*x - 1i)*1i)/(2*f*(f*1i - c*f + d*e)) - (b*acot(c + d*x))/(f*(e + f*x)) - (b*d*log(e + f*x))/(f^
2*(c^2 + 1) + d^2*e^2 - 2*c*d*e*f) - a/(e*f + f^2*x) + (b*d*log(c + d*x + 1i))/(2*f*(f - c*f*1i + d*e*1i))

________________________________________________________________________________________