\[ \left (x^2-1\right ) y'(x)+2 x y(x)-\cos (x)=0 \] ✓ Mathematica : cpu = 0.0146847 (sec), leaf count = 18
\[\left \{\left \{y(x)\to \frac {c_1+\sin (x)}{x^2-1}\right \}\right \}\]
✓ Maple : cpu = 0.011 (sec), leaf count = 16
\[ \left \{ y \left ( x \right ) ={\frac {\sin \left ( x \right ) +{\it \_C1}}{{x}^{2}-1}} \right \} \]