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

   Optimal result
   Rubi [A] (verified)
   Mathematica [C] (verified)
   Maple [A] (verified)
   Fricas [A] (verification not implemented)
   Sympy [C] (verification not implemented)
   Maxima [A] (verification not implemented)
   Giac [B] (verification not implemented)
   Mupad [B] (verification not implemented)

Optimal result

Integrand size = 16, antiderivative size = 97 \[ \int (e+f x) \left (a+b \cot ^{-1}(c+d x)\right ) \, dx=\frac {b f x}{2 d}+\frac {(e+f x)^2 \left (a+b \cot ^{-1}(c+d x)\right )}{2 f}+\frac {b (d e+f-c f) (d e-(1+c) f) \arctan (c+d x)}{2 d^2 f}+\frac {b (d e-c f) \log \left (1+(c+d x)^2\right )}{2 d^2} \]

[Out]

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

Rubi [A] (verified)

Time = 0.09 (sec) , antiderivative size = 97, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {5156, 4973, 716, 649, 209, 266} \[ \int (e+f x) \left (a+b \cot ^{-1}(c+d x)\right ) \, dx=\frac {(e+f x)^2 \left (a+b \cot ^{-1}(c+d x)\right )}{2 f}+\frac {b \arctan (c+d x) (-c f+d e+f) (d e-(c+1) f)}{2 d^2 f}+\frac {b (d e-c f) \log \left ((c+d x)^2+1\right )}{2 d^2}+\frac {b f x}{2 d} \]

[In]

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

[Out]

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

Rule 209

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

Rule 266

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

Rule 649

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

Rule 716

Int[((d_) + (e_.)*(x_))^(m_)/((a_) + (c_.)*(x_)^2), x_Symbol] :> Int[PolynomialDivide[(d + e*x)^m, a + c*x^2,
x], x] /; FreeQ[{a, c, d, e}, x] && NeQ[c*d^2 + a*e^2, 0] && IGtQ[m, 1] && (NeQ[d, 0] || GtQ[m, 2])

Rule 4973

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

Rule 5156

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

Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \left (\frac {d e-c f}{d}+\frac {f x}{d}\right ) \left (a+b \cot ^{-1}(x)\right ) \, dx,x,c+d x\right )}{d} \\ & = \frac {(e+f x)^2 \left (a+b \cot ^{-1}(c+d x)\right )}{2 f}+\frac {b \text {Subst}\left (\int \frac {\left (\frac {d e-c f}{d}+\frac {f x}{d}\right )^2}{1+x^2} \, dx,x,c+d x\right )}{2 f} \\ & = \frac {(e+f x)^2 \left (a+b \cot ^{-1}(c+d x)\right )}{2 f}+\frac {b \text {Subst}\left (\int \left (\frac {f^2}{d^2}+\frac {(d e-f-c f) (d e+f-c f)+2 f (d e-c f) x}{d^2 \left (1+x^2\right )}\right ) \, dx,x,c+d x\right )}{2 f} \\ & = \frac {b f x}{2 d}+\frac {(e+f x)^2 \left (a+b \cot ^{-1}(c+d x)\right )}{2 f}+\frac {b \text {Subst}\left (\int \frac {(d e-f-c f) (d e+f-c f)+2 f (d e-c f) x}{1+x^2} \, dx,x,c+d x\right )}{2 d^2 f} \\ & = \frac {b f x}{2 d}+\frac {(e+f x)^2 \left (a+b \cot ^{-1}(c+d x)\right )}{2 f}+\frac {(b (d e-c f)) \text {Subst}\left (\int \frac {x}{1+x^2} \, dx,x,c+d x\right )}{d^2}+\frac {(b (d e+f-c f) (d e-(1+c) f)) \text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,c+d x\right )}{2 d^2 f} \\ & = \frac {b f x}{2 d}+\frac {(e+f x)^2 \left (a+b \cot ^{-1}(c+d x)\right )}{2 f}+\frac {b (d e+f-c f) (d e-(1+c) f) \arctan (c+d x)}{2 d^2 f}+\frac {b (d e-c f) \log \left (1+(c+d x)^2\right )}{2 d^2} \\ \end{align*}

Mathematica [C] (verified)

Result contains complex when optimal does not.

