This question was asked in Ex 9.6, 8
teachoo.1.pdf
Sir divide the final answer by (x²+1) 
y(x²+1)= ln|sinx|+c
y=lnlsinxl/(x²+1) + c/x²+1
y= (x²+1)-¹(ln|sinx|) +c(x²+1)-¹
Vani Chaturvedi's image