var('x')
y=function('y',x)
print desolve(diff(y,x)-(y-2)*cot(x),[y,x])