y=-sin^2 (1/x)

find the derivative

just use the chain rule twice

y = v^2(u(x))
y' = 2v v'(u) u'(x)

y' = -2sin(1/x) cos(1/x) (-1/x^2)