Time = 0.07 (sec) , antiderivative size = 163, normalized size of antiderivative = 1.68 \[ \int (e+f x) \left (a+b \cot ^{-1}(c+d x)\right ) \, dx=a e x+\frac {1}{2} a f x^2+b e x \cot ^{-1}(c+d x)+\frac {b f \left (\frac {1}{2} d \left (-\frac {c}{d}+\frac {c+d x}{d}\right )^2 \cot ^{-1}(c+d x)+\frac {1}{2} d \left (\frac {x}{d}-\frac {i (i-c)^2 \log (i-c-d x)}{2 d^2}+\frac {i (i+c)^2 \log (i+c+d x)}{2 d^2}\right )\right )}{d}+\frac {b e \left (-2 c \arctan (c+d x)+\log \left (1+c^2+2 c d x+d^2 x^2\right )\right )}{2 d} \]

[In]

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

[Out]

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

Maple [A] (verified)

Time = 0.35 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.16

method result size
parts \(a \left (\frac {1}{2} f \,x^{2}+e x \right )+\frac {b \left (\frac {\operatorname {arccot}\left (d x +c \right ) \left (d x +c \right )^{2} f}{2 d}-\frac {\operatorname {arccot}\left (d x +c \right ) c f \left (d x +c \right )}{d}+\operatorname {arccot}\left (d x +c \right ) e \left (d x +c \right )+\frac {f \left (d x +c \right )+\frac {\left (-2 c f +2 d e \right ) \ln \left (1+\left (d x +c \right )^{2}\right )}{2}-f \arctan \left (d x +c \right )}{2 d}\right )}{d}\) \(113\)
derivativedivides \(\frac {-\frac {a \left (f c \left (d x +c \right )-e d \left (d x +c \right )-\frac {f \left (d x +c \right )^{2}}{2}\right )}{d}-\frac {b \left (\operatorname {arccot}\left (d x +c \right ) f c \left (d x +c \right )-\operatorname {arccot}\left (d x +c \right ) e d \left (d x +c \right )-\frac {\operatorname {arccot}\left (d x +c \right ) f \left (d x +c \right )^{2}}{2}-\frac {f \left (d x +c \right )}{2}+\frac {\left (2 c f -2 d e \right ) \ln \left (1+\left (d x +c \right )^{2}\right )}{4}+\frac {f \arctan \left (d x +c \right )}{2}\right )}{d}}{d}\) \(130\)
default \(\frac {-\frac {a \left (f c \left (d x +c \right )-e d \left (d x +c \right )-\frac {f \left (d x +c \right )^{2}}{2}\right )}{d}-\frac {b \left (\operatorname {arccot}\left (d x +c \right ) f c \left (d x +c \right )-\operatorname {arccot}\left (d x +c \right ) e d \left (d x +c \right )-\frac {\operatorname {arccot}\left (d x +c \right ) f \left (d x +c \right )^{2}}{2}-\frac {f \left (d x +c \right )}{2}+\frac {\left (2 c f -2 d e \right ) \ln \left (1+\left (d x +c \right )^{2}\right )}{4}+\frac {f \arctan \left (d x +c \right )}{2}\right )}{d}}{d}\) \(130\)
parallelrisch \(-\frac {-\operatorname {arccot}\left (d x +c \right ) b \,d^{2} f \,x^{2}-a \,d^{2} f \,x^{2}-2 x \,\operatorname {arccot}\left (d x +c \right ) b \,d^{2} e -2 a \,d^{2} e x +\operatorname {arccot}\left (d x +c \right ) b \,c^{2} f -2 \,\operatorname {arccot}\left (d x +c \right ) b c d e +b c f \ln \left (d^{2} x^{2}+2 c d x +c^{2}+1\right )-b e d \ln \left (d^{2} x^{2}+2 c d x +c^{2}+1\right )-b d f x +a \,c^{2} f +4 a c d e -\operatorname {arccot}\left (d x +c \right ) b f +2 b c f +a f}{2 d^{2}}\) \(160\)
risch \(\frac {i b \left (f \,x^{2}+2 e x \right ) \ln \left (1+i \left (d x +c \right )\right )}{4}-\frac {i b f \,x^{2} \ln \left (1-i \left (d x +c \right )\right )}{4}-\frac {i b e x \ln \left (1-i \left (d x +c \right )\right )}{2}+\frac {\pi b f \,x^{2}}{4}+\frac {\pi b e x}{2}+\frac {a f \,x^{2}}{2}+\frac {\arctan \left (d x +c \right ) b \,c^{2} f}{2 d^{2}}-\frac {b c e \arctan \left (d x +c \right )}{d}+a e x -\frac {b c f \ln \left (d^{2} x^{2}+2 c d x +c^{2}+1\right )}{2 d^{2}}+\frac {b e \ln \left (d^{2} x^{2}+2 c d x +c^{2}+1\right )}{2 d}+\frac {b f x}{2 d}-\frac {\arctan \left (d x +c \right ) b f}{2 d^{2}}\) \(190\)

