Integrand size = 10, antiderivative size = 85 \[ \int \csc ^{-1}\left (c e^{a+b x}\right ) \, dx=\frac {i \csc ^{-1}\left (c e^{a+b x}\right )^2}{2 b}-\frac {\csc ^{-1}\left (c e^{a+b x}\right ) \log \left (1-e^{2 i \csc ^{-1}\left (c e^{a+b x}\right )}\right )}{b}+\frac {i \operatorname {PolyLog}\left (2,e^{2 i \csc ^{-1}\left (c e^{a+b x}\right )}\right )}{2 b} \]
[Out]
Time = 0.06 (sec) , antiderivative size = 85, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.700, Rules used = {2320, 5327, 4721, 3798, 2221, 2317, 2438} \[ \int \csc ^{-1}\left (c e^{a+b x}\right ) \, dx=\frac {i \operatorname {PolyLog}\left (2,e^{2 i \csc ^{-1}\left (c e^{a+b x}\right )}\right )}{2 b}+\frac {i \csc ^{-1}\left (c e^{a+b x}\right )^2}{2 b}-\frac {\csc ^{-1}\left (c e^{a+b x}\right ) \log \left (1-e^{2 i \csc ^{-1}\left (c e^{a+b x}\right )}\right )}{b} \]
[In]
[Out]
Rule 2221
Rule 2317
Rule 2320
Rule 2438
Rule 3798
Rule 4721
Rule 5327
Rubi steps \begin{align*} \text {integral}& = \frac {\text {Subst}\left (\int \frac {\csc ^{-1}(c x)}{x} \, dx,x,e^{a+b x}\right )}{b} \\ & = -\frac {\text {Subst}\left (\int \frac {\arcsin \left (\frac {x}{c}\right )}{x} \, dx,x,e^{-a-b x}\right )}{b} \\ & = -\frac {\text {Subst}\left (\int x \cot (x) \, dx,x,\arcsin \left (\frac {e^{-a-b x}}{c}\right )\right )}{b} \\ & = \frac {i \arcsin \left (\frac {e^{-a-b x}}{c}\right )^2}{2 b}+\frac {(2 i) \text {Subst}\left (\int \frac {e^{2 i x} x}{1-e^{2 i x}} \, dx,x,\arcsin \left (\frac {e^{-a-b x}}{c}\right )\right )}{b} \\ & = \frac {i \arcsin \left (\frac {e^{-a-b x}}{c}\right )^2}{2 b}-\frac {\arcsin \left (\frac {e^{-a-b x}}{c}\right ) \log \left (1-e^{2 i \arcsin \left (\frac {e^{-a-b x}}{c}\right )}\right )}{b}+\frac {\text {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\arcsin \left (\frac {e^{-a-b x}}{c}\right )\right )}{b} \\ & = \frac {i \arcsin \left (\frac {e^{-a-b x}}{c}\right )^2}{2 b}-\frac {\arcsin \left (\frac {e^{-a-b x}}{c}\right ) \log \left (1-e^{2 i \arcsin \left (\frac {e^{-a-b x}}{c}\right )}\right )}{b}-\frac {i \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \arcsin \left (\frac {e^{-a-b x}}{c}\right )}\right )}{2 b} \\ & = \frac {i \arcsin \left (\frac {e^{-a-b x}}{c}\right )^2}{2 b}-\frac {\arcsin \left (\frac {e^{-a-b x}}{c}\right ) \log \left (1-e^{2 i \arcsin \left (\frac {e^{-a-b x}}{c}\right )}\right )}{b}+\frac {i \operatorname {PolyLog}\left (2,e^{2 i \arcsin \left (\frac {e^{-a-b x}}{c}\right )}\right )}{2 b} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(280\) vs. \(2(85)=170\).
Time = 0.42 (sec) , antiderivative size = 280, normalized size of antiderivative = 3.29 \[ \int \csc ^{-1}\left (c e^{a+b x}\right ) \, dx=x \csc ^{-1}\left (c e^{a+b x}\right )+\frac {e^{-a-b x} \left (4 \sqrt {-1+c^2 e^{2 (a+b x)}} \arctan \left (\sqrt {-1+c^2 e^{2 (a+b x)}}\right ) \left (2 b x-\log \left (c^2 e^{2 (a+b x)}\right )\right )+\sqrt {1-c^2 e^{2 (a+b x)}} \left (\log ^2\left (c^2 e^{2 (a+b x)}\right )-4 \log \left (c^2 e^{2 (a+b x)}\right ) \log \left (\frac {1}{2} \left (1+\sqrt {1-c^2 e^{2 (a+b x)}}\right )\right )+2 \log ^2\left (\frac {1}{2} \left (1+\sqrt {1-c^2 e^{2 (a+b x)}}\right )\right )\right )-4 \sqrt {1-c^2 e^{2 (a+b x)}} \operatorname {PolyLog}\left (2,\frac {1}{2} \left (1-\sqrt {1-c^2 e^{2 (a+b x)}}\right )\right )\right )}{8 b c \sqrt {1-\frac {e^{-2 (a+b x)}}{c^2}}} \]
[In]
[Out]
Time = 1.85 (sec) , antiderivative size = 188, normalized size of antiderivative = 2.21
method | result | size |
derivativedivides | \(\frac {\frac {i \operatorname {arccsc}\left ({\mathrm e}^{b x +a} c \right )^{2}}{2}-\operatorname {arccsc}\left ({\mathrm e}^{b x +a} c \right ) \ln \left (1-\frac {i {\mathrm e}^{-b x -a}}{c}-\sqrt {1-\frac {{\mathrm e}^{-2 b x -2 a}}{c^{2}}}\right )+i \operatorname {polylog}\left (2, \frac {i {\mathrm e}^{-b x -a}}{c}+\sqrt {1-\frac {{\mathrm e}^{-2 b x -2 a}}{c^{2}}}\right )-\operatorname {arccsc}\left ({\mathrm e}^{b x +a} c \right ) \ln \left (1+\frac {i {\mathrm e}^{-b x -a}}{c}+\sqrt {1-\frac {{\mathrm e}^{-2 b x -2 a}}{c^{2}}}\right )+i \operatorname {polylog}\left (2, -\frac {i {\mathrm e}^{-b x -a}}{c}-\sqrt {1-\frac {{\mathrm e}^{-2 b x -2 a}}{c^{2}}}\right )}{b}\) | \(188\) |
default | \(\frac {\frac {i \operatorname {arccsc}\left ({\mathrm e}^{b x +a} c \right )^{2}}{2}-\operatorname {arccsc}\left ({\mathrm e}^{b x +a} c \right ) \ln \left (1-\frac {i {\mathrm e}^{-b x -a}}{c}-\sqrt {1-\frac {{\mathrm e}^{-2 b x -2 a}}{c^{2}}}\right )+i \operatorname {polylog}\left (2, \frac {i {\mathrm e}^{-b x -a}}{c}+\sqrt {1-\frac {{\mathrm e}^{-2 b x -2 a}}{c^{2}}}\right )-\operatorname {arccsc}\left ({\mathrm e}^{b x +a} c \right ) \ln \left (1+\frac {i {\mathrm e}^{-b x -a}}{c}+\sqrt {1-\frac {{\mathrm e}^{-2 b x -2 a}}{c^{2}}}\right )+i \operatorname {polylog}\left (2, -\frac {i {\mathrm e}^{-b x -a}}{c}-\sqrt {1-\frac {{\mathrm e}^{-2 b x -2 a}}{c^{2}}}\right )}{b}\) | \(188\) |
[In]
[Out]
Exception generated. \[ \int \csc ^{-1}\left (c e^{a+b x}\right ) \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
\[ \int \csc ^{-1}\left (c e^{a+b x}\right ) \, dx=\int \operatorname {acsc}{\left (c e^{a + b x} \right )}\, dx \]
[In]
[Out]
\[ \int \csc ^{-1}\left (c e^{a+b x}\right ) \, dx=\int { \operatorname {arccsc}\left (c e^{\left (b x + a\right )}\right ) \,d x } \]
[In]
[Out]
\[ \int \csc ^{-1}\left (c e^{a+b x}\right ) \, dx=\int { \operatorname {arccsc}\left (c e^{\left (b x + a\right )}\right ) \,d x } \]
[In]
[Out]
Time = 1.45 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.07 \[ \int \csc ^{-1}\left (c e^{a+b x}\right ) \, dx=\frac {\mathrm {polylog}\left (2,{\mathrm {e}}^{\mathrm {asin}\left (\frac {{\mathrm {e}}^{-a-b\,x}}{c}\right )\,2{}\mathrm {i}}\right )\,1{}\mathrm {i}}{2\,b}+\frac {{\mathrm {asin}\left (\frac {{\mathrm {e}}^{-a-b\,x}}{c}\right )}^2\,1{}\mathrm {i}}{2\,b}-\frac {\ln \left (1-{\mathrm {e}}^{\mathrm {asin}\left (\frac {{\mathrm {e}}^{-a-b\,x}}{c}\right )\,2{}\mathrm {i}}\right )\,\mathrm {asin}\left (\frac {{\mathrm {e}}^{-a-b\,x}}{c}\right )}{b} \]
[In]
[Out]