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

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

[Out]

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

________________________________________________________________________________________

Rubi [A]  time = 1.3864, antiderivative size = 567, normalized size of antiderivative = 1., number of steps used = 25, number of rules used = 25, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 1.25, Rules used = {5046, 1982, 705, 31, 634, 618, 204, 628, 6741, 5058, 706, 635, 203, 260, 6688, 12, 6725, 4857, 2402, 2315, 2447, 4985, 4885, 4921, 4855} \[ \frac{i b^2 d \text{PolyLog}\left (2,1-\frac{2}{1-i (c+d x)}\right )}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2}-\frac{i b^2 d \text{PolyLog}\left (2,1-\frac{2 d (e+f x)}{(1-i (c+d x)) (d e+(-c+i) f)}\right )}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2}+\frac{i b^2 d \text{PolyLog}\left (2,1-\frac{2}{1+i (c+d x)}\right )}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2}-\frac{2 a b d \log (e+f x)}{(d e-c f)^2+f^2}+\frac{a b d \log \left ((c+d x)^2+1\right )}{(d e-c f)^2+f^2}-\frac{2 a b d (d e-c f) \tan ^{-1}(c+d x)}{f \left ((d e-c f)^2+f^2\right )}-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}+\frac{i b^2 d \cot ^{-1}(c+d x)^2}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2}+\frac{b^2 d (d e-c f) \cot ^{-1}(c+d x)^2}{f \left (\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2\right )}+\frac{2 b^2 d \log \left (\frac{2}{1-i (c+d x)}\right ) \cot ^{-1}(c+d x)}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2 d (e+f x)}{(1-i (c+d x)) (d e+(-c+i) f)}\right )}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2}-\frac{2 b^2 d \log \left (\frac{2}{1+i (c+d x)}\right ) \cot ^{-1}(c+d x)}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2} \]

Antiderivative was successfully verified.

[In]

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

[Out]

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

Rule 5046

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]

Rule 1982

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 705

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 31

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

Rule 634

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 618

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 204

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

Rule 628

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 6741

Int[u_, x_Symbol] :> With[{v = NormalizeIntegrand[u, x]}, Int[v, x] /; v =!= u]

Rule 5058

Int[((a_.) + ArcCot[(c_) + (d_.)*(x_)]*(b_.))^(p_.)*((e_.) + (f_.)*(x_))^(m_.)*((A_.) + (B_.)*(x_) + (C_.)*(x_
)^2)^(q_.), x_Symbol] :> Dist[1/d, Subst[Int[((d*e - c*f)/d + (f*x)/d)^m*(C/d^2 + (C*x^2)/d^2)^q*(a + b*ArcCot
[x])^p, x], x, c + d*x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C, m, p, q}, x] && EqQ[B*(1 + c^2) - 2*A*c*d, 0]
 && EqQ[2*c*C - B*d, 0]

Rule 706

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

Rule 635

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 203

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

Rule 260

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 6688

Int[u_, x_Symbol] :> With[{v = SimplifyIntegrand[u, x]}, Int[v, x] /; SimplerIntegrandQ[v, u, x]]

Rule 12

Int[(a_)*(u_), x_Symbol] :> Dist[a, Int[u, x], x] /; FreeQ[a, x] &&  !MatchQ[u, (b_)*(v_) /; FreeQ[b, x]]

Rule 6725

Int[(u_)/((a_) + (b_.)*(x_)^(n_)), x_Symbol] :> With[{v = RationalFunctionExpand[u/(a + b*x^n), x]}, Int[v, x]
 /; SumQ[v]] /; FreeQ[{a, b}, x] && IGtQ[n, 0]

Rule 4857

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

Rule 2402

Int[Log[(c_.)/((d_) + (e_.)*(x_))]/((f_) + (g_.)*(x_)^2), x_Symbol] :> -Dist[e/g, Subst[Int[Log[2*d*x]/(1 - 2*
d*x), x], x, 1/(d + e*x)], x] /; FreeQ[{c, d, e, f, g}, x] && EqQ[c, 2*d] && EqQ[e^2*f + d^2*g, 0]

Rule 2315

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

Rule 2447

Int[Log[u_]*(Pq_)^(m_.), x_Symbol] :> With[{C = FullSimplify[(Pq^m*(1 - u))/D[u, x]]}, Simp[C*PolyLog[2, 1 - u
], x] /; FreeQ[C, x]] /; IntegerQ[m] && PolyQ[Pq, x] && RationalFunctionQ[u, x] && LeQ[RationalFunctionExponen
ts[u, x][[2]], Expon[Pq, x]]

