y'=[(1-sinx)'x-(1-sinx)x']/x^2+cos(1/x)*(1/x)'
=(-xcosx-1+sinx)/x^2-cos(1/x)*(1/x^2)
=[sinx-xcosx-1-cos(1/x)]/x^2