Решим уравнение ctgx = 0.
$$x = \frac{\pi}{2} + \pi n, n \in Z$$
Ответ: $$x = \frac{\pi}{2} + \pi n, n \in Z$$