There's the hard way and the easy way. Personally I like the easy way best:

From the complementary angle formulae: .

Case 1:where n is an integer.

Solve for x and substitute appropriate values of n to get all values of x satisfying the given domain.

Case 2:where n is an integer.

Solve for x and substitute appropriate values of n to get all values of x satisfying the given domain.