How would I find the derivative of y=cotx with respect to x and also the answer should be in simplified form

This is what I got:
y= 1/tanx
Y= cosx/sinx

Idk what to do next

now you take the derivative of cosx/sinx using the quotient rule

dy/dx = (sinx(-sinx) - (cosx)(sinx))/sin^2 x
= -(sin^2 x + cos^2 x)/sin^2 x
= -1/sin^2 x
= - csc^2 x