Optimal. Leaf size=4 \[ \cos \left (\frac {1}{x}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 4, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3460, 2718}
\begin {gather*} \cos \left (\frac {1}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2718
Rule 3460
Rubi steps
\begin {align*} \int \frac {\sin \left (\frac {1}{x}\right )}{x^2} \, dx &=-\text {Subst}\left (\int \sin (x) \, dx,x,\frac {1}{x}\right )\\ &=\cos \left (\frac {1}{x}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.01, size = 4, normalized size = 1.00 \begin {gather*} \cos \left (\frac {1}{x}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.01, size = 5, normalized size = 1.25
method | result | size |
derivativedivides | \(\cos \left (\frac {1}{x}\right )\) | \(5\) |
default | \(\cos \left (\frac {1}{x}\right )\) | \(5\) |
risch | \(\cos \left (\frac {1}{x}\right )\) | \(5\) |
norman | \(\frac {2}{1+\tan ^{2}\left (\frac {1}{2 x}\right )}\) | \(15\) |
meijerg | \(-\sqrt {\pi }\, \left (\frac {1}{\sqrt {\pi }}-\frac {\cos \left (\frac {1}{x}\right )}{\sqrt {\pi }}\right )\) | \(19\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 1.74, size = 4, normalized size = 1.00 \begin {gather*} \cos \left (\frac {1}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.69, size = 4, normalized size = 1.00 \begin {gather*} \cos \left (\frac {1}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.17, size = 3, normalized size = 0.75 \begin {gather*} \cos {\left (\frac {1}{x} \right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.46, size = 4, normalized size = 1.00 \begin {gather*} \cos \left (\frac {1}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.10, size = 4, normalized size = 1.00 \begin {gather*} \cos \left (\frac {1}{x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________