Integrand size = 2, antiderivative size = 17 \[ \int \csc ^{-1}(x) \, dx=x \csc ^{-1}(x)+\text {arctanh}\left (\sqrt {1-\frac {1}{x^2}}\right ) \]
[Out]
Time = 0.01 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 2.000, Rules used = {5323, 272, 65, 212} \[ \int \csc ^{-1}(x) \, dx=\text {arctanh}\left (\sqrt {1-\frac {1}{x^2}}\right )+x \csc ^{-1}(x) \]
[In]
[Out]
Rule 65
Rule 212
Rule 272
Rule 5323
Rubi steps \begin{align*} \text {integral}& = x \csc ^{-1}(x)+\int \frac {1}{\sqrt {1-\frac {1}{x^2}} x} \, dx \\ & = x \csc ^{-1}(x)-\frac {1}{2} \text {Subst}\left (\int \frac {1}{\sqrt {1-x} x} \, dx,x,\frac {1}{x^2}\right ) \\ & = x \csc ^{-1}(x)+\text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\sqrt {1-\frac {1}{x^2}}\right ) \\ & = x \csc ^{-1}(x)+\text {arctanh}\left (\sqrt {1-\frac {1}{x^2}}\right ) \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(64\) vs. \(2(17)=34\).
Time = 0.02 (sec) , antiderivative size = 64, normalized size of antiderivative = 3.76 \[ \int \csc ^{-1}(x) \, dx=x \csc ^{-1}(x)+\frac {\sqrt {-1+x^2} \left (-\log \left (1-\frac {x}{\sqrt {-1+x^2}}\right )+\log \left (1+\frac {x}{\sqrt {-1+x^2}}\right )\right )}{2 \sqrt {1-\frac {1}{x^2}} x} \]
[In]
[Out]
Time = 0.01 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.18
method | result | size |
lookup | \(x \,\operatorname {arccsc}\left (x \right )+\ln \left (x +x \sqrt {1-\frac {1}{x^{2}}}\right )\) | \(20\) |
default | \(x \,\operatorname {arccsc}\left (x \right )+\ln \left (x +x \sqrt {1-\frac {1}{x^{2}}}\right )\) | \(20\) |
parts | \(x \,\operatorname {arccsc}\left (x \right )+\frac {\sqrt {x^{2}-1}\, \ln \left (x +\sqrt {x^{2}-1}\right )}{\sqrt {\frac {x^{2}-1}{x^{2}}}\, x}\) | \(38\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 35 vs. \(2 (15) = 30\).
Time = 0.25 (sec) , antiderivative size = 35, normalized size of antiderivative = 2.06 \[ \int \csc ^{-1}(x) \, dx={\left (x - 2\right )} \operatorname {arccsc}\left (x\right ) - 4 \, \arctan \left (-x + \sqrt {x^{2} - 1}\right ) - \log \left (-x + \sqrt {x^{2} - 1}\right ) \]
[In]
[Out]
Time = 1.18 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.00 \[ \int \csc ^{-1}(x) \, dx=x \operatorname {acsc}{\left (x \right )} + \begin {cases} \operatorname {acosh}{\left (x \right )} & \text {for}\: \left |{x^{2}}\right | > 1 \\- i \operatorname {asin}{\left (x \right )} & \text {otherwise} \end {cases} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 35 vs. \(2 (15) = 30\).
Time = 0.17 (sec) , antiderivative size = 35, normalized size of antiderivative = 2.06 \[ \int \csc ^{-1}(x) \, dx=x \operatorname {arccsc}\left (x\right ) + \frac {1}{2} \, \log \left (\sqrt {-\frac {1}{x^{2}} + 1} + 1\right ) - \frac {1}{2} \, \log \left (-\sqrt {-\frac {1}{x^{2}} + 1} + 1\right ) \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 37 vs. \(2 (15) = 30\).
Time = 0.28 (sec) , antiderivative size = 37, normalized size of antiderivative = 2.18 \[ \int \csc ^{-1}(x) \, dx=x \arcsin \left (\frac {1}{x}\right ) + \frac {1}{2} \, \log \left (\sqrt {-\frac {1}{x^{2}} + 1} + 1\right ) - \frac {1}{2} \, \log \left (-\sqrt {-\frac {1}{x^{2}} + 1} + 1\right ) \]
[In]
[Out]
Time = 0.20 (sec) , antiderivative size = 20, normalized size of antiderivative = 1.18 \[ \int \csc ^{-1}(x) \, dx=x\,\mathrm {asin}\left (\frac {1}{x}\right )+\ln \left (x+\sqrt {x^2-1}\right )\,\mathrm {sign}\left (x\right ) \]
[In]
[Out]