[itex]sin x = 1[/itex]
[itex]sin x = sin (\frac{\pi}{2})[/itex]
[itex]x = n\pi + (-1)^n (\frac{\pi}{2})[/itex]
But, as [itex]x \in [0, 2\pi][/itex]
Hence, select the values for n ([itex]n \in N[/itex]), such that [itex]x \in [0, 2\pi][/itex].
The satisfying values are: [itex]n \in \{0, 1\}[/itex] Put this values for x, and you shall get [itex]x \in \{\frac{\pi}{2}\}[/itex]. This is because when we have [itex]\alpha[/itex] as [itex]\frac{\pi}{2}[/itex], we get the same solutions for [itex]n = 0; n = 1[/itex].
Do the same for 2x ([itex]x \in [0, 2\pi][/itex]), ([itex]2x \in [0, 4\pi][/itex]) and you shall get the solutions for 2x. It again gives us:
[itex]2x = n\pi + (-1)^n (\frac{\pi}{2})[/itex]
Here, {0, 1, 2, 3} satisfy 'n', giving 2 unique solutions i.e. [itex]x \in \{\frac{\pi}{4}, \frac{5\pi}{4}\}[/itex].