Solve tan^2 x = 3 on [0, 2pi)