\[ \left (x^2-1\right ) y'(x)+2 x y(x)-\cos (x)=0 \] ✓ Mathematica : cpu = 0.0250227 (sec), leaf count = 26
\[\left \{\left \{y(x)\to \frac {\sin (x)}{x^2-1}+\frac {c_1}{x^2-1}\right \}\right \}\] ✓ Maple : cpu = 0.008 (sec), leaf count = 19
\[\left \{y \left (x \right ) = \frac {c_{1}+\sin \left (x \right )}{\left (x -1\right ) \left (x +1\right )}\right \}\]