This question was asked in Ex 9.6, 8
I think there is some mistake in Answer Sheet of NCERT Book. That's why answer is mismatching. 
(1 x^2)y= log|Sinx| C
Jignesh Jain's image