Optimal. Leaf size=54 \[ -\frac {\tan ^{-1}\left (\frac {\sqrt [4]{a^4-b^4 \csc ^2(x)}}{a}\right )}{a}+\frac {\tanh ^{-1}\left (\frac {\sqrt [4]{a^4-b^4 \csc ^2(x)}}{a}\right )}{a} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {4224, 272, 65,
304, 209, 212} \begin {gather*} \frac {\tanh ^{-1}\left (\frac {\sqrt [4]{a^4-b^4 \csc ^2(x)}}{a}\right )}{a}-\frac {\text {ArcTan}\left (\frac {\sqrt [4]{a^4-b^4 \csc ^2(x)}}{a}\right )}{a} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 65
Rule 209
Rule 212
Rule 272
Rule 304
Rule 4224
Rubi steps
\begin {align*} \int \frac {\cot (x)}{\sqrt [4]{a^4-b^4 \csc ^2(x)}} \, dx &=-\text {Subst}\left (\int \frac {1}{x \sqrt [4]{a^4-b^4 x^2}} \, dx,x,\csc (x)\right )\\ &=-\left (\frac {1}{2} \text {Subst}\left (\int \frac {1}{x \sqrt [4]{a^4-b^4 x}} \, dx,x,\csc ^2(x)\right )\right )\\ &=\frac {2 \text {Subst}\left (\int \frac {x^2}{\frac {a^4}{b^4}-\frac {x^4}{b^4}} \, dx,x,\sqrt [4]{a^4-b^4 \csc ^2(x)}\right )}{b^4}\\ &=\text {Subst}\left (\int \frac {1}{a^2-x^2} \, dx,x,\sqrt [4]{a^4-b^4 \csc ^2(x)}\right )-\text {Subst}\left (\int \frac {1}{a^2+x^2} \, dx,x,\sqrt [4]{a^4-b^4 \csc ^2(x)}\right )\\ &=-\frac {\tan ^{-1}\left (\frac {\sqrt [4]{a^4-b^4 \csc ^2(x)}}{a}\right )}{a}+\frac {\tanh ^{-1}\left (\frac {\sqrt [4]{a^4-b^4 \csc ^2(x)}}{a}\right )}{a}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(245\) vs. \(2(54)=108\).
time = 0.21, size = 245, normalized size = 4.54 \begin {gather*} \frac {\sqrt [4]{-a^4+2 b^4+a^4 \cos (2 x)} \left (-2 \tan ^{-1}\left (1-\frac {\sqrt {2} a \sqrt {\sin (x)}}{\sqrt [4]{b^4-a^4 \sin ^2(x)}}\right )+2 \tan ^{-1}\left (1+\frac {\sqrt {2} a \sqrt {\sin (x)}}{\sqrt [4]{b^4-a^4 \sin ^2(x)}}\right )-\log \left (1+\frac {a^2 \sin (x)}{\sqrt {b^4-a^4 \sin ^2(x)}}-\frac {\sqrt {2} a \sqrt {\sin (x)}}{\sqrt [4]{b^4-a^4 \sin ^2(x)}}\right )+\log \left (1+\frac {a^2 \sin (x)}{\sqrt {b^4-a^4 \sin ^2(x)}}+\frac {\sqrt {2} a \sqrt {\sin (x)}}{\sqrt [4]{b^4-a^4 \sin ^2(x)}}\right )\right )}{2\ 2^{3/4} a \sqrt [4]{a^4-b^4 \csc ^2(x)} \sqrt {\sin (x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \frac {\cot \left (x \right )}{\left (a^{4}-b^{4} \left (\csc ^{2}\left (x \right )\right )\right )^{\frac {1}{4}}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 3.69, size = 74, normalized size = 1.37 \begin {gather*} -\frac {\arctan \left (\frac {{\left (a^{4} - \frac {b^{4}}{\sin \left (x\right )^{2}}\right )}^{\frac {1}{4}}}{a}\right )}{a} + \frac {\log \left (a + {\left (a^{4} - \frac {b^{4}}{\sin \left (x\right )^{2}}\right )}^{\frac {1}{4}}\right )}{2 \, a} - \frac {\log \left (-a + {\left (a^{4} - \frac {b^{4}}{\sin \left (x\right )^{2}}\right )}^{\frac {1}{4}}\right )}{2 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\cot {\left (x \right )}}{\sqrt [4]{\left (a^{2} - b^{2} \csc {\left (x \right )}\right ) \left (a^{2} + b^{2} \csc {\left (x \right )}\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.70, size = 76, normalized size = 1.41 \begin {gather*} -\frac {\arctan \left (\frac {{\left (a^{4} - \frac {b^{4}}{\sin \left (x\right )^{2}}\right )}^{\frac {1}{4}}}{a}\right )}{a} + \frac {\log \left ({\left | a + {\left (a^{4} - \frac {b^{4}}{\sin \left (x\right )^{2}}\right )}^{\frac {1}{4}} \right |}\right )}{2 \, a} - \frac {\log \left ({\left | -a + {\left (a^{4} - \frac {b^{4}}{\sin \left (x\right )^{2}}\right )}^{\frac {1}{4}} \right |}\right )}{2 \, a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \frac {\mathrm {cot}\left (x\right )}{{\left (a^4-\frac {b^4}{{\sin \left (x\right )}^2}\right )}^{1/4}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________