[In]

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

[Out]

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

Fricas [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 110, normalized size of antiderivative = 1.13 \[ \int (e+f x) \left (a+b \cot ^{-1}(c+d x)\right ) \, dx=\frac {a d^{2} f x^{2} + {\left (2 \, a d^{2} e + b d f\right )} x + {\left (b d^{2} f x^{2} + 2 \, b d^{2} e x\right )} \operatorname {arccot}\left (d x + c\right ) - {\left (2 \, b c d e - {\left (b c^{2} - b\right )} f\right )} \arctan \left (d x + c\right ) + {\left (b d e - b c f\right )} \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{2 \, d^{2}} \]

[In]

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

[Out]

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

Sympy [C] (verification not implemented)

Result contains complex when optimal does not.

Time = 14.48 (sec) , antiderivative size = 177, normalized size of antiderivative = 1.82 \[ \int (e+f x) \left (a+b \cot ^{-1}(c+d x)\right ) \, dx=\begin {cases} a e x + \frac {a f x^{2}}{2} - \frac {b c^{2} f \operatorname {acot}{\left (c + d x \right )}}{2 d^{2}} + \frac {b c e \operatorname {acot}{\left (c + d x \right )}}{d} - \frac {b c f \log {\left (\frac {c}{d} + x - \frac {i}{d} \right )}}{d^{2}} - \frac {i b c f \operatorname {acot}{\left (c + d x \right )}}{d^{2}} + b e x \operatorname {acot}{\left (c + d x \right )} + \frac {b f x^{2} \operatorname {acot}{\left (c + d x \right )}}{2} + \frac {b e \log {\left (\frac {c}{d} + x - \frac {i}{d} \right )}}{d} + \frac {i b e \operatorname {acot}{\left (c + d x \right )}}{d} + \frac {b f x}{2 d} + \frac {b f \operatorname {acot}{\left (c + d x \right )}}{2 d^{2}} & \text {for}\: d \neq 0 \\\left (a + b \operatorname {acot}{\left (c \right )}\right ) \left (e x + \frac {f x^{2}}{2}\right ) & \text {otherwise} \end {cases} \]

[In]

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

[Out]

Piecewise((a*e*x + a*f*x**2/2 - b*c**2*f*acot(c + d*x)/(2*d**2) + b*c*e*acot(c + d*x)/d - b*c*f*log(c/d + x -
I/d)/d**2 - I*b*c*f*acot(c + d*x)/d**2 + b*e*x*acot(c + d*x) + b*f*x**2*acot(c + d*x)/2 + b*e*log(c/d + x - I/
d)/d + I*b*e*acot(c + d*x)/d + b*f*x/(2*d) + b*f*acot(c + d*x)/(2*d**2), Ne(d, 0)), ((a + b*acot(c))*(e*x + f*
x**2/2), True))

Maxima [A] (verification not implemented)

none

Time = 0.27 (sec) , antiderivative size = 113, normalized size of antiderivative = 1.16 \[ \int (e+f x) \left (a+b \cot ^{-1}(c+d x)\right ) \, dx=\frac {1}{2} \, a f x^{2} + \frac {1}{2} \, {\left (x^{2} \operatorname {arccot}\left (d x + c\right ) + d {\left (\frac {x}{d^{2}} + \frac {{\left (c^{2} - 1\right )} \arctan \left (\frac {d^{2} x + c d}{d}\right )}{d^{3}} - \frac {c \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{d^{3}}\right )}\right )} b f + a e x + \frac {{\left (2 \, {\left (d x + c\right )} \operatorname {arccot}\left (d x + c\right ) + \log \left ({\left (d x + c\right )}^{2} + 1\right )\right )} b e}{2 \, d} \]

[In]

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

[Out]

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

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 451 vs. \(2 (89) = 178\).

Time = 0.41 (sec) , antiderivative size = 451, normalized size of antiderivative = 4.65 \[ \int (e+f x) \left (a+b \cot ^{-1}(c+d x)\right ) \, dx=-\frac {4 \, b d e \arctan \left (\frac {1}{d x + c}\right ) \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{3} - 4 \, b c f \arctan \left (\frac {1}{d x + c}\right ) \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{3} - b f \arctan \left (\frac {1}{d x + c}\right ) \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{4} + 4 \, b d e \log \left (\frac {16 \, \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2}}{\tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{4} + 2 \, \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2} + 1}\right ) \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2} - 4 \, b c f \log \left (\frac {16 \, \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2}}{\tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{4} + 2 \, \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2} + 1}\right ) \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2} + 4 \, a d e \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{3} - 4 \, a c f \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{3} - a f \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{4} - 4 \, b d e \arctan \left (\frac {1}{d x + c}\right ) \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right ) + 4 \, b c f \arctan \left (\frac {1}{d x + c}\right ) \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right ) - 2 \, b f \arctan \left (\frac {1}{d x + c}\right ) \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2} + 2 \, b f \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{3} - 4 \, a d e \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right ) + 4 \, a c f \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right ) - 2 \, a f \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2} - b f \arctan \left (\frac {1}{d x + c}\right ) - 2 \, b f \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right ) - a f}{8 \, d^{2} \tan \left (\frac {1}{2} \, \arctan \left (\frac {1}{d x + c}\right )\right )^{2}} \]

