Решим уравнение tgx = -1.
$$x = arctg(-1) + \pi n, n \in Z$$
$$x = -\frac{\pi}{4} + \pi n, n \in Z$$
Ответ: $$x = -\frac{\pi}{4} + \pi n, n \in Z$$