.
1. Regarding first part of your question.
You got
tan(x) = 0.
The solutions of this equation are x = 0, +/-, +/-, +/- , . . . , +/-, . . . .
Of them, only 0, and belong to the segment [, ] that you pointed.
Other values that you are asking about, like , , are not the roots of the equation tan(x) = 0.
2. Moving on to - = .
It is = +/-, or = +/- or cos(x) = +/-.
If cos(x) = , then x = and x = = are the solutions in the segment [, ].
If cos(x) = -, then x = and x = = are the solutions in the segment [, ].
I recommend you to make a sketch of the unit circle, to mark the angles 0°, 30°, 45°, 60° and 90° in it and to write
the values of sin, cos and tan for these angles.
Then mark all other angles like 120°, 135°, 150°, 180° and so on till 360° and do the same.
After that you will be much more confident in such problems.