Integrand size = 40, antiderivative size = 488 \[ \int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx=-\frac {2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3 \coth ^{-1}\left (1-\frac {2}{1+\frac {i \sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{c}+\frac {3 i b \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^2 \operatorname {PolyLog}\left (2,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}-\frac {3 i b \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^2 \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{2 c}+\frac {3 b^2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right ) \operatorname {PolyLog}\left (3,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}-\frac {3 b^2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right ) \operatorname {PolyLog}\left (3,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{2 c}-\frac {3 i b^3 \operatorname {PolyLog}\left (4,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{4 c}+\frac {3 i b^3 \operatorname {PolyLog}\left (4,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{4 c} \]
[Out]
Time = 0.37 (sec) , antiderivative size = 488, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.175, Rules used = {6813, 4943, 5109, 5005, 5113, 5117, 6745} \[ \int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx=\frac {3 b^2 \operatorname {PolyLog}\left (3,1-\frac {2 i}{\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+i}\right ) \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )}{2 c}-\frac {3 b^2 \operatorname {PolyLog}\left (3,1-\frac {2 \sqrt {1-c x}}{\sqrt {c x+1} \left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+i\right )}\right ) \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )}{2 c}+\frac {3 i b \operatorname {PolyLog}\left (2,1-\frac {2 i}{\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+i}\right ) \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )^2}{2 c}-\frac {3 i b \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {1-c x}}{\sqrt {c x+1} \left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+i\right )}\right ) \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )^2}{2 c}-\frac {2 \coth ^{-1}\left (1-\frac {2}{1+\frac {i \sqrt {1-c x}}{\sqrt {c x+1}}}\right ) \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}\right )\right )^3}{c}-\frac {3 i b^3 \operatorname {PolyLog}\left (4,1-\frac {2 i}{\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+i}\right )}{4 c}+\frac {3 i b^3 \operatorname {PolyLog}\left (4,1-\frac {2 \sqrt {1-c x}}{\sqrt {c x+1} \left (\frac {\sqrt {1-c x}}{\sqrt {c x+1}}+i\right )}\right )}{4 c} \]
[In]
[Out]
Rule 4943
Rule 5005
Rule 5109
Rule 5113
Rule 5117
Rule 6745
Rule 6813
Rubi steps \begin{align*} \text {integral}& = -\frac {\text {Subst}\left (\int \frac {\left (a+b \cot ^{-1}(x)\right )^3}{x} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{c} \\ & = -\frac {2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3 \coth ^{-1}\left (1-\frac {2}{1+\frac {i \sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{c}-\frac {(6 b) \text {Subst}\left (\int \frac {\left (a+b \cot ^{-1}(x)\right )^2 \coth ^{-1}\left (1-\frac {2}{1+i x}\right )}{1+x^2} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{c} \\ & = -\frac {2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3 \coth ^{-1}\left (1-\frac {2}{1+\frac {i \sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{c}+\frac {(3 b) \text {Subst}\left (\int \frac {\left (a+b \cot ^{-1}(x)\right )^2 \log \left (\frac {2 i}{i+x}\right )}{1+x^2} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{c}-\frac {(3 b) \text {Subst}\left (\int \frac {\left (a+b \cot ^{-1}(x)\right )^2 \log \left (\frac {2 x}{i+x}\right )}{1+x^2} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{c} \\ & = -\frac {2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3 \coth ^{-1}\left (1-\frac {2}{1+\frac {i \sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{c}+\frac {3 i b \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^2 \operatorname {PolyLog}\left (2,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}-\frac {3 i b \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^2 \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{2 c}+\frac {\left (3 i b^2\right ) \text {Subst}\left (\int \frac {\left (a+b \cot ^{-1}(x)\right ) \operatorname {PolyLog}\left (2,1-\frac {2 i}{i+x}\right )}{1+x^2} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{c}-\frac {\left (3 i b^2\right ) \text {Subst}\left (\int \frac {\left (a+b \cot ^{-1}(x)\right ) \operatorname {PolyLog}\left (2,1-\frac {2 x}{i+x}\right )}{1+x^2} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{c} \\ & = -\frac {2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3 \coth ^{-1}\left (1-\frac {2}{1+\frac {i \sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{c}+\frac {3 i b \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^2 \operatorname {PolyLog}\left (2,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}-\frac {3 i b \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^2 \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{2 c}+\frac {3 b^2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right ) \operatorname {PolyLog}\left (3,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}-\frac {3 b^2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right ) \operatorname {PolyLog}\left (3,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{2 c}+\frac {\left (3 b^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (3,1-\frac {2 i}{i+x}\right )}{1+x^2} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{2 c}-\frac {\left (3 b^3\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (3,1-\frac {2 x}{i+x}\right )}{1+x^2} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}{2 c} \\ & = -\frac {2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3 \coth ^{-1}\left (1-\frac {2}{1+\frac {i \sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{c}+\frac {3 i b \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^2 \operatorname {PolyLog}\left (2,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}-\frac {3 i b \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^2 \operatorname {PolyLog}\left (2,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{2 c}+\frac {3 b^2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right ) \operatorname {PolyLog}\left (3,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{2 c}-\frac {3 b^2 \left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right ) \operatorname {PolyLog}\left (3,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{2 c}-\frac {3 i b^3 \operatorname {PolyLog}\left (4,1-\frac {2 i}{i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}}\right )}{4 c}+\frac {3 i b^3 \operatorname {PolyLog}\left (4,1-\frac {2 \sqrt {1-c x}}{\sqrt {1+c x} \left (i+\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )}\right )}{4 c} \\ \end{align*}
\[ \int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx=\int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1639 vs. \(2 (402 ) = 804\).
Time = 1.32 (sec) , antiderivative size = 1640, normalized size of antiderivative = 3.36
method | result | size |
default | \(\text {Expression too large to display}\) | \(1640\) |
parts | \(\text {Expression too large to display}\) | \(1640\) |
[In]
[Out]
\[ \int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx=\int { -\frac {{\left (b \operatorname {arccot}\left (\frac {\sqrt {-c x + 1}}{\sqrt {c x + 1}}\right ) + a\right )}^{3}}{c^{2} x^{2} - 1} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx=- \int \frac {a^{3}}{c^{2} x^{2} - 1}\, dx - \int \frac {b^{3} \operatorname {acot}^{3}{\left (\frac {\sqrt {- c x + 1}}{\sqrt {c x + 1}} \right )}}{c^{2} x^{2} - 1}\, dx - \int \frac {3 a b^{2} \operatorname {acot}^{2}{\left (\frac {\sqrt {- c x + 1}}{\sqrt {c x + 1}} \right )}}{c^{2} x^{2} - 1}\, dx - \int \frac {3 a^{2} b \operatorname {acot}{\left (\frac {\sqrt {- c x + 1}}{\sqrt {c x + 1}} \right )}}{c^{2} x^{2} - 1}\, dx \]
[In]
[Out]
\[ \int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx=\int { -\frac {{\left (b \operatorname {arccot}\left (\frac {\sqrt {-c x + 1}}{\sqrt {c x + 1}}\right ) + a\right )}^{3}}{c^{2} x^{2} - 1} \,d x } \]
[In]
[Out]
\[ \int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx=\int { -\frac {{\left (b \operatorname {arccot}\left (\frac {\sqrt {-c x + 1}}{\sqrt {c x + 1}}\right ) + a\right )}^{3}}{c^{2} x^{2} - 1} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\left (a+b \cot ^{-1}\left (\frac {\sqrt {1-c x}}{\sqrt {1+c x}}\right )\right )^3}{1-c^2 x^2} \, dx=\int -\frac {{\left (a+b\,\mathrm {acot}\left (\frac {\sqrt {1-c\,x}}{\sqrt {c\,x+1}}\right )\right )}^3}{c^2\,x^2-1} \,d x \]
[In]
[Out]