[In]

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

[Out]

-1/8*(4*b*d*e*arctan(1/(d*x + c))*tan(1/2*arctan(1/(d*x + c)))^3 - 4*b*c*f*arctan(1/(d*x + c))*tan(1/2*arctan(
1/(d*x + c)))^3 - b*f*arctan(1/(d*x + c))*tan(1/2*arctan(1/(d*x + c)))^4 + 4*b*d*e*log(16*tan(1/2*arctan(1/(d*
x + c)))^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 - 4*b*c*f*log(16*tan(1/2*arctan(1/(d*x + c)))^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 + 4*a*d*e*tan(1/2*arctan(1/(d*x + c)))^3 - 4*a*c*f*tan(1/2*arct
an(1/(d*x + c)))^3 - a*f*tan(1/2*arctan(1/(d*x + c)))^4 - 4*b*d*e*arctan(1/(d*x + c))*tan(1/2*arctan(1/(d*x +
c))) + 4*b*c*f*arctan(1/(d*x + c))*tan(1/2*arctan(1/(d*x + c))) - 2*b*f*arctan(1/(d*x + c))*tan(1/2*arctan(1/(
d*x + c)))^2 + 2*b*f*tan(1/2*arctan(1/(d*x + c)))^3 - 4*a*d*e*tan(1/2*arctan(1/(d*x + c))) + 4*a*c*f*tan(1/2*a
rctan(1/(d*x + c))) - 2*a*f*tan(1/2*arctan(1/(d*x + c)))^2 - b*f*arctan(1/(d*x + c)) - 2*b*f*tan(1/2*arctan(1/
(d*x + c))) - a*f)/(d^2*tan(1/2*arctan(1/(d*x + c)))^2)

Mupad [B] (verification not implemented)

Time = 1.58 (sec) , antiderivative size = 136, normalized size of antiderivative = 1.40 \[ \int (e+f x) \left (a+b \cot ^{-1}(c+d x)\right ) \, dx=a\,e\,x+\frac {a\,f\,x^2}{2}+\frac {b\,e\,\ln \left (c^2+2\,c\,d\,x+d^2\,x^2+1\right )}{2\,d}+\frac {b\,f\,\mathrm {acot}\left (c+d\,x\right )}{2\,d^2}+\frac {b\,f\,x^2\,\mathrm {acot}\left (c+d\,x\right )}{2}+\frac {b\,f\,x}{2\,d}+b\,e\,x\,\mathrm {acot}\left (c+d\,x\right )-\frac {b\,c^2\,f\,\mathrm {acot}\left (c+d\,x\right )}{2\,d^2}-\frac {b\,c\,f\,\ln \left (c^2+2\,c\,d\,x+d^2\,x^2+1\right )}{2\,d^2}+\frac {b\,c\,e\,\mathrm {acot}\left (c+d\,x\right )}{d} \]

[In]

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

[Out]

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