Rule 4985

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

Rule 4885

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

Rule 4921

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

Rule 4855

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

Rubi steps

\begin{align*} \int \frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{(e+f x)^2} \, dx &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{(2 b d) \int \frac{a+b \cot ^{-1}(c+d x)}{(e+f x) \left (1+(c+d x)^2\right )} \, dx}{f}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{(2 b d) \int \frac{a+b \cot ^{-1}(c+d x)}{(e+f x) \left (1+c^2+2 c d x+d^2 x^2\right )} \, dx}{f}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{(2 b) \operatorname{Subst}\left (\int \frac{a+b \cot ^{-1}(x)}{\left (\frac{d e-c f}{d}+\frac{f x}{d}\right ) \left (1+x^2\right )} \, dx,x,c+d x\right )}{f}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{(2 b) \operatorname{Subst}\left (\int \frac{d \left (a+b \cot ^{-1}(x)\right )}{(d e-c f+f x) \left (1+x^2\right )} \, dx,x,c+d x\right )}{f}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{(2 b d) \operatorname{Subst}\left (\int \frac{a+b \cot ^{-1}(x)}{(d e-c f+f x) \left (1+x^2\right )} \, dx,x,c+d x\right )}{f}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{(2 b d) \operatorname{Subst}\left (\int \left (\frac{a}{(d e-c f+f x) \left (1+x^2\right )}+\frac{b \cot ^{-1}(x)}{(d e-c f+f x) \left (1+x^2\right )}\right ) \, dx,x,c+d x\right )}{f}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{(2 a b d) \operatorname{Subst}\left (\int \frac{1}{(d e-c f+f x) \left (1+x^2\right )} \, dx,x,c+d x\right )}{f}-\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \frac{\cot ^{-1}(x)}{(d e-c f+f x) \left (1+x^2\right )} \, dx,x,c+d x\right )}{f}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \left (\frac{f^2 \cot ^{-1}(x)}{\left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) (d e-c f+f x)}+\frac{(d e-c f-f x) \cot ^{-1}(x)}{\left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right ) \left (1+x^2\right )}\right ) \, dx,x,c+d x\right )}{f}-\frac{(2 a b d) \operatorname{Subst}\left (\int \frac{d e-c f-f x}{1+x^2} \, dx,x,c+d x\right )}{f \left (f^2+(d e-c f)^2\right )}-\frac{(2 a b d f) \operatorname{Subst}\left (\int \frac{1}{d e-c f+f x} \, dx,x,c+d x\right )}{f^2+(d e-c f)^2}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{2 a b d \log (e+f x)}{f^2+(d e-c f)^2}-\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \frac{(d e-c f-f x) \cot ^{-1}(x)}{1+x^2} \, dx,x,c+d x\right )}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}-\frac{\left (2 b^2 d f\right ) \operatorname{Subst}\left (\int \frac{\cot ^{-1}(x)}{d e-c f+f x} \, dx,x,c+d x\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{(2 a b d) \operatorname{Subst}\left (\int \frac{x}{1+x^2} \, dx,x,c+d x\right )}{f^2+(d e-c f)^2}-\frac{(2 a b d (d e-c f)) \operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,c+d x\right )}{f \left (f^2+(d e-c f)^2\right )}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{2 a b d (d e-c f) \tan ^{-1}(c+d x)}{f \left (f^2+(d e-c f)^2\right )}-\frac{2 a b d \log (e+f x)}{f^2+(d e-c f)^2}+\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{a b d \log \left (1+(c+d x)^2\right )}{f^2+(d e-c f)^2}+\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \frac{\log \left (\frac{2}{1-i x}\right )}{1+x^2} \, dx,x,c+d x\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \frac{\log \left (\frac{2 (d e-c f+f x)}{(d e+i f-c f) (1-i x)}\right )}{1+x^2} \, dx,x,c+d x\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \left (\frac{d e \left (1-\frac{c f}{d e}\right ) \cot ^{-1}(x)}{1+x^2}-\frac{f x \cot ^{-1}(x)}{1+x^2}\right ) \, dx,x,c+d x\right )}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}\\ &=-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{2 a b d (d e-c f) \tan ^{-1}(c+d x)}{f \left (f^2+(d e-c f)^2\right )}-\frac{2 a b d \log (e+f x)}{f^2+(d e-c f)^2}+\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{a b d \log \left (1+(c+d x)^2\right )}{f^2+(d e-c f)^2}-\frac{i b^2 d \text{Li}_2\left (1-\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{\left (2 i b^2 d\right ) \operatorname{Subst}\left (\int \frac{\log (2 x)}{1-2 x} \, dx,x,\frac{1}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \frac{x \cot ^{-1}(x)}{1+x^2} \, dx,x,c+d x\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{\left (2 b^2 d (d e-c f)\right ) \operatorname{Subst}\left (\int \frac{\cot ^{-1}(x)}{1+x^2} \, dx,x,c+d x\right )}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}\\ &=\frac{i b^2 d \cot ^{-1}(c+d x)^2}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{b^2 d (d e-c f) \cot ^{-1}(c+d x)^2}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{2 a b d (d e-c f) \tan ^{-1}(c+d x)}{f \left (f^2+(d e-c f)^2\right )}-\frac{2 a b d \log (e+f x)}{f^2+(d e-c f)^2}+\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{a b d \log \left (1+(c+d x)^2\right )}{f^2+(d e-c f)^2}+\frac{i b^2 d \text{Li}_2\left (1-\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{i b^2 d \text{Li}_2\left (1-\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \frac{\cot ^{-1}(x)}{i-x} \, dx,x,c+d x\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}\\ &=\frac{i b^2 d \cot ^{-1}(c+d x)^2}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{b^2 d (d e-c f) \cot ^{-1}(c+d x)^2}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{2 a b d (d e-c f) \tan ^{-1}(c+d x)}{f \left (f^2+(d e-c f)^2\right )}-\frac{2 a b d \log (e+f x)}{f^2+(d e-c f)^2}+\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1+i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{a b d \log \left (1+(c+d x)^2\right )}{f^2+(d e-c f)^2}+\frac{i b^2 d \text{Li}_2\left (1-\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{i b^2 d \text{Li}_2\left (1-\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{\left (2 b^2 d\right ) \operatorname{Subst}\left (\int \frac{\log \left (\frac{2}{1+i x}\right )}{1+x^2} \, dx,x,c+d x\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}\\ &=\frac{i b^2 d \cot ^{-1}(c+d x)^2}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{b^2 d (d e-c f) \cot ^{-1}(c+d x)^2}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{2 a b d (d e-c f) \tan ^{-1}(c+d x)}{f \left (f^2+(d e-c f)^2\right )}-\frac{2 a b d \log (e+f x)}{f^2+(d e-c f)^2}+\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1+i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{a b d \log \left (1+(c+d x)^2\right )}{f^2+(d e-c f)^2}+\frac{i b^2 d \text{Li}_2\left (1-\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{i b^2 d \text{Li}_2\left (1-\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{\left (2 i b^2 d\right ) \operatorname{Subst}\left (\int \frac{\log (2 x)}{1-2 x} \, dx,x,\frac{1}{1+i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}\\ &=\frac{i b^2 d \cot ^{-1}(c+d x)^2}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{b^2 d (d e-c f) \cot ^{-1}(c+d x)^2}{f \left (d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2\right )}-\frac{\left (a+b \cot ^{-1}(c+d x)\right )^2}{f (e+f x)}-\frac{2 a b d (d e-c f) \tan ^{-1}(c+d x)}{f \left (f^2+(d e-c f)^2\right )}-\frac{2 a b d \log (e+f x)}{f^2+(d e-c f)^2}+\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{2 b^2 d \cot ^{-1}(c+d x) \log \left (\frac{2}{1+i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{a b d \log \left (1+(c+d x)^2\right )}{f^2+(d e-c f)^2}+\frac{i b^2 d \text{Li}_2\left (1-\frac{2}{1-i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}-\frac{i b^2 d \text{Li}_2\left (1-\frac{2 d (e+f x)}{(d e+i f-c f) (1-i (c+d x))}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}+\frac{i b^2 d \text{Li}_2\left (1-\frac{2}{1+i (c+d x)}\right )}{d^2 e^2-2 c d e f+\left (1+c^2\right ) f^2}\\ \end{align*}

Mathematica [A]  time = 8.94061, size = 454, normalized size = 0.8 \[ -\frac{\frac{b^2 d \left ((c+d x)^2+1\right ) (e+f x) \left (\frac{f \left (-i \text{PolyLog}\left (2,\exp \left (2 i \left (\tan ^{-1}\left (\frac{f}{d e-c f}\right )+\cot ^{-1}(c+d x)\right )\right )\right )+2 \cot ^{-1}(c+d x) \log \left (1-\exp \left (2 i \left (\tan ^{-1}\left (\frac{f}{d e-c f}\right )+\cot ^{-1}(c+d x)\right )\right )\right )+2 \tan ^{-1}\left (\frac{f}{c f-d e}\right ) \left (-\log \left (1-\exp \left (2 i \left (\tan ^{-1}\left (\frac{f}{d e-c f}\right )+\cot ^{-1}(c+d x)\right )\right )\right )+\log \left (\sin \left (\tan ^{-1}\left (\frac{f}{d e-c f}\right )+\cot ^{-1}(c+d x)\right )\right )+i \cot ^{-1}(c+d x)\right )-\pi \log \left (\frac{1}{\sqrt{\frac{1}{(c+d x)^2}+1}}\right )+i \pi \cot ^{-1}(c+d x)+\pi \log \left (1+e^{-2 i \cot ^{-1}(c+d x)}\right )\right )}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2}+\frac{\cot ^{-1}(c+d x)^2 e^{i \tan ^{-1}\left (\frac{f}{d e-c f}\right )}}{(c f-d e) \sqrt{\frac{f^2}{(d e-c f)^2}+1}}+\frac{\cot ^{-1}(c+d x)^2}{d e+d f x}\right )}{(c+d x)^2 \left (\frac{1}{(c+d x)^2}+1\right )}+a^2+\frac{2 a b f \left (\cot ^{-1}(c+d x) \left (c^2 f-c d e+c d f x-d^2 e x+f\right )+d (e+f x) \log \left (-\frac{d (e+f x)}{(c+d x) \sqrt{\frac{1}{(c+d x)^2}+1}}\right )\right )}{\left (c^2+1\right ) f^2-2 c d e f+d^2 e^2}}{f (e+f x)} \]

Warning: Unable to verify antiderivative.

[In]

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

[Out]

-((a^2 + (2*a*b*f*((-(c*d*e) + f + c^2*f - d^2*e*x + c*d*f*x)*ArcCot[c + d*x] + d*(e + f*x)*Log[-((d*(e + f*x)
)/((c + d*x)*Sqrt[1 + (c + d*x)^(-2)]))]))/(d^2*e^2 - 2*c*d*e*f + (1 + c^2)*f^2) + (b^2*d*(e + f*x)*(1 + (c +
d*x)^2)*((E^(I*ArcTan[f/(d*e - c*f)])*ArcCot[c + d*x]^2)/((-(d*e) + c*f)*Sqrt[1 + f^2/(d*e - c*f)^2]) + ArcCot
[c + d*x]^2/(d*e + d*f*x) + (f*(I*Pi*ArcCot[c + d*x] + Pi*Log[1 + E^((-2*I)*ArcCot[c + d*x])] + 2*ArcCot[c + d
*x]*Log[1 - E^((2*I)*(ArcCot[c + d*x] + ArcTan[f/(d*e - c*f)]))] - Pi*Log[1/Sqrt[1 + (c + d*x)^(-2)]] + 2*ArcT
an[f/(-(d*e) + c*f)]*(I*ArcCot[c + d*x] - Log[1 - E^((2*I)*(ArcCot[c + d*x] + ArcTan[f/(d*e - c*f)]))] + Log[S
in[ArcCot[c + d*x] + ArcTan[f/(d*e - c*f)]]]) - I*PolyLog[2, E^((2*I)*(ArcCot[c + d*x] + ArcTan[f/(d*e - c*f)]
))]))/(d^2*e^2 - 2*c*d*e*f + (1 + c^2)*f^2)))/((c + d*x)^2*(1 + (c + d*x)^(-2))))/(f*(e + f*x)))

________________________________________________________________________________________

Maple [B]  time = 0.114, size = 1180, normalized size = 2.1 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} -{\left (d{\left (\frac{2 \,{\left (d^{2} e - c d f\right )} \arctan \left (\frac{d^{2} x + c d}{d}\right )}{{\left (d^{2} e^{2} f - 2 \, c d e f^{2} +{\left (c^{2} + 1\right )} f^{3}\right )} d} - \frac{\log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{d^{2} e^{2} - 2 \, c d e f +{\left (c^{2} + 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{arccot}\left (d x + c\right )}{f^{2} x + e f}\right )} a b - \frac{\frac{1}{4} \,{\left (28 \, \arctan \left (1, d x + c\right )^{2} - 4 \,{\left (f^{2} x + e f\right )} \int \frac{36 \, d^{2} f x^{2} \arctan \left (1, d x + c\right )^{2} + 8 \,{\left (9 \, c \arctan \left (1, d x + c\right )^{2} - 7 \, \arctan \left (1, d x + c\right )\right )} d f x - 56 \, d e \arctan \left (1, d x + c\right ) + 3 \,{\left (d^{2} f x^{2} + 2 \, c d f x +{\left (c^{2} + 1\right )} f\right )} \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )^{2} + 36 \,{\left (c^{2} \arctan \left (1, d x + c\right )^{2} + \arctan \left (1, d x + c\right )^{2}\right )} f - 12 \,{\left (d^{2} f x^{2} + c d e +{\left (d^{2} e + c d f\right )} x\right )} \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )}{4 \,{\left (d^{2} f^{3} x^{4} +{\left (c^{2} + 1\right )} e^{2} f + 2 \,{\left (d^{2} e f^{2} + c d f^{3}\right )} x^{3} +{\left (d^{2} e^{2} f + 4 \, c d e f^{2} +{\left (c^{2} + 1\right )} f^{3}\right )} x^{2} + 2 \,{\left (c d e^{2} f +{\left (c^{2} + 1\right )} e f^{2}\right )} x\right )}}\,{d x} - 3 \, \log \left (d^{2} x^{2} + 2 \, c d x + c^{2} + 1\right )^{2}\right )} b^{2}}{16 \,{\left (f^{2} x + e f\right )}} - \frac{a^{2}}{f^{2} x + e f} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

-(d*(2*(d^2*e - c*d*f)*arctan((d^2*x + c*d)/d)/((d^2*e^2*f - 2*c*d*e*f^2 + (c^2 + 1)*f^3)*d) - log(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) + 2*log(f*x + e)/(d^2*e^2 - 2*c*d*e*f + (c^2 + 1)*f^2)
) + 2*arccot(d*x + c)/(f^2*x + e*f))*a*b - 1/16*(4*arctan2(1, d*x + c)^2 - 16*(f^2*x + e*f)*integrate(1/16*(12
*d^2*f*x^2*arctan2(1, d*x + c)^2 + 8*(3*c*arctan2(1, d*x + c)^2 - arctan2(1, d*x + c))*d*f*x - 8*d*e*arctan2(1
, d*x + c) + (d^2*f*x^2 + 2*c*d*f*x + (c^2 + 1)*f)*log(d^2*x^2 + 2*c*d*x + c^2 + 1)^2 + 12*(c^2*arctan2(1, d*x
 + c)^2 + arctan2(1, d*x + c)^2)*f - 4*(d^2*f*x^2 + c*d*e + (d^2*e + c*d*f)*x)*log(d^2*x^2 + 2*c*d*x + c^2 + 1
))/(d^2*f^3*x^4 + (c^2 + 1)*e^2*f + 2*(d^2*e*f^2 + c*d*f^3)*x^3 + (d^2*e^2*f + 4*c*d*e*f^2 + (c^2 + 1)*f^3)*x^
2 + 2*(c*d*e^2*f + (c^2 + 1)*e*f^2)*x), x) - log(d^2*x^2 + 2*c*d*x + c^2 + 1)^2)*b^2/(f^2*x + e*f) - a^2/(f^2*
x + e*f)

________________________________________________________________________________________

Fricas [F]  time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{2} \operatorname{arccot}\left (d x + c\right )^{2} + 2 \, a b \operatorname{arccot}\left (d x + c\right ) + a^{2}}{f^{2} x^{2} + 2 \, e f x + e^{2}}, x\right ) \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

integral((b^2*arccot(d*x + c)^2 + 2*a*b*arccot(d*x + c) + a^2)/(f^2*x^2 + 2*e*f*x + e^2), x)

________________________________________________________________________________________

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]

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

[Out]

Timed out

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \operatorname{arccot}\left (d x + c\right ) + a\right )}^{2}}{{\left (f x + e\right )}^{2}}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

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

[Out]

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