Optimal. Leaf size=7 \[ \tan (x)-\cot (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 7, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 2, integrand size = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.222, Rules used = {2620, 14} \[ \tan (x)-\cot (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 2620
Rubi steps
\begin {align*} \int \csc ^2(x) \sec ^2(x) \, dx &=\operatorname {Subst}\left (\int \frac {1+x^2}{x^2} \, dx,x,\tan (x)\right )\\ &=\operatorname {Subst}\left (\int \left (1+\frac {1}{x^2}\right ) \, dx,x,\tan (x)\right )\\ &=-\cot (x)+\tan (x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.01, size = 6, normalized size = 0.86 \[ -2 \cot (2 x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.42, size = 18, normalized size = 2.57 \[ -\frac {2 \, \cos \relax (x)^{2} - 1}{\cos \relax (x) \sin \relax (x)} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.12, size = 9, normalized size = 1.29 \[ -\frac {1}{\tan \relax (x)} + \tan \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 15, normalized size = 2.14 \[ -2 \cot \relax (x )+\frac {1}{\cos \relax (x ) \sin \relax (x )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.42, size = 9, normalized size = 1.29 \[ -\frac {1}{\tan \relax (x)} + \tan \relax (x) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.06, size = 6, normalized size = 0.86 \[ -2\,\mathrm {cot}\left (2\,x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [B] time = 0.08, size = 12, normalized size = 1.71 \[ - \frac {2 \cos {\left (2 x \right )}}{\sin {\left (2 x \right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________