So I have a math problem where I need to solve an equation for x where x is within (0, 2pi)

I have it simplified down to
cotx+cot^2x=0 and cotx-cot^2x=0
but I don't know where to go from here

just factor.

cotx + cot^2x = 0
cotx(1+cotx) = 0
cotx = 0 or cotx = -1
and
cotx(1-cotx) = 0
cotx=0 or cotx = 1

Ohhh! Thank you so much!!