Solve the equation #2cos^2xcotx=cotx# within the interval #0<=x<2pi#?